/* La Zone morte européenne — ton de la page (sapins, rouille, ciel d'orage), ambiance par
   section (data-mood sur <body> : light, hawk, cabal, voir js/rituals.js), couleurs de la
   coupe et pastilles. Le mini-jeu « Augure » est dans css/hawk.css. */

.edz {
  --moss: #a9c47a;
  --moss-hi: #e4f1c8;
  --light: #e8f4ff;
  --light-hi: #ffffff;
  --gold: #ffd27a;
  --gold-hi: #fff0c8;
  --rust: #ff9a5c;
  --rust-hi: #ffd6bd;
  --taken: #9fe8ff;
  --page-accent: var(--moss);
  --page-accent-hi: var(--moss-hi);
}
.edz[data-mood="light"] { --page-accent: var(--light); --page-accent-hi: var(--light-hi); }
.edz[data-mood="hawk"] { --page-accent: var(--gold); --page-accent-hi: var(--gold-hi); }
.edz[data-mood="cabal"] { --page-accent: var(--rust); --page-accent-hi: var(--rust-hi); }
.edz ::selection { background: rgba(169, 196, 122, .3); }
.edz main { background: radial-gradient(ellipse 70% 18% at 80% 5%, rgba(169, 196, 122, .08), transparent 70%), radial-gradient(ellipse 55% 16% at 8% 28%, rgba(255, 154, 92, .05), transparent 70%); }
.edz .sec-title { transition: text-shadow .8s; text-shadow: 0 0 34px color-mix(in srgb, var(--page-accent) 24%, transparent); }
.edz .kicker, .edz .tag { transition: color .6s; }

/* ---------- Héros ---------- */
.edz .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 ---------- */
.edz .steps { margin-bottom: clamp(30px, 4vw, 44px); }
.edz .quarters + .raid, .edz .raid + .quarters, .edz .raid + .raid, .edz .duo + .quarters, .edz .quarters + .duo, .edz .quarters + .steps { margin-top: clamp(30px, 4vw, 44px); }
.light-sec { background: radial-gradient(ellipse 60% 22% at 50% 4%, rgba(232, 244, 255, .1), transparent 70%); }
.hawk-sec { background: radial-gradient(ellipse 60% 22% at 84% 6%, rgba(255, 210, 122, .09), transparent 70%), radial-gradient(ellipse 50% 20% at 8% 62%, rgba(20, 30, 60, .5), transparent 70%); }
.cabal-sec { background: radial-gradient(ellipse 60% 26% at 16% 8%, rgba(255, 154, 92, .08), transparent 70%); }
.secrets-sec { background: radial-gradient(ellipse 60% 45% at 30% 30%, color-mix(in srgb, var(--page-accent) 7%, transparent), transparent 70%); }
.edz .secrets-layout .games { gap: 28px; }
/* photo cliquable d'une carte large : le lien remplit la colonne comme le ferait l'image seule */
.edz .quarter--wide .quarter-photo > a { height: 100%; }
.edz .quarter--wide .quarter-photo > a > img { height: 100%; object-fit: cover; }
/* un filet de Lumière entre deux sections */
.light-rule { position: relative; height: 1px; margin: 0; border: 0; overflow: visible; background: linear-gradient(90deg, transparent, rgba(232, 244, 255, .7) 30%, #fff 50%, rgba(232, 244, 255, .7) 70%, transparent); box-shadow: 0 0 22px rgba(232, 244, 255, .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(232, 244, 255, .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); 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% 30%; }
.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); }

/* ---------- Les fois où le Voyageur a parlé ---------- */
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: voice; }
.voice { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--panel-solid); border: 1px solid var(--line); counter-increment: voice; }
.voice--here { border-color: color-mix(in srgb, var(--light) 55%, transparent); box-shadow: 0 0 26px rgba(232, 244, 255, .08); }
.voice-photo { position: relative; aspect-ratio: 16 / 8; margin: 0; overflow: hidden; }
.voice-photo img { width: 100%; height: 100%; object-fit: cover; }
.voice-photo::after { content: counter(voice, decimal-leading-zero); position: absolute; right: 12px; bottom: 6px; font-size: 2.4rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .75); text-shadow: 0 2px 14px #000; }
.voice-body { padding: 18px 20px 20px; }
.voice-body h3 { margin: 4px 0 8px; font-size: 1.2rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--pearl); }
.voice-body p:not(.tag):not(.voice-how) { margin: 0 0 10px; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.voice-how { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--page-accent-hi); }
.voice-where { position: absolute; left: 0; top: 0; z-index: 1; padding: 5px 10px; background: rgba(6, 8, 16, .82); font-size: .58rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.voice--here .voice-where { background: #e8f4ff; color: #0a0f1a; }

/* ---------- Coupe (brique commune : css/components/depths.css) ---------- */
.edz .depths { aspect-ratio: 10 / 11.6; }
.stratum--loin { background: linear-gradient(180deg, #0d1420, #26384a); }
.stratum--surface { background: linear-gradient(180deg, #26384a, #3f5a4a 60%, #32401f 100%); }
.stratum--dessous { background: linear-gradient(180deg, #262a16 0%, #14181c 14%, #0b0e15 100%); }
.stratum--fond { background: radial-gradient(ellipse 50% 90% at 92% 70%, rgba(232, 244, 255, .14), transparent 75%), linear-gradient(180deg, #0b0e15, #05070b); }
.ridge { fill: none; stroke: rgba(232, 244, 255, .28); stroke-width: 1.2; }
.ground { stroke: rgba(20, 28, 12, .95); }
.shard { fill: rgba(232, 244, 255, .16); stroke: rgba(255, 255, 255, .7); stroke-width: 1; stroke-linejoin: round; }
.veil { stroke: rgba(255, 210, 122, .32); stroke-width: 1; stroke-dasharray: 1 6; stroke-linecap: round; }
.way-line { stroke: rgba(231, 235, 245, .3); }
.way-line--sector { stroke: rgba(231, 235, 245, .36); stroke-dasharray: 2 4; }
.way-line--cabal { stroke: rgba(255, 154, 92, .55); }
.way-line--forge { stroke: rgba(255, 210, 122, .55); }
.way-line--warmind { stroke: rgba(255, 140, 60, .6); stroke-dasharray: 6 4; }
.way-line--light { stroke: rgba(255, 255, 255, .7); }
.way-line--taken { stroke: rgba(159, 232, 255, .6); }
.way-line--rift { stroke: rgba(255, 210, 122, .8); stroke-dasharray: 1 5; stroke-linecap: round; }
.room-node--zone { color: #eef4df; }
.room-node--far { color: #c9d6e6; }
.room-node--ally { color: var(--moss); }
.room-node--town { color: #d8c9a8; }
.room-node--sector { color: #cfd6e6; }
.room-node--cabal { color: var(--rust); }
.room-node--forge { color: var(--gold); }
.room-node--warmind { color: #ff8c3c; }
.room-node--light { color: #ffffff; }
.room-node--taken { color: var(--taken); }
.room-node--hidden { color: #d9a6ff; }
.room-node--sector i { transform: none; }
.edz .room-label { max-width: 13cqw; font-size: clamp(.5rem, 1.28cqw, .68rem); text-shadow: 0 1px 6px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .9); }

/* ---------- Pastilles ---------- */
.edz .spot[hidden] { display: none; }
.spot[data-secret="winks"] { color: #f1f4e0; border-color: rgba(169, 196, 122, .8); }
.spot[data-secret="feathers"] { color: #fff0c8; border-color: rgba(255, 210, 122, .9); box-shadow: 0 0 16px rgba(255, 210, 122, .6); }
.spot[data-secret="farm"] { color: #d6ecff; border-color: rgba(120, 190, 255, .9); box-shadow: 0 0 14px rgba(120, 190, 255, .5); }
.spot[data-secret="hawk"] { width: 44px; height: 44px; color: #2a1c00; border-color: #fff; background: radial-gradient(circle, #fff 0 30%, #ffd27a 60%, rgba(255, 210, 122, .2) 72%); box-shadow: 0 0 22px 4px rgba(255, 210, 122, .8); animation: hawk-glow 2.4s ease-in-out infinite; }
.spot[data-secret="hawk"].found { animation: none; opacity: .6; }
@keyframes hawk-glow { 50% { box-shadow: 0 0 34px 10px rgba(255, 240, 200, .95); } }
.spot[data-secret="thorn"] { color: #c9ffb0; border-color: rgba(143, 227, 107, .8); }
.spot[data-secret="forges"] { color: var(--gold-hi); border-color: rgba(255, 210, 122, .8); }
.spot[data-secret="outbreak"] { color: #ffd6bd; border-color: rgba(255, 110, 80, .85); }

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