:root {
            --bg-dark: #0f0f0f;
            --bg-panel: #1a1a1a;
            --text-primary: #ffffff;
            --text-secondary: #cccccc;
            --accent-fire: #ff6b35;
            --accent-flame: #ffa500;
            --accent-embers: #ff4500;
            --accent-ashes: #8b0000;
            --border-color: rgba(255, 107, 53, 0.2);
            --shadow-light: rgba(255, 107, 53, 0.3);
            --shadow-dark: rgba(139, 0, 0, 0.6);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body, html {
            height: 100%;
            overflow: hidden;
            background: var(--bg-dark);
            font-family: 'Roboto', sans-serif;
            color: var(--text-primary);
            line-height: 1.6;
        }

        /* --- CONTENEUR PRINCIPAL --- */
        .main-container {
            display: flex;
            height: 100vh;
            width: 100vw;
            position: relative;
        }

        /* --- ZONE VISUELLE (GAUCHE - 70%) --- */
        .art-visu {
            flex: 7;
            position: relative;
            background: linear-gradient(135deg, #1a0000 0%, #0f0f0f 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            padding: 20px;
        }

        /* TITRE PRINCIPAL DANS ART-VISU */
        .visu-header {
            position: absolute;
            top: 25px;
            left: 0;
            right: 0;
            text-align: center;
            z-index: 2;
            padding: 0 20px;
        }

        .titre {
            font-family: 'Oswald', sans-serif;
            font-size: 3rem;
            font-weight: 700;
            line-height: 1.1;
            color: var(--text-primary);
            margin: 0;
            text-transform: uppercase;
            background: linear-gradient(135deg, var(--accent-flame), var(--accent-fire), var(--accent-ashes));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
            letter-spacing: 1px;
        }

        .visu-subtitle {
            color: var(--accent-flame);
            font-size: 1rem;
            font-style: italic;
            margin-top: 8px;
            opacity: 0.9;
            text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
        }

        /* EFFET DE FEU EN FOND */
        .background-effect {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(139, 0, 0, 0.15) 0%, transparent 50%);
            z-index: 0;
        }

        /* CONTENEUR D'IMAGES AVEC CADRE */
        .image-container {
            position: relative;
            width: 70%;
            height: 55%;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 
                0 15px 30px rgba(139, 0, 0, 0.4),
                0 0 0 1px rgba(255, 107, 53, 0.3);
            background: rgba(15, 15, 15, 0.8);
            backdrop-filter: blur(5px);
            z-index: 1;
            transition: all 0.4s ease;
            border: 2px solid rgba(255, 107, 53, 0.1);
            margin-top: 20px; /* Espace pour le titre */
        }

        .image-container:hover {
            transform: translateY(-3px);
            box-shadow: 
                0 20px 40px rgba(255, 69, 0, 0.5),
                0 0 0 2px rgba(255, 107, 53, 0.4);
        }

        /* IMAGES SUPERPOSÉES AVEC ANIMATION */
        .layer-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            opacity: 0;
            transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1;
        }

        .layer-image.active {
            opacity: 1;
            animation: fireGlow 3s ease-in-out infinite alternate;
        }

        @keyframes fireGlow {
            0% { 
                filter: drop-shadow(0 5px 15px rgba(255, 107, 53, 0.3));
            }
            100% { 
                filter: drop-shadow(0 5px 25px rgba(255, 69, 0, 0.6));
            }
        }

        /* LABEL DE L'ANNÉE ACTUELLE */
        .year-indicator {
            position: absolute;
            top: 200px; /* Ajusté pour le titre */
            right: 925px;
            background: rgba(26, 0, 0, 0.85);
            border-left: 3px solid var(--accent-fire);
            padding: 12px 20px;
            border-radius: 6px;
            z-index: 2;
            backdrop-filter: blur(8px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 107, 53, 0.2);
        }

        .year-indicator .year {
            font-family: 'Oswald', sans-serif;
            font-size: 2.2rem;
            font-weight: 700;
            line-height: 1;
            color: var(--accent-fire);
            text-shadow: 0 0 15px rgba(255, 107, 53, 0.7);
        }

        .year-indicator .label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--accent-flame);
            margin-top: 4px;
        }

        /* TIMELINE AVEC ÉTAPES */
        .timeline-container {
            position: absolute;
            bottom: 25px;
            width: 75%;
            z-index: 2;
        }

        .timeline-steps {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            position: relative;
        }

        .timeline-steps::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(to right, 
                rgba(255, 107, 53, 0.3), 
                rgba(255, 165, 0, 0.3), 
                rgba(255, 69, 0, 0.3), 
                rgba(139, 0, 0, 0.3));
            transform: translateY(-50%);
            z-index: 0;
        }

        .step {
            position: relative;
            z-index: 1;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 6px;
            min-width: 70px;
        }

        .step.active .step-dot {
            background: var(--accent-fire);
            transform: scale(1.2);
            box-shadow: 0 0 12px var(--accent-fire);
        }

        .step.active .step-label {
            color: var(--accent-fire);
            font-weight: 600;
            text-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
        }

        .step-dot {
            width: 12px;
            height: 12px;
            background: rgba(255, 165, 0, 0.4);
            border-radius: 50%;
            margin: 0 auto 6px;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .step:hover .step-dot {
            background: var(--accent-flame);
            transform: scale(1.1);
        }

        .step-label {
            font-family: 'Oswald', sans-serif;
            font-size: 0.9rem;
            font-weight: bold;
            color: white;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .step-year {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 3px;
            font-weight: 300;
        }

        /* SLIDER PERSONNALISÉ - RÉDUIT */
        .slider-container {
            background: rgba(26, 0, 0, 0.7);
            border-radius: 20px;
            padding: 10px 20px;
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 107, 53, 0.2);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        }

        .custom-slider {
            -webkit-appearance: none;
            width: 100%;
            height: 4px;
            background: linear-gradient(to right, 
                var(--accent-flame), 
                var(--accent-fire), 
                var(--accent-embers), 
                var(--accent-ashes));
            border-radius: 2px;
            outline: none;
            margin-bottom: 8px;
        }

        .custom-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--accent-fire);
            cursor: pointer;
            border: 2px solid #fff;
            box-shadow: 0 0 10px var(--accent-fire), 0 0 20px rgba(255, 107, 53, 0.5);
            transition: all 0.2s ease;
        }

        .custom-slider::-webkit-slider-thumb:hover {
            transform: scale(1.15);
            box-shadow: 0 0 15px var(--accent-fire), 0 0 25px rgba(255, 107, 53, 0.7);
        }

        .timeline-note {
            text-align: center;
            color: var(--accent-flame);
            font-size: 0.75rem;
            font-style: italic;
            margin-top: 5px;
            opacity: 0.8;
        }

        /* --- ZONE NARRATIVE (DROITE - 30%) --- */
        .art-panel {
            flex: 3;
            background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--accent-fire) transparent;
            border-left: 1px solid rgba(255, 107, 53, 0.1);
        }

        .art-panel::-webkit-scrollbar {
            width: 6px;
        }

        .art-panel::-webkit-scrollbar-track {
            background: transparent;
        }

        .art-panel::-webkit-scrollbar-thumb {
            background: linear-gradient(to bottom, var(--accent-flame), var(--accent-fire));
            border-radius: 3px;
        }

        /* HEADER DU PANEL */
        .panel-header {
            margin-bottom: 30px;
        }

        .art-title {
            font-family: 'Oswald', sans-serif;
            font-size: 2.5rem;
            font-weight: 400;
            line-height: 1;
            color: var(--text-primary);
            margin-bottom: 8px;
            text-transform: uppercase;
            background: linear-gradient(135deg, var(--accent-flame), var(--accent-fire), var(--accent-ashes));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
        }

        .art-subtitle {
            color: var(--accent-flame);
            font-size: 1rem;
            font-style: italic;
            border-left: 2px solid var(--accent-fire);
            padding-left: 15px;
            margin-bottom: 25px;
            opacity: 0.9;
        }

        /* CONTENU DE L'HISTOIRE */
        .story-container {
            flex-grow: 1;
            position: relative;
            min-height: 250px;
        }

        .story-block {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            opacity: 0;
            transform: translateY(15px);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        .story-block.active {
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;
        }

        .story-header {
            margin-bottom: 20px;
        }

        .story-year {
            font-family: 'Oswald', sans-serif;
            font-size: 3.5rem;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 8px;
            text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
        }

        .story-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(255, 107, 53, 0.2);
        }

        .story-text {
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.6;
            padding: 15px;
            background: rgba(255, 107, 53, 0.05);
            border-radius: 6px;
            border-left: 3px solid currentColor;
            border-right: 1px solid rgba(255, 107, 53, 0.1);
        }

        /* BOUTON SWITCH AMÉLIORÉ - THÈME INCENDIE */
        .switch-wrapper-yes-no {
            margin-top: 30px;
            padding: 20px;
            background: rgba(26, 0, 0, 0.6);
            border-radius: 10px;
            text-align: center;
            border: 1px solid rgba(255, 107, 53, 0.2);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .switch-wrapper-yes-no p {
            font-family: 'Oswald', sans-serif;
            font-size: 1rem;
            margin-bottom: 15px;
            color: var(--accent-flame);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .switch-wrapper-yes-no .rocker {
            position: relative;
            display: inline-block;
            width: 240px;
            height: 50px;
            background: rgba(15, 15, 15, 0.8);
            border-radius: 25px;
            overflow: hidden;
            border: 1px solid rgba(255, 107, 53, 0.3);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .switch-wrapper-yes-no .rocker:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(255, 69, 0, 0.3);
            border-color: rgba(255, 107, 53, 0.5);
        }

        .switch-wrapper-yes-no input[type="checkbox"] {
            display: none;
        }

        .switch-left, .switch-right {
            position: absolute;
            top: 0;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Oswald', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .switch-left {
            left: 0;
            width: 120px;
            background: linear-gradient(135deg, var(--accent-fire), var(--accent-embers));
            color: white;
            border-radius: 25px 0 0 25px;
        }

        .switch-right {
            right: 0;
            width: 120px;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.7);
            border-radius: 0 25px 25px 0;
        }

        .switch-wrapper-yes-no input:checked + .switch-left {
            width: 120px;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.7);
        }

        .switch-wrapper-yes-no input:checked + .switch-left + .switch-right {
            width: 120px;
            background: linear-gradient(135deg, var(--accent-ashes), #660000);
            color: white;
        }

        .slider-handle {
            position: absolute;
            left: 8px;
            top: 8px;
            width: 34px;
            height: 34px;
            background: linear-gradient(135deg, var(--accent-flame), var(--accent-fire));
            border-radius: 50%;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 2;
        }

        .switch-wrapper-yes-no input:checked ~ .slider-handle {
            transform: translateX(190px);
        }

        /* ANIMATIONS */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulseFire {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .pulse {
            animation: pulseFire 2s infinite;
        }

        @keyframes flicker {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.8; }
        }

        .flicker {
            animation: flicker 3s infinite;
        }

        /* RESPONSIVE */
        @media (max-width: 1200px) {
            .main-container {
                flex-direction: column;
            }
            
            .art-visu, .art-panel {
                flex: none;
                height: 50vh;
                width: 100%;
            }
            
            .art-panel {
                padding: 20px;
            }
            
            .art-title, .titre {
                font-size: 2.2rem;
            }
            
            .year-indicator {
                top: 200px;
                right: 15px;
                padding: 10px 15px;
            }
            
            .timeline-container {
                bottom: 15px;
                width: 85%;
            }
            
            .image-container {
                margin-top: 70px;
                height: 60%;
            }
        }