:root {
            --gold-color: #d4af37;
            --gold-light: #f5e29d;
            --dark-blue: #0a0e1a;
            --primary-blue: #01113a;
            --accent-blue: #1a1f3a;
        }

        * {
            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;
            color: #c6e4ed;
            overflow-x: hidden;
        }

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            z-index: -1;
        }

        /* Particules */
        .particles {
            position: fixed;
            inset: 0;
            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 effet glassmorphism */
        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;
            transition: all 0.3s;
        }

        .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) scale(0.95);
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .dropdown:hover .dropdown-content {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .dropdown-content li {
            list-style: none;
        }

        .dropdown-content a {
            display: block;
            padding: 0.8rem 1.2rem;
            color: #01113a;
            transition: all 0.3s;
        }

        .dropdown-content a:hover {
            background: linear-gradient(90deg, #d4af37, #f5e29d);
            transform: translateX(10px);
        }

        /* Barre de recherche */
        .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: 1200;
        }

        .search-results li {
            padding: 0.55rem 0.9rem;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .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;
            min-height: calc(100vh - 150px);
        }

        .page-header {
            text-align: center;
            margin-bottom: 4rem;
            animation: fadeInUp 1s ease-out;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(50px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .page-header h1 {
            font-size: 3rem;
            background: linear-gradient(135deg, #d4af37, #f5e29d, #d4af37);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
            animation: shimmer 3s ease-in-out infinite;
        }

        @keyframes shimmer {
            0%, 100% { background-position: 0% center; }
            50% { background-position: 100% center; }
        }

        .page-header p {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.8);
        }

        /* Timeline des actualités */
        .timeline-container {
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
        }

        .timeline-section {
            margin-bottom: 5rem;
            animation: fadeInUp 1s ease-out;
            animation-fill-mode: both;
        }

        .timeline-date {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
            padding-left: 2rem;
        }

        .date-badge {
            background: linear-gradient(135deg, #d4af37, #f5e29d);
            color: #01113a;
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            font-weight: 700;
            font-size: 1.1rem;
            box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
            animation: pulse 2s ease-in-out infinite;
            white-space: nowrap;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .date-line {
            flex: 1;
            height: 2px;
            background: linear-gradient(90deg, rgba(212, 175, 55, 0.5), transparent);
        }

        /* Carrousel horizontal des actualités */
        .actus-carousel-wrapper {
            position: relative;
            padding: 2rem 0;
        }

        .actus-carousel {
            display: flex;
            gap: 2rem;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 1rem 2rem;
            scrollbar-width: thin;
            scrollbar-color: rgba(212, 175, 55, 0.5) rgba(255, 255, 255, 0.1);
        }

        .actus-carousel::-webkit-scrollbar {
            height: 8px;
        }

        .actus-carousel::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }

        .actus-carousel::-webkit-scrollbar-thumb {
            background: linear-gradient(90deg, #d4af37, #f5e29d);
            border-radius: 10px;
        }

        .actu-card {
            min-width: 350px;
            max-width: 350px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            position: relative;
            flex-shrink: 0;
        }

        .actu-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
            transition: left 0.6s;
            z-index: 1;
        }

        .actu-card:hover::before {
            left: 100%;
        }

        .actu-card:hover {
            transform: translateY(-10px) scale(1.05);
            box-shadow: 0 20px 60px rgba(212, 175, 55, 0.5);
        }

        .actu-image-container {
            width: 100%;
            height: 250px;
            overflow: hidden;
            position: relative;
        }

        .actu-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .actu-card:hover .actu-image {
            transform: scale(1.15);
        }

        .actu-type-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: linear-gradient(135deg, #e63946, #ff6b6b);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: bold;
            z-index: 2;
            animation: badgeBounce 2s ease-in-out infinite;
        }

        @keyframes badgeBounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        .actu-content {
            padding: 1.5rem;
            color: #01113a;
        }

        .actu-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 0.8rem;
            color: #01113a;
            line-height: 1.4;
        }

        .actu-description {
            font-size: 0.95rem;
            color: #555;
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .actu-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: #777;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }

        .actu-time {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .actu-link {
            color: #d4af37;
            text-decoration: none;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
        }

        .actu-link:hover {
            color: #01113a;
            transform: translateX(5px);
        }

        /* Navigation buttons pour carousel */
        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            padding: 1rem;
            cursor: pointer;
            font-size: 1.5rem;
            border-radius: 50%;
            z-index: 10;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            color: #01113a;
        }

        .carousel-nav:hover {
            background: linear-gradient(135deg, #d4af37, #f5e29d);
            transform: translateY(-50%) scale(1.2);
        }

        .carousel-nav.left {
            left: -20px;
        }

        .carousel-nav.right {
            right: -20px;
        }

        /* Footer */
        footer {
            background: linear-gradient(135deg, #01113a, #0a2a7d);
            color: white;
            padding: 3rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
            margin-top: 5rem;
        }

        .footer-content {
            position: relative;
            z-index: 1;
        }

        .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);
        }

        /* 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;
            }

            .page-header h1 {
                font-size: 2rem;
            }

            .actu-card {
                min-width: 300px;
                max-width: 300px;
            }

            .carousel-nav {
                display: none;
            }

            main {
                margin-top: 140px;
            }
        }

        @media (max-width: 480px) {
            .actu-card {
                min-width: 280px;
                max-width: 280px;
            }

            .date-badge {
                font-size: 0.9rem;
                padding: 0.6rem 1rem;
            }
        }