:root {
    --primary-blue: #23293f;
    --secondary-blue: #5997e3;
    --bg-color : #FFFFFF;
    --alt-bg-color : #f5f5f5;
    --primary-gray: #333333;
    --secondary-gray: #666666;
}

::selection {
    background-color: var(--primary-blue);
    color: #fff;
}

.fs-14 { font-size: 14px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-24 { font-size: 24px; }

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: var(--alt-bg-color);
    color: var(--secondary-gray);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-gray);
    font-weight: 500;
}

.text-right {
    text-align: right;
}

.lien {
    color: var(--secondary-blue);
    text-decoration: none;
}

.lien:hover {
    color: var(--primary-blue);
    font-weight: 500;
}

.btn-submit {
    position: relative;
    overflow: hidden;

    background-color: transparent;
    border: none;
    border-left: 15px solid var(--secondary-blue);
    border-right: 10px solid var(--secondary-blue);

    font-size: 18px;
    font-weight: 500;
    color: var(--secondary-blue);
    border-radius: 5px;
    padding: 10px 15px;
    z-index: 1;
}

.btn-submit-icn {
    position: relative;
    overflow: hidden;

    background-color: transparent;
    border: none;
    border-left: 10px solid var(--secondary-blue);
    border-right: 10px solid var(--secondary-blue);

    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-blue);
    border-radius: 5px;
    padding: 10px 15px;
    z-index: 1;
}

/* couche animée */
.btn-submit::before, .btn-submit-icn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary-blue);
    z-index: -1;
    transition: width 0.4s ease;
}

/* hover animation */
.btn-submit:hover::before, .btn-submit-icn:hover::before {
    width: 100%;
}

/* texte */
.btn-submit:hover, .btn-submit-icn:hover  {
    color: var(--bg-color);
}

.cont-login {
    min-height: 100vh;
    width: 100%;
    background-image: url(../images/bg-login.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: grid;
    justify-content: center;
    align-content: space-between;
    justify-items: center;
}

.card-login {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.logo-login {
    width: auto;
    height: 100px;
    margin-bottom: 20px;
}

.cont-titre-login {
    margin-bottom: 50px;
}

.cont-titre-login h1 {
    color: var(--primary-gray);
    margin-bottom: 0;
}

.cont-titre-login p {
    color: var(--secondary-gray);
    margin-bottom: 0;
    font-weight: 300;
}

.formLogin {
    margin-bottom: 50px;
}

.signature-login {
    text-align: center;
    color: var(--bg-color);
    font-size: 16px;
}

.txt-reset-mdp {
    color: var(--secondary-gray);
    font-size: 14px;
    margin-bottom: 0;
}

.champ-a {
    background-color: #f7f6f9;
    border: solid 1px #eaeaea;
    border-radius: 10px;
    width: 100%;
    padding: 10px;
    outline: transparent;
}

.champ-b {
    background-color: #ffffff;
    border: solid 1px #eaeaea;
    border-radius: 10px;
    width: 100%;
    padding: 10px;
    outline: transparent;
}

.champ-login {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #f7f6f9;
    border: solid 1px #eaeaea;
    border-radius: 10px;
    padding: 10px;
}

.champ-login input {
    width: 100%;
    border: none;
    outline: transparent;
    background: transparent;
    padding: 2px 10px;
}

.champ-login button {
    background-color: transparent;
    border: none;
}

.cont-save-me-login {
    text-align: left;
    margin-bottom: 30px;
}

.cont-save-me-login input {
   
}

.cont-save-me-login label {
    color: var(--secondary-gray);
    font-size: 14px;
}

.sidebar {
    display: grid;
    align-content: space-between;
    position: fixed;
    top: 5px;
    left: 5px;
    height: calc(100vh - 10px);
    width: 290px;

    background-image: url(../images/bg-login.png);
    background-size: cover;
    background-position: initial;
    background-repeat: no-repeat;

    padding: 20px;
    border-radius: 15px;

    /* 🔥 effets premium */
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);

    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.main {
    margin-left: 300px;
    padding: 50px 30px;
    transition: all 0.3s;
}

.cont-logo-sidbar {
    text-align: center;
}

.cont-logo-sidbar img {
    width: auto;
    height: 80px;
}

.cont-user-sidbar {
    display: grid;
    justify-items: stretch;
    gap: 30px;
}

.cont-user-sidbar div {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cont-user-sidbar div i {
    color: var(--bg-color);
    font-size: 30px;
}

.cont-user-sidbar div a {
    display: grid;
    color: var(--bg-color);
    text-decoration: none;
    font-size: 25px;
}

.cont-user-sidbar div a span {
    font-size: 16px;
}

.btn-logout {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-color);
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-logout:hover {
    color: var(--bg-color);
    background-color: rgba(89, 151, 227, 0.4);
}

.cont-item-menu {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.item-menu {
    color: var(--bg-color);
    font-size: 16px;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.item-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-color);
    border-left: solid 5px var(--secondary-blue);
}

.item-menu i {
    margin-right: 15px;
}

.item-menu.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-color);
    border-left: solid 5px var(--secondary-blue);
}

.card-dash {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    border: none;
}

.h-card-dash {
    height: 500px;
}

.hs-card-dash {
    height: 630px;
}

.h-s-card-dash {
    height: 100%;
}

.item-dash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.card-table {
    display: flex;
    flex-direction: column;
}

.desc-acard-home {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desc-acard-home > i {
    font-size: 20px;
    padding: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.i-compagnie {
    background: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
}

.i-client {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.i-contrat {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.i-impaye {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

table {
    font-size: 14px;
}

.cont-t-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cont-t-card a {
    font-size: 14px;
    background-color: var(--alt-bg-color);
    color: var(--secondary-gray);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 14px;
    display: flex;
    align-items: center;
}

.cont-t-card a:hover {
    background-color: var(--secondary-gray);
    color: var(--bg-color);
    text-decoration: none;
}

.table-fill {
    flex: 1;
    overflow-y: auto;
}

.table-fill table {
    margin-bottom: 0;
}

.champ-option {
    background-color: transparent;
    border: none;
    outline: transparent;
    color: var(--secondary-gray);
}

.tabcontent {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.cont-export {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-shrink: 0;
    margin-top: 15px;
}

.cont-export-nc {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.cont-btn-export {
    background-color: var(--alt-bg-color);
    color: var(--bg-color);
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 10px;
    gap: 10px;
    display: flex;
    align-items: center;
}

.cont-btn-export button {
    background-color: transparent;
    border: none;
    font-size: 20px;
}

.cont-btn-export button:hover {
    background-color: var(--secondary-gray);
    color: var(--bg-color);
    padding: 0 5px;
    border-radius: 5px;
}

.table-fill {
    flex: 1;
    overflow-y: auto;
}

.btn-act-rap {
    border: none;
    display: grid;
    width: 100%;
    padding: 15px 5px;
    border-radius: 15px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    height: 100%;
}

.btn-act-rap {
    transition: all 0.3s ease;
}

.btn-act-rap:hover, .btn-act-t-page:hover, .btn-action-table:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-act-rap div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-act-rap > i {
    font-size: 30px;
}

.btn-ar-gris {
    background-color: var(--secondary-gray);
}

.btn-ar-bleu {
    background-color: #4F46E5;
}

.btn-ar-vert {
    background-color: #22C55E;
}

.btn-ar-orange {
    background-color: #F59E0B;
}

.btn-ar-rouge {
    background-color: #EF4444;
}

.s-item-stat-prod {
    display: flex;
    align-items: center;
    gap: 30px;
}

.item-stat-prod {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sep-item-stat-prod {
    display: block;
    width: 1px;
    height: 50px;
    background-color: var(--primary-blue);
}

.libelle-item-stat-prod span {
    font-size: 14px;
    color: #EF4444;

}

.btn-act-t-page {
    border: none;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-act-t-page > i {
    font-size: 18px;
}

.btn-action-table {
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 12px;
}

.cont-btn-action-table {
    display: flex;
    align-items: center;
    gap: 5px;
}

.w-champ-rech {
    width: 25vw;
}

.item-stat-treso {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.item-stat-treso > i {
    font-size: 45px;
}

.item-list-client {
    text-decoration: none;
    color: var(--secondary-gray);
}

.item-list-client:hover {
    color: var(--secondary-gray);
    opacity: 0.9;
    transform: translateY(-2px);
}

.ent-item-list-client {
    display: flex; 
    align-items: center;
    justify-content: space-between;
}

.type-item-list-client {
    font-size: 14px;
    background-color: var(--alt-bg-color);
    color: var(--secondary-gray);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 14px;
}

.contact-item-list-client {
    display: grid;
    margin-bottom: 20px;
}

.contact-item-list-client > span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-item-list-client {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-item-list-client > div {
    flex: 1;
}

.cont-logo-comp {
    text-align: center;
    margin-bottom: 20px;
}

.cont-logo-comp > img {
    width: 50%;
    height: auto;
}

.item-slt-set {
    cursor: pointer;
}

.item-prdt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.item-prdt > img {
    height: 50px;
    width: auto;
}

.cont-logo-ct {
    text-align: center;
    margin-bottom: 30px;
}

.cont-logo-ct > img {
    width: 60%;
    height: auto;
}

.cont-item-rp {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.item-rp {
    flex: 1;
}

.item-rp  > b {
    font-size: 14px;
    color: var(--primary-blue);
}

.item-rp > ul {
    list-style: none;
    margin-bottom: 0;
    padding: 0;
}

.item-rp > ul > li {
    font-size: 12px;
}

.password-field {
    position: relative;
}

.password-field .champ-a {
    width: 100%;
    padding-right: 45px;
}

.password-field .toggle-pass {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--secondary-gray);
}

.password-field .toggle-pass:hover {
    color: var(--primary-blue);
}

.item-d-prod {
    display: flex; 
    align-items: center;
    justify-content: space-between;
}

.txt-edit-ent-p {
    font-size: 12px;
    color: var(--secondary-gray);
}