/* ==========================================================================
   STYLE DARK ACADEMIA & ALCHIMIE - LE CABINET DES CURIOSITÉS OUBLIÉES
   Escape Game Numérique - Manoir Blackwood 1887
   ========================================================================== */

:root {
    --bg-wood: #0f0a07;
    --bg-parchment: #1a120b;
    --bg-card: rgba(26, 18, 11, 0.85);
    
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --gold-glow: 0 0 15px rgba(212, 175, 55, 0.5);
    
    --ruby: #8b0000;
    --ruby-glow: 0 0 15px rgba(139, 0, 0, 0.6);
    
    --emerald: #104930;
    --emerald-glow: 0 0 15px rgba(16, 73, 48, 0.6);
    
    --text-parchment: #e6d7c3;
    --text-muted: #9c8a75;
    
    --font-decorative: 'Cinzel Decorative', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'IM Fell English', Georgia, serif;
    --font-ancient: 'MedievalSharp', cursive;
    
    --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    background-color: var(--bg-wood);
    color: var(--text-parchment);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 70%),
        radial-gradient(circle at 10% 80%, rgba(139, 0, 0, 0.12) 0%, transparent 60%);
}

/* AMBIANCE DE BOUGIE VACILLANTE */
.candle-ambient {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 998;
    background: radial-gradient(circle at 50% 30%, transparent 40%, rgba(5, 3, 2, 0.85) 100%);
    animation: flickerLight 6s infinite alternate ease-in-out;
}

@keyframes flickerLight {
    0%, 100% { opacity: 0.95; }
    25% { opacity: 0.88; }
    50% { opacity: 0.98; }
    75% { opacity: 0.92; }
}

/* FILTRE ULTRAVIOLET / LUMIÈRE NOIRE (EASTER EGG UV) */
.uv-filter {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 999;
    background: radial-gradient(circle at center, rgba(88, 19, 137, 0.45) 0%, rgba(26, 3, 44, 0.85) 100%);
    mix-blend-mode: color-burn;
    transition: var(--transition);
}

.uv-filter.hidden {
    display: none;
}

/* EN-TÊTE DU MANOIR */
.manor-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: rgba(15, 10, 7, 0.92);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-decorative);
    font-size: 1.2rem;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.seal-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px var(--gold));
}

.brand-title .sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

/* ASTROLABE STATUS (EASTER EGG #1) */
.relic-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--gold);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.relic-status:hover {
    background: rgba(212, 175, 55, 0.2);
    box-shadow: var(--gold-glow);
}

.astrolabe-icon {
    font-size: 1.1rem;
    animation: spinSlow 20s linear infinite;
}

.status-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.nav-tools {
    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(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    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(--gold);
    color: var(--bg-wood);
    box-shadow: var(--gold-glow);
    transform: translateY(-2px);
}

/* BOUTONS STYLE ANCIEN */
.btn-tool {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--text-parchment);
    padding: 0.45rem 0.9rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-tool:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.15);
}

.btn-tool.active-uv {
    background: #6b149b;
    border-color: #d15eff;
    color: #fff;
    box-shadow: 0 0 15px #d15eff;
}

.btn-curio {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.8rem 1.6rem;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    background: rgba(15, 10, 7, 0.9);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-radius: 3px;
    text-transform: uppercase;
}

.btn-curio:hover {
    background: var(--gold);
    color: var(--bg-wood);
    box-shadow: var(--gold-glow);
    transform: translateY(-2px);
}

.btn-curio.primary {
    background: linear-gradient(135deg, #a47c1b 0%, #d4af37 100%);
    color: #0b0704;
    border-color: var(--gold-light);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}
.btn-curio.primary:hover {
    background: #eed57c;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.8);
}

.btn-curio.gold-btn {
    background: linear-gradient(135deg, #d4af37 0%, #ffdf78 100%);
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.btn-curio.danger {
    border-color: var(--ruby);
    color: #ff9999;
}
.btn-curio.danger:hover {
    background: var(--ruby);
    color: #fff;
}

.btn-curio.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

/* BANNIÈRE LATINE */
.banner-latin {
    background: rgba(139, 0, 0, 0.35);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    padding: 0.4rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-latin {
    display: inline-block;
    animation: marqueeLatin 35s linear infinite;
}

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

/* HERO SECTION DU CABINET */
.cabinet-hero {
    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;
}

.sub-header {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.cabinet-title {
    font-family: var(--font-decorative);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gold-text {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.cabinet-intro {
    font-size: 1.25rem;
    color: var(--text-parchment);
    margin-bottom: 2rem;
    max-width: 600px;
}

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

/* FEUILLET MANUSCRIT AVEC ENCRE INVISIBLE UV */
.manuscript-box {
    background: #1c140d;
    border: 2px solid #573e27;
    border-radius: 4px;
    padding: 1.8rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.wax-seal {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 2rem;
    background: var(--ruby);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.letter-body {
    font-style: italic;
    color: #dfcdb7;
    font-size: 1.15rem;
}

.uv-glow-text {
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    border: 1px dashed transparent;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: transparent; /* Caché par défaut */
    transition: var(--transition);
}

/* Réaction à la torche UV (Texte phosphorescent) */
body.uv-active .uv-glow-text {
    color: #00ffaa;
    text-shadow: 0 0 15px #00ffaa, 0 0 30px #00ffaa;
    border-color: #00ffaa;
    background: rgba(0, 255, 170, 0.12);
}

/* RELIC DISPLAY CASE (L'ALAMBIC VIVANT) */
.relic-display-case {
    background: radial-gradient(circle, #251a11 0%, #110b06 100%);
    border: 3px double var(--gold);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.apparatus-container {
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.celestial-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(212, 175, 55, 0.4);
}

.ring-outer {
    width: 220px;
    height: 220px;
    animation: spinClockwise 25s linear infinite;
}

.ring-mid {
    width: 170px;
    height: 170px;
    border-color: rgba(139, 0, 0, 0.5);
    animation: spinCounter 18s linear infinite;
}

.ring-inner {
    width: 120px;
    height: 120px;
    animation: spinClockwise 10s linear infinite;
}

.philosopher-stone {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff3333 0%, #660000 70%);
    box-shadow: 0 0 25px var(--ruby);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    cursor: pointer;
    transition: var(--transition);
}

.philosopher-stone:hover {
    transform: scale(1.15);
    box-shadow: 0 0 35px var(--gold);
    background: radial-gradient(circle, #ffd700 0%, #b8860b 70%);
}

.glyph-symbol {
    font-size: 2rem;
    color: #fff;
}

.relic-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

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

.curio-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2.2rem;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.curio-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--gold-glow);
}

.card-symbol {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

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

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

.drawer-code {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-heading);
    padding: 0.3rem 0.8rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px dashed var(--gold);
    color: var(--gold-light);
    font-size: 0.85rem;
}

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

/* FOOTER */
.curio-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2.5rem;
    margin-top: 5rem;
    background: #090604;
}

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

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

/* ==========================================================================
   VUE 2 : ESCAPE GAME DU MANOIR (LES 5 SALLES)
   ========================================================================== */

#escapeGameView {
    max-width: 1250px;
    margin: 1.5rem auto;
    padding: 0 1.5rem 4rem 1.5rem;
}

.investigator-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--gold);
    padding: 1.2rem 1.8rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    flex-wrap: wrap;
    gap: 1rem;
}

.badge-expedition {
    background: var(--ruby);
    color: #fff;
    padding: 0.2rem 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    border-radius: 3px;
    margin-right: 0.8rem;
    font-weight: 700;
}

.mansion-quest {
    font-family: var(--font-decorative);
    font-size: 1.15rem;
    color: var(--gold-light);
}

.hourglass-tracker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hourglass-time {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold-light);
    font-weight: 800;
}

/* NAVIGATION DANS LES SALLES */
.curio-rooms-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.room-chamber {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1.2rem 1rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.room-chamber:hover:not(.locked) {
    border-color: var(--gold);
    color: var(--text-parchment);
}

.room-chamber.active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.15);
    color: #fff;
    box-shadow: var(--gold-glow);
}

.room-chamber.locked {
    opacity: 0.4;
    cursor: not-allowed;
    border-style: dashed;
}

.room-chamber.completed {
    border-color: #27ae60;
}

.chamber-roman {
    font-family: var(--font-decorative);
    font-size: 1.3rem;
    color: var(--gold);
}

.room-chamber.completed .chamber-roman {
    color: #2ecc71;
}

.chamber-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
}

.chamber-state {
    font-size: 0.75rem;
    font-family: var(--font-heading);
}

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

.chamber-panel.active {
    display: block;
    animation: fadeInPanel 0.4s ease-out;
}

.chamber-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 1.8rem;
    margin-bottom: 2.2rem;
}

.chamber-header h2 {
    font-family: var(--font-decorative);
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 0.6rem;
}

.chamber-story {
    font-size: 1.15rem;
    color: var(--text-parchment);
    max-width: 900px;
}

.enigma-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* SALLE I : DÔME DES ÉTOILES */
.starmap-board {
    background: #060912;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    padding: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
    height: 320px;
    overflow: hidden;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 40px 40px;
}

.celestial-star {
    position: absolute;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--gold);
    color: var(--gold-light);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.celestial-star:hover {
    background: var(--gold);
    color: #000;
    box-shadow: var(--gold-glow);
    transform: scale(1.1);
}

.celestial-star.selected-star {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px var(--gold-light);
}

.star-1 { top: 30px; left: 15%; }
.star-2 { top: 120px; left: 60%; }
.star-3 { top: 220px; left: 30%; }
.star-4 { top: 180px; left: 75%; }

.cipher-clue-box {
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid var(--gold);
    padding: 1.2rem;
    margin-bottom: 1.8rem;
    font-style: italic;
}

.star-order-display {
    margin-top: 0.8rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

/* SALLE II : L'ALAMBIC */
.alembic-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.vial-control {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: 6px;
}

.vial-flask {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.sulfur .vial-symbol { color: #f1c40f; }
.mercury .vial-symbol { color: #bdc3c7; }
.salt .vial-symbol { color: #ecf0f1; }

.vial-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--gold-light);
    margin-top: 0.3rem;
}

.vial-count {
    display: block;
    margin-top: 0.8rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.alembic-cauldron {
    background: #0a0604;
    border: 1px solid var(--gold);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.cauldron-info {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cauldron-gauge-bg {
    height: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.cauldron-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #2ecc71 100%);
    transition: width 0.3s ease-out;
}

/* SALLE III : LIVRES D'ANAGRAMME */
.bookshelf-row {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tome-book {
    width: 90px;
    height: 180px;
    background: linear-gradient(180deg, #4a1515 0%, #260a0a 100%);
    border: 2px solid var(--gold);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.4rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
}

.tome-letter {
    font-family: var(--font-decorative);
    font-size: 1.8rem;
    color: var(--gold-light);
    font-weight: 900;
}

.tome-spine-ornament {
    font-size: 1rem;
    color: var(--gold);
}

.tome-actions {
    display: flex;
    gap: 0.3rem;
}

.btn-book-move {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    border-radius: 2px;
}

/* SALLE IV : MIROIRS D'ARGENT */
.mirrors-labyrinth {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mirror-node {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: 6px;
}

.mirror-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.mirror-disc {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.2rem auto;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background: radial-gradient(circle, #e0e0e0 0%, #757575 100%);
    position: relative;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease-out;
}

.mirror-reflector {
    width: 6px;
    height: 100%;
    background: #ff0055;
    margin: 0 auto;
    box-shadow: 0 0 10px #ff0055;
}

.scarab-receiver {
    background: #0c0805;
    border: 2px solid var(--gold);
    padding: 1.2rem;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.scarab-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.4rem;
}

.scarab-status {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.scarab-receiver.illuminated {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}
.scarab-receiver.illuminated .scarab-status {
    color: #ffd700;
}

/* SALLE V : CONFESSION & CHOIX FINAL */
.final-alchemical-stage {
    text-align: center;
}

.parchment-confession {
    display: flex;
    gap: 1.8rem;
    background: #170f09;
    border: 2px solid var(--gold);
    padding: 2rem;
    border-radius: 6px;
    text-align: left;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

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

.confession-text h3 {
    font-family: var(--font-heading);
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

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

.choice-tome {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 2.5rem 2rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    transition: var(--transition);
}

.choice-tome:hover {
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
    transform: translateY(-4px);
}

.tome-icon {
    font-size: 2.8rem;
}

.choice-tome h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold-light);
}

/* DIPLÔME DE FIN DE MISSION */
.curio-victory-screen {
    margin-top: 2rem;
    animation: zoomDiploma 0.5s ease-out;
}

.parchment-diploma {
    background: #1b120a;
    border: 4px double var(--gold);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.4);
}

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

.parchment-diploma h3 {
    font-family: var(--font-decorative);
    font-size: 2.2rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

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

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

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

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

.btn-hint {
    background: transparent;
    border: none;
    color: var(--gold);
    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(--gold);
    color: var(--gold-light);
    font-size: 1rem;
}

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

.feedback-msg {
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    min-height: 1.5rem;
}
.feedback-msg.success { color: #2ecc71; text-shadow: 0 0 10px #2ecc71; }
.feedback-msg.error { color: #e74c3c; }

/* MODALE GRIMOIRE */
.grimoire-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;
}

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

.grimoire-book {
    width: 90%;
    max-width: 750px;
    background: #140d08;
    border: 2px solid var(--gold);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--gold-glow);
}

.book-spine {
    background: #24170d;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gold);
}

.spine-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--gold-light);
}

.close-book-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.book-pages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
}

.book-pages h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
}

.grimoire-notes {
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-parchment);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grimoire-input-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

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

/* ANIMATIONS */
@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes zoomDiploma {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .cabinet-hero { grid-template-columns: 1fr; }
    .curio-rooms-nav { grid-template-columns: repeat(2, 1fr); }
    .alembic-table { grid-template-columns: repeat(2, 1fr); }
    .mirrors-labyrinth { grid-template-columns: 1fr; }
    .alchemical-choices { grid-template-columns: 1fr; }
    .book-pages { grid-template-columns: 1fr; }
}
