/* ==========================================================================
   STYLE L'HORLOGE DU PARADOXE TEMPOREL (VOYAGE DANS LE TEMPS)
   Observatoire T-100 // La Fabrique Numérique - 2026
   ========================================================================== */

:root {
    --bg-base: #0c0d14;
    --bg-card: rgba(18, 20, 32, 0.85);
    --border-color: rgba(212, 175, 55, 0.3);
    
    --primary-color: #d4af37;
    --glow-color: 0 0 15px rgba(212, 175, 55, 0.5);
    
    --text-main: #e2e8f0;
    --text-muted: #8b92a5;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-serif: 'Cinzel', serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* THÈMES DES 4 ÉPOQUES (BASCULE INSTANTANÉE SUR LE BODY) */
body.era-1889 {
    --bg-base: #140d07;
    --bg-card: rgba(30, 20, 12, 0.88);
    --primary-color: #cd7f32; /* Cuivre */
    --glow-color: 0 0 15px rgba(205, 127, 50, 0.5);
    --border-color: rgba(205, 127, 50, 0.4);
    filter: sepia(25%);
}

body.era-1962 {
    --bg-base: #0f1410;
    --bg-card: rgba(18, 26, 20, 0.88);
    --primary-color: #556b2f; /* Vert Kaki / Armée */
    --glow-color: 0 0 15px rgba(85, 107, 47, 0.5);
    --border-color: rgba(120, 140, 100, 0.4);
    filter: contrast(110%);
}

body.era-2026 {
    --bg-base: #0a1118;
    --bg-card: rgba(13, 24, 38, 0.88);
    --primary-color: #00e5ff; /* Cyan Moderne */
    --glow-color: 0 0 15px rgba(0, 229, 255, 0.5);
    --border-color: rgba(0, 229, 255, 0.3);
    filter: none;
}

body.era-2142 {
    --bg-base: #0d0614;
    --bg-card: rgba(26, 10, 42, 0.88);
    --primary-color: #d946ef; /* Magenta Futuriste */
    --glow-color: 0 0 20px rgba(217, 70, 239, 0.6);
    --border-color: rgba(217, 70, 239, 0.4);
    filter: saturate(125%);
}

/* RESET ET STRUCTURE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: var(--transition);
}

/* VORTEX TEMPOREL EN ARRIÈRE-PLAN */
.time-vortex-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: vortexPulse 8s infinite alternate ease-in-out;
}

@keyframes vortexPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 0.9; }
}

/* EN-TÊTE CHRONO */
.chrono-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: rgba(12, 13, 20, 0.92);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chrono-icon {
    font-size: 2rem;
    animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chrono-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: block;
}

.chrono-title .highlight {
    color: var(--primary-color);
}

.chrono-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

/* SÉLECTEUR D'ÉPOQUES (FEATURE VIRALE) */
.era-switcher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.era-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.era-buttons {
    display: flex;
    gap: 0.4rem;
}

.btn-era {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.35rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
}

.btn-era:hover {
    color: var(--primary-color);
}

.btn-era.active {
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    box-shadow: var(--glow-color);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-switch-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: var(--glow-color);
    transform: translateY(-2px);
}

/* BOUTONS STYLE CHRONO */
.btn-time {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-time:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-time.gold {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-time.gold:hover {
    background: var(--primary-color);
    color: #000;
}

.btn-time.danger {
    border-color: #ef4444;
    color: #ef4444;
}
.btn-time.danger:hover {
    background: #ef4444;
    color: #fff;
}

.btn-time.small {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
}

.btn-time-jump {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0.9rem 1.8rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    text-transform: uppercase;
}

.btn-time-jump:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: var(--glow-color);
    transform: translateY(-2px);
}

.btn-time-jump.primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: var(--glow-color);
}

.btn-time-jump.secondary {
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-time-jump.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-time-jump.danger {
    border-color: #ef4444;
    color: #ef4444;
}
.btn-time-jump.danger:hover {
    background: #ef4444;
    color: #fff;
}

/* BANDEAU PARADOXE */
.paradox-ticker {
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    padding: 0.4rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-text {
    display: inline-block;
    animation: marqueeTime 32s linear infinite;
}

@keyframes marqueeTime {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* HERO SECTION DE L'HORLOGE */
.hero-chrono {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    max-width: 1250px;
    margin: 3.5rem auto;
    padding: 0 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.entropy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.9rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.entropy-badge:hover {
    background: rgba(239, 68, 68, 0.2);
}

.dot-blink {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: blinkDot 1s infinite alternate;
}

@keyframes blinkDot {
    from { opacity: 1; }
    to { opacity: 0.3; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.glow-era-text {
    color: var(--primary-color);
    text-shadow: var(--glow-color);
    transition: var(--transition);
}

.hero-desc {
    font-size: 1.18rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-cta-group {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

/* WIDGET DU CADRAN DE L'HORLOGE ANALOGIQUE (SECRET #1) */
.chrono-widget-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.time-readout {
    color: var(--primary-color);
    font-weight: 700;
}

.clock-face-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.analog-clock {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    position: relative;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 30, 0.9) 100%);
    box-shadow: var(--glow-color);
}

.clock-center-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.hand {
    position: absolute;
    bottom: 50%; left: 50%;
    transform-origin: bottom center;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 2, 0.4, 1);
}

.hour-hand {
    width: 4px;
    height: 45px;
    background: var(--primary-color);
    margin-left: -2px;
}

.minute-hand {
    width: 3px;
    height: 65px;
    background: #ffffff;
    margin-left: -1.5px;
}

.clock-controls-row {
    display: flex;
    gap: 0.8rem;
}

.btn-clock-adjust {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
}
.btn-clock-adjust:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.secret-tachyon-msg {
    margin-top: 1.2rem;
    padding: 0.8rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

/* PENDULE DE FOUCAULT & SPHÈRE */
.relic-chronosphere {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.pendulum-viewport {
    width: 220px;
    height: 240px;
    margin: 0 auto 1.5rem auto;
    position: relative;
    cursor: pointer;
}

.pendulum-pivot {
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
}

.pendulum-rod {
    width: 3px;
    height: 200px;
    background: var(--primary-color);
    margin: 0 auto;
    transform-origin: top center;
    position: relative;
    animation: swingPendulum 2.4s infinite ease-in-out alternate;
}

.pendulum-bob {
    width: 36px;
    height: 36px;
    background: radial-gradient(circle, var(--primary-color) 0%, #000 80%);
    border-radius: 50%;
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--glow-color);
}

@keyframes swingPendulum {
    0% { transform: rotate(25deg); }
    100% { transform: rotate(-25deg); }
}

.chronosphere-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

/* VITRINE DES ÉPOQUES */
.eras-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1250px;
    margin: 4rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.era-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.2rem;
    border-radius: 6px;
    transition: var(--transition);
}

.era-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.card-era-badge {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.era-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.era-quote {
    margin-top: 1.2rem;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.teletype-code {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(85, 107, 47, 0.2);
    border: 1px dashed var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.8rem;
}

.teletype-code.hidden {
    display: none;
}

/* FOOTER */
.chrono-footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem;
    margin-top: 5rem;
    background: rgba(10, 10, 15, 0.95);
    position: relative;
    z-index: 2;
}

.footer-wrap {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.secret-chronos-link {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
}

/* ==========================================================================
   VUE 2 : ESCAPE GAME DU CONTINUUM (5 SALLES TEMPORELLES)
   ========================================================================== */

#escapeGameView {
    max-width: 1250px;
    margin: 2rem auto;
    padding: 0 1.5rem 5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.mission-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.2rem 2rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge-mission {
    background: var(--primary-color);
    color: #000;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 2px;
    margin-right: 0.8rem;
}

.hud-mission-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
}

.chrono-digits {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: var(--glow-color);
}

/* ONGLETS DES SALLES TEMPORELLES */
.time-rooms-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.time-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.2rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: var(--transition);
}

.time-tab:hover:not(.locked) {
    border-color: var(--primary-color);
}

.time-tab.active {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.time-tab.locked {
    opacity: 0.45;
    cursor: not-allowed;
    border-style: dashed;
}

.time-tab.completed {
    border-color: #10b981;
}

.time-era-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.time-tab.completed .time-era-tag {
    color: #10b981;
}

.time-title {
    font-weight: 700;
    font-size: 0.85rem;
}

.time-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* PANNEAUX DE SALLES */
.time-panel {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9);
}

.time-panel.active {
    display: block;
    animation: fadeInPanel 0.35s ease-out;
}

.panel-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: var(--glow-color);
    margin-bottom: 0.5rem;
}

.time-puzzle-zone {
    max-width: 800px;
    margin: 0 auto;
}

/* SALLE 1 : ROUAGES DE 1889 */
.gears-mechanism-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gear-slot {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    padding: 1.8rem 1rem;
    text-align: center;
    border-radius: 6px;
}

.gear-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.gear-visual {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease-out;
}

.gear-visual.spinning {
    animation: spinGear 2s linear infinite;
}

@keyframes spinGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gear-status {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ratio-display-box {
    background: #000;
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* SALLE 2 : TÉLÉGRAMME DE 1962 */
.telegram-paper {
    background: #ece7d5;
    color: #2b2b2b;
    border: 2px solid #5a5647;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    font-family: 'Courier New', Courier, monospace;
}

.telegram-stamp {
    display: inline-block;
    border: 2px solid #b91c1c;
    color: #b91c1c;
    padding: 0.3rem 0.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.telegram-body {
    font-size: 1.15rem;
    line-height: 1.8;
}

.telegram-clue {
    margin-top: 1.5rem;
    font-style: italic;
    color: #6b6655;
}

/* SALLE 3 : RÉACTEUR 121 GIGAWATTS */
.reactor-coils-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.coil-unit {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    padding: 1.5rem 0.8rem;
    text-align: center;
    border-radius: 6px;
}

.coil-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.coil-stat {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.gw-meter-container {
    background: #000;
    border: 1px solid var(--primary-color);
    padding: 1.8rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    text-align: center;
}

.gw-display {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.gw-bar-bg {
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.gw-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #00e5ff 100%);
    transition: width 0.3s ease-out;
}

/* SALLE 4 : FRISE CHRONOLOGIQUE DU FUTUR */
.timeline-instruction {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.timeline-blocks-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.timeline-block-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    padding: 1.2rem 1.5rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.block-idx {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-color);
}

.block-text {
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.btn-move {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 4px;
}

/* SALLE 5 : POINT ZÉRO */
.final-singularity-stage {
    text-align: center;
}

.chrononaut-dialogue {
    display: flex;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--primary-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 2.5rem;
}

.chrononaut-avatar {
    font-size: 3rem;
}

.chrononaut-text h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.destiny-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.destiny-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    text-align: left;
    transition: var(--transition);
}

.destiny-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--glow-color);
}

.destiny-icon {
    font-size: 2.5rem;
}

.destiny-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

/* VICTOIRE TEMPORELLE */
.chrono-victory-screen {
    margin-top: 2rem;
    animation: zoomIn 0.4s ease-out;
}

.chrono-certificate {
    background: #07070b;
    border: 3px double var(--primary-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: var(--glow-color);
}

.victory-seal {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.chrono-certificate h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.chrono-stats-box {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-item {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.cert-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* ACCORDÉON INDICE */
.hint-accordion {
    margin: 1.2rem 0;
}

.btn-hint {
    background: none;
    border: none;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.hint-text {
    margin-top: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.hint-text.hidden {
    display: none;
}

.feedback-msg {
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    min-height: 1.5rem;
}
.feedback-msg.success { color: #10b981; }
.feedback-msg.error { color: #ef4444; }

/* MODALE TACHYON */
.tachyon-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.tachyon-modal.hidden {
    display: none;
}

.tachyon-dialog {
    width: 90%;
    max-width: 650px;
    background: #0d0e17;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    box-shadow: var(--glow-color);
}

.tachyon-header {
    background: #171826;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary-color);
}

.close-tachyon-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.tachyon-body {
    padding: 2rem;
}

.tachyon-input-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tachyon-input-row input {
    flex: 1;
    background: #000;
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    color: #fff;
    font-family: var(--font-heading);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-chrono { grid-template-columns: 1fr; }
    .time-rooms-nav { grid-template-columns: repeat(2, 1fr); }
    .gears-mechanism-board { grid-template-columns: 1fr; }
    .reactor-coils-grid { grid-template-columns: repeat(2, 1fr); }
    .destiny-choices { grid-template-columns: 1fr; }
}
