/* =========================
       RESET
    ========================== */
    /* *{
        margin:0;
        padding:0;
        box-sizing:border-box;
    }
    body{
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        background:#fff;
    } */
    a{
        text-decoration:none;
        color:inherit;
    }
    ul{
        list-style:none;
    }
    ::selection{
        color: white;
        background-color: var(--color-primary);
    }
    /* ==========================================================
   NAVBAR
   ========================================================== */

.navbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;

    position: sticky;
    top: 0;
    z-index: 1000;
}


/* ==========================================================
   CONTAINER
   ========================================================== */

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;

    padding: 14px 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* ==========================================================
   LOGO
   ========================================================== */

.logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.logo img {
    display: block;

    width: 180px;
    height: auto;
}


/* ==========================================================
   NAVIGATION
   ========================================================== */

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 6px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;

    padding: 10px 14px;

    gap: 6px;

    color: #111;

    font-size: 17px;
    font-weight: 500;

    white-space: nowrap;

    border-radius: 8px;

    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.nav-link:hover {
    color: #079992;
    background: #f4f1ec;
}


/* ==========================================================
   DROPDOWN
   ========================================================== */

.dropdown {
    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    min-width: 260px;

    padding: 12px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.dropdown a {
    display: block;

    padding: 13px 15px;

    border-radius: 9px;

    color: #222;

    font-size: 15px;
    line-height: 1.4;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.dropdown a:hover {
    background: #f4f1ec;

    color: #079992;

    transform: translateX(4px);
}


/* ==========================================================
   CTA
   ========================================================== */

.nav-wrapper > .btn-green {
    flex-shrink: 0;

    white-space: nowrap;
}


/* ==========================================================
   MENU MOBILE
   ========================================================== */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    border-radius: 10px;

    background: transparent;

    cursor: pointer;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    transition:
        background-color 0.25s ease;
}

.menu-toggle:hover {
    background: #f4f1ec;
}

.menu-toggle span {
    display: block;

    width: 25px;
    height: 2px;

    background: #111;

    border-radius: 10px;

    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
}


/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 1100px) {

    .navbar-container {
        padding: 13px 24px;
    }

    .logo img {
        width: 155px;
    }

    .nav-link {
        padding: 9px 10px;

        font-size: 15px;
    }

    .nav-wrapper {
        gap: 1rem;
    }
}


/* ==========================================================
   TABLETTE / MOBILE
   ========================================================== */

@media (max-width: 1024px) {

    .navbar-container {
        position: relative;

        padding: 12px 22px;
    }

    /* ------------------------------------------------------
       LOGO
       ------------------------------------------------------ */

    .logo img {
        width: clamp(135px, 20vw, 165px);
    }


    /* ------------------------------------------------------
       HAMBURGER
       ------------------------------------------------------ */

    .menu-toggle {
        display: flex;
    }


    /* ------------------------------------------------------
       ANIMATION HAMBURGER → X
       ------------------------------------------------------ */

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* ------------------------------------------------------
       MENU
       ------------------------------------------------------ */

    .nav-wrapper {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 0 22px 24px;

        background: #ffffff;

        border-top: 1px solid #f0f0f0;

        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);

        /*
         * On utilise opacity + visibility + transform
         * plutôt qu'un énorme max-height.
         */

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        pointer-events: none;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .nav-wrapper.active {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }


    /* ------------------------------------------------------
       LISTE
       ------------------------------------------------------ */

    .nav-links {
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        margin: 0;
        padding: 10px 0;
    }

    .nav-item {
        width: 100%;
    }


    /* ------------------------------------------------------
       LIENS
       ------------------------------------------------------ */

    .nav-link {
        width: 100%;

        min-height: 50px;

        padding: 14px 4px;

        justify-content: space-between;

        border-bottom: 1px solid #eeeeee;

        border-radius: 0;

        font-size: 16px;
    }


    /* ------------------------------------------------------
       FLÈCHE DES MENUS
       ------------------------------------------------------ */

    .has-dropdown > .nav-link::after {
        content: "";

        width: 8px;
        height: 8px;

        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;

        transform: rotate(45deg) translateY(-2px);

        transition: transform 0.25s ease;
    }

    .has-dropdown.active > .nav-link::after {
        transform: rotate(225deg) translateY(-2px);
    }


    /* ------------------------------------------------------
       DROPDOWN MOBILE
       ------------------------------------------------------ */

    .dropdown {
        position: static;

        min-width: 0;

        width: 100%;

        margin: 0;

        padding: 6px 0 8px 14px;

        background: #faf9f7;

        border-radius: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        transform: none;

        display: none;
    }

    .nav-item.active .dropdown {
        display: block;

        animation: mobileDropdown 0.25s ease both;
    }

    .dropdown a {
        padding: 12px 10px;

        border-radius: 7px;

        font-size: 14px;
    }

    .dropdown a:hover {
        transform: none;
    }


    /* ------------------------------------------------------
       CTA
       ------------------------------------------------------ */

    .nav-wrapper > .btn-green {
        width: 100%;

        margin-top: 12px;

        padding: 14px 20px;

        text-align: center;

        justify-content: center;
    }
}


/* ==========================================================
   ANIMATION DROPDOWN
   ========================================================== */

@keyframes mobileDropdown {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================
   PETITS SMARTPHONES
   ========================================================== */

@media (max-width: 600px) {

    .navbar-container {
        padding: 10px 15px;
    }

    .logo img {
        width: 140px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .nav-wrapper {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 20px;
    }

    .nav-link {
        min-height: 48px;

        font-size: 15px;
    }

    .dropdown a {
        font-size: 14px;
    }
}


/* ==========================================================
   TRÈS PETITS ÉCRANS
   ========================================================== */

@media (max-width: 380px) {

    .logo img {
        width: 125px;
    }

    .navbar-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .nav-wrapper {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* ==========================================================
   ACCESSIBILITÉ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .nav-wrapper,
    .dropdown,
    .dropdown a,
    .menu-toggle span,
    .nav-link {
        transition: none;
    }

    .nav-item.active .dropdown {
        animation: none;
    }
}