@charset "utf-8";

/* ==========================================================
   IDENTITÉ VISUELLE
   ========================================================== */

:root {
    --ba-green: #71c2ae;
    --ba-green-dark: #4b9f8b;
    --ba-blue-grey: #294b55;
    --ba-grey: #666;
    --ba-white: #fff;
    --ba-rounded: "Arial Rounded MT Bold", "Arial Rounded MT", Arial, sans-serif;
}

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

.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--ba-green);
}

.logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(440px, calc(100% - 40px));
    height: 100%;
    text-decoration: none;
}

.logo img {
    display: block;
    width: 400px;
    max-width: 100%;
    height: auto;
}

.header-groupe {
    margin-top: 4px;
    color: var(--ba-blue-grey);
    font-family: var(--ba-rounded);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

/* ==========================================================
   MENU PRINCIPAL
   ========================================================== */

.menu {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 68px;
    background-color: var(--ba-white);
    border-bottom: 1px solid rgba(41, 75, 85, 0.1);
    box-shadow: 0 8px 24px rgba(30, 61, 69, 0.1);
}

.menu .contenu {
    width: 100%;
    margin: 0;
}

.liens_menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 10px 20px;
    list-style: none;
}

.liens_menu li,
.links li {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.liens_menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 24px;
    color: var(--ba-blue-grey);
    font-family: var(--ba-rounded);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.liens_menu a:hover,
.liens_menu a:focus-visible,
.liens_menu a[aria-current="page"],
.liens_menu .active > a,
.liens_menu .actif > a {
    color: var(--ba-blue-grey);
    background-color: rgba(113, 194, 174, 0.24);
}

.liens_menu a:hover {
    transform: translateY(-1px);
}

.liens_menu a:focus-visible {
    outline: 3px solid rgba(113, 194, 174, 0.45);
    outline-offset: 2px;
}

.links a {
    color: var(--ba-green-dark);
    text-decoration: none;
}

.links a:hover,
.links a:focus-visible {
    color: var(--ba-blue-grey);
}

.liens_menu li:hover > ul,
.liens_menu li:focus-within > ul {
    display: block;
}

/* ==========================================================
   TABLETTES ET SMARTPHONES
   ========================================================== */

@media screen and (max-width: 1023px) {
    .header {
        height: 175px;
    }

    .logo {
        width: min(380px, calc(100% - 32px));
    }

    .logo img {
        width: 340px;
    }

    .header-groupe {
        margin-top: 2px;
        font-size: 16px;
        letter-spacing: 0.14em;
    }

    .menu {
        min-height: 60px;
    }

    .liens_menu {
        gap: 2px;
        padding: 8px 10px;
    }

    .liens_menu a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }
}

@media screen and (max-width: 600px) {
    .header {
        height: 155px;
    }

    .logo {
        width: min(330px, calc(100% - 28px));
    }

    .logo img {
        width: 290px;
    }

    .header-groupe {
        font-size: 14px;
        letter-spacing: 0.13em;
    }

    .menu {
        min-height: 56px;
    }

    .liens_menu {
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding: 7px 10px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .liens_menu::-webkit-scrollbar {
        display: none;
    }

    .liens_menu li,
    .links li {
        flex: 0 0 auto;
    }

    .liens_menu a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* ==========================================================
   ACCESSIBILITÉ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .liens_menu a {
        transition: none;
    }

    .liens_menu a:hover {
        transform: none;
    }
}
