/* Styles de la bannière pour mobile */
.banner {
    background-color: rgb(51, 81, 38);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
    height: 100px;
    overflow: visible;
    font-family: 'Ubuntu', sans-serif;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: bold;
}

/* Styles du bouton Hamburger pour mobile */
.hamburger-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 1100;
    position: absolute;
    left: 20px;
}

.hamburger-button .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* Styles pour l'image de la bannière */
.banner-image {
    height: 120px;
    display: block;
    object-fit: contain;
    z-index: 999;
    transform: translateY(15px);
}

/* Styles pour le titre desktop dans la bannière (caché sur mobile) */
.banner-title-desktop {
    display: none;
}

/* Styles du menu latéral pour mobile */
.sidebar-menu {
    height: 100vh;
    width: 250px;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    background-color: rgb(51, 81, 38);
    overflow-x: hidden;
    transition: transform 0.5s ease;
    padding-top: 0;
    color: white;
    transform: translateX(-100%);
    display: block;
    font-family: 'Ubuntu', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
}

/* Classe pour afficher la sidebar */
.sidebar-menu.active {
    transform: translateX(0);
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
}
.desktop-nav {
    display: none;
}
/* Conteneur pour l'image et le bouton de fermeture dans la sidebar */
.sidebar-header {
    position: relative;
    width: 100%;
    height: 120px;
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styles pour l'image dans la sidebar */
.sidebar-image {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    margin-top: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Styles pour le bouton de fermeture de la sidebar */
.close-sidebar-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
    z-index: 1;
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
}

/* Styles pour les liens du menu latéral */
.sidebar-menu a {
    padding: 20px 25px;
    text-decoration: none;
    font-size: 11px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.5s;
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    position: relative;
    border-top: none;
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

.sidebar-menu a:first-of-type {
    border-top: 1px solid rgba(192, 192, 192, 0.2);
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 5px;
    background-color: rgb(183, 157, 127);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sidebar-menu a:hover::before {
    opacity: 1;
}

.sidebar-menu a.current-page::before {
    opacity: 1;
}

.sidebar-menu a:hover {
    color: #f1f1f1;
    background-color: transparent;
}

/* Styles pour les icônes des sous-menus */
.submenu-icon {
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
}

.sidebar-menu a:hover .submenu-icon {
    transform: rotate(180deg);
}

/* Styles pour le sous-menu déroulant */
.submenu {
    background-color: rgb(60, 90, 45);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.7s ease-out;
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
    border-top: none;
}

.submenu.active {
    max-height: 200px;
    border-top: none;
}

/* Styles pour les liens à l'intérieur du sous-menu */
.submenu a {
    padding: 10px 35px;
    text-decoration: none;
    font-size: 10px;
    color: #bbb9bf;
    display: block;
    transition: color 0.5s ease;
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
}

.submenu a:first-of-type {
    border-top: 1px solid rgba(192, 192, 192, 0.2);
}

.submenu a::before {
    content: none;
}

.submenu a:hover {
    color: white;
}

/* Styles pour l'overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ----------------------------------------------------------- */
/* --- Media Queries pour les écrans de 768px et plus --- */
/* ----------------------------------------------------------- */
@media (min-width: 768px) {
    .banner {
        justify-content: center;
        padding-left: calc(50% - 351px);
        padding-right: calc(50% - 351px);
    }
}

/* ----------------------------------------------------------- */
/* --- Media Query pour les écrans de 990px et plus --- */
/* ----------------------------------------------------------- */
@media (min-width: 990px) {
    .banner {
        justify-content: flex-start;
        flex-direction: row;
        gap: 40px;
        width: 100%;
        height: 100px;
        position: relative;
        padding-left: calc(50% - 472px);
        padding-right: calc(50% - 472px);
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .hamburger-button {
        display: none;
    }

    .banner-image {
        transform: translateY(15px);
        height: 120px;
        position: static;
        left: auto;
        top: auto;
        margin-bottom: 0;
        margin-right: 0;
        margin-left: 0;
        flex-shrink: 0;
    }

    .banner-title-desktop {
        display: block;
        color: #d3d3d3;
        font-family: 'Oswald', sans-serif;
        font-style: italic;
        font-size: 42px;
        font-weight: bold;
        text-transform: uppercase;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .banner::after {
        content: none;
    }

    .banner-spacer {
        height: 40px;
        background-color: white;
        width: 100%;
        position: relative;
        z-index: 998;
        display: flex;
        align-items: center;
        padding-left: calc(50% - 472px);
        padding-right: calc(50% - 472px);
        padding-top: 0;
        padding-bottom: 0;
        box-sizing: border-box;
        overflow: visible;
        justify-content: flex-start;
    }

    .desktop-menu-item {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        font-family: 'Ubuntu', sans-serif;
        text-transform: uppercase;
        font-weight: bold;
        font-size: 11px;
        height: 100%;
        gap: 15px;
        justify-content: space-between;
        width: 60%;
        margin-left: 160px;
    }

    .desktop-nav > a {
        color: black;
        text-decoration: none;
        padding: 0 10px;
        white-space: nowrap;
        height: 16px;
        display: flex;
        align-items: center;
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }

    .desktop-nav > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 7px;
        background-color: rgb(200, 175, 145);
        z-index: -1;
        transform: scaleX(0) skewX(15deg);
        transform-origin: right center;
        transition: transform 0.3s ease-out;
    }

    .desktop-nav > a:hover::after {
        transform: scaleX(1) skewX(15deg);
        transform-origin: left center;
    }

    .desktop-menu-item .desktop-parent-link {
        color: black;
        text-decoration: none;
        padding: 0 10px;
        white-space: nowrap;
        height: 16px;
        display: flex;
        align-items: center;
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }

    .desktop-menu-item:hover .desktop-parent-link::after {
        transform: scaleX(1) skewX(15deg);
        transform-origin: left center;
    }

    .desktop-submenu {
        background-color: #F7F7FB;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 280px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        z-index: 100;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0s linear 0.3s;
    }

    .desktop-menu-item:hover .desktop-submenu {
        max-height: 200px;
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    .desktop-submenu a {
        color: #83808c;
        padding: 16px 30px;
        text-decoration: none;
        display: block;
        white-space: nowrap;
        font-size: 11px;
        position: relative;
        border-bottom: 1px solid rgba(131, 128, 140, 0.3);
        transition: background-color 0.2s ease, color 0.2s ease;
        cursor: pointer;
    }

    .desktop-submenu a:last-child {
        border-bottom: none;
    }

    .desktop-submenu a::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 3px;
        background-color: rgb(183, 157, 127);
        opacity: 0;
        transition: opacity 0.1s ease-out;
    }

    .desktop-submenu a:hover {
        background-color: white;
        color: black;
    }

    .desktop-submenu a:hover::before {
        opacity: 1;
    }

    .desktop-nav .submenu-icon {
        margin-left: 5px;
        transition: transform 0.3s ease-in-out;
    }
}

/* ----------------------------------------------------------- */
/* --- Media Query pour les écrans de 1200px et plus --- */
/* ----------------------------------------------------------- */
@media (min-width: 1200px) {
    .banner {
        justify-content: flex-start;
        flex-direction: row;
        gap: 40px;
        width: 100%;
        height: 100px;
        position: relative;
        padding-left: calc(50% - 585px);
        padding-right: calc(50% - 585px);
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .banner-spacer {
        padding-left: calc(50% - 585px);
        padding-right: calc(50% - 585px);
    }
}