/* Novaldir — site officiel (SITE1). Aucune police téléchargée : polices système.
   Couleurs accordées au launcher : bleu nuit, or, lame. Effets doux, sans grain. */
:root {
  --fond: #0b1118;
  --fond-2: #0e151e;
  --panneau: #131c26;
  --panneau-2: #18232f;
  --champ: #0f1720;
  --bord: #243241;
  --bord-2: #33465a;
  --texte: #e9eef3;
  --texte-2: #b3c0cc;
  --texte-3: #8695a4;
  --or: #d4a944;
  --or-clair: #ecd08a;
  --or-sombre: #a8812a;
  --sur-or: #1b1407;
  --lame: #a9bdd1;
  --bleu: #4f8fd6;
  --rouge: #c9503f;
  --vert: #47c27a;
  --erreur: #f08a7c;
  --rayon: 8px;
  --large: 1200px;
  --titre: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", P052, Georgia, serif;
  --corps: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --barre-h: 68px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--barre-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--fond); color: var(--texte);
  font: 16px/1.6 var(--corps);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or-clair); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff3cf; }
:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, .accroche, .entete p { text-wrap: balance; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evite { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--or); color: var(--sur-or); padding: 8px 14px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.evite:focus { top: 12px; }
.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 20px; }
.etroit { max-width: 820px; }

/* ── Barre du haut ─────────────────────────────────────────────── */
.barre {
  position: sticky; top: 0; z-index: 50; height: var(--barre-h);
  background: rgba(10, 15, 22, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
@supports (backdrop-filter: blur(8px)) { .barre { background: rgba(10, 15, 22, .82); backdrop-filter: blur(10px); } }
.barre .conteneur { max-width: none; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 22px; }
.marque { display: flex; align-items: center; flex: none; margin-right: 18px; }
.marque img { height: 48px; width: auto; }
.discord-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; color: #c9d2dc; flex: none; }
.discord-ico:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.discord-ico svg { width: 26px; height: 26px; fill: currentColor; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 6px; text-decoration: none;
  color: #edf1f5; font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a[aria-current="page"] { color: var(--or-clair); }
.barre .vide { flex: 1; }
.langues { display: flex; align-items: center; gap: 2px; padding: 0 14px; border-left: 1px solid rgba(255, 255, 255, .1); border-right: 1px solid rgba(255, 255, 255, .1); height: 100%; }
.langues a { padding: 6px 8px; color: var(--texte-3); text-decoration: none; font-size: .82rem; font-weight: 700; letter-spacing: .05em; border-radius: 4px; }
.langues a:hover { color: #fff; }
.langues a[aria-current="true"] { color: #fff; }
.bouton-cle {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; margin-left: 12px;
  border: 1px solid var(--or-sombre); border-radius: 4px; color: var(--or);
  font-family: var(--titre); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; background: rgba(212, 169, 68, .04); white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.bouton-cle:hover { background: rgba(212, 169, 68, .14); color: var(--or-clair); border-color: var(--or); }
.b-menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; flex: none; }
.b-menu:hover { background: rgba(255, 255, 255, .07); }
.b-menu svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.court { display: none; }

@media (max-width: 1280px) {  /* SITE2 : 6 liens dans la barre (JcJ, Classes) */
  .nav a { padding: 8px 10px; letter-spacing: .03em; }
  .marque { margin-right: 6px; }
}
@media (max-width: 1100px) {  /* SITE2 : menu repliable plus tôt (était 940px) */
  .b-menu { display: grid; place-items: center; }
  .nav, .barre .langues { display: none; }
  .barre.ouvert .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: var(--barre-h); margin: 0; padding: 10px 16px 16px;
    background: rgba(10, 15, 22, .98); border-bottom: 1px solid rgba(255, 255, 255, .09);
  }
  .barre.ouvert .nav a { padding: 14px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .barre.ouvert .nav .langues-mobile { display: flex; }
}
.langues-mobile { display: none; gap: 10px; padding: 14px 10px 4px; }
.langues-mobile a { padding: 6px 10px !important; border: 1px solid var(--bord-2) !important; border-radius: 4px; font-size: .8rem !important; }
@media (max-width: 560px) {
  :root { --barre-h: 60px; }
  .barre .conteneur { padding: 0 10px; gap: 4px; }
  .marque img { height: 40px; }
  .discord-ico { display: none; }
  .bouton-cle { height: 40px; padding: 0 12px; font-size: .85rem; margin-left: 0; }
  .long { display: none; }
  .court { display: inline; }
}

/* ── Boutons ───────────────────────────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 36px; border-radius: 4px; border: 1px solid transparent;
  font-family: var(--titre); font-weight: 700; font-size: 1.08rem; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: filter .2s, background .2s, border-color .2s, color .2s;
}
.bouton.or { background: linear-gradient(180deg, #e2bb5c, #c39434); color: var(--sur-or); border-color: #e7c873; box-shadow: 0 6px 24px rgba(212, 169, 68, .18); }
.bouton.or:hover { filter: brightness(1.08); color: var(--sur-or); }
.bouton.lame { background: rgba(13, 20, 28, .72); color: var(--texte); border-color: rgba(169, 189, 209, .38); }
.bouton.lame:hover { border-color: var(--lame); color: #fff; background: rgba(20, 29, 39, .85); }
.bouton.petit { min-height: 44px; padding: 0 22px; font-size: .95rem; }
.bouton[disabled], .bouton[aria-disabled="true"] { filter: grayscale(.6) brightness(.75); cursor: default; }
.bouton svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ── Bannière ──────────────────────────────────────────────────── */
.banniere {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 84vh, 880px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 64px 0 72px;
}
.banniere.basse { min-height: clamp(300px, 42vh, 420px); padding: 56px 0 48px; }
.banniere::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  /* Emplacement remplaçable « banniere-accueil » (medias/medias.json) ; le JS ne le change
     que si le fichier porte un autre nom. /medias/ est servi en « no-cache » : un
     remplacement sous le même nom se voit au prochain chargement. */
  background: var(--banniere, url("/medias/banniere-accueil.webp")) center 28% / cover no-repeat,
              radial-gradient(ellipse 80% 70% at 50% 30%, #2a2a22, var(--fond) 75%);
  background-color: var(--fond);
}
.banniere::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 46%, rgba(9, 14, 21, .62), rgba(9, 14, 21, 0) 72%),
    linear-gradient(180deg, rgba(11, 17, 24, .52) 0%, rgba(11, 17, 24, .40) 40%, rgba(11, 17, 24, .78) 78%, var(--fond) 100%);
}
.banniere .conteneur { max-width: 980px; }
.banniere .logo-grand { width: min(380px, 78vw); margin: 0 auto 6px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .55)); }
.banniere h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .65); margin-bottom: .35em; }
.accroche { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: #e6ecf1; max-width: 680px; margin: 0 auto 1.1em; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.lignes { list-style: none; margin: 0 auto 1.6em; padding: 0; color: #d3dbe3; font-size: .98rem; line-height: 1.9; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.atouts {
  display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto 30px;
  background: rgba(9, 13, 19, .72); border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px;
  padding: 14px 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.atouts li { list-style: none; padding: 2px 18px; color: #edf1f5; font-size: .98rem; line-height: 1.35; display: flex; align-items: center; justify-content: center; }
.atouts li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.sous-bouton { margin: 16px 0 0; font-size: .88rem; color: #c3ccd5; }
.sous-bouton a { color: #fff; }
@media (max-width: 640px) {
  .banniere { min-height: 0; padding: 40px 0 52px; }
  .atouts { grid-template-columns: 1fr; border-radius: 14px; padding: 6px 14px; }
  .atouts li { padding: 10px 6px; }
  .atouts li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .bouton { width: 100%; padding: 0 20px; letter-spacing: .06em; }
}

/* ── Sections ──────────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section.sombre { background: var(--fond-2); border-top: 1px solid rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .04); }
.surtitre { display: block; color: var(--or); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.entete { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.entete p { color: var(--texte-2); font-size: 1.06rem; }
.filet { width: 96px; height: 2px; margin: 0 auto 18px; border: 0; background: linear-gradient(90deg, transparent, var(--or), transparent); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .grille-3, .grille-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grille-3, .grille-4 { grid-template-columns: 1fr; } }

.carte {
  background: linear-gradient(180deg, var(--panneau-2), var(--panneau));
  border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px 24px;
}
.carte h3 { color: #fff; }
.carte p { color: var(--texte-2); margin: 0; }
.carte .pic { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(212, 169, 68, .1); border: 1px solid rgba(212, 169, 68, .28); color: var(--or); }
.carte .pic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Factions */
.factions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.faction { position: relative; overflow: hidden; border-radius: 10px; padding: 34px 30px 30px; border: 1px solid var(--bord); background: var(--panneau); }
.faction::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.faction.fnorj::before { background: radial-gradient(ellipse 80% 70% at 0% 0%, rgba(63, 120, 200, .26), transparent 70%); }
.faction.naljir::before { background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(190, 62, 48, .26), transparent 70%); }
.faction.fnorj { border-color: rgba(79, 143, 214, .35); }
.faction.naljir { border-color: rgba(201, 80, 63, .35); }
.faction .embleme { width: 64px; height: 76px; margin-bottom: 14px; position: relative; }
.faction h3 { font-size: 1.7rem; margin-bottom: .2em; position: relative; }
.faction .peuple { position: relative; color: var(--texte-3); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.faction p { position: relative; color: var(--texte-2); margin: 0; }
.faction.fnorj h3 { color: #9cc4f0; }
.faction.naljir h3 { color: #f0a497; }
@media (max-width: 760px) { .factions { grid-template-columns: 1fr; } }

/* Classes */
.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.classe {
  --c: #c9d2dc; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panneau-2), var(--panneau));
  border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px 20px 20px;
}
.classe::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); opacity: .9; }
.classe::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 90% 60% at 50% 0%, var(--c), transparent 70%); opacity: .07; pointer-events: none; }
.classe .ico { width: 44px; height: 44px; color: var(--c); margin-bottom: 12px; }
.classe .ico svg { width: 44px; height: 44px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.classe h3 { color: var(--c); font-size: 1.15rem; margin-bottom: .15em; }
.classe .role { color: var(--texte-3); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.classe p { color: var(--texte-2); font-size: .94rem; margin: 0; }
.barbare { --c: #c69b6d; } .sorcier { --c: #3fc7eb; } .guerisseur { --c: #f2e8cf; } .chaman { --c: #3d8ee6; }
.necromancien { --c: #5fd068; } .paladin { --c: #b0407a; } .voleur { --c: #fff468; } .pistolero { --c: #e0823c; } .magesang { --c: #e2506f; } .chasseur { --c: #a8cf62; }
@media (max-width: 1040px) { .classes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .classes { grid-template-columns: 1fr; } }

/* Actualités */
.actus { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.actu { display: flex; flex-direction: column; background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; }
.actu .img { aspect-ratio: 16 / 9; background: var(--panneau-2); overflow: hidden; }
.actu .img img { width: 100%; height: 100%; object-fit: cover; }
.actu .corps { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.actu .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .78rem; color: var(--texte-3); }
.actu .etiquette { color: var(--or); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.actu h3 { font-size: 1.08rem; color: #fff; margin-bottom: .4em; }
.actu p { color: var(--texte-2); font-size: .93rem; margin: 0; }
.actu .suite { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: .9rem; }
.actus-etat { text-align: center; color: var(--texte-2); padding: 26px; border: 1px dashed var(--bord-2); border-radius: var(--rayon); }
.actus-note { text-align: center; color: var(--texte-3); font-size: .85rem; margin-top: 16px; }
.squelette .img, .squelette .ligne { background: linear-gradient(90deg, #16202b, #1c2834, #16202b); background-size: 200% 100%; animation: luit 1.6s ease-in-out infinite; }
.squelette .ligne { height: 12px; border-radius: 4px; margin: 8px 0; }
@keyframes luit { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .squelette .img, .squelette .ligne { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 1040px) { .actus { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .actus { grid-template-columns: 1fr; } }

/* Appel à rejoindre */
.rejoindre { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: stretch; }
.etapes { list-style: none; counter-reset: e; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.etapes li::before {
  content: counter(e); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titre); font-weight: 700; font-size: 1.15rem; color: var(--or-clair);
  border: 1px solid rgba(212, 169, 68, .5); background: rgba(212, 169, 68, .08);
}
.etapes strong { display: block; color: #fff; }
.etapes span { color: var(--texte-2); font-size: .95rem; }
.carte-discord { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; background: linear-gradient(160deg, rgba(88, 101, 242, .16), rgba(19, 28, 38, .9) 60%); border-color: rgba(88, 101, 242, .35); }
.carte-discord svg.grand { width: 52px; height: 52px; fill: #8b96f8; }
.bouton.discord { background: #5865f2; color: #fff; border-color: #6c78f5; font-family: var(--corps); letter-spacing: .02em; text-transform: none; font-size: 1rem; min-height: 48px; padding: 0 24px; }
.bouton.discord:hover { filter: brightness(1.1); color: #fff; }
@media (max-width: 860px) { .rejoindre { grid-template-columns: 1fr; } }

/* ── Formulaire alpha ──────────────────────────────────────────── */
.mise-alpha { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; margin-top: -120px; position: relative; z-index: 2; }
@media (max-width: 920px) { .mise-alpha { grid-template-columns: 1fr; margin-top: -80px; } }
.formulaire { background: rgba(19, 28, 38, .97); border: 1px solid var(--bord-2); border-radius: 12px; padding: 34px 34px 30px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
@media (max-width: 560px) { .formulaire { padding: 24px 18px 22px; } }
.formulaire h2 { font-size: 1.6rem; }
.champ { margin-bottom: 18px; }
.champ label, .legende { display: block; font-weight: 600; margin-bottom: 6px; color: #f1f4f7; font-size: .95rem; }
.champ .aide { display: block; color: var(--texte-3); font-size: .84rem; margin-top: 5px; }
.opt { color: var(--texte-3); font-weight: 400; font-size: .85rem; }
input[type="email"], input[type="text"], select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--bord-2);
  background: var(--champ); color: var(--texte); font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texte-2) 50%), linear-gradient(135deg, var(--texte-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input::placeholder { color: #7d8b9a; }
input:focus, select:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(212, 169, 68, .2); }
[aria-invalid="true"] { border-color: var(--erreur) !important; }
.msg-champ { display: block; color: var(--erreur); font-size: .86rem; margin-top: 6px; }
.msg-champ:empty { display: none; }
fieldset { border: 1px solid var(--bord); border-radius: 10px; padding: 18px 18px 4px; margin: 6px 0 20px; }
legend { padding: 0 8px; font-weight: 700; color: #f1f4f7; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .deux { grid-template-columns: 1fr; } }
.note-config { color: var(--texte-2); font-size: .9rem; margin: 0 0 14px; }
.b-detecter { background: transparent; border: 1px solid var(--bord-2); color: var(--texte-2); border-radius: 6px; padding: 7px 12px; font: inherit; font-size: .85rem; cursor: pointer; margin: -4px 0 16px; }
.b-detecter:hover { color: #fff; border-color: var(--lame); }
.case { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 4px 0 22px; color: var(--texte-2); font-size: .93rem; }
.case input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--or); }
.pot { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.alerte { display: none; margin: 0 0 18px; padding: 12px 14px; border-radius: 6px; border: 1px solid rgba(240, 138, 124, .5); background: rgba(201, 80, 63, .12); color: #ffd9d3; }
.alerte.vue { display: block; }
.envoi { width: 100%; }
.roue { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(27, 20, 7, .3); border-top-color: var(--sur-or); animation: tourne .8s linear infinite; display: none; }
.envoi.occupe .roue { display: inline-block; }
@keyframes tourne { to { transform: rotate(360deg); } }
.merci { display: none; text-align: center; padding: 18px 6px 6px; }
.merci.vue { display: block; }
.merci .sceau { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(71, 194, 122, .5); background: rgba(71, 194, 122, .1); color: var(--vert); }
.merci .sceau svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.merci p.grand { font-size: 1.12rem; color: #fff; max-width: 520px; margin: 0 auto 1em; }
.merci p { color: var(--texte-2); }
.cote .carte { padding: 22px 22px; margin-bottom: 18px; }
.cote h3 { font-size: 1.1rem; }
.cote ol { margin: 0; padding-left: 20px; color: var(--texte-2); }
.cote li { margin-bottom: 8px; }

/* ── Téléchargement ────────────────────────────────────────────── */
.dl-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 18px auto 0; color: #c3ccd5; font-size: .86rem; }
.dl-meta b { color: #fff; font-weight: 600; }
.empreinte { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 10px auto 0; font-size: .8rem; color: var(--texte-3); max-width: 100%; }
.empreinte code { font-family: Consolas, "Cascadia Mono", Menlo, monospace; color: #cfd8e1; background: rgba(9, 13, 19, .72); border: 1px solid rgba(255, 255, 255, .08); border-radius: 4px; padding: 3px 8px; word-break: break-all; max-width: 100%; }
.b-copier { background: transparent; border: 1px solid var(--bord-2); color: var(--texte-2); border-radius: 4px; padding: 3px 10px; cursor: pointer; font: inherit; font-size: .8rem; }
.b-copier:hover { color: #fff; border-color: var(--lame); }
.dl-etat { min-height: 1.4em; margin-top: 10px; color: var(--or-clair); font-size: .9rem; }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.trois .carte { position: relative; padding-top: 30px; }
.trois .num { position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--titre); font-weight: 700; color: var(--sur-or); background: linear-gradient(180deg, #e2bb5c, #c39434); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
@media (max-width: 860px) { .trois { grid-template-columns: 1fr; gap: 30px; } }

/* Illustration SmartScreen (schéma, pas une capture). */
.ss-etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .ss-etapes { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.ss-etape figcaption { margin-top: 12px; color: var(--texte-2); font-size: .95rem; }
.ss-etape figcaption b { color: #fff; }
.ss-etape { margin: 0; }
.ss-fen {
  position: relative; aspect-ratio: 4 / 3.1; border-radius: 6px; overflow: hidden;
  background: #1a5aa6; color: #fff; padding: 18px 18px 0; display: flex; flex-direction: column;
  font-family: "Segoe UI", system-ui, sans-serif; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .12);
}
.ss-fen .x { position: absolute; right: 12px; top: 8px; font-size: 14px; opacity: .8; }
.ss-fen .t { font-size: clamp(1rem, .9rem + .5vw, 1.3rem); font-weight: 300; line-height: 1.2; margin: 6px 0 10px; }
.ss-fen .p { font-size: .76rem; line-height: 1.45; opacity: .92; margin: 0 0 8px; }
.ss-fen .lien { font-size: .76rem; text-decoration: underline; opacity: .95; align-self: flex-start; }
.ss-fen .info { font-size: .74rem; line-height: 1.6; opacity: .92; margin: 4px 0 0; }
.ss-fen .info span { display: inline-block; min-width: 64px; opacity: .8; }
.ss-fen .pied { margin-top: auto; margin-left: -18px; margin-right: -18px; padding: 12px 14px; display: flex; justify-content: flex-end; gap: 8px; background: rgba(0, 0, 0, .14); }
.ss-fen .btn { font-size: .74rem; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .7); min-width: 92px; text-align: center; }
.ss-fen .halo { outline: 3px solid var(--or-clair); outline-offset: 3px; border-radius: 2px; box-shadow: 0 0 0 8px rgba(236, 208, 138, .18); }
.ss-fen .curseur { position: absolute; width: 18px; height: 18px; }
.ss-legende { text-align: center; color: var(--texte-3); font-size: .85rem; margin-top: 18px; }

.config { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .config { grid-template-columns: 1fr; } }
.config table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.config th, .config td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--bord); vertical-align: top; }
.config th { width: 38%; color: var(--texte-3); font-weight: 600; padding-right: 12px; }
.config td { color: var(--texte); }
.config tr:last-child th, .config tr:last-child td { border-bottom: 0; }
.config .carte h3 { display: flex; align-items: center; gap: 10px; }
.puce { font-family: var(--corps); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid; }
.puce.min { color: var(--lame); border-color: rgba(169, 189, 209, .4); }
.puce.cons { color: var(--or); border-color: rgba(212, 169, 68, .5); }

/* ── Pages de texte (FAQ, légal) ───────────────────────────────── */
.texte { padding: 56px 0 84px; }
.texte h2 { font-size: 1.5rem; margin-top: 1.8em; color: #fff; }
.texte h2:first-child { margin-top: 0; }
.texte h3 { font-size: 1.12rem; margin-top: 1.4em; color: #fff; }
.texte p, .texte li { color: var(--texte-2); }
.texte ul { padding-left: 22px; }
.texte li { margin-bottom: .45em; }
.texte strong { color: #fff; }
.texte table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.texte th, .texte td { text-align: left; padding: 10px 12px; border: 1px solid var(--bord); vertical-align: top; color: var(--texte-2); }
.texte th { background: var(--panneau); color: #fff; }
.tableau { overflow-x: auto; }
.maj { color: var(--texte-3); font-size: .88rem; }
.a-remplir { background: rgba(212, 169, 68, .16); color: var(--or-clair); border: 1px dashed var(--or); border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.avis {
  border: 1px solid rgba(212, 169, 68, .55); background: rgba(212, 169, 68, .08); border-radius: 8px;
  padding: 14px 16px; margin: 0 0 28px; color: var(--or-clair);
}
.avis strong { color: var(--or-clair); }
.faq details { background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative; font-weight: 600; color: #fff; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--or); border-bottom: 2px solid var(--or); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 20px 6px; }
.faq details p, .faq details li { color: var(--texte-2); }
.aide-carte { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.aide-carte p { margin: 0; }

/* 404 */
.perdu { text-align: center; }
.perdu .code { font-family: var(--titre); font-size: clamp(4rem, 3rem + 6vw, 7.5rem); line-height: 1; color: var(--or); text-shadow: 0 4px 30px rgba(0, 0, 0, .6); margin-bottom: 8px; }

/* ── Pied de page ──────────────────────────────────────────────── */
.pied { background: #080c12; border-top: 1px solid rgba(255, 255, 255, .06); padding: 54px 0 30px; color: var(--texte-3); font-size: .92rem; }
.pied .colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.pied h2 { font-family: var(--corps); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-2); margin-bottom: 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 8px; }
.pied a { color: var(--texte-2); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied .logo-pied { width: 150px; margin-bottom: 12px; }
.pied .bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .06); margin-top: 36px; padding-top: 20px; font-size: .84rem; }
.pied .discord-lien { display: inline-flex; align-items: center; gap: 8px; }
.pied .discord-lien svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 860px) { .pied .colonnes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pied .colonnes { grid-template-columns: 1fr; } }

/* ── Emplacements d'images remplaçables (medias/) ─────────────────
   L'image n'apparaît qu'une fois CHARGÉE ; sinon le fond de remplacement reste :
   jamais d'image cassée. */
.media { position: relative; overflow: hidden; background: var(--panneau-2); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.media.charge img { opacity: 1; }
.media .repli { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 18px; }
.media.charge .repli { visibility: hidden; }

/* Classes : carte image (emplacement classe-*) */
.classe { padding: 0; display: flex; flex-direction: column; }
.classe::after { z-index: 1; }
.classe .media { aspect-ratio: 4 / 5; border-bottom: 1px solid var(--bord); }
.classe .media .repli { background:
    radial-gradient(ellipse 75% 55% at 50% 38%, var(--c), transparent 72%) ,
    linear-gradient(180deg, #1c2733, #0f161f); }
.classe .media .repli::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 22, 31, .78), rgba(15, 22, 31, .9)); }
.classe .media .repli > * { position: relative; }
.classe .media .repli svg { width: 84px; height: 84px; stroke: var(--c); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .9; filter: drop-shadow(0 0 18px rgba(0, 0, 0, .5)); }
.classe .media .repli span { font-family: var(--titre); font-size: 1.5rem; font-weight: 700; color: var(--c); letter-spacing: .04em; }
.classe .media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(13, 19, 27, .85)); pointer-events: none; }
.classe .txt { padding: 16px 18px 20px; position: relative; z-index: 2; }
.classe .ico { display: none; }

/* JcJ : Îles du Destin et Arène de sang */
.jcj { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.jcj + .jcj { margin-top: 84px; }
.jcj.inverse .media-cadre { order: 2; }
.media-cadre { border-radius: 10px; overflow: hidden; border: 1px solid var(--bord-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.media-cadre .media { aspect-ratio: 16 / 9; }
.media-cadre .repli { background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(212, 169, 68, .16), transparent 70%),
    linear-gradient(160deg, #1b2633, #0d141c); }
.media-cadre.sang .repli { background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(201, 80, 63, .2), transparent 70%),
    linear-gradient(160deg, #24191c, #0d141c); }
.media-cadre .repli svg { width: 74px; height: 74px; stroke: var(--or); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.media-cadre.sang .repli svg { stroke: #e58a7b; }
.media-cadre .repli span { font-family: var(--titre); font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); color: #f3e6c4; letter-spacing: .05em; }
.media-cadre.sang .repli span { color: #f6d3cc; }
.faits { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.faits li { position: relative; padding-left: 26px; color: var(--texte-2); }
.faits li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--or); opacity: .85; }
.faits b { color: #fff; font-weight: 600; }
.chiffres { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 6px; }
.chiffres span { border: 1px solid rgba(212, 169, 68, .45); color: var(--or-clair); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .88rem; letter-spacing: .04em; background: rgba(212, 169, 68, .06); }
.jcj p { color: var(--texte-2); }
@media (max-width: 900px) { .jcj { grid-template-columns: 1fr; gap: 24px; } .jcj.inverse .media-cadre { order: 0; } .jcj + .jcj { margin-top: 56px; } }

/* La couleur du paladin (launcher : #b0407a) est trop sombre pour du texte : teinte éclaircie. */
.paladin h3, .paladin .media .repli span { color: #dc7aae; }
.paladin .media .repli svg { stroke: #dc7aae; }

/* Troisième vignette SmartScreen : l'installation (fenêtre aux couleurs de Novaldir). */
.ss-fen.ss-install { background: linear-gradient(180deg, #18232f, #0e151d); align-items: center; justify-content: center; text-align: center; padding: 18px; }
.ss-fen.ss-install img { width: 56px; height: 56px; margin-bottom: 6px; }
.ss-fen.ss-install .t { margin: 4px 0 12px; }
.barre-inst { width: 78%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 10px; }
.barre-inst span { display: block; width: 62%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--or-sombre), var(--or)); }

/* ══ SITE2 : page d'accueil ═══════════════════════════════════════════
   Héros en diaporama, JcJ à fond perdu, vitrine des classes, factions,
   galerie « Le monde » + visionneuse, actualités, appel final.
   Effets doux : fondus et zoom lent, aucun grain, rien ne clignote ;
   « prefers-reduced-motion » : ni défilement automatique ni zoom. */

/* ── Héros ─────────────────────────────────────────────────────────── */
.heros {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - var(--barre-h));
  min-height: calc(100svh - var(--barre-h));
  display: flex; flex-direction: column; justify-content: center;
  background: #080c11;
}
.heros-fonds { position: absolute; inset: 0; z-index: -2; }
.fond { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.4s ease; }
.fond.actif { opacity: 1; z-index: 2; }
.fond.sortant { opacity: 1; z-index: 1; transition: none; }
.fond img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  opacity: 0; transition: opacity .9s ease; transform-origin: 60% 45%;
}
.fond.charge img { opacity: 1; }
.fond.actif img, .fond.sortant img { animation: zoom-lent 11s ease-out both; will-change: transform; }
.heros.hors-vue .fond img { animation-play-state: paused; }
@keyframes zoom-lent { from { transform: scale(1.001); } to { transform: scale(1.07); } }
/* fonds de remplacement (image absente ou pas encore chargée) */
.fond.d-arene { background: radial-gradient(ellipse 70% 80% at 70% 50%, rgba(170, 62, 34, .5), transparent 70%), linear-gradient(180deg, #1d0f0b, #0b0a0b); }
.fond.d-arene img { transform-origin: 62% 42%; }
.fond.d-iles { background: radial-gradient(ellipse 70% 80% at 70% 40%, rgba(70, 130, 110, .4), transparent 70%), linear-gradient(180deg, #0e1a1c, #090d12); }
.fond.d-iles img { transform-origin: 45% 55%; }
.fond.d-paladin { background: radial-gradient(ellipse 42% 70% at 72% 45%, rgba(160, 34, 26, .55), transparent 72%), linear-gradient(90deg, #07080b 0%, #120707 55%, #0a0506 100%); }
.fond.d-factions { background: radial-gradient(ellipse 50% 70% at 0% 50%, rgba(63, 120, 200, .38), transparent 70%), radial-gradient(ellipse 50% 70% at 100% 50%, rgba(190, 62, 48, .38), transparent 70%), #10141a; }
.fond.d-factions img { object-position: 50% 30%; transform-origin: 50% 35%; }
/* portrait de classe : 800 × 1000 à droite, jamais étiré, fondu dans le fond teinté */
.fond.portrait img {
  left: auto; right: max(0px, calc(50% - 700px)); width: auto; max-width: 62%; aspect-ratio: 4 / 5;
  object-position: 50% 20%; transform-origin: 50% 30%;
  -webkit-mask-image: radial-gradient(ellipse 50% 56% at 50% 44%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 56% at 50% 44%, #000 50%, transparent 100%);
}
.fond::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 10, 15, .9) 0%, rgba(7, 10, 15, .78) 32%, rgba(7, 10, 15, .4) 56%, rgba(7, 10, 15, 0) 78%);
}
.fond.d-factions::after { background: linear-gradient(90deg, rgba(7, 10, 15, .62) 0%, rgba(7, 10, 15, .58) 36%, rgba(7, 10, 15, .22) 58%, rgba(7, 10, 15, 0) 74%); }
.heros::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 10, 15, .5) 0%, rgba(7, 10, 15, 0) 20%, rgba(7, 10, 15, 0) 72%, var(--fond) 100%);
}
.heros-corps { position: relative; width: 100%; max-width: 1360px; margin: 0 auto; padding: clamp(28px, 6vh, 72px) 28px 116px; }
.heros-logo { margin: 0 0 clamp(8px, 2.2vh, 24px); line-height: 0; }
.heros-logo img { width: clamp(190px, 17vw, 300px); height: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .6)); }
.diapos { display: grid; max-width: 760px; }
.diapo { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s; }
.diapo.actif { opacity: 1; visibility: visible; transform: none; transition: opacity .9s ease .3s, transform .9s ease .3s, visibility 0s linear 0s; }
.diapo .surtitre { color: var(--or-clair); text-shadow: 0 1px 8px rgba(0, 0, 0, .85); }
.diapo-titre { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4.2rem); line-height: 1.05; color: #fff; margin: 0 0 .35em; text-shadow: 0 3px 24px rgba(0, 0, 0, .75); }
.diapo p { font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem); color: #e8edf2; max-width: 580px; margin: 0 0 1.5em; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.heros .actions { justify-content: flex-start; }
.heros .bouton { padding: 0 30px; }
.heros .sous-bouton a { white-space: nowrap; }
.bouton { text-align: center; }
.heros .sous-bouton { margin-top: 20px; max-width: 660px; color: #c9d2db; text-shadow: 0 1px 8px rgba(0, 0, 0, .85); }
.heros-nav { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 10px; }
.heros-nav[hidden] { display: none; }
.h-fleche {
  width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(8, 12, 18, .55); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.h-fleche:hover { background: rgba(212, 169, 68, .18); border-color: var(--or); }
.h-fleche svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h-pause .i-lecture { display: none; }
.h-pause[aria-pressed="true"] .i-pause { display: none; }
.h-pause[aria-pressed="true"] .i-lecture { display: block; fill: currentColor; stroke: none; }
.heros.fige .h-pause { display: none; }
.h-puces { display: flex; gap: 6px; padding: 0 6px; }
.h-puce { width: 58px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; align-items: center; }
.h-puce span { position: relative; display: block; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .3); box-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.h-puce:hover span { background: rgba(255, 255, 255, .55); }
.h-puce[aria-current="true"] span { background: rgba(255, 255, 255, .62); }
.h-puce[aria-current="true"] span::after { content: ""; position: absolute; inset: 0; background: var(--or); transform-origin: left center; animation: progres 7s linear forwards; }
.heros.en-pause .h-puce span::after { animation-play-state: paused; }
@keyframes progres { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .fond.actif img, .fond.sortant img { animation: none; }
  .h-puce[aria-current="true"] span::after { animation: none; transform: none; }
  .diapo, .diapo.actif { transform: none; }
}
@media (max-width: 760px) {
  .heros { justify-content: flex-end; }
  .heros-corps { padding: 28px 18px 92px; }
  .fond::after { display: none; }
  .heros::after {
    background: linear-gradient(180deg, rgba(7, 10, 15, .4) 0%, rgba(7, 10, 15, .2) 26%, rgba(7, 10, 15, .78) 56%, rgba(7, 10, 15, .94) 80%, var(--fond) 100%);
  }
  .fond.portrait img {
    left: 0; right: 0; width: 100%; max-width: none; height: 72%; aspect-ratio: auto; object-position: 50% 12%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .heros-logo img { width: 170px; }
  .heros-nav { bottom: 16px; gap: 4px; }
  .h-puce { width: 34px; }
  .h-fleche { width: 40px; height: 40px; }
}

/* ── JcJ : bandes à fond perdu ─────────────────────────────────────── */
.jcj-section { padding: 96px 0 24px; background: linear-gradient(180deg, var(--fond) 0%, #0c1219 100%); }
.jcj-section .entete { margin-bottom: 16px; }
.bande { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(560px, 80vh, 860px); padding: 64px 0; }
.bande-media {
  position: absolute; top: 0; bottom: 0; left: 0; width: 68%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 98%), linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 42%, transparent 98%), linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-composite: intersect;
}
.bande.inverse .bande-media {
  left: auto; right: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 42%, transparent 98%), linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 42%, transparent 98%), linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
}
.bande-media .media { position: absolute; inset: 0; background: transparent; }
.bande-media .repli { background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(212, 169, 68, .16), transparent 70%), linear-gradient(160deg, #1b2633, #0d141c); }
.bande.sang .bande-media .repli { background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(201, 80, 63, .22), transparent 70%), linear-gradient(160deg, #24191c, #0d141c); }
.bande-media .repli svg { width: 74px; height: 74px; stroke: var(--or); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.bande.sang .bande-media .repli svg { stroke: #e58a7b; }
.bande-media .repli span { font-family: var(--titre); font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); color: #f3e6c4; letter-spacing: .05em; }
.bande .conteneur { display: grid; grid-template-columns: 1fr 1fr; max-width: 1320px; }
.bande-txt { grid-column: 2; position: relative; padding-left: 36px; }
.bande.inverse .bande-txt { grid-column: 1; padding-left: 0; padding-right: 36px; }
.bande-txt::before { content: ""; position: absolute; inset: -60px -80px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(10, 15, 22, .82), rgba(10, 15, 22, 0)); }
.bande-titre { font-size: clamp(2rem, 1.3rem + 2.3vw, 3.4rem); line-height: 1.08; color: #fff; margin-bottom: .3em; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.bande-txt p { color: #c7d1db; font-size: 1.04rem; }
.bande-txt .faits li { color: #c7d1db; }
@media (max-width: 900px) {
  .jcj-section { padding-top: 64px; }
  .bande { display: block; min-height: 0; padding: 0 0 52px; }
  .bande-media, .bande.inverse .bande-media {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .bande .conteneur { display: block; }
  .bande-txt, .bande.inverse .bande-txt { padding: 0; margin-top: -18px; }
  .bande-txt::before { display: none; }
}

/* ── Classes : vitrine ─────────────────────────────────────────────── */
.classes-section { position: relative; overflow: hidden; background: var(--fond-2); border-top: 1px solid rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .04); }
.vitrine { position: relative; }
.onglets { display: none; }
/* sans JavaScript : les 10 classes en grille, toutes lisibles */
.fiches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fiche { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--panneau-2), var(--panneau)); border: 1px solid var(--bord); border-radius: var(--rayon); }
.fiche::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2; background: var(--c); opacity: .9; }
.fiche-portrait .media { aspect-ratio: 4 / 5; }
.fiche-portrait .media img { object-position: 50% 20%; }
.fiche .media .repli, .onglet .repli { background: radial-gradient(ellipse 75% 55% at 50% 38%, var(--c), transparent 72%), linear-gradient(180deg, #1c2733, #0f161f); }
.fiche .media .repli::before, .onglet .repli::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 22, 31, .78), rgba(15, 22, 31, .9)); }
.fiche .media .repli > *, .onglet .repli > * { position: relative; }
.fiche .media .repli svg, .onglet .repli svg { width: 84px; height: 84px; stroke: var(--c); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.fiche .media .repli span { font-family: var(--titre); font-size: 1.5rem; font-weight: 700; color: var(--c); letter-spacing: .04em; }
.fiche-txt { padding: 16px 18px 20px; }
.fiche .role { color: var(--texte-3); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
.fiche h3 { color: var(--c); font-size: 1.3rem; margin-bottom: .3em; }
.fiche-acc { color: var(--texte-2); font-size: .94rem; }
.sorts-titre { font-family: var(--corps); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--or); margin: 16px 0 10px; }
.sorts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sorts li { position: relative; display: grid; gap: 1px; padding-left: 18px; font-size: .9rem; line-height: 1.45; }
.sorts li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--c); }
.sorts b { color: #fff; font-weight: 600; }
.sorts span { color: var(--texte-2); }
.paladin .sorts li::before { background: #dc7aae; }
/* avec JavaScript : sélecteur en vignettes + grande fiche, façon page des classes */
.vitrine.js .onglets { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; max-width: 1120px; margin: 0 auto 40px; }   /* 10 classes (chasseur) */
.onglet { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--texte-2); font: inherit; cursor: pointer; }
.onglet .vign { width: 100%; max-width: 92px; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .16); background: var(--panneau-2); transition: border-color .25s, box-shadow .25s, transform .25s; }
.onglet .vign img { object-position: 50% 0%; transform: scale(1.55); transform-origin: 50% 16%; }
.onglet .repli { padding: 0; }
.onglet .repli svg { width: 46%; height: 46%; }
.onglet .o-nom { font-family: var(--titre); font-weight: 700; font-size: .92rem; line-height: 1.2; text-align: center; color: var(--texte-2); transition: color .25s; }
.onglet:hover .vign { border-color: rgba(255, 255, 255, .45); }
.onglet:hover .o-nom { color: #fff; }
.onglet[aria-selected="true"] .vign { border-color: var(--c); box-shadow: 0 0 0 3px rgba(0, 0, 0, .55), 0 0 26px var(--c); transform: translateY(-3px); }
.onglet[aria-selected="true"] .o-nom { color: #fff; }
.onglet.paladin[aria-selected="true"] .vign { border-color: #dc7aae; box-shadow: 0 0 0 3px rgba(0, 0, 0, .55), 0 0 26px #b0407a; }
.vitrine.js .fiches { display: block; }
.vitrine.js .fiche { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; overflow: visible; background: none; border: 0; }
.vitrine.js .fiche[hidden] { display: none; }
.vitrine.js .fiche::before { display: none; }
.vitrine.js .fiche:focus-visible { outline-offset: 8px; }
.vitrine.js .fiche-portrait { position: relative; max-width: 520px; width: 100%; justify-self: end; }
.vitrine.js .fiche-portrait::before { content: ""; position: absolute; inset: -14% -18%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .2; pointer-events: none; }
.vitrine.js .fiche-portrait .media { border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.vitrine.js .fiche-txt { padding: 0; max-width: 600px; }
.vitrine.js .fiche .role { font-size: .84rem; }
.vitrine.js .fiche h3 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.6rem); margin-bottom: .25em; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.vitrine.js .fiche-acc { font-size: 1.12rem; color: #dfe6ec; }
.vitrine.js .sorts-titre { margin-top: 26px; }
.vitrine.js .sorts { grid-template-columns: 1fr 1fr; gap: 12px; }
.vitrine.js .sorts li { padding: 12px 14px 13px 16px; border: 1px solid var(--bord); border-left: 3px solid var(--c); border-radius: 6px; background: rgba(255, 255, 255, .025); }
.vitrine.js .fiche.paladin .sorts li { border-left-color: #dc7aae; }
.vitrine.js .sorts li::before { display: none; }
.vitrine.js .sorts b { font-family: var(--titre); font-size: 1.02rem; }
.fiche.entre .fiche-portrait, .fiche.entre .fiche-txt { animation: apparait .55s ease both; }
.fiche.entre .fiche-txt { animation-delay: .08s; }
@keyframes apparait { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fiche.entre .fiche-portrait, .fiche.entre .fiche-txt { animation: none; } }
@media (max-width: 1040px) {
  .fiches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vitrine.js .onglets { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 620px; gap: 12px 10px; }   /* 10 classes : 5 + 5 */
}
@media (max-width: 820px) {
  .vitrine.js .fiche { grid-template-columns: 1fr; }
  .vitrine.js .fiche-portrait { justify-self: center; max-width: 380px; }
  .vitrine.js .sorts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .fiches { grid-template-columns: 1fr; }
  .onglet .o-nom { font-size: .8rem; }
  .vitrine.js .onglets { gap: 10px 6px; }
}

/* ── Factions à fond perdu ─────────────────────────────────────────── */
.factions-fp {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(660px, 96vh, 1020px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 80px 0 72px;
  background: radial-gradient(ellipse 50% 70% at 0% 60%, rgba(63, 120, 200, .3), transparent 70%), radial-gradient(ellipse 50% 70% at 100% 60%, rgba(190, 62, 48, .3), transparent 70%), #10151c;
}
.fp-media { position: absolute; inset: 0; z-index: -2; }
.fp-media .media { position: absolute; inset: 0; background: transparent; }
.fp-media img { object-position: 50% 30%; }
.factions-fp::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 30% 30% at 50% 21%, rgba(9, 13, 19, .7), rgba(9, 13, 19, 0) 100%),
    linear-gradient(180deg, var(--fond) 0%, rgba(11, 17, 24, 0) 15%, rgba(11, 17, 24, 0) 50%, rgba(11, 17, 24, .8) 78%, var(--fond) 100%);
}
.fp-tete { text-align: center; max-width: 660px; }
.fp-tete h2 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.fp-tete p { color: #e6ecf1; font-size: 1.06rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .95); }
.fp-camps { display: flex; justify-content: space-between; gap: 28px; max-width: 1400px; }
.camp {
  display: flex; gap: 18px; align-items: flex-start; max-width: 480px; padding: 24px 26px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 15, 22, .8), rgba(10, 15, 22, .92)); border: 1px solid; box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.camp.fnorj { border-color: rgba(79, 143, 214, .45); border-left: 3px solid #4f8fd6; }
.camp.naljir { border-color: rgba(201, 80, 63, .45); border-right: 3px solid #c9503f; flex-direction: row-reverse; text-align: right; }
.camp .embleme { width: 56px; height: 66px; flex: none; }
.camp h3 { font-size: 1.8rem; margin-bottom: .1em; }
.camp.fnorj h3 { color: #9cc4f0; }
.camp.naljir h3 { color: #f0a497; }
.camp .peuple { color: var(--texte-3); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.camp p { color: #cfd8e1; margin: 0; }
@media (max-width: 860px) {
  .factions-fp { min-height: 0; padding: 0 0 56px; justify-content: flex-start; gap: 26px; background: var(--fond); }
  .fp-media { position: relative; inset: auto; aspect-ratio: 1459 / 1027; background: radial-gradient(ellipse 50% 70% at 0% 60%, rgba(63, 120, 200, .3), transparent 70%), radial-gradient(ellipse 50% 70% at 100% 60%, rgba(190, 62, 48, .3), transparent 70%), #10151c; }
  .factions-fp::after { bottom: auto; aspect-ratio: 1459 / 1027; background: linear-gradient(180deg, var(--fond) 0%, rgba(11, 17, 24, 0) 12%, rgba(11, 17, 24, 0) 62%, var(--fond) 100%); }
  .fp-tete { margin-top: -36px; }
  .fp-camps { flex-direction: column; gap: 16px; }
  .camp, .camp.naljir { max-width: none; flex-direction: row; text-align: left; }
  .camp.naljir { border-right-width: 1px; border-left: 3px solid #c9503f; }
}
@media (max-width: 420px) { .camp { padding: 20px 18px; gap: 14px; } .camp .embleme { width: 44px; height: 52px; } }

/* ── Galerie « Le monde » + visionneuse ────────────────────────────── */
.galerie[hidden] { display: none; }
.galerie-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.g-item { position: relative; grid-column: span 2; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--bord); border-radius: 8px; overflow: hidden; background: var(--panneau-2); cursor: zoom-in; }
.g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease, transform .6s ease; }
.g-item.charge img { opacity: 1; }
.g-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(212, 169, 68, 0); transition: box-shadow .3s; pointer-events: none; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.04); }
.g-item:hover::after, .g-item:focus-visible::after { box-shadow: inset 0 0 0 2px rgba(212, 169, 68, .75); }
.n1 .g-item { grid-column: 2 / span 4; }
.n2 .g-item, .n4 .g-item { grid-column: span 3; }
.n3 .g-item:first-child { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.n5 .g-item:nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 700px) {
  .galerie-grille { grid-template-columns: 1fr 1fr; gap: 10px; }
  .galerie-grille .g-item, .galerie-grille.n3 .g-item:first-child, .galerie-grille.n5 .g-item:nth-child(-n+2) { grid-column: span 1; grid-row: auto; aspect-ratio: 16 / 9; }
  .galerie-grille.n1 .g-item:first-child, .galerie-grille.n3 .g-item:first-child, .galerie-grille.n5 .g-item:first-child { grid-column: 1 / -1; }
}
.visionneuse { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 7, 11, .95); color: #fff; overflow: hidden; }
.visionneuse[open] { display: grid; place-items: center; }
.visionneuse::backdrop { background: rgba(4, 7, 11, .7); }
html:has(.visionneuse[open]) { overflow: hidden; }
.vis-cadre { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 150px); }
.vis-cadre img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.vis-cadre figcaption { color: var(--texte-2); font-size: .9rem; letter-spacing: .08em; }
.vis-bouton { position: fixed; z-index: 2; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .26); background: rgba(10, 15, 22, .72); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.vis-bouton:hover { background: rgba(212, 169, 68, .2); border-color: var(--or); }
.vis-bouton svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vis-prec { left: 24px; top: 50%; transform: translateY(-50%); }
.vis-suiv { right: 24px; top: 50%; transform: translateY(-50%); }
.vis-fermer { top: 20px; right: 20px; }
.visionneuse.seule .vis-prec, .visionneuse.seule .vis-suiv { display: none; }
@media (max-width: 700px) {
  .vis-cadre { max-width: 100vw; padding: 0 8px; }
  .vis-cadre img { max-height: calc(100vh - 170px); }
  .vis-prec, .vis-suiv { top: auto; bottom: 22px; transform: none; }
  .vis-prec { left: calc(50% - 66px); }
  .vis-suiv { right: calc(50% - 66px); }
}

/* ── Actualités : une à la une + trois brèves ──────────────────────── */
.actus-section { background: linear-gradient(180deg, var(--fond) 0%, #0c1219 100%); }
.actu { transition: border-color .25s; }
.actu:hover { border-color: var(--bord-2); }
.actu .img img { transition: transform .6s ease; }
.actu:hover .img img { transform: scale(1.04); }
@media (min-width: 900px) {
  .actus-section .actus { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .actus-section .actu:first-child { grid-row: span 3; }
  .actus-section .actu:first-child .corps { padding: 22px 26px 26px; }
  .actus-section .actu:first-child h3 { font-size: 1.5rem; }
  .actus-section .actu:first-child p { font-size: 1rem; }
  .actus-section .actu:not(:first-child) { flex-direction: row; }
  .actus-section .actu:not(:first-child) .img { flex: 0 0 38%; aspect-ratio: auto; min-height: 132px; }
  .actus-section .actu:not(:first-child) .corps { padding: 14px 16px; }
  .actus-section .actu:not(:first-child) h3 { font-size: 1.02rem; }
  .actus-section .actu:not(:first-child) p { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ── Appel final : rejoindre l'alpha ───────────────────────────────── */
.appel { position: relative; isolation: isolate; overflow: hidden; padding: 110px 0 100px; background: radial-gradient(ellipse 50% 60% at 50% 32%, rgba(212, 169, 68, .12), transparent 70%), linear-gradient(180deg, #0c1219, var(--fond-2)); border-top: 1px solid rgba(255, 255, 255, .04); }
.appel-portrait {
  position: absolute; top: 0; bottom: 0; width: min(36vw, 600px); z-index: -1; opacity: .9;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.appel-portrait.gauche {
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 15%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 18%, #000 75%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 15%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 18%, #000 75%, transparent 100%);
}
.appel-portrait.droite {
  right: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 15%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 18%, #000 75%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 15%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 18%, #000 75%, transparent 100%);
}
.appel-portrait .media { position: absolute; inset: 0; background: transparent; }
.appel-portrait img { object-position: 50% 15%; }
.appel .conteneur { max-width: 980px; position: relative; }
.appel h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.appel .entete p { color: #d3dbe3; }
@media (max-width: 1180px) { .appel-portrait { opacity: .35; } }
@media (max-width: 760px) { .appel-portrait { display: none; } .appel { padding: 72px 0 64px; } }

/* Page Télécharger : grande icône du launcher au-dessus du bouton */
.dl-logo { display: block; width: clamp(130px, 14vw, 190px); height: auto; margin: 6px auto 18px; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .6)); }

/* Drapeaux des factions (loup des Fnorj, tigre à dents de sabre des Naljir) : debout dans
   la carte du camp, centrés verticalement sur le cadre. */
.camp { align-items: center; }
.camp .drapeau { width: 112px; height: auto; flex: none; align-self: center; margin: 0; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .65)); }
.fp-camps { margin-top: 0; }
@media (max-width: 860px) {
  .camp .drapeau { width: 92px; margin: 0; }
  .fp-camps { margin-top: 0; gap: 16px; }
}
@media (max-width: 420px) { .camp .drapeau { width: 72px; margin: 0; } }
