  /* ==================== 
           Navigation (Liquid Glass Épuré) 
        ==================== */
        body {
            margin: 0;
            font-family: 'Poppins', sans-serif;
            padding-top: 80px;
            background: #0c3e74;
            min-height: 100vh;
        }

        .nav-btn {
            text-decoration: none;
        }

        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 8%;
            z-index: 1000;
            box-sizing: border-box;
            
            
            background: rgba(12, 62, 116, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1) blur(1px);
            transition: all 0.2s ease;
        }

        .navbar.scrolled {
            background: rgba(12, 62, 116, 0.9);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
        }

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

        .logo {
            height: 60px;
            width: auto;
            vertical-align: middle;
            transition: opacity 0.2s ease;
        }

        .logo:hover {
            opacity: 0.8;
        }

        .menu-toggle {
            display: none;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 8px 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .menu-toggle:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 5px;
            margin: 0;
            padding: 0;
        }

        .nav-links li {
            position: relative;
        }

        .nav-links li a {
            text-decoration: none;
            color: rgba(255, 255, 255, 0.9);
            font-size: 15px;
            font-weight: 400;
            padding: 10px 16px;
            display: block;
            border-radius: 8px;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .nav-links li a:hover {
            color: white;
            background: rgba(255, 255, 255, 0.1);
        }

        .nav-btn {
            background: rgb(8, 21, 103);
            color: white;
            font-size: 14px;
            font-weight: 500;
            padding: 10px 20px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            border: none;
        }

        .nav-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
        }

        /* ==================== 
           Dropdown Épuré
        ==================== */
        .dropdown {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(12, 62, 116, 0.99);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            padding: 16px;
            width: 320px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            margin-top: 8px;
            z-index: 1001;
        }

        /* Hover desktop uniquement */
        @media (min-width: 769px) {
            .nav-links li:hover .dropdown {
                opacity: 1;
                visibility: visible;
            }
        }

        .dropdown-content {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            padding: 12px;
            border-radius: 8px;
            transition: all 0.2s ease;
            cursor: pointer;
            text-decoration: none;
            color: white;
            background: rgba(255, 255, 255, 0.05);
        }

        .dropdown-item:hover {
            background: rgba(197, 197, 197, 0.1);
        }

        .dropdown-logo {
            width: 60px;
            height: auto;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            font-size: 18px;
            flex-shrink: 0;
        }

        .dropdown-info {
            margin: 10px 10px;
            flex: 1;
            min-width: 0;
        }

        .dropdown-info h4 {
            margin: 0 0 10px 0;
            font-size: 15px;
            font-weight: 500;
            color: white;
            line-height: 1.2;
        }

        .dropdown-info p {
            margin: 0;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.3;
        }

        /* ==================== 
           Mobile Styles
        ==================== */
        @media (max-width: 768px) {

            .menu-toggle.rotate {
                transform: rotate(90deg);
                transition: transform 0.3s;
            }

            .navbar {
                padding: 15px 5%;
            }

            .menu-toggle {
                display: inline-block;
            }

            .logo {
                font-size: 12px;
            }

            .nav-links {
                display: none;
                flex-direction: column;
                background: rgba(12, 62, 116, 0.99);
                backdrop-filter: blur(15px);
                -webkit-backdrop-filter: blur(15px);
                border: 1px solid rgba(255, 255, 255, 0.15);
                position: absolute;
                top: 70px;
                right: 5%;
                width: 90%;
                border-radius: 12px;
                padding: 16px;
                gap: 0;
            }

            .nav-links.active {
                display: flex;
            }

            .nav-links li {
                margin: 0;
                width: 100%;
            }

            .nav-links li a {
                padding: 12px 0;
                text-align: left;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                border-radius: 0;
                font-size: 16px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                background: transparent;
            }


            .nav-links li a[href="#evenements"]::after,
            .nav-links li a[href="#projets"]::after {
                content: '▼';
                font-size: 10px;
                transition: transform 0.2s ease;
            }

            .nav-links li.dropdown-open a[href="#evenements"]::after,
            .nav-links li.dropdown-open a[href="#projets"]::after {
                transform: rotate(180deg);
            }

            .nav-links li:last-child a {
                border-bottom: none;
            }

            .nav-btn {
                display: none;
            }

            /* Mobile dropdown */
            .dropdown {
                position: static;
                transform: none;
                width: 100%;
                margin: 0;
                background: rgba(12, 62, 116, 0.99);
                opacity: 0;
                visibility: hidden;
                max-height: 0;
                overflow: hidden;
                transition: all 0.2s ease;
                padding: 0;
                border-radius: 8px;
                border: 1px solid rgba(255, 255, 255, 0.1);
            }

            .dropdown.active {
                opacity: 1 !important;
                visibility: visible !important;
                max-height: 400px !important;
                padding: 12px !important;
                margin-top: 8px !important;
            }

            .dropdown-item {
                background: rgba(255, 255, 255, 0.05);
                margin-bottom: 6px;
                border-radius: 6px;
            }


            .dropdown-logo {
                width: 35px;
                height: 35px;
                margin-right: 10px;
                font-size: 16px;
            }

            .dropdown-info h4 {
                font-size: 14px;
            }

            .dropdown-info p {
                font-size: 12px;
            }
        }

/* ==================== 
   Footer 
==================== */
.footer {
    
    color: #fff;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-section {
    flex: 1 1 250px;
    margin: 10px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section p,
.footer-section ul {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #c6c4c0;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #bbb;
    border-top: 1px solid #444;
    padding-top: 10px;
}

/* ==================== 
   Styles pour Tablette Portrait (768px - 1024px)
==================== */

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    
    /* ==================== 
       Navigation adaptée tablette portrait
    ==================== */
    .navbar {
        padding: 15px 4%;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .nav-links li a {
        font-size: 10px; 
        padding: 10px 12px; 
        border-radius: 8px;
        white-space: nowrap; 
    }

    

    /* ==================== 
       Dropdown optimisé tablette portrait
    ==================== */
    .dropdown {
        width: 280px; 
        padding: 16px;
        border-radius: 12px;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        margin-top: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .dropdown-content {
        gap: 8px;
    }

    .dropdown-item {
        padding: 12px;
        border-radius: 8px;
        transition: all 0.25s ease;
    }

    .dropdown-item:hover {
        background: rgba(197, 197, 197, 0.15);
        transform: translateY(-2px);
    }

    .dropdown-logo {
        width: 50px; 
        height: 50px;
        margin-right: 12px;
        font-size: 16px;
        border-radius: 8px;
    }

    .dropdown-info {
        margin: 8px 8px;
    }

    .dropdown-info h4 {
        font-size: 15px; 
        margin: 0 0 6px 0;
        font-weight: 600;
    }

    .dropdown-info p {
        font-size: 13px; 
        line-height: 1.3;
        color: rgba(255, 255, 255, 0.75);
    }

    /* ==================== 
       Améliorations tactiles optimisées
    ==================== */
    .nav-links li a {
        min-height: 40px; 
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-btn {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }

    .dropdown-item {
        min-height: 50px; 
        touch-action: manipulation;
    }

    /* ==================== 
       Gestion spéciale si la navbar déborde encore
    ==================== */
    
    
    @media (max-width: 850px) and (orientation: portrait) {
        .navbar {
            flex-wrap: wrap;
            padding: 12px 3%;
        }
        
        
        
        .nav-links li a {
            font-size: 12px;
            padding: 8px 10px;
        }
        
        .nav-btn {
            font-size: 12px;
            padding: 8px 14px;
        }
        
        body {
            padding-top: 120px; 
        }
    }

    
    

    /* ==================== 
       Animations fluides
    ==================== */
    .navbar {
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .nav-links li a {
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .nav-links li a:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-1px);
    }

    .dropdown {
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* ==================== 
       Effet de survol amélioré
    ==================== */
    .nav-links li:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown {
        transform: translateX(-50%) translateY(-10px);
    }

    /* ==================== 
       Footer optimisé tablette
    ==================== */
    .footer {
        padding: 50px 6%;
    }

    .footer-container {
        gap: 30px;
    }

    .footer-section {
        flex: 1 1 300px;
        margin: 15px;
    }

    .footer-section h3 {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .footer-section p,
    .footer-section ul {
        font-size: 16px;
        line-height: 1.7;
    }

    .footer-section ul li {
        margin-bottom: 12px;
    }

    .footer-bottom {
        margin-top: 30px;
        font-size: 14px;
        padding-top: 15px;
    }

    /* ==================== 
       Optimisations spécifiques
    ==================== */
    
    
    .nav-links li a::before {
        content: '';
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        z-index: -1;
    }

    
    .navbar.scrolled {
        background: rgba(12, 62, 116, 0.92);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    
    body {
        padding-top: 80px; /* Réduit car navbar plus compacte */
    }

    @media (orientation: landscape) {
        .dropdown {
            width: 350px; 
        }
        
        .navbar {
            padding: 15px 6%;
        }
        
        .nav-links li a {
            font-size: 15px;
            padding: 11px 16px;
        }
        
        .nav-btn {
            font-size: 14px;
            padding: 11px 20px;
        }
        
        body {
            padding-top: 85px;
        }
    }
}

/* ==================== 
   Transitions fluides entre breakpoints
==================== */
@media (min-width: 769px) and (max-width: 1024px) {
    
    
    .menu-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: none !important;
        border: none !important;
        width: auto !important;
        padding: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .nav-links li a {
        border-bottom: none !important;
        text-align: center !important;
        display: block !important;
        justify-content: center !important;
    }

    .nav-links li a::after {
        display: none !important;
    }

    .nav-btn {
        display: flex !important;
    }

    .dropdown {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-height: none !important;
        overflow: visible !important;
        margin-top: 10px !important;
        z-index: 1001 !important;
    }

    .dropdown.active {
        padding: 16px !important; 
    }
}
