/* --- ANNOUNCEMENT BANNER --- */
.sliding-banner-container {
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
    position: absolute;
    top: 0;
    z-index: 101;
}
  
.sliding-text-wrapper {
    overflow: hidden;
    width: 100%;
}
  
.sliding-text {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
}

.sliding-text img {
    width:20px;
}
  
.sliding-text span {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 15px;
    color: #9A9084;
    padding-left:5px;
    display: flex;
    gap: 5px;
}
  
@media screen and (max-width: 992px) {
    .sliding-text span {
      font-size: 15px;
    }
}

/* --- MENU DESKTOP --- */
/* Header */
.site-header {
    width: 100%;
    background-color: transparent;
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: center;
    position: fixed;
    background-color: rgba(255,255,255,0.38);
}

.header-wrap{
    /*background-color: var(--color-white);*/
    /*margin: 40px 30px 0 30px;*/
    padding:0 50px!important;
    /*border-radius: 50px;*/
    height: 90px;
    /*border:1px solid rgba(109, 106, 106, 0.1);*/
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
}

.logo{
    display:flex;
}

.logo img{
    width:276px;
}

.logo .logo-title{
    font-size:20px;
    font-weight:900;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo .logo-title p{
    margin:0;
    line-height: 20px;
}

@media screen and (max-width: 575px) {
    .logo img {
        width: 200px;
    }
}

/* Menu */
.menu .row{
    gap:35px;
}

.menu-item a {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 500;
    padding: 5px;
    border-radius: 10px;
    color: #000;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease; 
}

.menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background-color: var(--color-teal);
    transition: transform 0.3s ease;
}

.menu-item a.active {
    font-weight: bold;
}

.menu-item a:hover::after,
.menu-item a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Bouton de recherche */
.search-toggle {
    background: none;
    border: 1px solid var(--color-black);
    border-radius: 50px;
    cursor: pointer;
    padding: 13px 16px;
    margin-left:35px;
    display:flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

#search-bar{
    margin: 0;
    color: var(--color-black);
    font-style: italic;
    font-size: 15px;
    font-family: var(--font-secondary);
    font-weight:400;
    border: none;
    padding: 0;
    width:0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    outline: none;
    background-color: transparent;
}

#search-bar::placeholder {
    color: var(--color-black);
    font-style: italic;
    font-size: 15px;
    font-family: var(--font-secondary);
    font-weight:400;
}

#search-bar.active {
    width: 82px;
    margin-right:15px;
    opacity: 1;
}

#search-submit-button {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}

#search-submit-button img {
    width: 17px;
    height: 17px;
}

/* --- MENU MOBILE --- */
#mobile-menu {
    display: none;
}

@media screen and (max-width: 1749px) {
    .header-wrap {
        max-width:95%;
    }
}

@media screen and (max-width: 1250px) {
    /* Adjust header for mobile */
    .header-wrap {
        padding: 0 20px!important;
        max-width:95%;
    }

    /* Show mobile menu toggle on mobile */
    #mobile-menu {
        display: flex;
        align-items: center;
        cursor: pointer;
        margin-left: auto;
    }

    /* Style the open/close icons */
    #mobile-menu img {
        width: 40px;
        height: 40px;
        transition: transform 0.3s ease;
    }

    #open-menu {
        display: flex;
    }

    /* Hide the close icon by default */
    #close-menu {
        display: none;
    }

    /* Style dropdown menu container for animation */
    .header-right {
        position: absolute;
        top: 0; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 0 15px;
        z-index: -1;
        border-radius: 0 0 50px 50px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: max-height 0.4s ease-in-out, 
                    opacity 0.3s ease, 
                    transform 0.3s ease, 
                    padding 0.4s ease;
    }

    /* Show mobile menu when active with smooth animation */
    .header-right.active {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        padding: 15px 20px;
        padding-top: 70px;
        transition: max-height 0.4s ease-in-out, 
                    opacity 0.3s ease, 
                    transform 0.3s ease,
                    padding 0.4s ease;
    }

    /* Stack menu items vertically */
    .header-right .row,
    .menu .row {
        flex-direction: column;
        gap: 15px;
    }

    /* Style menu items for mobile */
    .menu-item {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: 0.1s;
    }
    
    /* Stagger animation for menu items */
    .header-right.active .menu-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    .header-right.active .menu-item:nth-child(1) { transition-delay: 0.1s; }
    .header-right.active .menu-item:nth-child(2) { transition-delay: 0.15s; }
    .header-right.active .menu-item:nth-child(3) { transition-delay: 0.2s; }
    .header-right.active .menu-item:nth-child(4) { transition-delay: 0.25s; }

    .menu-item a {
        display: block;
        padding: 10px;
        width: 100%;
    }

    /* Adjust search bar for mobile with animation */
    .search-toggle {
        width: 100%;
        margin: 15px 0 0;
        padding: 10px 15px;
        justify-content: center;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: 0.3s;
    }
    
    .header-right.active .search-toggle {
        opacity: 1;
        transform: translateY(0);
    }

    #search-bar {
        width: 100%;
        opacity: 1;
        margin-right: 15px;
    }

    #search-bar.active {
        width: 100%;
    }
}