/* =====================================================
   RESET / BOX SIZING
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    height: clamp(80px, 6vw, 95px);
    background: var(--bleu);

    display: flex;
    align-items: center;

    padding: 0 clamp(15px, 2vw, 35px);

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);

    gap: clamp(12px, 1.5vw, 28px);
}


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

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    width: clamp(140px, 10vw, 200px);
    height: auto;
    max-height: 130px;

    display: block;

    cursor: pointer;

    transition: transform 0.2s ease;
}

.logo img:hover {
    transform: scale(1.05);
}


/* =====================================================
   NAVIGATION DESKTOP
===================================================== */

.nav {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(12px, 1.6vw, 35px);

    min-width: 0;
}

.nav-item,
.dropdown {
    display: flex;
    align-items: center;

    height: 100%;

    position: relative;

    flex-shrink: 1;
}

.nav-item a,
.dropdown > a {
    display: flex;
    align-items: center;

    height: 100%;

    text-decoration: none;

    color: white;

    font-size: clamp(11px, 0.85vw, 17px);

    font-weight: 700;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--bleu-fonce);
}


/* =====================================================
   DROPDOWN DESKTOP
===================================================== */

.dropdown-menu {
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 230px;

    background: white;

    border-radius: 12px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    display: none;

    flex-direction: column;

    overflow: hidden;

    z-index: 9999;
}

.dropdown-menu a {
    color: var(--bleu-fonce);

    padding: 14px 20px;

    font-size: 16px;

    font-weight: 600;

    text-decoration: none;

    border-bottom: 1px solid #f2f2f2;

    height: auto;

    white-space: nowrap;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--turquoise);
    color: white;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}


/* =====================================================
   CÔTÉ DROIT
===================================================== */

.header-right {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: clamp(10px, 1.3vw, 24px);
}


/* =====================================================
   RÉSEAUX SOCIAUX
===================================================== */

.socials {
    display: flex;

    gap: clamp(6px, 0.7vw, 12px);

    align-items: center;
}

.socials img {
    width: clamp(20px, 1.4vw, 26px);
    height: clamp(20px, 1.4vw, 26px);

    opacity: 0.85;

    transition: 0.2s ease;
}

.socials img:hover {
    transform: scale(1.2);
    opacity: 1;
}


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

.header-buttons {
    display: flex;
    flex-direction: column;

    gap: clamp(5px, 0.5vw, 8px);
}

.header-buttons .btn {
    display: flex;

    align-items: center;
    justify-content: center;

    width: clamp(135px, 10vw, 185px);

    padding:
        clamp(6px, 0.5vw, 9px)
        clamp(10px, 1vw, 18px);

    border-radius: 40px;

    background: var(--bleu-fonce);

    color: white;

    text-decoration: none;

    font-weight: 800;

    font-size: clamp(10px, 0.75vw, 14px);

    line-height: 1;

    white-space: nowrap;

    transition: 0.25s ease;
}

.header-buttons .btn:hover {
    background: white;
    color: var(--bleu-fonce);
}


/* =====================================================
   TRADUCTION
===================================================== */

.language-switcher {
    display: flex;
    align-items: center;

    margin: 0 clamp(5px, 1vw, 15px);

    position: relative;

    flex-shrink: 0;
}

.gtranslate_wrapper {
    position: relative;
}

.gt_switcher-popup {
    background: white !important;

    border-radius: 30px !important;

    padding: 10px 18px !important;

    border: none !important;

    box-shadow: none !important;

    font-weight: 700 !important;

    color: var(--bleu-fonce) !important;

    transition: 0.3s ease;
}

.gt_switcher-popup:hover {
    background: var(--bleu-fonce) !important;
    color: white !important;
}

.gt_switcher-popup img {
    width: 22px !important;

    margin-right: 8px;
}

.gt_switcher-popup ul {
    border-radius: 12px !important;

    overflow: hidden;

    border: none !important;
}

.gt_switcher-popup ul li a {
    padding: 10px 15px !important;

    font-weight: 600;
}

.gt_switcher-popup ul li a:hover {
    background: var(--bleu) !important;
    color: white !important;
}


/* =====================================================
   BURGER
===================================================== */

.burger {
    display: none;

    flex-direction: column;
    justify-content: space-between;

    width: 38px;
    height: 28px;

    background: transparent;

    border: none;

    padding: 0;

    cursor: pointer;

    z-index: 1100;

    flex-shrink: 0;
}

.burger span {
    display: block;

    width: 100%;
    height: 4px;

    background: white;

    border-radius: 5px;

    transition: 0.3s ease;
}


/* =====================================================
   TABLETTE / AJUSTEMENT HEADER
===================================================== */

@media (max-width: 1300px) {

    .header {
        gap: 12px;
        padding: 0 20px;
    }

    .nav {
        gap: 14px;
    }

    .nav-item a,
    .dropdown > a {
        font-size: 13px;
    }

    .header-buttons .btn {
        width: 145px;
        font-size: 11px;
    }

    .socials {
        gap: 8px;
    }

    .socials img {
        width: 22px;
        height: 22px;
    }
}


/* =====================================================
   MENU MOBILE
===================================================== */

@media (max-width: 1100px) {

    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }


    /* HEADER */

    .header {
        height: 75px;

        padding: 0 20px;

        justify-content: space-between;

        gap: 0;

        margin: 0;

        z-index: 99999;
    }


    /* LOGO */

    .logo {
        height: 75px;

        margin: 0;
        padding: 0;
    }

    .logo img {
        width: 145px;
        height: auto;

        display: block;

        margin: 0;
    }


    /* BURGER */

    .burger {
        display: flex;
    }


    /* NAV MOBILE */

    .nav {
        position: fixed;

        top: 75px;
        left: 0;

        width: 100%;

        height: calc(100dvh - 75px);

        margin: 0;

        background: var(--bleu);

        display: none;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 0;

        padding: 20px 0;

        overflow-y: auto;

        -webkit-overflow-scrolling: touch;

        z-index: 1050;
    }

    .nav.active {
        display: flex;
    }


    /* ITEMS */

    .nav-item,
    .dropdown {
        width: 100%;

        height: auto;

        display: block;

        flex-shrink: 0;
    }

    .nav-item a,
    .dropdown > a {
        width: 100%;

        height: auto;

        min-height: 55px;

        padding: 15px 25px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        font-size: 16px;

        box-sizing: border-box;
    }


    /* DROPDOWNS MOBILE */

    .dropdown-menu {
        position: static;

        width: 100%;

        min-width: 0;

        background: rgba(0, 0, 0, 0.12);

        border-radius: 0;

        box-shadow: none;

        display: none;

        flex-direction: column;
    }

    /* Désactive le hover desktop */

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    /* Dropdown ouvert avec JavaScript */

    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-menu a {
        min-height: 48px;

        padding: 12px 45px;

        color: white;

        font-size: 14px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu a:hover {
        background: var(--turquoise);

        color: white;
    }


    /* CÔTÉ DROIT */

    .header-right,
    .socials,
    .header-buttons {
        display: none;
    }


    /* CORRECTION ESPACE BLANC SOUS LE HEADER */

    main {
        margin-top: 0 !important;
        padding-top: 75px !important;
    }

    body > section:first-of-type,
    main > section:first-child,
    .hero,
    .hero-section,
    .home-hero {
        margin-top: 0 !important;
    }
}


/* =====================================================
   PETITS TÉLÉPHONES
===================================================== */

@media (max-width: 500px) {

    .header {
        height: 68px;

        padding: 0 15px;
    }

    .logo {
        height: 68px;
    }

    .logo img {
        width: 125px;
    }

    .burger {
        width: 32px;
        height: 24px;
    }

    .burger span {
        height: 3px;
    }

    .nav {
        top: 68px;

        height: calc(100dvh - 68px);
    }

    .nav-item a,
    .dropdown > a {
        min-height: 50px;

        padding: 14px 20px;

        font-size: 15px;
    }

    .dropdown-menu a {
        padding-left: 40px;

        font-size: 13px;
    }

    main {
        padding-top: 68px !important;
    }
}