/* ==========================================================================
   Polices — Fira Sans (fichiers locaux, dossier assets/fonts)
   « Fira Sans SC » = version complète avec les vraies petites capitales
   ========================================================================== */
@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/FiraSans-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/FiraSans-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/FiraSans-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/FiraSans-400i-latin.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 700; font-style: italic; font-display: swap; src: url("../fonts/FiraSans-700i-latin.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans SC"; font-weight: 400; font-display: swap; src: url("../fonts/FiraSans-400-smcp.woff") format("woff"); }
@font-face { font-family: "Fira Sans SC"; font-weight: 600; font-display: swap; src: url("../fonts/FiraSans-600-smcp.woff") format("woff"); }

/* ==========================================================================
   Base
   Deux maquettes Figma : « Desktop + Tablette » (fluide, à partir de 768 px)
   et « Mobile » (dessinée à 480 px, en dessous de 768 px).
   ========================================================================== */
:root {
  --indigo: #25235B;
  --indigo-nuit: #161548;
  --or: #FBD071;
  --blanc: #FFFFFF;
  --sans: "Fira Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --sc: "Fira Sans SC", "Fira Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans); font-size: 24px; line-height: 32px;
  color: var(--indigo); background: var(--blanc);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-synthesis: none; overflow-x: hidden;
}
img { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, li, figure { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
br.m, .m-inl { display: none; }
@media (max-width: 1099px) { br.lg { display: none; } }   /* retour à la ligne réservé aux grands écrans */                       /* retours à la ligne propres au mobile */

/* ==========================================================================
   Accueil
   ========================================================================== */
.accueil {
  --par: 0px;   /* décalage de parallaxe, piloté par le script */
  position: relative; height: 900px; padding: 70px 24px 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center; color: var(--blanc); background: var(--indigo-nuit);
}
.accueil__fond { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* Comme sur la maquette (contrainte « Scale » + proportions verrouillées) : l'illustration occupe
   82,36 % de la largeur de l'écran, centrée, et sa hauteur suit (1290 × 1896). Elle rétrécit donc
   avec l'écran, au même rythme que le voile bleu se resserre : les nains restent visibles.
   Le haut reste calé à −144 px. Garde-fou : jamais moins de 710 px de large, pour que l'image
   couvre toujours le bas de l'accueil (900 px) sur les tablettes étroites. */
.accueil__illu {
  position: absolute; top: -144px; left: 50%; width: max(82.36%, 710px); height: auto; max-width: none;
  aspect-ratio: 1290 / 1896;
  transform: translate3d(-50%, var(--par), 0);
  filter: blur(2.5px);   /* effet « Glass » du voile sur la maquette : léger flou de l'illustration */
}
.accueil__fond::after {   /* voile bleu de la maquette */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgb(22, 21, 72) 10.01%, rgba(22, 21, 72, .9) 24.786%, rgba(22, 21, 72, .9) 75.272%, rgb(22, 21, 72) 90.289%);
}
.accueil > :not(.accueil__fond) { position: relative; }
.accueil__logo { width: 600px; max-width: 100%; height: auto; flex: none; }
.orn { flex: none; width: auto; }
.orn--1, .orn--3 { height: 48px; }
.orn--2 { height: 32px; }
.orn--3 { transform: rotate(180deg); }
.accueil__texte { max-width: 100%; }
.accueil__titre { font-size: 32px; line-height: 40px; font-weight: 700; text-transform: uppercase; }
.accueil__titre span { display: block; text-wrap: balance; }
.accueil__accroche { margin-top: 8px; font-size: 24px; line-height: 36px; font-style: italic; font-weight: 400; text-wrap: balance; }
.accueil__accroche .l1 { letter-spacing: -0.6px; }
.accueil__accroche strong { font-weight: 700; }

.btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 24px;
  font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border-radius: 16px; cursor: pointer; position: relative;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn svg { width: 24px; height: 24px; flex: none; }
.btn--verre {
  color: var(--blanc);
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btn--verre:hover { background: rgba(255, 255, 255, .3); }
.btn--indigo { color: var(--blanc); background: var(--indigo); border: 0; }
.btn--indigo:hover { background: #312e78; }
.btn--or {
  color: var(--indigo); background: var(--or); border: 0;
  box-shadow: 0 3px 3px rgba(0, 0, 0, .4);
}
/* survol : le bouton se rapproche du sol, son ombre se resserre */
.btn--or:hover { transform: translateY(2px); box-shadow: 0 1px 1.5px rgba(0, 0, 0, .4); }
.btn--or:active { transform: translateY(3px); box-shadow: 0 0 1px rgba(0, 0, 0, .4); }
/* clic : un reflet parcourt uniquement le bord du bouton, de gauche à droite (1,1 s) */
.btn--or::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2.5px; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 250, 225, .75) 46%, #fff 50%, rgba(255, 250, 225, .75) 54%, rgba(255, 255, 255, 0) 62%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn--or.scintille::after { animation: scintillement 1.1s cubic-bezier(.45, 0, .25, 1); }
@keyframes scintillement {
  0%   { background-position: 100% 0; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { background-position: 0% 0; opacity: 0; }
}

.accueil__note { font-size: 16px; line-height: 20px; font-style: italic; opacity: .75; }
.accueil__shadowdark { width: 340px; height: 140px; flex: none; }
.accueil__kickstarter {
  position: absolute !important; left: 0; bottom: 0; height: 104px; padding: 32px;
  display: flex; align-items: center; gap: 16px;
  font-size: 16px; font-weight: 600; line-height: 1; text-transform: uppercase; white-space: nowrap;
}
.accueil__kickstarter b { font-weight: 600; font-size: 20px; }   /* initiales et chiffres en grand, comme des petites capitales */
.accueil__kickstarter img { width: 32px; height: 36.5px; }

/* ==========================================================================
   Contenu
   ========================================================================== */
main { display: flex; flex-direction: column; gap: 72px; padding: 72px 0; }
.tiret { display: block; }                    /* le « — » sous les titres */

/* --- Cartes illustrées ---
   Trois couches :
   1. .carte__art : l'illustration (sans ses bords), qui glisse légèrement au défilement ;
   2. .carte::after : le bord texturé d'origine (bord déchiré + dégradé), posé en « 9 tranches »
      avec border-image : coins intacts, bords répétés à leur échelle d'origine, jamais rognés,
      quelle que soit la taille de la carte (960 × 450 sur ordinateur, plus haute sur mobile) ;
   3. le texte. */
.carte {
  --par: 0px;
  position: relative; isolation: isolate;
  width: 100%; max-width: 960px; height: 450px; padding: 24px 64px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--blanc);
}
.carte__fond { position: absolute; inset: 10px; z-index: -2; overflow: hidden; background: var(--indigo); }
.carte__art {
  position: absolute; inset: -14px; background: var(--art) center / cover no-repeat;
  transform: translate3d(0, var(--par), 0); will-change: transform;
}
.carte::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: 20px solid transparent;
  border-image: var(--bord) 40 / 20px / var(--debord) repeat;
}
.carte--bienvenue { --art: url("../img/carte-bienvenue-art.webp"); --bord: url("../img/carte-bienvenue-bord.webp"); --debord: 3px; }
.carte--avant { --art: url("../img/carte-avant-premiere-art.webp"); --bord: url("../img/carte-avant-premiere-bord.webp"); --debord: 0px; }
.carte__texte { flex: 1 1 0; min-width: 0; max-width: 800px; font-weight: 700; }
.carte__titre { font-size: 32px; line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.carte__texte .tiret { font-size: 32px; line-height: 1.2; }
.carte--avant .tiret { font-size: 24px; }
.carte__corps { font-size: 24px; line-height: 36px; font-style: italic; font-weight: 700; }

.bienvenue { display: flex; justify-content: center; padding: 0 24px; }

/* --- Titres de section (petites capitales) --- */
.titre {
  font-family: var(--sc); font-variant-caps: small-caps; font-weight: 600;
  font-size: 48px; line-height: 48px;
}
.titre + .tiret { font-family: var(--sc); font-weight: 600; font-size: 48px; line-height: 48px; }

/* --- Un Méga Donjon ---
   L'image garde toujours sa taille (720 × 860) : elle est centrée dans une zone large de 65,63 %,
   donc elle glisse hors de la page à gauche quand la fenêtre rétrécit. Le texte occupe les 60 % de droite. */
.donjon { overflow: hidden; }
.donjon__in { position: relative; display: grid; max-width: 1280px; margin: 0 auto; }
.donjon__zone { grid-area: 1 / 1; position: relative; width: 65.63%; height: 900px; align-self: center; pointer-events: none; transform: translateX(16px); }
.donjon__image { position: absolute; left: calc(50% - 420px); top: 0; width: 840px; height: 900px; max-width: none; }
.donjon__texte { grid-area: 1 / 1; position: relative; margin: 30px 0 30px 40%; padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.donjon__paras p + p { margin-top: 32px; }
.donjon .titre { font-size: 45px; }
.carte__texte { overflow-wrap: break-word; }
.donjon__paras strong { font-weight: 700; }
.donjon__cta { align-self: center; margin-top: 32px; }

/* --- Avant-première --- */
.avant { display: flex; flex-direction: column; align-items: center; padding: 0 32px; }
.avant__titre { width: 100%; max-width: 960px; }

/* --- Le kit gratuit --- */
.kit { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 0 64px; }
.kit__titre { font-size: 32px; line-height: 1.2; font-weight: 700; text-transform: uppercase; text-align: center; }
.kit__liste { list-style: none; width: 100%; max-width: 800px; }
.kit__liste li + li { margin-top: 32px; }
.kit__liste li + li p { margin-top: 3px; }
.kit__liste h3 { position: relative; margin-left: 36px; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.32px; text-transform: uppercase; }
.kit__liste h3::before { content: "•"; position: absolute; left: -24px; }
.kit__liste p { margin-top: 8px; }
.kit__liste li:first-child p { letter-spacing: -0.32px; }
.kit__liste em { text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; }

/* --- Aperçus du kit (carrousel) ---
   1 u = 1 px de la maquette quand l'aperçu central fait 860 px de large ; tout le carrousel se réduit avec lui. */
.apercus { position: relative; padding: 0 82px; overflow: hidden; }
.apercus__scene {
  --u: calc(100cqw / 860); --ecart: 56;
  container-type: inline-size; position: relative; width: 100%; max-width: 860px; aspect-ratio: 860 / 640; margin: 0 auto; touch-action: pan-y;
}
.diapo {
  position: absolute; top: calc(var(--top) * var(--u)); width: calc(var(--w) * var(--u)); height: auto; max-width: none;
  transition: left .45s ease, opacity .45s ease; -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
.diapo.centre { left: calc(50% - var(--w) * var(--u) / 2); opacity: 1; z-index: 1; }
.diapo.gauche { left: calc(0px - (var(--ecart) + var(--w)) * var(--u)); opacity: .25; cursor: pointer; }
.diapo.droite { left: calc(100% + var(--ecart) * var(--u)); opacity: .25; cursor: pointer; }
.diapo.hors-gauche { left: calc((100cqw - 100vw) / 2 - var(--w) * var(--u)); opacity: .25; }   /* juste hors de la page, à gauche */
.diapo.hors-droite { left: calc(100cqw + (100vw - 100cqw) / 2); opacity: .25; }               /* juste hors de la page, à droite */
.diapo.sans-anim { transition: none; }
.diapo.fantome { pointer-events: none; }
/* même ombre portée que celle, incluse dans l'image, de la double page */
.diapo.ombre { filter: drop-shadow(0 calc(4 * var(--u)) calc(7.5 * var(--u)) rgba(0, 0, 0, .31)); }

.apercus__legende { min-height: 24px; margin-top: 16px; padding: 0 24px; text-align: center; font-size: 20px; line-height: 24px; font-style: italic; color: rgba(37, 35, 91, .75); }
.apercus__commandes { position: absolute; left: 50%; top: calc(50% - 20px); width: min(960px, 100% - 64px); height: 64px; margin-top: -32px; transform: translateX(-50%); z-index: 2; display: flex; justify-content: space-between; pointer-events: none; }
.apercus__fleche {
  position: relative; flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--indigo); cursor: pointer; pointer-events: auto;
}
.apercus__fleche svg {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);     /* léger rebond */
}
/* survol : le chevron glisse doucement dans sa direction ; clic : il s'enfonce un peu plus puis revient */
@media (hover: hover) {
  .apercus__fleche--prec:hover svg { transform: translateX(-6px); }
  .apercus__fleche--suiv:hover svg { transform: translateX(6px); }
}
.apercus__fleche--prec:active svg { transform: translateX(-10px) scale(.94); transition-duration: .12s; }
.apercus__fleche--suiv:active svg { transform: translateX(10px) scale(.94); transition-duration: .12s; }
.apercus:focus-visible { outline: 3px solid var(--or); outline-offset: -3px; }
.apercus__agrandir { display: none; }   /* loupe : mobile uniquement */
.apercus__agrandir:hover { background: var(--indigo); transform: scale(1.06); }
.apercus__agrandir svg { width: 24px; height: 24px; display: block; }
.loupe { width: min(96vw, 1400px); max-width: none; max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.loupe::backdrop { background: rgba(14, 13, 48, .88); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.loupe__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.loupe__image { max-width: 100%; max-height: calc(96vh - 60px); width: auto; height: auto; object-fit: contain; }
.loupe__legende { color: var(--blanc); font-size: 18px; line-height: 24px; font-style: italic; text-align: center; }
.loupe__fermer {
  position: fixed; right: 16px; top: 16px; width: 48px; height: 48px; padding: 12px; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--blanc); background: rgba(255, 255, 255, .15);
}
.loupe__fermer:hover { background: rgba(255, 255, 255, .3); }
.loupe__fermer svg { width: 24px; height: 24px; display: block; }
.apercus__points { display: none; gap: 8px; }
.apercus__points button { padding: 0; border: 0; cursor: pointer; width: 8px; height: 8px; border-radius: 50%; background: rgba(37, 35, 91, .25); }
.apercus__points button.actif { background: var(--indigo); }

/* --- Inscription email --- */
.inscription { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 24px; }
.inscription__champ {
  width: 100%; max-width: 720px; height: 37px; padding: 0 0 8px; margin: 0;
  font-family: var(--sc); font-variant-caps: small-caps; font-weight: 400; font-size: 24px; line-height: 29px;
  text-align: center; color: var(--indigo);
  background: transparent; border: 0; border-bottom: 2px solid var(--indigo); border-radius: 0; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.inscription__champ::placeholder { color: rgba(37, 35, 91, .75); opacity: 1; }
.inscription__champ:hover { border-bottom-color: #4b48a8; }
.inscription__champ:focus { border-bottom-color: var(--or); box-shadow: 0 2px 0 var(--or); }
.inscription .btn--or { margin-top: 48px; left: -7px; }
.inscription__mention { margin-top: 32px; font-size: 20px; line-height: 24px; font-style: italic; color: rgba(37, 35, 91, .75); text-wrap: balance; position: relative; left: -3px; }
.inscription__rgpd { display: inline-block; margin-top: 12px; font-size: 16px; line-height: 22px; }
.inscription__rgpd { color: rgba(37, 35, 91, .75); }
.inscription__rgpd a { color: inherit; text-underline-offset: 3px; }
.inscription__rgpd a:hover { color: var(--indigo); }
.btn--or:disabled { cursor: default; }
.inscription__retour { font-size: 16px; line-height: 22px; font-weight: 600; }
.inscription__retour:not(:empty) { margin-top: 12px; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.pied { position: relative; min-height: 270px; color: var(--blanc); background: var(--indigo); }
.pied__nav { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 32px; font-size: 20px; line-height: 24px; font-weight: 700; text-transform: uppercase; }
.pied__nav a { text-decoration: none; white-space: nowrap; }
.pied__precision { font-weight: 400; text-transform: none; opacity: .75; }
.pied__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied__logo { position: absolute; right: 0; bottom: 32px; width: 280px; height: 140px; }

/* ==========================================================================
   Mobile (< 768 px) — maquette « Kal Dorim — Mobile », dessinée à 480 px
   ========================================================================== */
/* Tablette étroite : la mention Kickstarter passe sous le logo Shadowdark au lieu de le chevaucher */
@media (min-width: 768px) and (max-width: 1099px) {
  .accueil { gap: 12px; }
  .accueil__kickstarter { position: relative !important; height: auto; padding: 0; margin: 4px 0 0; }
}

@media (max-width: 767px) {
  br.m { display: inline; }
  br.d, .d-inl { display: none; }
  .m-inl { display: inline; }

  /* Accueil : bloc avec 16 px de marge latérale, textes en pleine largeur */
  .accueil { height: auto; min-height: 800px; padding: 72px 16px 0; }
  /* Maquette mobile : l'illustration est calée à gauche et à droite (contraintes L+R : −567,1 px à gauche,
     elle dépasse de 712,6 px au total), proportions verrouillées (1169,6 × 1633,09, remplissage « Fill »),
     haut à −101,5 px. Elle grandit et rétrécit donc avec la largeur de l'écran.
     Le voile bleu couvre exactement la largeur de l'écran. */
  .accueil__illu {
    top: -101.51px; left: -567.1px; width: calc(100% + 712.6px);
    aspect-ratio: 1169.6 / 1633.09; object-fit: cover; object-position: center;
    transform: translate3d(0, var(--par), 0);
  }
  .accueil__fond::after {   /* voile de la maquette mobile : bords pleins, 90 % de 10 à 90 % */
    background: linear-gradient(to right, rgb(22, 21, 72) 0%, rgba(22, 21, 72, .9) 10%, rgba(22, 21, 72, .9) 90%, rgb(22, 21, 72) 100%);
  }
  .page__fond .accueil__illu { transform: none; }   /* pages Contact et Confirmation : même fond, sans parallaxe */
  .accueil__logo { width: calc(100% - 64px); }
  .orn--1, .orn--3 { height: 31.2px; }
  .orn--2 { height: 20.8px; }
  .accueil__texte { width: 100%; margin-bottom: 4px; }
  .accueil__titre { font-size: 24px; line-height: 28.8px; text-wrap: balance; }
  .accueil__accroche { margin-top: 22px; font-size: 16px; line-height: 22px; text-wrap: wrap; }
  .accueil__accroche .l1 { letter-spacing: 0; }
  .btn { font-size: 16px; letter-spacing: .8px; padding: 0 16px; }
  .btn--verre { width: 280px; }
  .accueil__note { font-size: 15px; line-height: 20px; margin-top: -2px; }
  .accueil__shadowdark { width: 220px; height: 90.6px; }
  .accueil__kickstarter { position: relative !important; height: 38.8px; padding: 0; margin: auto 0 26px; gap: 10px; font-size: 13.5px; font-weight: 700; }
  .accueil__kickstarter b { font-size: inherit; font-weight: 700; }
  .accueil__kickstarter img { width: 20px; height: 22.8px; }

  /* Cartes : l'illustration s'étend à 24 px des bords, le texte garde 60 px de marge */
  .bienvenue, .avant { padding: 0 24px; }
  .carte { height: auto; max-width: none; padding: 32px 36px; }
  .carte--avant { margin-top: 12px; padding: 32px 60px; }
  .carte--avant .carte__corps { line-height: 36px; }
  .carte--avant .carte__titre { line-height: 1.2; }
  .carte__titre, .carte__texte .tiret { line-height: 1.4; }
  .carte__corps { line-height: 1.4; }
  .carte--bienvenue .tiret { line-height: 36.8px; }
  .carte--avant .carte__titre { hyphens: auto; -webkit-hyphens: auto; }

  .donjon { padding: 0 24px; overflow: hidden; }
  .donjon__in { display: block; }
  /* l'illustration (558 × 800) reste à sa taille ; un fondu blanc l'efface vers les bords et le bas, comme sur la maquette */
  .donjon__zone {
    width: auto; height: 720px; margin: 0 -24px; overflow: hidden; transform: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 50%, transparent), linear-gradient(to bottom, transparent, #000 80px, #000 640px, transparent);
            mask-image: linear-gradient(to right, transparent, #000 50%, transparent), linear-gradient(to bottom, transparent, #000 80px, #000 640px, transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .donjon__image { left: calc(50% - 210px); top: 0; width: 558px; height: 800px; }
  .donjon__texte { margin: 0; padding: 0; gap: 0; }
  .donjon__cta { margin-top: 32px; }

  .kit { gap: 32px; padding: 8px 24px 0; }
  .kit__titre { width: 342px; max-width: calc(100vw - 16px); line-height: 46px; }   /* comme sur la maquette : le titre déborde un peu des marges */
  .kit__liste { font-size: 23px; line-height: 35px; }
  .kit__liste em { text-decoration-skip-ink: auto; }
  .kit__liste li + li { margin-top: 35px; }
  .kit__liste li + li p { margin-top: 0; }
  .kit__liste h3 { margin-left: 14px; padding-left: 22px; font-size: 24px; letter-spacing: -0.32px; line-height: 35px; }
  .kit__liste h3::before { left: 0; }
  .kit__liste p { margin-top: 0; }
  .kit__liste li:first-child p { letter-spacing: 0; }

  .apercus { padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .apercus__legende { min-height: 18px; margin: 0 0 8px; font-size: 13px; line-height: 18px; }
  .apercus__scene { --ecart: 32; width: 344px; max-width: calc(100% - 32px); margin: 12px auto 0; }
  .apercus__commandes { position: static; transform: none; width: 180px; height: 44px; margin: 0 0 8px; align-items: center; pointer-events: auto; }
  .apercus__fleche { width: 44px; height: 44px; }
  .apercus__fleche svg { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .apercus__points { display: flex; }

  .inscription { padding: 40px 24px 48px; gap: 24px; }
  .inscription__champ { width: 340px; max-width: calc(100vw - 20px); height: 53px; padding: 12px 0 14px; font-size: 20px; line-height: 26px; }
  .inscription__champ::placeholder { color: rgba(37, 35, 91, .75); }
  .inscription__rgpd { font-size: 13px; line-height: 18px; margin-top: 8px; }
  .apercus__agrandir {
    display: block; position: absolute; z-index: 3; right: 6px; top: 6px; width: 36px; height: 36px; padding: 7px;
    border: 0; border-radius: 50%; cursor: pointer; color: var(--blanc); background: rgba(37, 35, 91, .7);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  }
  .diapo.centre { cursor: zoom-in; }
  .page--legal .retour { position: absolute; }   /* sur mobile, le bouton Retour ne recouvre pas le texte qui défile */
  .apercus__agrandir svg { width: 22px; height: 22px; }
  .legal__texte { font-size: 16px; line-height: 25px; }
  .legal__texte h2 { font-size: 24px; line-height: 30px; }
  .inscription .btn--or { width: 342px; max-width: calc(100vw - 16px); margin-top: 9px; left: 0; }
  .inscription__retour:not(:empty) { margin-top: 0; }
  .inscription__retour:empty { display: none; }
  .inscription__mention { margin-top: 0; font-size: 14px; line-height: 20px; left: 0; }

  .pied { min-height: 0; padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .pied__nav { flex-direction: column; flex-wrap: nowrap; gap: 8px; padding: 0; width: 100%; font-size: 14px; line-height: 40px; text-align: center; }
  .pied__nav a { display: block; white-space: normal; }
  .pied__logo { position: static; width: 200px; height: 100px; }
}

/* ==========================================================================
   Pages secondaires : confirmation d'envoi et contact
   Même fond que l'accueil, fixé derrière la page ; pied de page compact et translucide.
   ========================================================================== */
.page { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--blanc); background: var(--indigo-nuit); }
.page__fond { position: fixed; inset: 0; z-index: 0; }
/* Comme sur les maquettes Contact et Confirmation : illustration à 82,36 % de la largeur, centrée,
   haut à −109 px, proportions gardées (1290 × 1896). Les maquettes font 900 px de haut ; sur un écran
   plus haut (tablette en portrait), l'image ne descend jamais sous la hauteur nécessaire pour couvrir
   tout l'écran : elle s'agrandit juste assez, sans se déformer, au lieu de laisser une bande bleue. */
.page__fond .accueil__illu {
  top: -109.19px; width: max(82.36%, 710px, calc((100vh + 109.19px) * 1290 / 1896));
  transform: translate3d(-50%, 0, 0);
}
.page__contenu {
  position: relative; z-index: 1; flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 100px 24px 72px; text-align: center;
}
.page__contenu > a { display: block; flex: none; }
.page__logo { width: 300px; max-width: none; height: auto; flex: none; }   /* 300 × 86, comme sur la maquette */
.page__orn { height: 48px; width: auto; flex: none; }
.page--confirmation .page__titre { margin-top: 8px; }
.page__titre { font-size: 32px; line-height: 40px; font-weight: 700; text-transform: uppercase; }
.page__titre + .tiret { font-size: 32px; line-height: 24px; font-weight: 700; margin-top: -16px; }
.page__texte { width: 100%; max-width: 720px; font-size: 24px; line-height: 36px; font-style: italic; }
.page__texte p + p { margin-top: 36px; }
.page__texte strong { font-weight: 700; }
.page__texte a { font-weight: 700; text-underline-offset: 3px; }
.page__texte a:hover { color: var(--or); }

.retour {
  position: absolute; left: 32px; top: 40px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; line-height: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; text-decoration: none; color: var(--blanc);
}
.retour svg { width: 16px; height: 16px; transition: transform .2s ease; }
.retour:hover svg { transform: translateX(-4px); }

/* Mentions légales */
.legal__texte { text-align: left; font-style: normal; font-size: 18px; line-height: 28px; }
.legal__texte section + section { margin-top: 40px; }
.legal__texte h2 { font-family: var(--sc); font-variant-caps: small-caps; font-weight: 600; font-size: 28px; line-height: 34px; margin-bottom: 12px; }
.legal__texte p + p { margin-top: 12px; }
.page--legal .page__contenu { padding-bottom: 96px; }

/* Contact */
.contact__texte { text-align: justify; margin-top: 0; }
.contact__form { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 24px; margin-top: 12px; text-align: left; }
.contact__titre { font-family: var(--sc); font-variant-caps: small-caps; font-weight: 600; font-size: 32px; line-height: 40px; }
.contact__champ {
  width: 100%; height: 55px; padding: 0 24px; margin: 0;
  font-family: var(--sans); font-size: 20px; line-height: 24px; color: var(--blanc);
  background: rgba(217, 217, 217, .3); border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; outline: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background-color .15s ease, border-color .15s ease;
}
textarea.contact__champ { height: 208px; padding: 16px 24px; resize: vertical; }
.contact__champ::placeholder { color: rgba(255, 255, 255, .6); opacity: 1; }
.contact__champ:focus { background: rgba(217, 217, 217, .4); border-color: rgba(255, 255, 255, .5); }
.contact__envoyer { align-self: flex-end; }
.contact__retour { font-size: 16px; line-height: 22px; font-weight: 600; text-align: right; }
.contact__retour:empty { display: none; }

/* Pied de page compact des pages secondaires */
.pied--compact {
  position: relative; z-index: 3; min-height: 88px; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px;
  background: rgba(37, 35, 91, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pied--compact .pied__nav { padding: 0; }
.pied--compact .pied__logo { position: static; width: 154px; height: 77px; margin-right: -38px; }
.retour { position: fixed; }

/* Contact : comme dans le prototype Figma, le bouton Retour et l'en-tête (logo + ornement) sont fixes ;
   le contenu défile dessous et s'efface en approchant de l'en-tête. */
.page--contact { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.contact__entete {
  position: absolute; left: 0; right: 0; top: 82px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 24px; pointer-events: none;
}
.contact__entete a { display: block; pointer-events: auto; }
.contact__entete .page__logo { width: 300px; max-width: none; }     /* 300 × 86, comme sur la maquette */
.contact__entete .page__orn { height: 48px; }
.contact__defile {
  position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
}
/* Dès qu'on défile, le texte s'efface sous l'en-tête, avant d'atteindre l'ornement (qui finit à 240 px) */
.contact__defile:focus { outline: none; }
.contact__defile.defile {
  -webkit-mask-image: linear-gradient(to bottom, transparent 262px, #000 330px);
          mask-image: linear-gradient(to bottom, transparent 262px, #000 330px);
}
.page--contact .page__contenu { padding-top: 248px; }
.page--contact .pied--compact { flex: none; }   /* pied de page toujours visible en bas de l'écran */
.contact__defile > .pied--compact { display: none; }   /* copie utilisée seulement sur mobile */

@media (max-width: 767px) {
  .page__fond .accueil__illu {   /* même cadrage que l'accueil mobile, en couvrant toujours la hauteur de l'écran */
    top: -101.51px; left: -567.1px; transform: none;
    width: max(calc(100% + 712.6px), calc((100vh + 101.51px) * 1169.6 / 1633.09));
  }
  .page__contenu { padding: 88px 24px 48px; gap: 20px; }
  .page__logo { width: 240px; }
  .page__orn { height: 31px; }
  .page--confirmation .page__titre { margin-top: 0; }
  .page__titre { font-size: 24px; line-height: 30px; }
  .page__titre + .tiret { font-size: 24px; margin-top: -12px; }
  .page__texte { font-size: 20px; line-height: 30px; }
  .page__texte p + p { margin-top: 24px; }
  .retour { left: 24px; top: 32px; }
  .contact__texte { text-align: left; }
  .contact__titre { font-size: 28px; }
  .contact__champ { height: 52px; font-size: 18px; padding: 0 16px; }
  textarea.contact__champ { height: 180px; padding: 14px 16px; }
  .contact__envoyer { align-self: stretch; }
  .pied--compact { flex-direction: column; justify-content: center; padding: 32px 24px; }
  .pied--compact .pied__logo { width: 200px; height: 100px; margin: 0; }
  .contact__entete { top: 72px; gap: 16px; }
  .contact__entete .page__logo { width: 240px; }
  .contact__entete .page__orn { height: 31px; }
  .contact__defile.defile {
    -webkit-mask-image: linear-gradient(to bottom, transparent 204px, #000 256px);
            mask-image: linear-gradient(to bottom, transparent 204px, #000 256px);
  }
  /* Contact sur mobile : le pied de page n'est plus fixe, il arrive en fin de défilement, en colonne comme sur la page de confirmation */
  .page--contact > .pied--compact { display: none; }
  .contact__defile > .pied--compact { display: flex; }
  .page--contact .page__contenu { padding-top: 196px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn--or.scintille::after { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Groupes de sens : une ligne ne se coupe qu'entre deux groupes (propositions, compléments),
   jamais au milieu, tant que le groupe tient dans la largeur. Les groupes imbriqués permettent
   de garder une phrase entière sur une ligne quand il y a la place, puis de la couper à la virgule. */
.g { display: inline-block; max-width: 100%; text-wrap: wrap; }
