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

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

.navigationBar {
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;

    /* 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;
}


/* ==========================================
   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%;
}

.navigationBar .dropdown-toggle i {
    color: white !important;
}

/* 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, 135, 81, 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, 135, 81, 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, 135, 81, 0.2);
    transform: none;
    box-shadow:
        0 4px 15px rgba(0, 135, 81, 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, 135, 81, 0.3);
    box-shadow:
        0 4px 15px rgba(0, 135, 81, 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 !important;
    align-items: center;
    gap: 20px;
    position: relative;
    justify-content: flex-end !important;
    /* background-color: #008751; */
    /* padding: 10px; */
}

/* Badge du panier */
.navigationBar .right_infos a .spanUp {
    background-color: #008751 !important;
    width: 05px;
    height: 05px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -4px;
    right: -4px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 135, 81, 0.4);
}

.navigationBar .right_infos a .count {
    font-size: 10px !important;
    font-weight: 700;
    color: white !important;
    background-color: #008751 !important;
    line-height: 1;
}

/* Icônes */
.navigationBar .right_infos i {
    font-size: 20px;
    color: rgb(0, 0, 0) !important;
}

.navigationBar .right_infos .check {
    background: rgb(2, 118, 2);
    width: 80px;
    padding-left: 20px;
    padding-right: 20px;
    padding: 6px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigationBar .right_infos .check i.fa-user {
    color: white !important;
}

/* Menu utilisateur dropdown */
.navigationBar .right_infos .check .dropdown-menu {
    position: absolute;
    width: 150px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 135, 81, 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;
}

.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;
    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;
    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;
    }
}



/* Media query spécifique pour écrans entre 484px et 730px */


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

    /* Container fluid moderne */
    .navigationBar .container-fluid {
        padding: 20px 16px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border-radius: 0 0 20px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 70px;
        animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Logo mobile moderne */
    .navigationBar .logoImmm {
        width: 55px !important;
        height: auto;
        max-height: 55px;
        object-fit: contain;
        filter: drop-shadow(0 2px 8px rgba(0, 135, 81, 0.2));
        animation: fadeInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
    }

    @keyframes fadeInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Bouton hamburger moderne avec animation */
    .navigationBar .navbar-toggler {
        border: none;
        padding: 12px 16px;
        background: linear-gradient(135deg, #008751 0%, #008751 100%);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 135, 81, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        animation: fadeInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    }

    @keyframes fadeInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .navigationBar .navbar-toggler::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

    .navigationBar .navbar-toggler:hover::before {
        left: 100%;
    }

    .navigationBar .navbar-toggler:hover {
        background: linear-gradient(135deg, #008751 0%, #008751 100%);
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 135, 81, 0.4);
    }

    .navigationBar .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.2);
    }

    .navigationBar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 28px;
        height: 28px;
    }

    /* Menu collapse moderne avec animation */
    .navigationBar .collapse {
        background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%) !important;
        border-top: 3px solid #008751;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        margin-top: 15px;
        border-radius: 0 0 20px 20px;
        padding: 30px 0;
        animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        min-height: 600px !important;
        padding-bottom: 120px !important;
    }

    /* Forcer le fond sombre quand la navbar est ouverte */
    .navigationBar .collapse.show {
        background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Navigation items modernes */
    .navigationBar .navbar-nav {
        padding: 0 10px;
    }

    .navigationBar ul:nth-child(1) .nav-item {
        margin-left: 0;
        margin-top: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .navigationBar ul:nth-child(1) .nav-item:last-child {
        border-bottom: none;
    }

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

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

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

    /* Liens mobile modernes avec effet slide */
    .navigationBar ul:nth-child(1) li a {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 16px;
        font-weight: 500;
        padding: 16px 20px !important;
        display: block;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 10px;
        margin: 6px 10px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        position: relative;
        overflow: hidden;
        animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
    }

    .navigationBar ul:nth-child(1) li:nth-child(1) a {
        animation-delay: 0.1s;
    }

    .navigationBar ul:nth-child(1) li:nth-child(2) a {
        animation-delay: 0.15s;
    }

    .navigationBar ul:nth-child(1) li:nth-child(3) a {
        animation-delay: 0.2s;
    }

    .navigationBar ul:nth-child(1) li:nth-child(5) a {
        animation-delay: 0.25s;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .navigationBar ul:nth-child(1) li a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #008751, #008751);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .navigationBar ul:nth-child(1) li a:hover::before {
        transform: scaleY(1);
    }

    .navigationBar ul:nth-child(1) li a:hover {
        background: linear-gradient(135deg, #008751 0%, #008751 100%);
        color: white !important;
        transform: translateX(8px);
        box-shadow: 0 4px 15px rgba(0, 135, 81, 0.3);
        border-color: rgba(0, 135, 81, 0.3);
    }

    .navigationBar ul:nth-child(1) li a.active {
        background: linear-gradient(135deg, #008751 0%, #008751 100%);
        color: white !important;
        box-shadow: 0 4px 15px rgba(0, 135, 81, 0.4);
        border-color: rgba(0, 135, 81, 0.5);
        font-weight: 600;
    }

    .navigationBar ul:nth-child(1) li a.active::before {
        transform: scaleY(1);
    }

    /* Section droite mobile moderne */
    .navigationBar .right_infos {
        display: flex;
        gap: 20px;
        align-items: center;
        position: relative;
        margin: 20px auto;
        padding: 0 20px;
        justify-content: center;
    }

    /* Icône panier moderne */
    .navigationBar .right_infos a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, #008751 0%, #008751 100%);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 135, 81, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
    }

    @keyframes scaleIn {
        from {
            opacity: 0;
            transform: scale(0.5);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .navigationBar .right_infos a:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 135, 81, 0.4);
    }

    .navigationBar .right_infos a i {
        color: white !important;
        font-size: 18px;
        margin: 0;
    }

    /* Badge moderne */
    .navigationBar .right_infos a .spanUp {
        /* background: linear-gradient(135deg, #e8112d 0%, #ff2d55 100%); */
        width: 5px;
        height: 5px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -6px;
        right: -6px;
        border: 3px solid white;
        box-shadow: 0 2px 10px rgba(232, 17, 45, 0.4);
        animation: pulse 2s infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.1);
        }
    }

    .navigationBar .right_infos a .count {
        font-size: 11px !important;
        font-weight: 700;
        color: white !important;
        line-height: 1;
    }

    /* Icône utilisateur moderne */
    .navigationBar .right_infos .check {
        background: #008751;
        height: 45px;
        width: 45px;
        border-radius: 12px;
        border: 2px solid rgba(0, 135, 81, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 135, 81, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
    }

    .navigationBar .right_infos .check:hover {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 135, 81, 0.3);
        border-color: rgba(0, 135, 81, 0.5);
    }

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

    .navigationBar .right_infos .check .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
    }

    .navigationBar .right_infos .check .nav-link::after {
        display: none;
    }

    /* Dropdown utilisateur moderne */
    .navigationBar .right_infos .check .dropdown-menu {
        position: absolute !important;
        width: 200px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border: 1px solid rgba(0, 135, 81, 0.2);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        bottom: 100% !important;
        top: auto !important;
        right: 0;
        margin-bottom: 12px;
        padding: 8px 0;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center !important;
    }

    .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 {
        margin: 4px 12px;
        transition: all 0.3s ease;
        margin-left: 40%;
    }

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

    .navigationBar .right_infos .check .dropdown-menu li a:hover {
        background: linear-gradient(135deg, #008751 0%, #008751 100%);
        color: white !important;
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(0, 135, 81, 0.2);
    }
}