
        @keyframes fade-in {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes slide-in-left {
            from { opacity: 0; transform: translateX(-100px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        @keyframes slide-in-right {
            from { opacity: 0; transform: translateX(100px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        @keyframes scale-in {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }
        
        @keyframes flip-in {
            from { opacity: 0; transform: rotateY(-90deg); }
            to { opacity: 1; transform: rotateY(0); }
        }
        
        /* Animations pour les transitions */
        .message-enter {
            animation: scale-in 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        .message-exit {
            animation: fade-out 0.4s ease-out forwards;
        }
        
        @keyframes fade-out {
            from { opacity: 1; transform: scale(1); }
            to { opacity: 0; transform: scale(0.95); }
        }
        
        /* Bouton cache - visible uniquement sur sélection thèmes */
        .theme-selection-only {
            display: block;
        }
        
        /* Caché pendant le débat */
        .debate-active .theme-selection-only {
            display: none;
        }
        
        /* Caché pendant l'intro */
        .intro-active .sticky-footer,
        .intro-active #cache-clear-btn,
        .intro-active #scroll-indicator {
            display: none !important;
        }
        
        /* Caché pendant la préparation */
        .preparation-active .sticky-footer,
        .preparation-active #cache-clear-btn,
        .preparation-active #scroll-indicator {
            display: none !important;
        }
        
        .bg-radial-amour { background: radial-gradient(ellipse at center, #1a0612 0%, #000000 70%); }
        .bg-radial-argent { background: radial-gradient(ellipse at center, #1a1200 0%, #000000 70%); }
        .bg-radial-art { background: radial-gradient(ellipse at center, #1a0a1a 0%, #000000 70%); }
        .bg-radial-pouvoir { background: radial-gradient(ellipse at center, #0a0a2e 0%, #000000 70%); }
        .bg-radial-futur { background: radial-gradient(ellipse at center, #4c1d95 0%, #000000 70%); }
        .bg-radial-verite { background: radial-gradient(ellipse at center, #064e3b 0%, #000000 70%); }
        .bg-radial-guerre { background: radial-gradient(ellipse at center, #7f1d1d 0%, #000000 70%); }

        /* Zone d'affichage successif */
        .successive-display {
            min-height: calc(100vh - 120px);
            max-height: calc(100vh - 120px);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            padding: 1rem;
            overflow-y: auto;
        }
        
        @media (max-width: 768px) {
            .successive-display {
                min-height: calc(100vh - 100px);
                max-height: calc(100vh - 100px);
                padding: 0.5rem;
            }
        }

        /* Carte message successive */
        .message-card {
            background: rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(30px);
            border: none;
            border-radius: 2rem;
            padding: 2rem 1.5rem;
            max-width: 90vw;
            width: 100%;
            text-align: center;
            position: relative;
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            margin: auto;
            max-height: calc(100vh - 200px);
            overflow-y: auto;
        }
        
        .message-card.show {
            opacity: 1;
            transform: translateY(0);
        }
        
        .message-card.chatgpt {
            animation: slide-in-left 0.8s ease-out forwards;
        }
        
        .message-card.grok {
            animation: slide-in-right 0.8s ease-out forwards;
        }
        
        @media (max-width: 768px) {
            .message-card {
                padding: 1.5rem 1rem;
                border-radius: 1.5rem;
                max-width: 95vw;
            }
        }
        
        @media (max-width: 480px) {
            .message-card {
                padding: 1rem 0.75rem;
                border-radius: 1rem;
                max-width: 98vw;
                max-height: calc(100vh - 160px);
            }
        }
        
        /* Footer sticky responsive */
        .sticky-footer {
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }
        
        @media (max-width: 768px) {
            .sticky-footer {
                padding: 0.5rem 1rem;
            }
        }
        
        /* Indicateur de scroll */
        .scroll-indicator {
            position: absolute;
            bottom: 120px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 1rem;
            padding: 0.5rem 1rem;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
            z-index: 40;
            display: none;
            animation: fade-in 0.3s ease;
        }
        
        @media (max-width: 768px) {
            .scroll-indicator {
                bottom: 100px;
                font-size: 0.7rem;
                padding: 0.4rem 0.8rem;
            }
        }

        /* Nom du personnage */
        .character-name {
            font-size: 2rem;
            font-weight: 100;
            letter-spacing: 0.3em;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
        }
        
        @media (max-width: 768px) {
            .character-name {
                font-size: 1.5rem;
                margin-bottom: 1rem;
            }
        }

        /* Message principal */
        .main-message {
            font-size: 1.8rem;
            line-height: 1.6;
            font-weight: 200;
            margin-bottom: 1rem;
        }
        
        @media (max-width: 768px) {
            .main-message {
                font-size: 1.3rem;
                line-height: 1.5;
            }
        }


        /* Effet machine à écrire centré */
        .typewriter-center {
            white-space: pre-wrap;
            overflow: hidden;
            position: relative;
        }
        
        .typewriter-cursor {
            display: inline-block;
            width: 12px;
            height: 18px;
            margin-left: 3px;
            vertical-align: baseline;
            position: relative;
            top: 1px;
        }

        /* Placeholder d'attente */
        .waiting-placeholder {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.3);
            font-style: italic;
            font-weight: 200;
        }

        /* Sélection des thèmes */
        .theme-selection {
            text-align: center;
        }
        
        .selection-title {
            font-size: clamp(0.9rem, 3vw, 1.3rem);
            line-height: 1.3;
            font-weight: 200;
            margin-bottom: clamp(1rem, 4vw, 1.5rem);
            color: white;
            padding: 0 1rem;
            text-align: center;
        }
        
        @media (max-width: 480px) {
            .selection-title {
                font-size: 0.85rem;
                line-height: 1.2;
            }
        }
        
        .theme-options {
            display: flex;
            flex-direction: column;
            gap: clamp(0.6rem, 2vw, 0.8rem);
            align-items: center;
        }
        
        .theme-option {
            font-size: clamp(1rem, 2.5vw, 1.2rem);
            font-weight: 200;
            color: rgba(255, 255, 255, 0.8);
            cursor: pointer;
            padding: clamp(0.6rem, 1.5vw, 0.7rem) clamp(1.2rem, 3vw, 1.5rem);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 1.5rem;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            min-width: clamp(140px, 35vw, 180px);
        }
        
        @media (max-width: 768px) {
            .theme-option {
                font-size: 1rem;
                padding: 0.5rem 1.2rem;
                min-width: 130px;
            }
        }
        
        .theme-option:hover {
            color: white;
            border-color: rgba(255, 255, 255, 0.5);
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
        
        /* Style spécial pour le thème Guerre - Design rouge pour ressortir */
        .guerre-theme {
            color: #ff4444;
            border-color: rgba(255, 68, 68, 0.4);
            font-weight: 500;
            position: relative;
            background: rgba(255, 68, 68, 0.08);
        }
        
        .guerre-theme:hover {
            color: #FFFFFF;
            border-color: rgba(255, 68, 68, 0.7);
            background: rgba(255, 68, 68, 0.2);
            box-shadow: 0 10px 20px rgba(255, 68, 68, 0.3);
        }
        
        /* Style spécial pour le thème Argent - Design doré */
        .argent-theme {
            color: #FFD700;
            border-color: rgba(255, 215, 0, 0.4);
            font-weight: 500;
            position: relative;
            background: rgba(255, 215, 0, 0.08);
        }
        
        .argent-theme:hover {
            color: #FFFFFF;
            border-color: rgba(255, 215, 0, 0.7);
            background: rgba(255, 215, 0, 0.2);
            box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
        }
        
        /* Style spécial pour le thème Art - Design vert */
        .art-theme {
            color: #4CAF50;
            border-color: rgba(76, 175, 80, 0.4);
            font-weight: 500;
            position: relative;
            background: rgba(76, 175, 80, 0.08);
        }
        
        .art-theme:hover {
            color: #FFFFFF;
            border-color: rgba(76, 175, 80, 0.7);
            background: rgba(76, 175, 80, 0.2);
            box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
        }

        /* Curseur d'attente */
        .waiting-cursor {
            display: inline-block;
            width: clamp(12px, 3vw, 16px);
            height: clamp(12px, 3vw, 16px);
            background-color: #9c9b9bff;
            margin-left: clamp(4px, 2vw, 8px);
            animation: cursor-blink 1s infinite;
            vertical-align: middle;
            border-radius: 2px;
        }
        
        @media (max-width: 480px) {
            .waiting-cursor {
                width: 10px;
                height: 10px;
                margin-left: 6px;
            }
        }
        
        @keyframes cursor-blink {
            0%, 49% { opacity: 1; }
            50%, 100% { opacity: 0; }
        }
        
        @keyframes pulse-subtle {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 0.8; }
        }

        /* Contrôles modernes */
        .modern-controls {
            background: rgba(0, 0, 0, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.04);
        }

        .control-modern {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.3s ease;
            color: rgba(255, 255, 255, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .control-modern:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.2);
            color: white;
            transform: translateY(-1px);
        }
        
        .control-modern.active {
            background: rgba(255, 107, 157, 0.1);
            border-color: rgba(255, 107, 157, 0.3);
            color: #00FF88;
        }

        /* Icônes modernes */
        .icon-play {
            width: 0;
            height: 0;
            border-left: 8px solid currentColor;
            border-top: 6px solid transparent;
            border-bottom: 6px solid transparent;
            margin-left: 2px;
        }
        
        .icon-hamburger {
            width: 16px;
            height: 12px;
            position: relative;
        }
        
        .icon-hamburger::before,
        .icon-hamburger::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 2px;
            background: currentColor;
        }
        
        .icon-hamburger::before { top: 0; }
        .icon-hamburger::after { bottom: 0; }
        
        .icon-hamburger span {
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 2px;
            background: currentColor;
            transform: translateY(-50%);
        }
        
        .icon-reset {
            width: 16px;
            height: 16px;
            border: 2px solid currentColor;
            border-radius: 50%;
            position: relative;
        }
        
        .icon-reset::before {
            content: '';
            position: absolute;
            top: -2px;
            right: -1px;
            width: 0;
            height: 0;
            border-left: 4px solid currentColor;
            border-top: 3px solid transparent;
            border-bottom: 3px solid transparent;
        }
        
        .icon-archive {
            width: 14px;
            height: 16px;
            border: 2px solid currentColor;
            border-top: none;
            position: relative;
            border-radius: 0 0 2px 2px;
        }
        
        .icon-archive::before {
            content: '';
            position: absolute;
            top: -4px;
            left: -2px;
            right: -2px;
            height: 4px;
            background: currentColor;
            border-radius: 2px 2px 0 0;
        }
        
        .icon-archive::after {
            content: '';
            position: absolute;
            top: 4px;
            left: 2px;
            right: 2px;
            height: 2px;
            background: currentColor;
        }

        /* Animation de chargement moderne */
        .loading-modern::after {
            content: '';
            animation: loading-modern 1.8s ease-in-out infinite;
        }
        
        @keyframes loading-modern {
            0%, 20% { content: '∘'; }
            40% { content: '∙'; }
            60% { content: '●'; }
            80%, 100% { content: '∘'; }
        }

        /* Animation des points de chargement */
        .loading-dots::after {
            content: '';
            animation: loading-dots 1.5s ease-in-out infinite;
        }
        
        @keyframes loading-dots {
            0% { content: ''; }
            25% { content: '.'; }
            50% { content: '..'; }
            75% { content: '...'; }
            100% { content: ''; }
        }

        /* Animation pour l'indicateur "prêt" */
        @keyframes pulse-ready {
            0%, 100% { 
                transform: scale(1); 
                box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
            }
            50% { 
                transform: scale(1.02); 
                box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
            }
        }

        /* Modale historique */
        .history-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }
        
        .history-modal.show {
            display: flex;
        }
        
        .history-content {
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(30px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 1rem;
            padding: 2rem;
            max-width: 90vw;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            width: 100%;
            min-width: 320px;
        }
        
        @media (max-width: 768px) {
            .history-content {
                max-width: 95vw;
                max-height: 85vh;
                padding: 1rem;
                border-radius: 0.5rem;
                margin: 1rem;
            }
            
            .history-content h2 {
                font-size: 1.1rem;
                margin-bottom: 1rem;
            }
        }
        
        .history-item {
            margin-bottom: 1rem;
            padding: 1rem;
            border-radius: 0.5rem;
            background: rgba(255, 255, 255, 0.02);
            border-left: 3px solid;
        }
        
        .history-item.chatgpt {
            border-left-color: #00FF88;
        }
        
        .history-item.grok {
            border-left-color: #00f7ff;
        }
        
        .history-item.human {
            border-left-color: #A855F7;
            background: rgba(168, 85, 247, 0.1);
        }
        
        .close-modal {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .close-modal:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        /* Styles pour les cartes messages cliquables pour intervention */
        .clickable-for-intervention {
            transition: all 0.3s ease;
            position: relative;
        }
        
        .clickable-for-intervention:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
        }
        
        /* Indicateur de clic pour les cartes messages */
        .clickable-for-intervention:after {
            content: '💬 Cliquez pour donner votre avis';
            position: absolute;
            top: -2.5rem;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
            background: rgba(0, 0, 0, 0.8);
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            opacity: 0;
            transition: all 0.3s ease;
            pointer-events: none;
            backdrop-filter: blur(10px);
            white-space: nowrap;
            z-index: 10;
        }
        
        .clickable-for-intervention:hover:after {
            opacity: 1;
            transform: translateX(-50%) translateY(-5px);
        }
        
        /* Effet levée de rideau théâtral - VERSION 3 */
        .theater-stage {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000000;
            z-index: 9999;
        }
        
        .theater-title {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: clamp(2rem, 6vw, 6rem);
            font-weight: 100;
            letter-spacing: 0.3em;
            text-align: center;
            white-space: nowrap;
            opacity: 1;
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
            animation: title-glow 2s ease-in-out infinite alternate;
        }
        
        @keyframes title-glow {
            0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
            100% { text-shadow: 0 0 40px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 255, 255, 0.4); }
        }
        
        .theater-curtain {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            transition: opacity 0.5s ease;
        }
        
        .curtain-panel {
            flex: 1;
            background: linear-gradient(45deg, #8B0000 0%, #A00000 50%, #8B0000 100%);
            position: relative;
            transition: transform 1.5s ease-out;
            box-shadow: inset -5px 0 15px rgba(0,0,0,0.3);
        }
        
        .curtain-panel:last-child {
            box-shadow: inset 5px 0 15px rgba(0,0,0,0.3);
        }
        
        .curtain-panel::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 20px;
            background: linear-gradient(90deg, transparent, rgba(0,0,0,0.3), transparent);
            animation: curtain-fold 3s ease-in-out infinite;
        }
        
        .curtain-panel:first-child::before {
            right: 0;
        }
        
        .curtain-panel:last-child::before {
            left: 0;
        }
        
        /* Animation d'ouverture */
        .curtain-opened .curtain-panel:first-child {
            transform: translateX(-100%);
        }
        
        .curtain-opened .curtain-panel:last-child {
            transform: translateX(100%);
        }
        
        /* Masquer les rideaux après ouverture */
        .hide-curtain .theater-curtain {
            opacity: 0;
            pointer-events: none;
        }
        
        @keyframes curtain-fold {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.7; }
        }
        
        /* Masquer le contenu pendant la levée de rideau */
        body.curtain-active .min-h-screen {
            opacity: 0;
            transition: opacity 0.5s ease;
        }
        
        body.curtain-opened .min-h-screen {
            opacity: 1;
            transition: opacity 1s ease 2s;
        }