        /* Variables CSS pour les couleurs des types */
        :root {
            --color-habilitation: #4CAF50;
            --color-habilitation-dark: #45a049;
            --color-studio: #FF6B6B;
            --color-studio-dark: #ff5252;
            --color-workshop: #FFA726;
            --color-workshop-dark: #FB8C00;
            --color-atelier: #42A5F5;
            --color-atelier-dark: #1E88E5;
            --color-recherche: #AB47BC;
            --color-recherche-dark: #8E24AA;
            --color-memoire: #26C6DA;
            --color-memoire-dark: #00ACC1;
            --color-diplome: #FFCA28;
            --color-diplome-dark: #FFB300;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 0;
        }

        /* Affiche en haut de page */
        .header-poster {
            width: 100%;
            margin: 0;
            padding: 0;
            background: #000;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .header-poster img {
            width: 100%;
            height: auto;
            display: block;
            max-width: 100%;
        }

        .timeline-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            padding: 40px 20px 0 20px;
        }

        .timeline-title {
            text-align: center;
            margin-bottom: 30px;
            color: white;
            font-size: 2.5rem;
            font-weight: 300;
            text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        }

		.timeline-subtitle {
		    text-align: center;
            margin-bottom: 10px;
            color: white;
            font-size: 1.5rem;
            font-weight: 300;
            text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
		}

        /* Ligne centrale de la timeline */
        .timeline-line {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: calc(100% - 120px);
            background: linear-gradient(to bottom, #fff, #e0e0e0);
            border-radius: 2px;
            box-shadow: 0 0 10px rgba(255,255,255,0.5);
        }

        .timeline {
            position: relative;
            padding: 20px 0;
        }

        .timeline-item {
            display: flex;
            margin-bottom: 60px;
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.6s ease;
            position: relative;
        }

        .timeline-item.visible {
            opacity: 1;
            transform: translateY(0);
        }
/* chevauchement */
        /* Compactage des cartes alternées dans une même année */
        .timeline-item.compact {
            margin-top: -0px;
            margin-bottom: 60px;
        }

        /* Point sur la ligne centrale */
        .timeline-point {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            z-index: 10;
            border: 4px solid white;
            box-shadow: 0 0 15px rgba(0,0,0,0.3);
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .timeline-point:hover {
            transform: translateX(-50%) scale(1.2);
        }

        .timeline-point.has-credits {
            cursor: pointer;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                box-shadow: 0 0 15px rgba(0,0,0,0.3);
            }
            50% {
                box-shadow: 0 0 25px rgba(255,255,255,0.8);
            }
        }

        .timeline-point.habilitation {
            background: var(--color-habilitation);
        }

        .timeline-point.studio {
            background: var(--color-studio);
        }

        .timeline-point.workshop {
            background: var(--color-workshop);
        }

        .timeline-point.atelier {
            background: var(--color-atelier);
        }

        .timeline-point.recherche {
            background: var(--color-recherche);
        }

        .timeline-point.memoire {
            background: var(--color-memoire);
        }

        .timeline-point.diplome {
            background: var(--color-diplome);
        }

        /* Popup de crédits */
        .credits-popup {
            position: fixed;
            top: 20%;
            transform: translateY(-10px);
            background: rgba(0, 0, 0, 0.95);
            color: white;
            padding: 20px 25px;
            border-radius: 12px;
            border: 2px solid white;
            box-shadow: 0 10px 40px rgba(0,0,0,0.5);
            z-index: 10000;
            min-width: 250px;
            max-width: 350px;
            max-height: 70vh;
            overflow-y: auto;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none;
        }

        .credits-popup.visible {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        /* Positionnement sur le côté opposé à la carte */
        .timeline-item.left .credits-popup {
            left: 55%;
        }

        .timeline-item.right .credits-popup {
            right: 55%;
        }

        .credits-popup-header {
            font-weight: bold;
            font-size: 1.1rem;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255,255,255,0.3);
        }

        .credits-popup-content {
            line-height: 1.8;
        }

        .credits-popup-content ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .credits-popup-content li {
            padding: 5px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .credits-popup-content li:last-child {
            border-bottom: none;
        }

        .credits-popup-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: transparent;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.2s ease;
        }

        .credits-popup-close:hover {
            background: rgba(255,255,255,0.1);
        }

        /* Overlay pour fermer au click extérieur */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.3);
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .popup-overlay.visible {
            opacity: 1;
            pointer-events: auto;
        }


        /* Cartes */
        .timeline-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            width: calc(50% - 40px);
            position: relative;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .timeline-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.25);
        }

        /* Positionnement des cartes - alternance systématique */
        .timeline-item.left .timeline-card {
            margin-right: auto;
        }

        .timeline-item.right .timeline-card {
            margin-left: auto;
        }

        /* Flèches pointant vers la ligne centrale */
        .timeline-card::before {
            content: '';
            position: absolute;
            top: 30px;
            width: 0;
            height: 0;
            border: 15px solid transparent;
        }

        .timeline-item.left .timeline-card::before {
            right: -30px;
            border-left-color: white;
        }

        .timeline-item.right .timeline-card::before {
            left: -30px;
            border-right-color: white;
        }

        /* Contenu des cartes */
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .card-year {
            font-size: 1.8rem;
            font-weight: bold;
            padding: 8px 16px;
            border-radius: 25px;
            color: white;
        }

        .habilitation .card-year {
            background: linear-gradient(45deg, var(--color-habilitation), var(--color-habilitation-dark));
        }

        .studio .card-year {
            background: linear-gradient(45deg, var(--color-studio), var(--color-studio-dark));
        }

        .workshop .card-year {
            background: linear-gradient(45deg, var(--color-workshop), var(--color-workshop-dark));
        }

        .atelier .card-year {
            background: linear-gradient(45deg, var(--color-atelier), var(--color-atelier-dark));
        }

        .recherche .card-year {
            background: linear-gradient(45deg, var(--color-recherche), var(--color-recherche-dark));
        }

        .memoire .card-year {
            background: linear-gradient(45deg, var(--color-memoire), var(--color-memoire-dark));
        }

        .diplome .card-year {
            background: linear-gradient(45deg, var(--color-diplome), var(--color-diplome-dark));
        }

        /* Badge année en dehors de la carte */
        .year-badge {
            position: absolute;
            top: 0;
            font-size: 2.5rem;
            font-weight: bold;
            padding: 12px 24px;
            border-radius: 30px;
            color: white;
            z-index: 5;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            display: none; /* Caché par défaut, géré par updateYearDisplay() */
        }

        /* Positionnement sur le côté opposé, juste à côté du point central */
        .timeline-item.left .year-badge {
            right: 50%;
            transform: translateX(calc(100% + 15px)) translateY(-50%);
            top: 30px;  /* Position du point timeline */
        }

        .timeline-item.right .year-badge {
            left: 50%;
            transform: translateX(calc(-100% - 15px)) translateY(-50%);
            top: 30px;  /* Position du point timeline */
        }

        /* Couleurs par type (appliquées dynamiquement par JS) */
        .year-badge.habilitation {
            background: linear-gradient(45deg, var(--color-habilitation), var(--color-habilitation-dark));
        }

        .year-badge.studio {
            background: linear-gradient(45deg, var(--color-studio), var(--color-studio-dark));
        }

        .year-badge.workshop {
            background: linear-gradient(45deg, var(--color-workshop), var(--color-workshop-dark));
        }

        .year-badge.atelier {
            background: linear-gradient(45deg, var(--color-atelier), var(--color-atelier-dark));
        }

        .year-badge.recherche {
            background: linear-gradient(45deg, var(--color-recherche), var(--color-recherche-dark));
        }

        .year-badge.memoire {
            background: linear-gradient(45deg, var(--color-memoire), var(--color-memoire-dark));
        }

        .year-badge.diplome {
            background: linear-gradient(45deg, var(--color-diplome), var(--color-diplome-dark));
        }

        .card-type {
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .habilitation .card-type {
            background: color-mix(in srgb, var(--color-habilitation) 10%, transparent);
            color: var(--color-habilitation);
        }

        .studio .card-type {
            background: color-mix(in srgb, var(--color-studio) 10%, transparent);
            color: var(--color-studio);
        }

        .workshop .card-type {
            background: color-mix(in srgb, var(--color-workshop) 10%, transparent);
            color: var(--color-workshop);
        }

        .atelier .card-type {
            background: color-mix(in srgb, var(--color-atelier) 10%, transparent);
            color: var(--color-atelier);
        }

        .recherche .card-type {
            background: color-mix(in srgb, var(--color-recherche) 10%, transparent);
            color: var(--color-recherche);
        }

        .memoire .card-type {
            background: color-mix(in srgb, var(--color-memoire) 10%, transparent);
            color: var(--color-memoire);
        }

        .diplome .card-type {
            background: color-mix(in srgb, var(--color-diplome) 10%, transparent);
            color: var(--color-diplome);
        }

        .card-title {
            font-size: 1.4rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
            line-height: 1.3;
        }

        /* Point rouge indicateur pour présentation */
        .presentation-arrow {
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 20px;
            background: radial-gradient(circle, #ff0000 0%, #cc0000 100%);
            border-radius: 50%;
            z-index: 20;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,0,0,0.5);
            animation: bounce 5s infinite;
            pointer-events: none;
        }

        @keyframes bounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(-10px); }
        }

        .card-summary {
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .card-media {
            margin-bottom: 15px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            position: relative;
        }

        .card-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: opacity 0.3s ease;
        }

        /* Images en chargement avec placeholder */
        .card-media img:not([src]),
        .card-media img[data-src] {
            background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
            min-height: 300px;
        }

        .card-media img.loaded {
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .card-media video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
            position: relative;
            z-index: 1;
        }

        /* Vidéos en chargement */
        .card-media video.lazy-video {
            min-height: 300px;
        }

        .card-media video.loaded {
            animation: fadeIn 0.3s ease;
        }

        .card-media audio {
            width: 100%;
            height: 40px;
        }

        .card-caption {
            font-size: 0.9rem;
            color: #888;
            font-style: italic;
            margin-bottom: 15px;
        }

        .card-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .card-link {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            text-decoration: none;
            border-radius: 25px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .card-link:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .card-link-icon {
            width: 20px;
            height: 20px;
            margin-right: 10px;
            background: rgba(255,255,255,0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        /* Vidéos YouTube responsive */
        .video-wrapper {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%;
            border-radius: 10px;
            overflow: hidden;
        }

        .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 10px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .timeline-line {
                left: 30px;
                transform: none;
            }

            .timeline-point {
                left: 30px;
                transform: translateX(-50%);
            }

            .timeline-card {
                width: calc(100% - 80px) !important;
                margin-left: 60px !important;
                margin-right: 0 !important;
            }

            .timeline-card::before {
                left: -30px !important;
                right: auto !important;
                border-right-color: white !important;
                border-left-color: transparent !important;
            }

            .card-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            /* Désactiver le compactage en mode mobile */
            .timeline-item.compact {
                margin-top: 0 !important;
                margin-bottom: 60px;
            }

            /* Espacement normal entre tous les items en mobile */
            .timeline-item {
                margin-bottom: 60px;
            }
        }

        /* Boutons de filtre */
        .filter-buttons {
            text-align: center;
            margin-bottom: 40px;
        }

        .filter-btn {
            padding: 10px 20px;
            margin: 0 10px;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            background: rgba(255,255,255,0.2);
            color: white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .filter-btn.active,
        .filter-btn:hover {
            background: white;
            color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        /* Messages de statut */
        .status-message {
            text-align: center;
            color: white;
            margin: 30px auto;
            padding: 20px;
            border-radius: 10px;
            max-width: 600px;
        }

        .status-success {
            background: rgba(76, 175, 80, 0.3);
            border-left: 4px solid #4CAF50;
        }

        .status-warning {
            background: rgba(255, 193, 7, 0.3);
            border-left: 4px solid #FFC107;
        }

        /* Ligne de séparation des années */
        .year-separator {
            position: relative;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8) 45%, rgba(255,255,255,0.8) 55%, transparent);
            margin: 40px 0;
            z-index: 5;
        }

        .year-separator::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 12px;
            height: 12px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 0 15px rgba(255,255,255,0.8);
            border: 2px solid rgba(102, 126, 234, 0.6);
        }

        @media (max-width: 768px) {
            .year-separator::before {
                left: 30px;
                transform: translate(-50%, -50%);
            }
        }

        /* ===============================
           FOOTER
           =============================== */
        footer {
            margin-top: 80px;
            padding: 40px 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-align: center;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-logos {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 40px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .footer-logos img {
            height: 120px;
            width: auto;
            object-fit: contain;
            filter: brightness(0) invert(1);
            opacity: 0.9;
            transition: all 0.3s ease;
        }

        .footer-logos img:hover {
            transform: translateY(-5px);
            opacity: 1;
        }

        .footer-website {
            margin: 30px auto;
            padding: 20px 30px;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.4);
            border-radius: 50px;
            backdrop-filter: blur(10px);
            display: inline-block;
            transition: all 0.3s ease;
        }

        .footer-website:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.6);
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .footer-website p {
            margin: 0 0 10px 0;
            font-size: 0.9em;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.9);
        }

        .footer-website a {
            color: white;
            text-decoration: none;
            font-size: 1.3em;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
        }

        .footer-website a:hover {
            color: #FFD700;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        .footer-website a::before {
            content: "🌐";
            font-size: 1.2em;
        }

        .footer-section {
            margin: 25px 0;
            padding: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            backdrop-filter: blur(10px);
        }

        .footer-section h3 {
            margin-bottom: 15px;
            font-size: 1.2em;
            font-weight: 600;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .footer-section p {
            line-height: 1.8;
            margin: 8px 0;
            color: rgba(255, 255, 255, 0.9);
        }

        .footer-credits {
            font-size: 0.9em;
        }

        .footer-copyright {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.3);
            font-size: 0.85em;
            color: rgba(255, 255, 255, 0.8);
        }

        @media (max-width: 768px) {
            footer {
                margin-top: 40px;
                padding: 30px 15px;
            }

            .footer-logos {
                gap: 20px;
            }

            .footer-logos img {
                height: 90px;
            }

            .footer-website {
                margin: 20px auto;
                padding: 15px 20px;
            }

            .footer-website a {
                font-size: 1em;
                flex-direction: column;
                gap: 5px;
                text-align: center;
            }

            .footer-section {
                padding: 15px;
            }
        }

        /* ===============================
           BOUTON D'AIDE ET MODAL
           =============================== */

        /* Bouton d'aide en haut à droite */
        .help-icon {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #667eea;
            color: white;
            border: 3px solid #667eea;
            font-size: 1.8rem;
            font-weight: bold;
            cursor: pointer;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .help-icon:hover {
              background: rgba(255, 255, 255, 0.9);
              color: #667eea;

            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        /* Modal d'aide */
        .help-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10001;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .help-modal.visible {
            display: flex;
            opacity: 1;
        }

        .help-modal-content {
            background: white;
            border-radius: 20px;
            padding: 40px;
            max-width: 700px;
            max-height: 85vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .help-modal-content h2 {
            color: #667eea;
            font-size: 2rem;
            margin-bottom: 25px;
            text-align: center;
        }

        .help-modal-content h3 {
            color: #764ba2;
            font-size: 1.3rem;
            margin-top: 25px;
            margin-bottom: 15px;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 8px;
        }

        .help-modal-content ul {
            margin: 15px 0;
            padding-left: 20px;
        }

        .help-modal-content li {
            margin: 10px 0;
            line-height: 1.6;
            color: #555;
        }

        .help-modal-content strong {
            color: #333;
        }

        .help-modal-content p {
            margin: 10px 0;
            line-height: 1.6;
            color: #555;
        }

        .help-modal-content a {
            color: #667eea;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .help-modal-content a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

        .help-modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: transparent;
            border: none;
            color: #999;
            font-size: 2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            line-height: 1;
        }

        .help-modal-close:hover {
            background: #f0f0f0;
            color: #667eea;
            transform: rotate(90deg);
        }

        /* Responsive pour la modal d'aide */
        @media (max-width: 768px) {
            .help-icon {
                width: 45px;
                height: 45px;
                font-size: 1.5rem;
                top: 15px;
                right: 15px;
            }

            .help-modal-content {
                margin: 20px;
                padding: 30px 20px;
                max-width: calc(100% - 40px);
                max-height: 90vh;
            }

            .help-modal-content h2 {
                font-size: 1.5rem;
            }

            .help-modal-content h3 {
                font-size: 1.1rem;
            }
        }
