        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: url("background hero.jpg") no-repeat center center fixed;
            background-size: cover;
            position: relative;
            color: #c6e4ed;
            overflow-x: hidden;
        }

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.65);
            z-index: -1;
        }

        /* Particules animées */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            opacity: 0.3;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: radial-gradient(circle, #d4af37, transparent);
            border-radius: 50%;
            animation: float 8s infinite ease-in-out;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
        }

        /* Header avec hide/show */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(1, 17, 58, 0.85);
            backdrop-filter: blur(20px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease-out;
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 3rem;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 1rem;
            animation: logoFloat 3s ease-in-out infinite;
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .logo img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            transition: transform 0.5s ease;
            box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
        }

        .logo img:hover {
            transform: rotate(360deg) scale(1.2);
        }

        .logo strong {
            color: white;
            font-size: 1.2rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .menu-toggle {
            display: none;
            background: linear-gradient(135deg, #d4af37, #f5e29d);
            border: none;
            color: #01113a;
            font-size: 1.5rem;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            cursor: pointer;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 0.5rem;
            align-items: center;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            padding: 0.8rem;
            border-radius: 8px;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .nav-links a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
            transition: left 0.5s;
        }

        .nav-links a:hover::before {
            left: 100%;
        }

        .nav-links a:hover {
            background: rgba(212, 175, 55, 0.2);
            transform: translateY(-3px);
        }

        .dropdown {
            position: relative;
        }

        .dropdown-content {
            position: absolute;
            top: 100%;
            left: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.15);
            min-width: 200px;
            padding: 0.5rem 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            z-index: 2000;
        }

        .dropdown:hover .dropdown-content {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-content li {
            list-style: none;
        }

        .dropdown-content a {
            display: block;
            padding: 0.8rem 1.2rem;
            color: #01113a;
        }

        .dropdown-content a:hover {
            background: linear-gradient(90deg, #d4af37, #f5e29d);
            transform: translateX(10px);
        }

        /* Search bar */
        .search-bar-container {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 1rem;
            background: linear-gradient(135deg, #01113a 0%, #0a2a7d 100%);
            padding: 1rem 3.5rem;
        }

        .search-bar-wrapper {
            position: relative;
            width: 100%;
            max-width: 360px;
        }

        .search-bar {
            display: flex;
            align-items: center;
            background: white;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }

        .search-bar:focus-within {
            transform: scale(1.05);
            box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
        }

        .search-bar input {
            border: none;
            outline: none;
            padding: 0.8rem 1.2rem;
            flex: 1;
            font-size: 1rem;
        }

        .search-bar button {
            background: linear-gradient(135deg, #2c475e, #3b82f6);
            border: none;
            color: white;
            padding: 0.8rem 1.2rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .search-bar button:hover {
            background: linear-gradient(135deg, #3b82f6, #60a5fa);
            transform: scale(1.1);
        }

        .search-results {
            display: none;
            position: absolute;
            top: 110%;
            left: 0;
            width: 100%;
            color: #01113a;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.16);
            list-style: none;
            margin: 0.35rem 0 0 0;
            padding: 0.35rem 0;
            max-height: 260px;
            overflow-y: auto;
            z-index: 3000;
        }

        .search-results li {
            padding: 0.55rem 0.9rem;
            cursor: pointer;
            transition: background 0.2s;
        }

        .search-results li:hover {
            background: #f0f4ff;
        }

        .btn-connexion {
            background: linear-gradient(90deg, #d4af37, #f5e29d);
            color: #01113a;
            font-weight: 700;
            text-decoration: none;
            padding: 0.7rem 1.5rem;
            border-radius: 25px;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.4s ease;
        }

        .btn-connexion:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
        }

        /* Main content */
        main {
            margin-top: 150px;
            padding: 2rem;
            position: relative;
            z-index: 1;
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
        }

        section {
            margin: 4rem 0;
            opacity: 0;
            transform: translateY(50px);
            animation: fadeInUp 0.8s ease-out forwards;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        h2 {
            font-size: 2.5rem;
            text-align: center;
            background: linear-gradient(135deg, #d4af37, #f5e29d, #d4af37);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 2rem;
            position: relative;
            animation: textShimmer 3s ease-in-out infinite;
        }

        @keyframes textShimmer {
            0%, 100% { filter: brightness(1); }
            50% { filter: brightness(1.3); }
        }

        h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, transparent, #d4af37, transparent);
            animation: lineExpand 2s ease-in-out infinite;
        }

        @keyframes lineExpand {
            0%, 100% { width: 100px; }
            50% { width: 200px; }
        }

        /* Search input pour chaque section */
        .section-search {
            margin-bottom: 2rem;
            max-width: 500px;
        }

        .section-search input {
            width: 100%;
            padding: 0.9rem 1.2rem;
            border-radius: 12px;
            border: 2px solid rgba(212, 175, 55, 0.3);
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .section-search input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        .section-search input:focus {
            outline: none;
            border-color: #d4af37;
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
        }

        /* PDF Grid avec animations */
        .pdf-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 2rem 1.5rem;
            margin-bottom: 3rem;
        }

        .pdf-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(44, 71, 94, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 1.5rem 1rem;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            opacity: 0;
            animation: cardFadeIn 0.6s ease-out forwards;
        }

        @keyframes cardFadeIn {
            to {
                opacity: 1;
            }
        }

        .pdf-item::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
            transform: rotate(45deg);
            transition: all 0.6s;
        }

        .pdf-item:hover {
            transform: translateY(-10px) scale(1.05);
            box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4);
        }

        .pdf-item:hover::before {
            animation: shine 1.5s infinite;
        }

        @keyframes shine {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .pdf-icon {
            width: 64px;
            height: 64px;
            margin-bottom: 1rem;
            transition: all 0.5s ease;
            filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.3));
        }

        .pdf-item:hover .pdf-icon {
            transform: scale(1.2) rotateY(360deg);
            filter: drop-shadow(0 8px 20px rgba(212, 175, 55, 0.6));
        }

        .pdf-title {
            text-align: center;
            font-size: 1.05rem;
            color: #c9d1e7;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .pdf-item:hover .pdf-title {
            color: #d4af37;
            transform: scale(1.1);
        }

        /* Footer */
        footer {
            background: linear-gradient(135deg, #01113a, #0a2a7d);
            color: white;
            padding: 3rem 2rem;
            text-align: center;
            margin-top: 4rem;
            position: relative;
            overflow: hidden;
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #d4af37, transparent);
            animation: topLine 3s linear infinite;
        }

        @keyframes topLine {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 2rem 0;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: white;
            font-size: 1.5rem;
            transition: all 0.3s ease;
        }

        .footer-links a:hover {
            color: #d4af37;
            transform: translateY(-5px) rotate(360deg);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .social-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.3rem;
            transition: all 0.4s ease;
            text-decoration: none;
        }

        .social-btn:hover {
            background: linear-gradient(135deg, #d4af37, #f5e29d);
            color: #01113a;
            transform: translateY(-10px) scale(1.2) rotate(360deg);
            box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .pdf-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 900px) {
            .pdf-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

       /* Responsive */
        @media (max-width: 1200px) {
            nav {
                flex-wrap: wrap;
                padding: 1rem;
            }

            .menu-toggle {
                display: block;
            }

            .nav-links {
                display: none;
                flex-direction: column;
                width: 100%;
                background: rgba(1, 17, 58, 0.98);
                padding: 1rem;
                border-radius: 10px;
                margin-top: 1rem;
                align-items: flex-start;   /* Aligner le contenu à gauche */
                text-align: left;  
            }

            .nav-links.active {
                display: flex;
            }

            

            /* Barre de recherche mobile transparente et professionnelle */
            .search-bar-container {
                background: transparent;
                backdrop-filter: blur(10px);
                padding: 0.8rem 1rem;
                flex-direction: flex;
                gap: 0.8rem;
            }

            .search-bar-wrapper {
                max-width: 100%;
            }

            .search-bar {
                background: rgba(255, 255, 255, 0.95);
                max-width: 95%;
            }

            .search-bar input {
                font-size: 0.9rem;
                padding: 0.6rem 0.9rem;
            }

            .search-bar button {
                padding: 0.6rem 0.9rem;
            }

            .search-results {
            width: 95%;
            }

            .btn-connexion {
                width: 10%;
                justify-content: center;
                padding: 0.7rem 1rem;
                border-radius: 25px;
            }

            .btn-connexion span {
                display: none;
            }

            h2 {
                font-size: 2rem;
            }

            .pdf-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
        }

        @media (max-width: 400px) {
            .pdf-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Animation delay pour PDF items */
        .pdf-item:nth-child(1) { animation-delay: 0.1s; }
        .pdf-item:nth-child(2) { animation-delay: 0.15s; }
        .pdf-item:nth-child(3) { animation-delay: 0.2s; }
        .pdf-item:nth-child(4) { animation-delay: 0.25s; }
        .pdf-item:nth-child(5) { animation-delay: 0.3s; }
        .pdf-item:nth-child(6) { animation-delay: 0.35s; }