@layer header;

@import "./bootstrap.min.css" layer(header);

@import "./fonts.css";








/* Conteneur principal */
.topheader {
    font-family: var(--font);
    background-color: var(--top-bg-color);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    line-height: 1;
}

/* Wrapper Flexbox principal (Élimine l'utilisation intrusive des col-X) */
.topheader-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    width: 100%;
}

/* Alignement des listes de navigation */
.topheader-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    /* Espace régulier et précis entre chaque élément */
    flex-wrap: wrap;
}

.topheader-menu li a {
    color: var(--top-text-light);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.topheader-menu li a:hover {
    color: var(--color-site-1);
    text-decoration: none;
}

/* Icônes utilitaires */
.top-icon {
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* Bloc Téléphone */
.topheader-phone a {
    color: #ffffff !important;
    font-weight: 600;
}

.topheader-phone a:hover {
    color: var(--color-site-3) !important;
}

/* Liens des Réseaux Sociaux */
.topheader-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 15px;
}

.topheader-socials a {
    color: var(--top-text-light);
    font-size: 14px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.topheader-socials a:hover {
    color: #ffffff;
    color: var(--color-site-1);
    transform: translateY(-1px);
}

/* ==========================================================================
   COMPOSANTS DROPDOWNS SÉMANTIQUES (Unification)
   ========================================================================== */
.custom-top-dropdown {
    position: relative;
}

.custom-top-dropdown .dropdown-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.custom-top-dropdown .dropdown-toggle:hover {
    color: var(--color-site-1);
}

.custom-top-dropdown .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(39, 100, 174, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin-top: 6px;
    padding: 5px 0;
    z-index: 1050;
}

.custom-top-dropdown .dropdown-menu .dropdown-item {
    color: #1e293b;
    padding: 8px 16px;
    font-size: 13px;
    display: block;
    width: 100%;
    text-align: left;
    transition: var(--transition-fast);
}

.custom-top-dropdown .dropdown-menu .dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--color-site-2);
}

/* Séparateur pour les menus */
.dropdown-divider-custom {
    height: 1px;
    background-color: #e2e8f0;
    margin: 4px 0;
}

/* ==========================================================================
   STRUCTURE MEGA-MENU UTILISATEUR CONNECTÉ
   ========================================================================== */
.mega-user-menu {
    width: 540px !important;
    padding: 15px !important;
}

.mega-user-wrapper {
    display: flex;
    gap: 20px;
}

.mega-user-column {
    flex: 1;
}

.mega-user-column .column-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-site-2);
    border-bottom: 2px solid var(--color-site-3);
    padding-bottom: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.column-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.column-links li a {
    display: block;
    padding: 6px 0;
    font-size: 12.5px;
    color: #334155 !important;
    font-weight: 400;
}

.column-links li a:hover {
    color: var(--color-site-1) !important;
    padding-left: 4px;
}

/* Bouton Déconnexion */
.logout-item {
    margin-top: 12px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 8px;
}

.logout-item a {
    color: var(--danger-500) !important;
    font-weight: 600 !important;
}

.logout-item a:hover {
    color: #b91c1c !important;
}

/* ==========================================================================
   PILULE DE SOLDE B2B
   ========================================================================== */
.solde-dropdown-container {
    margin-left: 5px;
}

.solde-pill-wrapper {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2px 12px;
}

.refresh-solde-trigger {
    color: var(--color-site-3) !important;
    margin-right: 6px;
}

.refresh-solde-trigger:hover {
    color: var(--color-site-1) !important;
}

.disabled-link {
    pointer-events: none;
    background: transparent !important;
}

.topheader-wrapper .dropdown-toggle::after {

    display: none;
}

/* ==========================================================================
   RESPONSIVE LOGIC
   ========================================================================== */
@media (max-width: 991px) {
    .topheader-wrapper {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .topheader-menu {
        justify-content: center;
        gap: 12px;
    }

    .alignment-right {
        justify-content: center;
    }

    .topheader-socials {
        border-left: none;
        padding-left: 0;
    }

    .mega-user-menu {
        width: 100% !important;
        position: static !important;
        float: none !important;
    }

    .mega-user-wrapper {
        flex-direction: column;
        gap: 15px;
    }
}

.navbar-brand {
    height: auto;
    padding: 0;
}

.promoheader .navbar-light .navbar-nav .nav-link {
    display: block;
    color: #5d5d5d;
    font-weight: 600;

    font-size: 13px;
    padding: 6px 12px;
    

}

.promoheader .navbar-light .navbar-nav .active>.nav-link,
.promoheader .navbar-light .navbar-nav .nav-link:focus,
.promoheader .navbar-light .navbar-nav .nav-link:hover {
    color: var(--color-site-1);
}

.promoheader .card-numbers {
    background-color: var(--color-site-1);
    border-radius: 30px 0 30px 30px;
    padding: 5px;
}

p.numbertel a {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

p.numbertel a:hover {
    font-weight: 700;
}


.navbar {
    border: none;
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: flex-start;
    /*padding: 8px 16px;*/
    margin-bottom: 0;
    min-height: 68px;
}

.promoheader .col-auto {

    padding-right: 15px;
    padding-left: 15px;
}

.promoheader .mx-3 {
    margin-right: 16px !important;
    margin-left: 16px !important;
}

@media (max-width:991px) {
    .navbar {
        padding: 0 10px;
    }

}

.grid-demo {
    padding: 10px;
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-row-gap: 0.1rem;
    min-width: 668px;


    grid-template-rows: repeat(9, 25px);
    grid-auto-flow: column;


}

.grid-demo [class*="col-"] {
    font-size: 14px;
    text-align: center;
}
.dropdown-menu{
    border-radius:6px !important;
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}
.grid-dropdown ul.dropdown-menu {
    top: 100%;
    left: 10%;
    transform: translateX(-10%);
    white-space: nowrap;
}

 .dropdown-item {

    font-size: 14px;
    display: block;
    width: 100%;
    padding: 4px 24px;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}
.dropdown-item:hover {
    color: var(--color-site-1);
    background: transparent
}


.promoheader .tel>a {
    font-weight: 600;
    border-right: 1px solid #fff;
    font-size: 15px;
    padding-right: 10px;

}

.promoheader .topheader-wrapper .grid-dropdown .dropdown-menu {
    position: absolute;
    top: 30px;
    left: auto;
    z-index: 10000000000000000000;
    right: 0;
    float: left;
    min-width: 10rem;
    padding: .5rem 0;
    margin: .125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: .25rem;
}



.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
}


.mega-dropdown {
    width: max-content;
}

.mega-dropdown li {
    list-style-type: none;
}

.mega-dropdown .dropdown-header {
    font-weight: 500;
    font-size: 13px;
    color: var(--color-site-1);
    padding: 8px
}

.mega-dropdown .col {
    border-right: 1px solid #eee;
}

.mega-dropdown li li a {
    color: #333;
    padding: 8px 10px !important;
    border-radius: 3px;
    font-size: 12px;
    display: inline-flex;
    white-space: nowrap;
}

.promoheader .topheader .btn {
    padding: 0.375rem 0.75rem;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

#Hôtels .fa-times,
#voyages .fa-times {
    color: #000
}

#Hôtels .modal-header h5,
#voyages .modal-header h5 {
    color: var(--color-site-1);
    font-size: 20px;
}

#Hôtels .modal-content,
#voyages .modal-content {
    border-right: 5px solid var(--color-site-1);
    border-radius: 0 0 35px;
}

.col-demo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.promofooter img.logo,
.promoheader .navbar-brand .logo {
    width: 245px;
    height: auto;
}

#navpromo {


    border: 1px solid var(--color-site-3);
    padding: 6px 12px;
    color: #fff;
    border-radius: 10px 0 10px 10px;
    background: var(--color-site-3)
}

#navpromo:hover,
#navpromo:focus {
    background: #fff;
    color: var(--color-site-3)
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 55;
    background: #fff;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    padding: 8px 16px;
}

.solde-header {
    width: 100%;
}

.dropdown-item {
    font-size: 14px;
}


.promoheader {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.promoheader .navbar-nav li:hover>ul.dropdown-menu {
    display: block;
}







