/* Navbar Styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 40px;
    width: auto;
}

.brand {
    margin: 0;
}

.brand img {
    height: 220px;
    width: auto;
    display: block;
    margin-top: -80px;
    margin-bottom: -80px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list li:last-child {
    margin: 0;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    color: #1a237e;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-list a:hover {
    color: #0d47a1;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown > a {
    color: #2d3436;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown > a::after {
    display: none;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

.dropdown:hover .dropdown-list {
    opacity: 1;
    visibility: visible;
}

.dropdown-list li {
    list-style: none;
    margin: 5px 0;
}

.dropdown-list a {
    color: #2d3436;
    text-decoration: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.dropdown-list a:hover {
    background: rgba(0, 123, 255, 0.08);
    color: #007bff;
    transform: translateX(5px);
}

/* Button Styles */
.btn1 {
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.btn1.btn-blue {
    background: #007bff;
    color: white;
}

.btn1.btn-blue:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn1.btn-blue a {
    color: white !important;
    text-decoration: none;
    white-space: nowrap;
}

/* Mobile Menu Icon - STYLES FINAUX */
.hamberger {
    display: none !important;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Mode desktop - hamburger totalement caché */
@media (min-width: 993px) {
    .hamberger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* SUPPRIMÉ - Remplacé par la nouvelle version responsive */

/* SUPPRIMÉ - Remplacé par la nouvelle version responsive */

/* SUPPRIMÉ - Remplacé par la nouvelle version responsive */

.index-page .nav-list {
    display: flex !important;
}
/* SUPPRIMÉ - Conflit avec nouvelle version */

/* ===== NAVBAR WITH BOTTOM NAVIGATION - VERSION COMPLÈTE ===== */

/* Bottom Navigation Container (hidden on desktop) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 0.5rem 0;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
    min-width: 60px;
    position: relative;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.bottom-nav-icon {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-text {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Modal for dropdowns */
.bottom-nav-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.bottom-nav-modal.active {
    display: flex;
    align-items: flex-end;
}

.bottom-nav-modal-content {
    width: 100%;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.bottom-nav-modal.active .bottom-nav-modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3436;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modal-menu li {
    margin-bottom: 0.5rem;
}

.modal-menu a {
    display: block;
    padding: 1rem;
    color: #2d3436;
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.modal-menu a:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* ===== RESPONSIVE BREAKPOINTS - LOGO CENTRÉ ===== */

/* Desktop - Keep normal navbar */
@media (min-width: 993px) {
    .bottom-nav {
        display: none !important;
    }
    
    .hamberger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Tablet and Mobile - Show bottom navigation with CENTERED LOGO */
@media (max-width: 992px) {
    /* Force hide ALL navigation and hamburger */
    .nav-list {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .hamberger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* CENTER THE LOGO COMPLETELY */
    .menu-container {
        justify-content: center !important;
        align-items: center !important;
        padding: 1rem 2rem;
        text-align: center !important;
    }
    
    .logo-container {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .brand {
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        display: block !important;
    }
    
    .brand img {
        height: 120px !important;
        margin: -40px auto !important;
        display: block !important;
        text-align: center !important;
    }
    
    /* Show bottom navigation */
    .bottom-nav {
        display: block;
    }

    /* Add bottom padding to body to account for bottom nav */
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .menu-container {
        padding: 0.8rem 1.5rem;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .logo-container {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .brand {
        text-align: center !important;
        width: 100% !important;
    }
    
    .brand img {
        height: 120px !important;
        margin: -40px auto !important;
        text-align: center !important;
    }
    
    .bottom-nav-item {
        min-width: 50px;
        padding: 0.4rem;
    }
    
    .bottom-nav-icon {
        font-size: 1.2rem;
    }
    
    .bottom-nav-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .menu-container {
        padding: 0.8rem 1rem;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .logo-container {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .brand {
        text-align: center !important;
        width: 100% !important;
    }
    
    .brand img {
        height: 120px !important;
        margin: -40px auto !important;
        text-align: center !important;
    }
    
    .bottom-nav-container {
        padding: 0 0.5rem;
    }
    
    .bottom-nav-item {
        min-width: 45px;
        padding: 0.3rem;
    }
    
    .bottom-nav-icon {
        font-size: 1.1rem;
    }
    
    .bottom-nav-text {
        font-size: 0.6rem;
    }
}

/* Special rule for index page */
.index-page .nav-list {
    display: flex !important;
}

@media (max-width: 992px) {
    .index-page .nav-list {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* ===== FORCER LE CENTRAGE - RÈGLE FINALE ===== */
@media (max-width: 992px) {
    /* Masquer TOUT élément hamburger avec priorité absolue */
    .hamberger,
    .hamberger span,
    .hamberger:before,
    .hamberger:after,
    .menu-open .hamberger,
    .hamberger.active {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
    
    /* Centrage forcé du logo */
    .menu-container {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        flex-direction: column !important;
    }
    
    .logo-container {
        width: 100% !important;
        order: 1 !important;
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
}

/* Surcharge pour tous les écrans mobiles */
@media (max-width: 768px) {
    .hamberger,
    .hamberger span,
    .menu-open .hamberger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

@media (max-width: 480px) {
    .hamberger,
    .hamberger span,
    .menu-open .hamberger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 993px) {
    .hamberger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .bottom-nav {
        display: none !important;
    }
}

/* ===== RESPONSIVE MOBILE - LOGO CENTRÉ ===== */

/* Tablette et Mobile - 992px et moins */
@media (max-width: 992px) {
    /* Masquer complètement la navigation classique */
    .nav-list {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Masquer hamburger menu */
    .hamberger,
    .hamberger span,
    .hamberger:before,
    .hamberger:after,
    .menu-open .hamberger,
    .hamberger.active {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Container principal - CENTRÉ */
    .menu-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 1rem 2rem;
        text-align: center !important;
        width: 100% !important;
    }
    
    /* Logo container - CENTRÉ */
    .logo-container {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        order: 1;
    }
    
    /* Brand - CENTRÉ */
    .brand {
        width: 100% !important;
        text-align: center !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .brand a {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .brand img {
        height: 120px !important;
        margin: -40px auto !important;
        display: block !important;
        text-align: center !important;
    }
    
    /* Afficher bottom navigation */
    .bottom-nav {
        display: block !important;
    }
    
    /* Padding pour le bottom nav */
    body {
        padding-bottom: 80px;
    }
}

/* Mobile 768px */
@media (max-width: 768px) {
    .menu-container {
        padding: 0.8rem 1.5rem;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .logo-container {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .brand {
        text-align: center !important;
        width: 100% !important;
    }
    
    .brand img {
        height: 120px !important;
        margin: -40px auto !important;
        text-align: center !important;
    }
    
    /* Styles pour bottom nav items */
    .bottom-nav-item {
        min-width: 50px;
        padding: 0.4rem;
    }
    
    .bottom-nav-icon {
        font-size: 1.2rem;
    }
    
    .bottom-nav-text {
        font-size: 0.65rem;
    }
}

/* Mobile 480px */
@media (max-width: 480px) {
    .menu-container {
        padding: 0.8rem 1rem;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .logo-container {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .brand {
        text-align: center !important;
        width: 100% !important;
    }
    
    .brand img {
        height: 120px !important;
        margin: -40px auto !important;
        text-align: center !important;
    }
    
    .bottom-nav-container {
        padding: 0 0.5rem;
    }
    
    .bottom-nav-item {
        min-width: 45px;
        padding: 0.3rem;
    }
    
    .bottom-nav-icon {
        font-size: 1.1rem;
    }
    
    .bottom-nav-text {
        font-size: 0.6rem;
    }
}

/* ===== RÈGLES SPÉCIALES ===== */

/* Page index */
.index-page .nav-list {
    display: flex !important;
}

@media (max-width: 992px) {
    .index-page .nav-list {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* ===== BOTTOM NAVIGATION - NE PAS MODIFIER ===== */
