/* ============================================
   BOUTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;

    transition: all 0.3s ease;

    font-family: inherit;
}


.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #2D4AA3;
    transform: translateY(-2px);
}


.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* ============================================
   LOGO
   ============================================ */

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-accent {
    color: var(--color-primary);
    font-weight: 400;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background-color: var(--bg-white);
    padding: var(--space-sm) 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    display: inline-block;
}

/* --- BOUTON BURGER --- */
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translateY(9.5px);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-9.5px);
}

/* --- MENU DE NAVIGATION --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.profile-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background-color: var(--bg-gray);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.profile-badge span {
    font-weight: 600;
    color: var(--text-dark);
}

.profile-badge button {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

.profile-badge button:hover {
    background-color: var(--color-primary);
    color: white;
}

/* --- MODE SOMBRE --- */

.checkbox-wrapper-17 {
    /* background-color: antiquewhite; */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
}

.text-mode {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.checkbox-wrapper-17 input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
}

.checkbox-wrapper-17 label {
    --size: 37px;

    cursor: pointer;
    width: var(--size);
    height: calc(var(--size) / 2);
    background: grey;
    display: block;
    border-radius: 100px;
    position: relative;
}

.checkbox-wrapper-17 label:after {
    content: '';
    position: absolute;
    top: 6%;
    left: 2.5%;
    width: calc(50% - 5%);
    height: calc(100% - 11%);
    background: #fff;
    border-radius: 90px;
    transition: 0.3s;
}

.checkbox-wrapper-17 input:checked+label {
    background: var(--color-primary);
}

.checkbox-wrapper-17 input:checked+label:after {
    left: calc(100% - 2.5%);
    transform: translateX(-100%);
}

.checkbox-wrapper-17 label:active:after {
    width: 55%;
}


/*  ------ RESPONSIVE GRAND ECRAN ------- */

@media (min-width: 1600px) {
    .navbar .container {
        max-width: 1500px;
    }

    .nav-links {
        gap: 64px;
    }
}

/*  ------ RESPONSIVE MOBILE ------- */

@media (max-width: 768px) {
    .burger-btn {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.4s ease;
    }

    .text-mode {
        display: none;
    }

    .nav-menu.active {
        max-height: 500px;
        /* Plus grand pour être sûr */
        opacity: 1;
        padding: var(--space-md) 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--bg-gray);
    }

    .nav-links a {
        display: block;
        padding: var(--space-sm) var(--space-md);
        width: 100%;
        color: var(--text-dark);
        text-decoration: none;
    }

    .nav-links a:hover {
        background-color: var(--bg-light);
        color: var(--color-primary);
    }

    .profile-badge {
        margin: var(--space-sm) var(--space-md);
        justify-content: center;
    }
}

/* ============================================
   MENU DÉROULANT DU PROFIL
   ============================================ */

.profile-dropdown {
    position: absolute;
    top: 100%;
    left: 5%;
    margin-top: var(--space-xs);
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

@media (max-width: 768px) {
    .profile-dropdown {
        top: -140%;
        left: 25%;
    }
}

/* Quand le menu est actif */
.profile-dropdown.active {
    max-height: 200px;
    opacity: 1;
}

/* Options du menu */
.profile-option, .profile-return {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.profile-option:hover {
    background-color: var(--bg-light);
    color: var(--color-primary);
}

.profile-badge {
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: var(--space-lg) 0;
}

body.dark-mode .footer {
    background-color: var(--bg-white);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--bg-light);
    font-size: 0.875rem;
}

body.dark-mode .footer-links a {
    color: white;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-light);
}