/* Site de support de Z0r0 : nuit mexicaine (ciel prune, soleil couchant orange de l'icône), rouge de la ceinture et
   de la cape, ocre des haciendas, noir du justicier. Rye (titres, affiche de western) et Alegreya Sans (texte), en
   local, sous SIL Open Font License 1.1. Tout est lisible sans JS : les animations (assets/site.js, Motion) ne font
   qu'aller vers l'état décrit ici. */
@font-face { font-family: "Rye"; src: url("/assets/Rye.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/assets/AlegreyaSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/assets/AlegreyaSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --nuit: #140a10;
  --nuit2: #22101c;
  --prune: #3b1532;
  --texte: #f8efe3;
  --doux: #dcc7b2;
  --rouge: #d8262f;
  --rouge-clair: #ff5a4f;
  --ocre: #e8a24c;
  --ocre-clair: #f6c886;
  --terre: #b5532d;
  --titre: linear-gradient(180deg, #ffe2a6 0%, #f6b55a 45%, #e07a2e 80%, #b9452a 100%);   /* soleil couchant de l'icône */
  --verre: rgba(34, 16, 28, .72);
  --bord: rgba(246, 200, 134, .18);
  --rayon: 14px;
  --largeur: 1180px;
  --ressort: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--texte); font: 400 19px/1.6 "Alegreya Sans", system-ui, sans-serif; overflow-x: clip;
  background: linear-gradient(180deg, #3b1532 0%, #24101e 28%, var(--nuit) 62%) fixed;
  background-color: var(--nuit);
  min-height: 100vh;
  /* Chiffres alignés et zéro barré : sans eux, le « 0 » d'Alegreya Sans ressemble à un « o » (Z0r0, z0r0@shader.be) */
  font-variant-numeric: lining-nums slashed-zero;
}
img { max-width: 100%; }
a { color: var(--ocre-clair); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: "Rye", Georgia, serif; font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5.6vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.2em; }
.soleil-texte { background: var(--titre); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(20, 10, 16, .8)); }

/* Ciel de nuit : soleil couchant flou en haut à droite, étoiles fixes (Motion fait respirer le soleil) */
.ciel { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.soleil { position: absolute; width: 70vmax; height: 70vmax; right: -26vmax; top: -30vmax; border-radius: 50%; opacity: .5;
  background: radial-gradient(circle, rgba(246, 160, 70, .55), rgba(216, 38, 47, .22) 40%, rgba(216, 38, 47, 0) 66%); will-change: transform; }
.etoiles { position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 26%, #ffe9c8, transparent), radial-gradient(1px 1px at 63% 12%, #fff, transparent),
    radial-gradient(1px 1px at 82% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 7% 52%, #ffe9c8, transparent),
    radial-gradient(1px 1px at 36% 62%, #fff, transparent), radial-gradient(1px 1px at 91% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 84%, #ffe9c8, transparent), radial-gradient(1px 1px at 19% 90%, #fff, transparent); }

/* Navigation */
nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 10px max(20px, calc((100% - var(--largeur)) / 2)); background: rgba(20, 10, 16, .8);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 2px solid var(--rouge);
}
.nav-marque { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font: 400 1.4rem "Rye", Georgia, serif;
  margin-right: auto; }
.nav-marque img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(246, 200, 134, .35), 0 0 14px rgba(232, 162, 76, .35); }
.nav-liens { display: flex; gap: 4px; align-items: center; }
.nav-liens a { color: var(--texte); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 8px; min-height: 40px; display: inline-flex; align-items: center; }
.nav-liens a:hover { background: rgba(246, 200, 134, .1); }
.nav-liens a[aria-current] { color: var(--ocre); box-shadow: inset 0 -2px 0 var(--rouge); border-radius: 0; }
.langues { display: flex; padding: 3px; border: 1px solid var(--bord); border-radius: 10px; background: rgba(0, 0, 0, .3); font-weight: 700; font-size: .95rem; }
.langues > * { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 10px; border-radius: 8px; text-decoration: none; letter-spacing: .06em; }
.langues .actif { background: var(--rouge); color: #fff; }
.langues a { color: var(--texte); }
.langues a:hover { background: rgba(246, 200, 134, .14); }
.hamburger { display: none; background: none; border: 0; padding: 10px 8px; cursor: pointer; min-width: 44px; min-height: 44px; }
.hamburger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--texte); border-radius: 2px; }

main { max-width: var(--largeur); margin: 0 auto; padding: 28px 20px 72px; }
.texte { max-width: 780px; margin: 24px auto 0; }
.verre > :first-child { margin-top: 0; }
.verre > :last-child { margin-bottom: 0; }
.verre { background: var(--verre); border: 1px solid var(--bord); border-left: 4px solid var(--rouge); border-radius: var(--rayon);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 22px 26px; margin: 18px 0; }
.note { color: var(--doux); font-size: .95rem; }

/* Héros plein écran : capture du jeu en fond, voilée de nuit, titre au soleil couchant */
.hero { position: relative; min-height: min(92svh, 900px); display: grid; align-items: end; isolation: isolate;
  margin: -28px calc(50% - 50vw) 0; padding: 0 max(20px, calc((100vw - var(--largeur)) / 2)) clamp(48px, 9vh, 96px); overflow: hidden; }
.hero-fond { position: absolute; inset: 0; z-index: -2; }
.hero-fond img { width: 100%; height: 112%; object-fit: cover; object-position: 60% 50%; display: block; filter: saturate(.9) brightness(.85); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(59, 21, 50, .55) 0%, rgba(20, 10, 16, .1) 30%, rgba(20, 10, 16, .55) 66%, var(--nuit) 100%),
    linear-gradient(90deg, rgba(20, 10, 16, .88) 0%, rgba(20, 10, 16, .35) 55%, rgba(20, 10, 16, 0) 80%); }
.hero-contenu { max-width: 760px; }
.hero-contenu > p { max-width: 620px; }
.surtitre { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  font-size: .82rem; color: var(--ocre-clair); margin: 0 0 14px; }
.surtitre::before, .repere::before { content: ""; width: 30px; height: 3px; background: var(--rouge); transform: skewX(-35deg); flex: none; }
.titre-jeu { font-size: clamp(4rem, 15vw, 9rem); line-height: .9; margin: 0 0 16px; letter-spacing: .02em;
  background: var(--titre); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(20, 10, 16, .9)) drop-shadow(0 0 30px rgba(216, 38, 47, .45)); }
.accroche { font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.45; margin: 0 0 22px; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.actions.centre { justify-content: center; }
.bouton { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 10px;
  font: 700 1.05rem "Alegreya Sans", sans-serif; color: #fff; text-decoration: none; border: 0; background: var(--rouge);
  box-shadow: 0 4px 0 #7d1218, 0 10px 24px rgba(216, 38, 47, .35); transition: transform .15s, box-shadow .15s, background .2s; cursor: pointer; }
.bouton:hover { background: var(--rouge-clair); transform: translateY(-1px); }
.bouton:active { transform: translateY(3px); box-shadow: 0 1px 0 #7d1218; }
.etat { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 12px; border-radius: 8px; font-weight: 700;
  font-size: .95rem; color: var(--texte); background: rgba(20, 10, 16, .6); border: 1px solid rgba(232, 162, 76, .55); }
.etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ocre); box-shadow: 0 0 10px var(--ocre); }

/* Bandeau de chiffres */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.chiffres li { background: var(--verre); border: 1px solid var(--bord); border-top: 3px solid var(--rouge); border-radius: 12px; padding: 16px 18px; color: var(--doux); font-size: .98rem; }
.chiffres strong { display: block; font: 400 2rem/1.1 "Rye", Georgia, serif; color: var(--ocre-clair); margin-bottom: 4px; }

/* Sections */
.section { margin: clamp(64px, 9vw, 112px) 0 0; }
.entete { max-width: 780px; margin-bottom: 28px; }
.entete h2 { margin: 0 0 .35em; }
.entete p { margin: 0; color: var(--doux); font-size: 1.12rem; }
.repere { display: flex; align-items: center; gap: 12px; font: 700 .88rem/1 "Alegreya Sans", sans-serif; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 14px; color: var(--ocre); }

.ecran { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--nuit2);
  box-shadow: 0 0 0 1px rgba(246, 200, 134, .3), 0 0 0 6px rgba(20, 10, 16, .7), 0 24px 60px rgba(0, 0, 0, .6); }
.bloc { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.bloc.inverse { grid-template-columns: 1fr 1.2fr; }
.bloc.inverse > .media { order: 2; }
.bloc h2 { margin-top: 0; }
.bloc p { margin: .5em 0; }
.media { position: relative; }
.media::before { content: ""; position: absolute; left: -10px; top: -10px; width: 64px; height: 64px; z-index: 1;
  border-left: 4px solid var(--rouge); border-top: 4px solid var(--rouge); border-radius: 6px 0 0 0; }
.media::after { content: ""; position: absolute; inset: -12% -6%; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .45;
  background: radial-gradient(closest-side, rgba(232, 162, 76, .5), transparent); }
.bloc.inverse .media::after { background: radial-gradient(closest-side, rgba(216, 38, 47, .45), transparent); }

/* Gestes de combat */
.gestes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gestes li { background: var(--verre); border: 1px solid var(--bord); border-radius: 12px; padding: 18px 20px; color: var(--doux); }
.gestes .geste { display: inline-block; font: 700 .78rem/1 "Alegreya Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--rouge); padding: 5px 8px; border-radius: 6px; margin-bottom: 10px; }
.gestes strong { display: block; color: var(--texte); font: 400 1.15rem/1.2 "Rye", Georgia, serif; margin-bottom: 6px; }

/* Galerie de captures, agrandies au clic (lien direct vers l'image sans JS) */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.galerie a { display: block; border-radius: 10px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(246, 200, 134, .2), 0 12px 30px rgba(0, 0, 0, .5); }
.galerie img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ressort), filter .3s; }
.galerie a:hover img { transform: scale(1.05); filter: saturate(1.1) brightness(1.05); }
.galerie a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .25s; }
.galerie a:hover::after, .galerie a:focus-visible::after { box-shadow: inset 0 0 0 3px var(--rouge); }
.visionneuse { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.visionneuse::backdrop { background: rgba(14, 6, 10, .93); backdrop-filter: blur(6px); }
.visionneuse figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; padding: 56px 16px 24px; }
.visionneuse img { max-width: min(1200px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(246, 200, 134, .3); }
.visionneuse figcaption { color: var(--texte); text-align: center; max-width: 900px; }
.visionneuse button { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(246, 200, 134, .4);
  background: rgba(20, 10, 16, .75); color: var(--texte); font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.visionneuse .fermer { top: 14px; right: 14px; }
.visionneuse .prec { left: 14px; top: 50%; transform: translateY(-50%); }
.visionneuse .suiv { right: 14px; top: 50%; transform: translateY(-50%); }

/* Appel final */
.final { text-align: center; padding: clamp(40px, 7vw, 72px) 24px; border-radius: 22px; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 162, 76, .28), transparent 60%), linear-gradient(160deg, rgba(59, 21, 50, .9), rgba(34, 16, 28, .9));
  border: 1px solid var(--bord); border-bottom: 4px solid var(--rouge); }
.final h2 { margin: 0 0 .4em; }
.final p { color: var(--doux); max-width: 640px; margin: 0 auto 22px; }
.final img { border-radius: 22px; box-shadow: 0 0 0 1px rgba(246, 200, 134, .35), 0 0 40px rgba(232, 162, 76, .4); margin-bottom: 18px; }

/* Pages texte : FAQ en accordéon natif (details) */
.texte h1 { background: var(--titre); -webkit-background-clip: text; background-clip: text; color: transparent; }
.texte h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.texte ul { padding-left: 1.2em; }
.texte li::marker { color: var(--rouge-clair); }
details { background: var(--verre); border: 1px solid var(--bord); border-radius: 12px; margin: 10px 0; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ocre); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin: 0 18px 14px; color: var(--doux); }
.touches { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.touches th, .touches td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bord); vertical-align: top; }
.touches th { color: var(--ocre-clair); font-weight: 700; white-space: nowrap; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; color: var(--doux);
  padding: 26px max(20px, calc((100% - var(--largeur)) / 2)) 40px; border-top: 2px solid var(--rouge); background: rgba(12, 6, 9, .92); }
.pied-shader { text-align: right; }
footer a { color: var(--doux); display: inline-block; padding: 4px 2px; }
footer p { margin: 6px 0; }
footer a:hover { color: var(--ocre); }

/* Animations : état de départ seulement si Motion est chargé (classe posée dans <head>, retirée sans Motion) */
.motion [data-reveal], .motion .hero-contenu > * { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .galerie img, .bouton { transition: none; }
}

@media (max-width: 1080px) { .ancre { display: none; } }
@media (max-width: 960px) {
  .bloc, .bloc.inverse { grid-template-columns: 1fr; }
  .bloc.inverse > .media { order: 0; }
  .media::after { inset: -10% 0; }   /* le halo ne doit pas élargir la page (défilement horizontal en 390 px) */
  .media::before { left: -6px; top: -6px; }
  .chiffres, .gestes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .hamburger { display: block; order: 3; }
  nav { flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
  .nav-marque { font-size: 1.15rem; }
  .langues { order: 2; }
  .nav-liens { display: none; order: 4; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 6px; }
  nav.open .nav-liens { display: flex; }
  nav.open .ancre { display: inline-flex; }
  main { padding: 18px 16px 56px; }
  .hero { margin-top: -18px; padding: 0 16px 36px; min-height: 80svh; }
  .hero-fond img { object-position: 74% 50%; }   /* le justicier est à droite de la capture */
  .hero::before { background: linear-gradient(180deg, rgba(59, 21, 50, .5) 0%, rgba(20, 10, 16, .1) 22%, rgba(20, 10, 16, .6) 50%, rgba(20, 10, 16, .95) 78%, var(--nuit) 100%); }
  .gestes { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: 1fr 1fr; gap: 8px; }
  footer { flex-direction: column; text-align: center; }
  .pied-shader { text-align: center; }
  .verre { padding: 18px; }
  .touches th { white-space: normal; }
}
