/* Observatoire Pulsar — thème salle de contrôle radioastronomique */
body { user-select: auto; }
.eg {
    --eg-card: rgba(9, 14, 38, 0.92);
    --eg-card-2: rgba(0, 240, 255, 0.05);
    --eg-text: #eef2ff;
    --eg-muted: #a5b4fc;
    --eg-accent: #00f0ff;
    --eg-accent-ink: #030716;
    --eg-border: rgba(0, 240, 255, 0.25);
    --eg-ok: #34d399;
    --eg-err: #ff4d79;
    --eg-warn: #ffb703;
    --eg-radius: 14px;
    --eg-font-head: 'Rajdhani', system-ui, sans-serif;
    --eg-font-body: 'Rajdhani', system-ui, sans-serif;
    --eg-font-mono: 'JetBrains Mono', ui-monospace, monospace;
    position: relative;
    z-index: 5;
    font-size: 1.05rem;
}
.eg .eg-room-title { font-size: clamp(1.4rem, 4.5vw, 2rem); color: var(--eg-accent); }
.eg .eg-input { background: #030716; color: #ffd166; border: 1px solid var(--eg-border); border-radius: 8px; max-width: 100%; }
.eg select.eg-input { font-size: 0.85rem; width: 100%; }
.eg .small { font-size: 0.88rem; }
.sub-title { margin: 1.2rem 0 0.3rem; font-size: 1.15rem; color: var(--eg-accent); }

/* Dossier d'enquête */
.notebook { margin-bottom: 1rem; padding: 0.6rem 0.9rem; background: rgba(255, 183, 3, 0.06); border: 1px solid rgba(255, 183, 3, 0.35); border-left: 4px solid #ffb703; border-radius: 8px; }
.notebook summary { cursor: pointer; font-family: var(--eg-font-mono); font-size: 0.95rem; color: #ffd166; }
.nb-list { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.95rem; line-height: 1.5; }
.nb-list li { margin-bottom: 0.3rem; }

/* Notes papier (post-it, fax, fiches) */
.paper-note { background: #fff6c9; color: #2b2410; border-radius: 4px; padding: 0.7rem 0.9rem; margin: 0.8rem 0; box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.35); transform: rotate(-0.4deg); font-size: 0.98rem; line-height: 1.45; }
.paper-note .paper-title { display: block; font-family: var(--eg-font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: #7a5b00; margin-bottom: 0.3rem; }
.rule-box { background: rgba(0, 240, 255, 0.08); border: 2px dashed var(--eg-accent); border-radius: 10px; padding: 0.8rem 1rem; margin: 0.8rem 0; }
.rule-box p { margin: 0.3rem 0 0; }
.notes-row { align-items: start; }

/* Objets secrets */
.secret-obj { background: none; border: none; font-size: 1.3rem; cursor: pointer; opacity: 0.55; padding: 0 0.3rem; transition: opacity 0.2s, transform 0.2s; }
.secret-obj:hover { opacity: 1; transform: scale(1.2); }

/* Salle 1 : spectrogramme */
.scope-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--eg-muted); margin-bottom: 0.3rem; }
.wf-box { position: relative; }
.wf-axis { position: absolute; inset: 4px auto 4px 6px; display: flex; flex-direction: column; justify-content: space-between; font-size: 0.66rem; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; pointer-events: none; }
.wf-plots { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wf-canvas, .pf-canvas { width: 100%; display: block; border: 1px solid var(--eg-border); border-radius: 6px; background: #030716; image-rendering: pixelated; }
.wf-canvas { aspect-ratio: 500 / 192; }
.pf-canvas { aspect-ratio: 500 / 110; }
.dm-row { display: flex; align-items: center; gap: 0.4rem; margin: 0.8rem 0 0.4rem; flex-wrap: wrap; }
.dm-slider { flex: 1 1 160px; accent-color: var(--eg-accent); min-width: 120px; }
.dm-val { min-width: 5.5em; color: #ffd166; }
.meter { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--eg-muted); margin-bottom: 0.4rem; }
.meter-bar { flex: 1; height: 10px; background: rgba(255, 255, 255, 0.08); border-radius: 6px; overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff4d79, #ffb703); transition: width 0.15s; }
.meter-fill.hot { background: linear-gradient(90deg, #ffb703, #00f0ff); }
.form-panel { margin-top: 0.8rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.6rem; margin-bottom: 0.8rem; }
.form-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.92rem; color: var(--eg-muted); margin: 0.4rem 0; }

/* Salle 2 : tableaux */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 0.4rem 0; }
.data-table th, .data-table td { border-bottom: 1px solid var(--eg-border); padding: 0.4rem 0.5rem; text-align: left; vertical-align: middle; }
.data-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--eg-muted); }
.archive-table td:last-child { min-width: 220px; }
.log-box { margin: 0.8rem 0; }
.log-box summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.log-table { font-size: 0.85rem; }
.radio-list, .check-list { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.5rem 0 0.8rem; }
.radio { display: flex; gap: 0.5rem; align-items: flex-start; cursor: pointer; padding: 0.35rem 0.5rem; border-radius: 8px; border: 1px solid transparent; }
.radio:hover { border-color: var(--eg-border); }
.radio input { margin-top: 0.25rem; accent-color: var(--eg-accent); }

/* Salle 3 : carte du ciel */
.beam-list { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.6rem; font-size: 0.92rem; }
.beam-item { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.beam-item input { accent-color: var(--bc); }
.beam-swatch { width: 14px; height: 14px; flex: none; border-radius: 3px; border: 2px solid var(--bc); background: color-mix(in srgb, var(--bc) 35%, transparent); }
.sky-wrap { position: relative; max-width: 520px; margin: 1rem auto 0.4rem; }
.sky-grid { display: grid; grid-template-columns: repeat(calc(var(--cols) + 1), 1fr); gap: 2px; background: radial-gradient(circle at 70% 40%, rgba(112, 0, 255, 0.18), transparent 60%); }
.sky-lab { display: flex; align-items: center; justify-content: center; font-size: clamp(0.55rem, 2vw, 0.72rem); color: var(--eg-muted); aspect-ratio: 1; }
.sky-corner { aspect-ratio: 1; }
.sky-cell { aspect-ratio: 1; border: 1px solid rgba(165, 180, 252, 0.18); border-radius: 3px; background: rgba(3, 7, 22, 0.8); color: #fff; font-size: clamp(0.8rem, 3vw, 1.1rem); cursor: pointer; padding: 0; line-height: 1; }
.sky-cell.x { color: rgba(255, 255, 255, 0.55); }
.sky-cell.star { color: #ffd166; text-shadow: 0 0 8px #ffd166; font-size: clamp(1rem, 4vw, 1.4rem); }
.betelgeuse { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); background: none; border: none; color: #ff7849; font-size: 1.3rem; text-shadow: 0 0 10px #ff5533; cursor: pointer; padding: 0; z-index: 2; }

/* Salle 4 : rapport */
.report-q { border: 1px solid var(--eg-border); border-radius: 12px; padding: 0.8rem 1rem; margin-bottom: 0.9rem; background: var(--eg-card-2); }
.report-q h3 { display: flex; gap: 0.6rem; align-items: baseline; font-size: 1.1rem; margin: 0 0 0.4rem; }
.q-num { flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--eg-accent); color: var(--eg-accent-ink); font-weight: 800; }
.eg-btn.big { font-size: 1.1rem; padding: 0.85rem 1.4rem; }

@media (max-width: 720px) {
    .eg-grid-2.notes-row { grid-template-columns: 1fr; }
    .archive-table td:last-child { min-width: 180px; }
}

/* Accueil */
.landing-kicker { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-gold); letter-spacing: 0.04em; margin-bottom: 0.3rem; }
.landing-desc { max-width: 720px; margin: 0.8rem auto 0; text-align: left; font-size: 1.1rem; line-height: 1.55; color: #dbe2ff; }
.landing-desc p { margin-bottom: 0.8rem; }
.landing-meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); margin: 0.6rem 0 1.2rem; }
.easter-egg-box h3 { color: var(--accent-cyan); font-size: 1.05rem; text-transform: uppercase; }
.easter-egg-box p { font-size: 0.9rem; color: var(--text-muted); margin: 0.4rem 0; }
.sat-status { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-cyan); }
.sat-btn.locked { opacity: 0.5; transform: scale(0.9); }
.pulsar-footer { position: relative; z-index: 5; text-align: center; font-size: 0.85rem; color: var(--text-muted); padding: 1.5rem 1rem 2rem; }
#landingView { margin-top: 1rem; }
@media (max-width: 600px) {
    .teens-header { padding: 0.8rem 1rem; }
    #landingView { padding: 1.3rem 1rem; }
}
.form-field .eg-input { flex: none; }
@media (max-width: 720px) {
    .archive-table tr:first-child { display: none; }
    .archive-table tr { display: grid; grid-template-columns: auto 1fr auto; gap: 0.2rem 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--eg-border); }
    .archive-table td { border: none; padding: 0.1rem 0.2rem; }
    .archive-table td:last-child { grid-column: 1 / -1; min-width: 0; }
}
