/* Vunter : trois couleurs, pas une de plus. Blanc sur noir, rouge sur noir, blanc sur rouge.
   Les variantes ne sont que ces trois couleurs avec de la transparence. */
@font-face {
  font-family: "Vunter Display";
  src: url("assets/VunterDisplay-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --noir: #0b0b0b;
  --blanc: #f4f1ea;
  --rouge: #d7192f;
  --blanc-doux: rgba(244, 241, 234, 0.72);
  --blanc-pale: rgba(244, 241, 234, 0.45);
  --trait: rgba(244, 241, 234, 0.14);
  --voile: rgba(244, 241, 234, 0.03);
  --rouge-voile: rgba(215, 25, 47, 0.12);
  --titre: "Vunter Display", "Bahnschrift", "Barlow Semi Condensed", sans-serif;
  --texte: "Bahnschrift", "Barlow Semi Condensed", "Segoe UI", sans-serif;
  --largeur: 1140px;
  --coin: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--texte);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Le grain : une texture très légère, pour que le noir ne soit pas « plat ». */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .95 0 0 0 0 .92 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blanc); text-decoration-color: var(--rouge); text-underline-offset: 3px; }
a:hover { color: var(--rouge); }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
::selection { background: var(--rouge); color: var(--blanc); }

.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.entete .logo img { height: 24px; width: auto; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  font-family: var(--titre); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 15px; text-decoration: none; padding: 8px 12px; color: var(--blanc-doux);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blanc); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--rouge); }
.nav .discord { background: var(--rouge); color: var(--blanc); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-inline: 18px; margin-left: 10px; }
.nav .discord:hover { color: var(--blanc); filter: brightness(1.12); }
.menu-bouton { display: none; }

@media (max-width: 800px) {
  .menu-bouton {
    display: block; background: none; border: 1px solid var(--trait); color: var(--blanc);
    font-family: var(--titre); text-transform: uppercase; padding: 8px 14px; cursor: pointer; letter-spacing: 0.08em;
  }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; align-items: stretch;
    flex-direction: column; background: var(--noir); border-bottom: 1px solid var(--trait); padding: 8px 16px 20px;
  }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--trait); font-size: 18px; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--rouge); }
  .nav.ouvert { display: flex; }
  .nav .discord { align-self: flex-start; margin: 16px 0 0; padding: 12px 22px; border: 0; }
}

/* ---------- Titres et texte ---------- */
h1, h2, h3, h4 { font-family: var(--titre); text-transform: uppercase; font-weight: 400; line-height: 1.05; margin: 0 0 0.5em; letter-spacing: 0.02em; }
h1 { font-size: clamp(48px, 9vw, 112px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: 24px; }
h4 { font-size: 19px; }
p { margin: 0 0 1em; color: var(--blanc-doux); }
strong { color: var(--blanc); font-weight: 600; }
.rouge { color: var(--rouge); }
.surtitre { font-family: var(--titre); text-transform: uppercase; letter-spacing: 0.18em; color: var(--rouge); font-size: 15px; margin-bottom: 14px; display: block; }
.tag { font-family: var(--titre); text-transform: uppercase; font-size: 13px; letter-spacing: 0.14em; color: var(--rouge); display: block; margin-bottom: 10px; }

/* ---------- Héros ---------- */
.heros { position: relative; overflow: hidden; padding: 96px 0 88px; border-bottom: 1px solid var(--trait); }
.heros > .conteneur { position: relative; }
.heros .symbole-fond {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(640px, 72vw); opacity: 0.07; pointer-events: none;
}
.heros p.chapo { font-size: 22px; max-width: 620px; color: var(--blanc); }
.heros-page { padding: 72px 0 48px; }
.heros-page p.chapo { font-size: 20px; }

/* L'accueil prend tout l'écran : on entre dans le monde avant de lire. */
.heros-accueil { min-height: calc(100svh - 68px); display: flex; flex-direction: column; justify-content: center; padding: 64px 0 40px; }
.heros-accueil .symbole-fond { width: min(760px, 90vw); opacity: 0.08; animation: respire 9s ease-in-out infinite; }
@keyframes respire { 50% { opacity: 0.13; } }

/* La Brume : des nappes blanches très pâles qui dérivent en bas de l'écran. */
.brume { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.brume::before, .brume::after {
  content: ""; position: absolute; left: -30%; width: 160%; height: 70%; bottom: -25%;
  background:
    radial-gradient(ellipse 40% 50% at 25% 60%, rgba(244, 241, 234, 0.09), transparent 70%),
    radial-gradient(ellipse 35% 45% at 70% 70%, rgba(244, 241, 234, 0.07), transparent 70%);
  animation: derive 38s linear infinite alternate;
}
.brume::after { bottom: -35%; animation-duration: 52s; animation-direction: alternate-reverse; opacity: 0.8; }
@keyframes derive { to { transform: translateX(18%); } }

.statut {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--titre); text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; color: var(--blanc-doux);
  border: 1px solid var(--trait); padding: 6px 14px 6px 12px;
}
.statut .point { width: 8px; height: 8px; background: var(--rouge); border-radius: 50%; animation: pouls 1.8s ease-out infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(215, 25, 47, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(215, 25, 47, 0); } }

.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); margin: 72px 0 0; border-top: 1px solid var(--trait); }
.chiffres div { padding: 20px 16px 0 0; }
.chiffres dt { font-family: var(--titre); font-size: 44px; line-height: 1; color: var(--rouge); }
.chiffres dd { margin: 6px 0 0; color: var(--blanc-doux); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 640px) { .chiffres { grid-template-columns: repeat(2, 1fr); row-gap: 8px; margin-top: 48px; } }

/* ---------- Boutons ---------- */
.boutons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.bouton {
  display: inline-block; font-family: var(--titre); text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; padding: 15px 30px; font-size: 17px;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: transform 0.15s, filter 0.15s;
}
.bouton:hover { transform: translateY(-2px); }
.bouton.plein { background: var(--rouge); color: var(--blanc); }
.bouton.plein:hover { color: var(--blanc); filter: brightness(1.12); }
.bouton.contour { background: var(--blanc); color: var(--noir); }
.bouton.contour:hover { color: var(--noir); }
.bouton.sombre { background: var(--noir); color: var(--blanc); }
.bouton.sombre:hover { color: var(--blanc); }

/* ---------- Sections ---------- */
section { padding: 96px 0; border-bottom: 1px solid var(--trait); }
section:last-of-type { border-bottom: 0; }
.intro { max-width: 720px; margin-bottom: 44px; }
.intro p:last-child { margin-bottom: 0; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.deux-colonnes .intro { margin-bottom: 0; }
@media (max-width: 860px) { .deux-colonnes { grid-template-columns: 1fr; gap: 32px; } }

/* Sommaire en haut des pages : on voit tout de suite ce qu'il y a à explorer. */
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sommaire a {
  font-family: var(--titre); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px;
  text-decoration: none; color: var(--blanc-doux); border: 1px solid var(--trait); padding: 7px 14px;
  transition: border-color 0.15s, color 0.15s;
}
.sommaire a:hover { color: var(--blanc); border-color: var(--rouge); }

/* ---------- Cartes ---------- */
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.carte, .faction, .role, .voie, .zones li, .types > div {
  position: relative; border: 1px solid var(--trait); background: var(--voile); padding: 28px 24px 24px;
}
.carte::before, .faction::before, .role::before, .voie::before, .zones li::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 48px; height: 3px; background: var(--rouge);
}
.carte h3, .faction h3, .role h3 { margin-bottom: 10px; }
.carte p:last-child, .role p:last-child { margin-bottom: 0; }

/* ---------- Le parcours : une route en 4 étapes, comme un niveau ---------- */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: etape; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--trait) 0 70%, var(--rouge)); }
.route li { position: relative; padding-top: 48px; counter-increment: etape; }
.route li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; background: var(--noir);
  border: 2px solid var(--blanc); transform: rotate(45deg) scale(0.75);
}
.route li::after { content: counter(etape, decimal-leading-zero); position: absolute; right: 0; top: 30px; font-family: var(--titre); font-size: 56px; line-height: 1; color: var(--trait); }
.route .niveau { font-family: var(--titre); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--blanc-pale); display: block; margin-bottom: 8px; }
.route p { font-size: 17px; margin: 0; }
.route .inconnu::before { background: var(--rouge); border-color: var(--rouge); }
.route .inconnu .niveau, .route .inconnu h3 { color: var(--rouge); }
@media (max-width: 860px) {
  .route { grid-template-columns: 1fr; gap: 36px; padding-left: 44px; }
  .route::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--trait) 0 70%, var(--rouge)); }
  .route li { padding-top: 0; }
  .route li::before { left: -44px; }
  .route li::after { top: -4px; font-size: 40px; }
}

/* ---------- Qui seras-tu ? ---------- */
.roles { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } }
.role { text-decoration: none; display: block; clip-path: var(--coin); transition: border-color 0.15s, transform 0.15s, background 0.15s; }
.role:hover { color: var(--blanc); border-color: var(--rouge); background: var(--rouge-voile); transform: translateY(-3px); }
.role h3 { font-size: 28px; }
.role::after { content: "→"; position: absolute; right: 22px; bottom: 18px; color: var(--rouge); font-family: var(--titre); transition: transform 0.15s; }
.role:hover::after { transform: translateX(4px); }
.role p { padding-right: 24px; }
.role-rouge { background: var(--rouge); border-color: var(--rouge); }
.role-rouge .tag, .role-rouge p, .role-rouge::after { color: var(--blanc); }
.role-rouge::before { background: var(--blanc); }
.role-rouge:hover { background: var(--rouge); filter: brightness(1.1); }

/* ---------- Feuille de route ---------- */
.feuille-route { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--trait); }
.feuille-route li { position: relative; padding: 0 0 22px 32px; color: var(--blanc-pale); font-family: var(--titre); text-transform: uppercase; letter-spacing: 0.04em; font-size: 19px; line-height: 1.2; }
.feuille-route li:last-child { padding-bottom: 0; }
.feuille-route li::before { content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; background: var(--noir); border: 2px solid var(--trait); transform: rotate(45deg); }
.feuille-route li span { display: block; font-family: var(--texte); text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--rouge); margin-top: 4px; }
.feuille-route .fait { color: var(--blanc); }
.feuille-route .fait::before { background: var(--rouge); border-color: var(--rouge); }
.feuille-route .encours { color: var(--blanc); }
.feuille-route .encours::before { border-color: var(--rouge); animation: pouls 1.8s ease-out infinite; }

/* ---------- Bandeau rouge ---------- */
.bandeau-rouge { background: var(--rouge); color: var(--blanc); padding: 72px 0; border: 0; }
.bandeau-rouge p { color: var(--blanc); max-width: 640px; }
.bandeau-rouge strong { color: var(--blanc); }
.bandeau-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.bandeau-cta h2 { margin-bottom: 12px; }
.bandeau-cta p:last-child { margin-bottom: 0; }

/* ---------- Listes ---------- */
.liste { list-style: none; padding: 0; margin: 0; }
.liste li { position: relative; padding: 0 0 12px 28px; color: var(--blanc-doux); }
.liste li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 9px; background: var(--rouge);
  clip-path: polygon(0 0, 50% 45%, 100% 0, 60% 100%, 40% 100%);
}

/* ---------- Factions ---------- */
.factions { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .factions { grid-template-columns: 1fr; } }
.faction { clip-path: var(--coin); display: flex; flex-direction: column; }
.faction h3 { font-size: 30px; }
.faction .fiche { margin-top: auto; }
.faction:target { border-color: var(--rouge); background: var(--rouge-voile); }

/* Petite fiche « Accès / Pour toi si », comme une fiche de classe. */
.fiche { display: grid; gap: 8px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--trait); }
.fiche div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.fiche dt { font-family: var(--titre); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; color: var(--blanc-pale); }
.fiche dd { margin: 0; color: var(--blanc); font-size: 16px; }

/* Jauge à 3 crans : danger, risque, gain. */
.jauge { display: inline-flex; gap: 4px; vertical-align: middle; }
.jauge i { width: 22px; height: 8px; background: var(--trait); transform: skewX(-20deg); }
.jauge[data-n="1"] i:nth-child(-n+1), .jauge[data-n="2"] i:nth-child(-n+2), .jauge[data-n="3"] i { background: var(--rouge); }

/* ---------- Le jeu ---------- */
.choix { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.voie { clip-path: var(--coin); height: 100%; }
.voie h3 { font-size: 30px; }
.voie-rouge { border-color: var(--rouge); background: var(--rouge-voile); }
.ou { font-family: var(--titre); text-transform: uppercase; color: var(--rouge); font-size: 22px; }
@media (max-width: 760px) { .choix { grid-template-columns: 1fr; } .ou { text-align: center; } }

.types { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .types { grid-template-columns: 1fr; } }
.types > div { padding: 20px; transition: border-color 0.15s; }
.types > div:hover { border-color: var(--rouge); }
.types h4 { margin-bottom: 6px; }
.types p { margin: 0; font-size: 16px; }
.types .rare { border-color: var(--rouge); }
.types .rare h4 { color: var(--rouge); }

.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .phases { grid-template-columns: 1fr; } }
.phases li { border-top: 3px solid var(--blanc); padding: 18px 4px 0; }
.phases .num { font-family: var(--titre); font-size: 40px; line-height: 1; color: var(--rouge); display: block; margin-bottom: 12px; }
.phases h3 { font-size: 22px; }
.phases p { font-size: 16px; margin: 0; }
/* L'épreuve secrète : barrée de hachures, on sait qu'elle existe, pas ce qu'elle est. */
.secret { position: relative; }
.phases .secret { border-top-color: var(--rouge); padding: 18px 16px 16px; background: repeating-linear-gradient(-45deg, var(--voile) 0 10px, transparent 10px 20px); }
.phases .secret h3 { color: var(--rouge); }

.recompense { margin-top: 40px; border: 1px solid var(--rouge); border-left-width: 4px; padding: 22px 24px; max-width: 760px; }
.recompense p { margin: 0; }

.etoiles { font-family: var(--titre); color: var(--rouge); font-size: 28px; letter-spacing: 0.12em; margin-bottom: 10px; }

.gains { list-style: none; margin: 0; padding: 0; }
.gains li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--trait); font-family: var(--titre); text-transform: uppercase; letter-spacing: 0.04em; font-size: 18px; }
.gains li:first-child { border-top: 1px solid var(--trait); }
.gains li:last-child { color: var(--rouge); }

.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .zones { grid-template-columns: 1fr; } }
.zones li { clip-path: var(--coin); }
.zones li:nth-child(2) { background: rgba(244, 241, 234, 0.05); }
.zones .secret { border-color: var(--rouge); background: var(--rouge-voile); }
.zones .secret h3 { color: var(--rouge); }
.zones p { margin-bottom: 0; }
.alerte { margin: 36px 0 0; font-family: var(--titre); text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.2; color: var(--blanc); }
.alerte strong { color: var(--rouge); font-weight: 400; }

.citation { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--rouge); font-family: var(--titre); text-transform: uppercase; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.2; color: var(--blanc); }

/* ---------- Règlement ---------- */
.essentiel { border: 1px solid var(--rouge); background: var(--rouge-voile); padding: 24px 28px; margin-bottom: 64px; clip-path: var(--coin); }
.essentiel ol { margin: 0; padding-left: 22px; }
.essentiel li { color: var(--blanc); margin-bottom: 4px; }
.essentiel li::marker { color: var(--rouge); font-family: var(--titre); }
.regles h2 { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--trait); }
.regles .essentiel + h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.regles h3 { margin-top: 36px; font-size: 21px; color: var(--rouge); }
.regles ol { padding-left: 22px; color: var(--blanc-doux); max-width: 820px; }
.regles ol li { margin-bottom: 8px; }
.regles ol li::marker { color: var(--rouge); font-family: var(--titre); }

/* ---------- Étape suivante : pas de cul-de-sac ---------- */
.suite-page {
  display: block; text-decoration: none; margin: 0 0 96px; padding: 36px 0 0; border-top: 2px solid var(--rouge);
}
.bandeau-rouge + .conteneur .suite-page { margin-top: 96px; }
.suite-page .suite-nom { font-family: var(--titre); text-transform: uppercase; font-size: clamp(36px, 6vw, 72px); line-height: 1; display: block; transition: color 0.15s; }
.suite-page .suite-nom span { color: var(--rouge); display: inline-block; transition: transform 0.2s; }
.suite-page:hover .suite-nom { color: var(--blanc); }
.suite-page:hover .suite-nom span { transform: translateX(10px); }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--trait); padding: 44px 0; font-size: 15px; }
.pied .conteneur { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.pied p { margin: 12px 0 0; max-width: 420px; }
.pied img { height: 20px; width: auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pied nav a { font-family: var(--titre); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; text-decoration: none; color: var(--blanc-doux); }
.pied nav a:hover { color: var(--rouge); }

/* ---------- Apparition au défilement ---------- */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--delai, 0ms); }
.apparait.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Les fiches restent alignées en bas des cartes, même si les textes n'ont pas la même longueur. */
.zones li, .voie { display: flex; flex-direction: column; }
.zones .fiche, .voie .fiche { margin-top: auto; }
.zones li p, .voie p { margin-bottom: 16px; }
@media (max-width: 640px) { .grand-ecran { display: none; } }
