/* ==========================================
   CSS PERSONNALISÉ POUR LA BARRE DE NAVIGATION
   ETICKET BÉNIN - Site Vitrine
   ========================================== */

/* ==========================================
   RÉDUCTION DE L'ESPACE EN BAS DE LA NAVBAR
   ========================================== */

.navigationBar {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 60px !important;
}

.navigationBar .container-fluid {
    padding-bottom: 0 !important;
}

.navigationBar .navbar-collapse {
    padding-bottom: 0 !important;
}

.navigationBar .navbar-nav {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ==========================================
   NAVIGATION PRINCIPALE - .navigationBar
   ========================================== */

.navigationBar {
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.1),
        0 4px 20px rgba(0, 135, 81, 0.15),
        /* Vert */
        0 6px 30px rgba(252, 209, 22, 0.1),
        /* Jaune */
        0 8px 40px rgba(232, 17, 45, 0.05);
    /* Rouge */
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 60px !important;
    position: relative;
}

/* Bordure aux couleurs du drapeau du Bénin */
.navigationBar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            #008751 0%,
            /* Vert */
            #008751 33.33%,
            #FCD116 33.33%,
            /* Jaune */
            #FCD116 66.66%,
            #E8112D 66.66%,
            /* Rouge */
            #E8112D 100%);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 135, 81, 0.3);
}

/* Bordure inférieure subtile */
.navigationBar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(0, 135, 81, 0.3) 0%,
            rgba(252, 209, 22, 0.3) 50%,
            rgba(232, 17, 45, 0.3) 100%);
    z-index: 1;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
}

/* Logo et titre - AJUSTÉ */
.navigationBar .logo_titre {
    margin-top: 5px;
    font-weight: 800;
    font-family: sans-serif;
}

.navigationBar .logoImm {
    width: 45px !important;
    margin-right: 12px;
    height: auto;
    max-height: 45px;
    object-fit: contain;
}

.navigationBar .logoImmm {
    /* Logo mobile - géré par media queries */
    width: 35px !important;
    height: auto;
    max-height: 35px;
    object-fit: contain;
}

/* Section cachée (après navigation) */
.navigationBar .after {
    border: 1px solid black;
    display: none !important;
}

.navigationBar .after .container {
    position: relative;
}

.navigationBar .after .container center .sec1 {
    display: flex;
    justify-content: space-between;
    width: 80%;
    right: 10%;
}

.navigationBar .after .container center .sec1 a {
    display: block;
    font-weight: 800;
    line-height: 40px;
    color: rgb(0, 0, 0);
    font-family: sans-serif;
}

.navigationBar .after .container center .sec2 {
    position: relative;
}

.navigationBar .after .container center .sec2 a {
    padding: 10px;
    text-decoration: none;
    background-color: white;
    color: black;
    border-radius: 8px;
}

.navigationBar .after .container center .sec2 a img {
    width: 25px;
}

.navigationBar .after .container center .sec2 a span {
    top: 3px;
    font-weight: 700;
    position: relative;
}

.navigationBar .after .container center .sec2 a span .contNB {
    top: -0px;
    font-size: 14px;
    position: relative;
}

/* ==========================================
   MENU DE NAVIGATION PRINCIPAL
   ========================================== */

.navigationBar ul:nth-child(1) {
    right: 30px;
}

.navigationBar ul:nth-child(1) .nav-item {
    margin-left: 35px;
    margin-top: 8px;
    position: relative;
}

.navigationBar ul:nth-child(1) li:nth-child(3) {
    margin-right: 30px;
}

.navigationBar ul:nth-child(1) li:nth-child(5) {
    margin-left: 0px;
}

/* Liens de navigation - AJUSTÉS POUR FOND BLANC */
.navigationBar ul:nth-child(1) li a {
    color: #333 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

/* Effet de fond animé */
.navigationBar ul:nth-child(1) li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.navigationBar ul:nth-child(1) li a:hover::before {
    left: 100%;
}

/* Hover principal - VERT SITE ACCUEIL */
.navigationBar ul:nth-child(1) li a:hover {
    background: green;
    color: white !important;
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(0, 128, 0, 0.3),
        0 4px 15px rgba(252, 209, 22, 0.2),
        /* Jaune */
        0 2px 8px rgba(232, 17, 45, 0.1);
    /* Rouge */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Page active - VERT SITE ACCUEIL */
.navigationBar ul:nth-child(1) li a.active,
.navigationBar ul:nth-child(1) li a.nav-link.active {
    background: green !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(0, 128, 0, 0.4),
        0 3px 12px rgba(252, 209, 22, 0.25),
        /* Jaune */
        0 1px 6px rgba(232, 17, 45, 0.15);
    /* Rouge */
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

/* Indicateur de page active */
.navigationBar ul:nth-child(1) li a.active::after,
.navigationBar ul:nth-child(1) li a.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #FCE003;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(252, 224, 3, 0.6);
    animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Logo central (4ème élément) - SANS BORDURE */
.navigationBar ul:nth-child(1) li:nth-child(4) a {
    padding: 0px;
    border-radius: 15px;
    width: 70px;
    /* background: rgba(40, 167, 69, 0.1); */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: none;
    transition: all 0.3s ease;
    margin-right: 20px;
    margin-top: -6px;
    box-shadow:
        0 2px 8px rgba(0, 135, 81, 0.2),
        /* Vert */
        0 1px 4px rgba(252, 209, 22, 0.15),
        /* Jaune */
        0 0px 2px rgba(232, 17, 45, 0.1);
    /* Rouge */
}

.navigationBar ul:nth-child(1) li:nth-child(4) a img {
    width: 100% !important;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.navigationBar ul:nth-child(1) li:nth-child(4) a:hover {
    background: rgba(0, 128, 0, 0.2);
    transform: none;
    box-shadow:
        0 4px 15px rgba(0, 128, 0, 0.2),
        0 2px 8px rgba(252, 209, 22, 0.25),
        /* Jaune */
        0 1px 4px rgba(232, 17, 45, 0.15);
    /* Rouge */
}

/* Logo central actif - VERT SITE ACCUEIL */
.navigationBar ul:nth-child(1) li:nth-child(4) a.active {
    background: rgba(0, 128, 0, 0.3);
    box-shadow:
        0 4px 15px rgba(0, 128, 0, 0.4),
        0 2px 8px rgba(252, 209, 22, 0.3),
        /* Jaune */
        0 1px 4px rgba(232, 17, 45, 0.2);
    /* Rouge */
}

/* ==========================================
   SECTION DROITE - INFOS UTILISATEUR
   ========================================== */

.navigationBar .right_infos {
    display: flex;
    position: relative;
    left: 20px;
    top: -10px;
    justify-content: space-between;
}

/* Compteurs et badges */
.navigationBar .right_infos a .count {
    font-size: 13px;
    background-color: rgb(0, 128, 0) !important;
    top: 16px !important;
    left: 15px !important;
}

.navigationBar .right_infos a .spanUp {
    background-color: rgb(255, 255, 255) !important;
    margin-top: -49px;
    margin-left: -18px;
    padding: 2px 5px;
    border-radius: 50%;
}

/* Icônes */
.navigationBar .right_infos i {
    font-size: 25px;
    color: rgb(0, 0, 0) !important;
    margin-left: -30px;
    position: relative;
    margin-top: 25px;
}

/* Sélecteur de langue */
.navigationBar .right_infos .langInp {
    width: 80px;
    height: 35px;
    background-color: green;
    border-radius: 8px;
    margin-right: 25px;
}

.navigationBar .right_infos .langInp i {
    font-size: 20px;
    color: white;
}

/* Menu utilisateur dropdown - STYLE RECTANGULAIRE */



.navigationBar .right_infos .check .nav-link {
    color: rgb(255, 255, 255) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    /* display: flex; */

    text-decoration: none !important;
    top: 10px;
    left: -00px;
    width: 80px;
}

.navigationBar .right_infos .check:hover .nav-link {
    color: rgb(255, 255, 255) !important;
}

/* Icône utilisateur */
.navigationBar .right_infos .check i.fa-user {
    color: rgb(255, 255, 255) !important;
    font-size: 20px;
    margin: 0;
    flex-shrink: 0;
}



/* Menu dropdown utilisateur */
.navigationBar .right_infos .check .dropdown-menu {
    position: absolute;
    width: 150px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    top: 100%;
    right: 0;
    margin-top: 8px;
    padding: 4px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Afficher le dropdown au clic */
.navigationBar .right_infos .check.show .dropdown-menu,
.navigationBar .right_infos .check:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navigationBar .right_infos .check .dropdown-menu li {
    border-radius: 6px;
    margin: 4px 12px;
    border-bottom: none;
    transition: all 0.3s ease;
}

.navigationBar .right_infos .check .dropdown-menu li a {
    font-weight: 600;
    color: #333 !important;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
}

.navigationBar .right_infos .check .dropdown-menu li a:hover {
    background: green;
    color: white !important;
    transform: translateX(3px);
}

/* ==========================================
   RESPONSIVE - MOBILE/TABLETTE
   ========================================== */

/* Desktop (> 991px) */
@media (min-width: 991px) {
    .navigationBar .logoImmm {
        display: none;
        /* Cacher le logo mobile */
    }
}

/* Mobile/Tablette (< 991px) */
@media (max-width: 991px) {

    /* Menu collapse */
    .navigationBar .collapse {
        background-color: rgb(49, 49, 49);
    }

    /* Navigation items */
    .navigationBar ul:nth-child(1) .nav-item {
        margin-left: 0px;
        margin-top: 10px;
    }

    .navigationBar ul:nth-child(1) li:nth-child(3) {
        margin-right: 0px;
    }

    .navigationBar ul:nth-child(1) li:nth-child(5) {
        margin-left: 0px;
    }

    /* Cacher le logo central sur mobile */
    .navigationBar ul:nth-child(1) li:nth-child(4) {
        display: none !important;
    }

    /* Liens mobile */
    .navigationBar ul:nth-child(1) li a {
        color: white !important;
        font-size: 20px;
    }

    /* Section droite mobile */
    .navigationBar .right_infos {
        display: flex;
        position: relative;
        left: 80px;
        top: -10px;
        justify-content: space-between;
    }

    .navigationBar .right_infos a .spanUp {
        background-color: rgb(2, 137, 13) !important;
    }

    .navigationBar .right_infos .fa-cart-shopping {
        color: rgb(255, 255, 255) !important;
    }

    /* Menu utilisateur mobile - STYLE RECTANGULAIRE */
    .navigationBar .right_infos .check {
        background: transparent;
        height: 40px;
        width: 40px;
        min-width: 40px;
        border-radius: 8px;
        position: relative;
        left: -120px;
        border: 2px solid rgba(0, 128, 0, 0.3);
        box-shadow: 0 2px 8px rgba(0, 128, 0, 0.15);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        cursor: pointer;
    }

    .navigationBar .right_infos .check:hover {
        background: rgba(0, 128, 0, 0.05);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 128, 0, 0.25);
        border-color: rgba(0, 128, 0, 0.5);
    }

    .navigationBar .right_infos .check .nav-link {
        color: rgb(0, 128, 0) !important;
        font-weight: 600;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
        height: 100%;
    }

    .navigationBar .right_infos .check:hover .nav-link {
        color: rgb(0, 100, 0) !important;
    }

    .navigationBar .right_infos .check i.fa-user {
        color: rgb(0, 128, 0) !important;
        font-size: 16px;
        margin: 0;
    }

    /* Suppression du texte "Compte" sur mobile */
    .navigationBar .right_infos .check .nav-link::after {
        display: none;
    }

    .navigationBar .right_infos .check .dropdown-menu {
        position: absolute !important;
        width: 180px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border: 1px solid rgba(40, 167, 69, 0.2);
        border-radius: 8px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        bottom: 100% !important;
        top: auto !important;
        right: 0;
        margin-bottom: 8px;
        margin-top: 0 !important;
        padding: 12px 0;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    /* Afficher le dropdown au clic sur mobile */
    .navigationBar .right_infos .check.show .dropdown-menu,
    .navigationBar .right_infos .check:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navigationBar .right_infos .check .dropdown-menu li a:hover {
        background-color: green;
        color: white !important;
    }
}

/* ==========================================
   STYLES COMPLÉMENTAIRES POUR LA NAVIGATION
   ========================================== */

/* Styles pour les liens actifs dans les catégories */
.sectionIndex1 .choixCategorie ul .nav-link.active img {
    border: 2px solid blue !important;
}

.sectionIndex1 .choixCategorie ul .nav-link.active center {
    color: blue !important;
}

/* ==========================================
   UTILITAIRE - VARIABLES COULEURS
   ========================================== */

:root {
    --navbar-primary-green: rgb(0, 128, 0);
    --navbar-dark-green: rgb(2, 137, 13);
    --navbar-red: rgb(251, 8, 8);
    --navbar-gray: rgb(49, 49, 49);
    --navbar-light-gray: rgb(211, 211, 211);
    --navbar-white: rgb(255, 255, 255);
    --navbar-black: rgb(0, 0, 0);
}