/* La Mesa de l'écho — ton de la page (ciel lilas, herbe jaune soufre, énergie du Voyageur),
   ambiance par section (data-mood sur <body> : taken, vex, dark, voir js/rituals.js),
   couleurs de la coupe et pastilles. Le mini-jeu du Murmure est dans css/whisper.css. */

.io {
  --sulfur: #e9d36a;
  --sulfur-hi: #fff3bd;
  --lilac: #b9a7ff;
  --taken: #9fe8ff;
  --taken-hi: #e6fbff;
  --vexred: #ff6b5c;
  --vexred-hi: #ffc6bf;
  --dark: #8f95a8;
  --dark-hi: #e3e6ef;
  --witch: #8fe36b;
  --page-accent: var(--sulfur);
  --page-accent-hi: var(--sulfur-hi);
}
.io[data-mood="taken"] { --page-accent: var(--taken); --page-accent-hi: var(--taken-hi); }
.io[data-mood="vex"] { --page-accent: var(--vexred); --page-accent-hi: var(--vexred-hi); }
.io[data-mood="dark"] { --page-accent: var(--dark); --page-accent-hi: var(--dark-hi); }
.io ::selection { background: rgba(233, 211, 106, .3); }
.io main { background: radial-gradient(ellipse 70% 18% at 80% 5%, rgba(185, 167, 255, .1), transparent 70%), radial-gradient(ellipse 55% 16% at 8% 28%, rgba(233, 211, 106, .06), transparent 70%); }
.io .sec-title { transition: text-shadow .8s; text-shadow: 0 0 34px color-mix(in srgb, var(--page-accent) 24%, transparent); }
.io .kicker, .io .tag { transition: color .6s; }

/* ---------- Héros ---------- */
.io .hero-title span:last-child { margin-top: .18em; font-size: .36em; font-weight: 500; letter-spacing: .3em; color: var(--page-accent-hi); }
.hero-fact { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-fact b { color: var(--page-accent-hi); }

/* ---------- Sections ---------- */
.io .steps { margin-bottom: clamp(30px, 4vw, 44px); }
.io .quarters + .raid, .io .raid + .quarters, .io .raid + .raid { margin-top: clamp(30px, 4vw, 44px); }
.taken-sec { background: radial-gradient(ellipse 60% 22% at 84% 6%, rgba(159, 232, 255, .09), transparent 70%), radial-gradient(ellipse 50% 20% at 8% 62%, rgba(20, 30, 60, .5), transparent 70%); }
.vex-sec { background: radial-gradient(ellipse 60% 26% at 16% 8%, rgba(255, 107, 92, .08), transparent 70%); }
.dark-sec { background: radial-gradient(ellipse 60% 26% at 80% 6%, rgba(227, 230, 239, .07), transparent 70%), linear-gradient(180deg, transparent, rgba(0, 0, 0, .35) 40%, transparent); }
.secrets-sec { background: radial-gradient(ellipse 60% 45% at 30% 30%, color-mix(in srgb, var(--page-accent) 7%, transparent), transparent 70%); }
.io .secrets-layout .games { gap: 28px; }
/* un filet d'énergie du Voyageur entre deux sections */
.light-rule { position: relative; height: 1px; margin: 0; border: 0; overflow: visible; background: linear-gradient(90deg, transparent, rgba(255, 243, 189, .7) 30%, #fff 50%, rgba(255, 243, 189, .7) 70%, transparent); box-shadow: 0 0 22px rgba(255, 243, 189, .55); }
.light-rule::after { content: ''; position: absolute; left: 50%; top: -5px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 4px rgba(255, 243, 189, .9); animation: light-pulse 4s ease-in-out infinite; }
@keyframes light-pulse { 50% { transform: scale(.55); opacity: .6; } }
/* deux colonnes : un portrait et son texte */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); margin-bottom: clamp(30px, 4vw, 44px); background: var(--panel-solid); border: 1px solid var(--line); }
.duo-photo { position: relative; min-height: 380px; margin: 0; overflow: hidden; }
.duo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.duo .duo-photo > a { position: absolute; inset: 0; display: block; }
.duo-photo figcaption { position: absolute; left: 0; bottom: 0; padding: 6px 12px; background: rgba(6, 8, 16, .78); font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.duo-body { padding: clamp(22px, 3vw, 36px); }
.duo-body h3 { margin: 4px 0 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--pearl); }
.duo-body > p:not(.tag) { margin: 0 0 14px; font-size: .95rem; line-height: 1.65; color: var(--muted); }
.duo-line { margin: 0 0 12px; padding: 12px 16px; border-left: 3px solid var(--page-accent); background: color-mix(in srgb, var(--page-accent) 7%, transparent); }
.duo-line q { quotes: '« ' ' »'; font-family: var(--font-lore); font-style: italic; font-size: 1.2rem; line-height: 1.4; color: #e9e3d6; }
.duo-line cite { display: block; margin-top: 4px; font-size: .62rem; font-style: normal; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--page-accent-hi); }
.arms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(30px, 4vw, 44px); }
.arm-note { margin: 8px 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }

/* ---------- Coupe (brique commune : css/components/depths.css) ---------- */
.io .depths { aspect-ratio: 10 / 9.4; }
.stratum--ciel { background: linear-gradient(180deg, #0b0c14, #2b2548); }
.stratum--surface { background: radial-gradient(ellipse 70% 130% at 50% -10%, rgba(255, 243, 189, .35), transparent 70%), linear-gradient(180deg, #2b2548, #5b4f8f 55%, #6b6a2a 100%); }
.stratum--dessous { background: linear-gradient(180deg, #33321c 0%, #17182a 16%, #0c0f1c 100%); }
.stratum--fond { background: radial-gradient(ellipse 60% 90% at 70% 70%, rgba(159, 232, 255, .16), transparent 75%), linear-gradient(180deg, #0c0f1c, #05070d); }
.pyramid { fill: #05060a; stroke: rgba(227, 230, 239, .5); stroke-width: 1; stroke-linejoin: round; }
.ground { stroke: rgba(30, 28, 10, .9); }
.bowl { fill: none; stroke: rgba(255, 243, 189, .6); stroke-width: 1.4; }
.beam { stroke: rgba(255, 255, 255, .45); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.veil { stroke: rgba(159, 232, 255, .35); stroke-width: 1; stroke-dasharray: 1 6; stroke-linecap: round; }
.way-line { stroke: rgba(231, 235, 245, .34); }
.way-line--sector { stroke: rgba(231, 235, 245, .4); stroke-dasharray: 2 4; }
.way-line--vex { stroke: rgba(255, 107, 92, .6); }
.way-line--cabal { stroke: rgba(255, 176, 97, .55); }
.way-line--warmind { stroke: rgba(255, 140, 60, .6); stroke-dasharray: 6 4; }
.way-line--taken { stroke: rgba(159, 232, 255, .6); }
.way-line--rift { stroke: rgba(159, 232, 255, .75); stroke-dasharray: 1 5; stroke-linecap: round; }
.room-node--zone { color: #fbf7e4; }
.room-node--dark { color: var(--dark-hi); }
.room-node--cradle { color: #ffffff; }
.room-node--ally { color: var(--sulfur); }
.room-node--cabal { color: #ffb061; }
.room-node--warmind { color: #ff8c3c; }
.room-node--sector { color: #cfd6e6; }
.room-node--vex { color: var(--vexred); }
.room-node--taken { color: var(--taken); }
.room-node--sector i { transform: none; }
.io .room-label { text-shadow: 0 1px 6px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .9); }

/* ---------- Pastilles ---------- */
.io .spot[hidden] { display: none; }
.spot[data-secret="winks"] { color: #f4eed0; border-color: rgba(233, 211, 106, .75); }
.spot[data-secret="effigy"] { color: #fff3bd; border-color: rgba(255, 243, 189, .9); border-radius: 0; box-shadow: 0 0 14px rgba(255, 243, 189, .6); }
.spot[data-secret="eyes"] { color: #d9ffc9; border-color: rgba(143, 227, 107, .9); background: rgba(10, 30, 8, .7); box-shadow: 0 0 16px rgba(143, 227, 107, .55); }
.spot[data-secret="eyes"].found { opacity: .45; box-shadow: none; }
.spot[data-secret="anomaly"] { width: 44px; height: 44px; color: #fff; border-color: #fff; background: radial-gradient(circle, #000 0 45%, rgba(159, 232, 255, .5) 70%, transparent 72%); box-shadow: 0 0 22px 4px rgba(159, 232, 255, .7); animation: anomaly 2.4s ease-in-out infinite; }
.spot[data-secret="anomaly"].found { animation: none; opacity: .6; }
@keyframes anomaly { 50% { box-shadow: 0 0 34px 10px rgba(159, 232, 255, .9); } }
.spot[data-secret="chosen"] { color: #ffe3a6; border-color: rgba(255, 210, 122, .8); }

@media (max-width: 1020px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo-photo { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 680px) {
  .io .depths { aspect-ratio: 10 / 13; }
  .arms { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .light-rule::after, .spot[data-secret="anomaly"] { animation: none; }
}
