/* Combat spirituel, site officiel.
   Nuit verte, or du halo. Mobile d'abord. Une seule feuille pour toutes les pages.
   Charte reprise de Jesus Beatitude : #0b1f18, #e7b24a, Cormorant Garamond. */

:root {
  --nuit: #07140f;
  --nuit-2: #0b1f18;
  --foret: #14382d;
  --foret-2: #1c4a3b;
  --or: #e7b24a;
  --or-clair: #f3d894;
  --or-sombre: #b8821f;
  --sang: #c0392b;
  --clair: #f4f7f2;
  --clair-2: #bcc9c0;
  --clair-3: #8ea396;
  --ligne: rgba(231, 178, 74, 0.22);
  --ligne-2: rgba(244, 247, 242, 0.12);
  --voile: rgba(7, 20, 15, 0.72);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --gutter: 20px;
  --maxw: 1200px;
  --nav-h: 64px;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font: 400 1rem/1.65 var(--sans);
  color: var(--clair);
  background: var(--nuit);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--or-clair); text-underline-offset: 3px; }
a:hover { color: var(--or); }

:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--or); color: var(--nuit); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: 12px; top: -64px; z-index: 120;
  background: var(--or); color: var(--nuit); padding: 10px 18px;
  border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-tight { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Titres et textes ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); }
h2 { font-size: clamp(2rem, 5.4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.7rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--or); margin: 0 0 16px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--or); opacity: 0.7;
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--clair-2);
  max-width: 62ch;
}

.muted { color: var(--clair-3); }
.small { font-size: 0.875rem; }

.kicker {
  font: 700 0.8rem/1.3 var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font: 700 0.875rem/1 var(--sans);
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-or {
  background: linear-gradient(180deg, var(--or-clair), var(--or));
  color: #2a1a00;
  box-shadow: 0 6px 18px rgba(231, 178, 74, 0.22);
}
.btn-or:hover { background: var(--or-clair); color: #2a1a00; }

.btn-ghost {
  background: transparent; color: var(--clair);
  border-color: rgba(244, 247, 242, 0.32);
}
.btn-ghost:hover { border-color: var(--or); color: var(--or-clair); }

.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 0.78rem; }

/* ---------- Barre de navigation ---------- */

.masthead {
  position: sticky; top: 0; z-index: 90;
  background: rgba(7, 20, 15, 0.92);
  border-bottom: 1px solid var(--ligne-2);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--clair); margin-inline-end: auto;
}
.brand img { width: 34px; height: 34px; }
.brand-txt { display: grid; line-height: 1; }
.brand-name {
  font-family: var(--display); font-size: 1.22rem; font-weight: 700; letter-spacing: 0.01em;
}
.brand-sub {
  font: 600 0.6rem/1.4 var(--sans); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--or);
}

.nav-links { display: none; }

.nav-links a {
  font: 700 0.76rem/1 var(--sans);
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--clair-2); text-decoration: none; padding: 10px 2px;
  position: relative;
}
.nav-links a:hover { color: var(--clair); }
.nav-links a[aria-current="page"] { color: var(--or); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 2px;
  height: 2px; background: var(--or); border-radius: 2px;
}

.nav-cta { display: none; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--ligne-2);
  border-radius: 12px; color: var(--clair); cursor: pointer;
}
.burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.burger[aria-expanded="true"] .burger-open { display: none; }
.burger .burger-close { display: none; }
.burger[aria-expanded="true"] .burger-close { display: block; }

.drawer {
  display: grid; gap: 4px;
  padding: 8px 0 20px;
  border-top: 1px solid var(--ligne-2);
}
.drawer a {
  font: 700 0.9rem/1 var(--sans);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clair); text-decoration: none;
  padding: 16px 4px; border-bottom: 1px solid var(--ligne-2);
}
.drawer a[aria-current="page"] { color: var(--or); }
.drawer .btn { margin-top: 14px; }

/* ---------- Choix de la langue ---------- */
/* Au telephone : une ligne dans le tiroir. En bureau : une ligne dans la barre. */

.langs { display: flex; align-items: center; gap: 2px; }
.langs-nav { display: none; }
.langs a, .langs .on, .drawer .langs a {
  font: 700 0.72rem/1 var(--sans);
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; padding: 9px 8px; border: 0; border-radius: 8px;
  color: var(--clair-3);
}
.langs a:hover, .drawer .langs a:hover { color: var(--clair); background: rgba(244, 247, 242, 0.08); }
.langs .on { color: var(--or); background: rgba(231, 178, 74, 0.14); }

.langs-drawer {
  margin-top: 14px; gap: 4px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--ligne-2);
}
.langs-drawer .on, .drawer .langs a { font-size: 0.82rem; padding: 11px 12px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: min(86vh, 760px);
  display: grid; align-items: end;
  padding: clamp(72px, 18vh, 150px) 0 clamp(36px, 7vh, 64px);
  overflow: hidden;
}

.hero-art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%;
}

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 55% at 30% 30%, rgba(231, 178, 74, 0.16), transparent 70%),
    linear-gradient(185deg, rgba(7, 20, 15, 0.58) 0%, rgba(7, 20, 15, 0.72) 42%, var(--nuit) 97%);
}

.hero-in { position: relative; max-width: 680px; }

.hero h1 {
  margin: 10px 0 18px;
  text-shadow: 0 2px 30px rgba(7, 20, 15, 0.7);
}
.hero h1 .or {
  display: block;
  background: linear-gradient(180deg, #fff5dc 10%, var(--or) 62%, var(--or-sombre) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero .lead { color: #e7eee8; text-shadow: 0 1px 18px rgba(7, 20, 15, 0.8); }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
}

.hero-note {
  margin-top: 22px; font-size: 0.84rem; color: var(--clair-2);
  display: flex; align-items: center; gap: 8px;
}
.hero-note svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--or); stroke-width: 1.8; }

/* ---------- Bandeau de chiffres ---------- */

.figures {
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  background: linear-gradient(180deg, rgba(20, 56, 45, 0.5), rgba(7, 20, 15, 0.2));
}
.figures ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.figures li {
  padding: 22px 12px; text-align: center;
  border-bottom: 1px solid var(--ligne-2);
}
.figures li:nth-child(odd) { border-inline-end: 1px solid var(--ligne-2); }
.figures li:nth-last-child(-n+2) { border-bottom: 0; }
.figures b {
  display: block; font-family: var(--display); font-size: 2.3rem;
  font-weight: 700; line-height: 1; color: var(--or);
}
.figures span {
  display: block; margin-top: 7px;
  font: 600 0.7rem/1.3 var(--sans); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clair-3);
}

/* ---------- Sections ---------- */

.band { padding: clamp(56px, 9vw, 104px) 0; position: relative; }
.band-deep { background: var(--nuit-2); }
.band-forest {
  background:
    radial-gradient(90% 70% at 80% 0%, rgba(28, 74, 59, 0.55), transparent 65%),
    var(--nuit-2);
}
.band + .band-deep, .band-deep + .band { border-top: 1px solid var(--ligne-2); }

.band-head { max-width: 700px; margin-bottom: clamp(28px, 4vw, 48px); }
.band-head p { margin-top: 16px; }

/* ---------- Bloc texte et image ---------- */

.split { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }

.split-media { position: relative; }
.split-media img {
  width: 100%; border-radius: var(--r-lg);
  border: 1px solid var(--ligne);
}
.split-media figcaption {
  margin-top: 12px; font-size: 0.82rem; color: var(--clair-3);
}
.split-media::before {
  content: ""; position: absolute;
  inset-block: -14px auto; inset-inline: auto -14px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 178, 74, 0.26), transparent 70%);
  z-index: -1;
}

.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.points svg { width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--or); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.points b { display: block; font-weight: 700; }
.points span { color: var(--clair-2); }

/* ---------- Rail de fonctionnalites ---------- */

.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.rail-nav { display: none; gap: 8px; }
.rail-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid var(--ligne);
  color: var(--or); cursor: pointer;
}
.rail-nav button:hover { background: rgba(231, 178, 74, 0.12); }
.rail-nav button:disabled { opacity: 0.35; cursor: default; }
.rail-nav svg { width: 20px; height: 20px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(78vw, 320px);
  gap: 16px; margin-top: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-color: var(--or-sombre) rgba(244, 247, 242, 0.08);
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: rgba(244, 247, 242, 0.08); border-radius: 999px; }
.rail::-webkit-scrollbar-thumb { background: var(--or-sombre); border-radius: 999px; }

.feat {
  scroll-snap-align: start;
  display: grid; align-content: start; gap: 12px;
  padding: 26px 22px 28px;
  border: 1px solid var(--ligne-2); border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(28, 74, 59, 0.42), rgba(7, 20, 15, 0.2));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feat:hover { border-color: var(--ligne); transform: translateY(-3px); }
.feat .num {
  font: 700 0.72rem/1 var(--sans); letter-spacing: 0.16em; color: var(--or-sombre);
}
.feat h3 {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
  color: var(--clair);
}
.feat p { color: var(--clair-2); font-size: 0.94rem; }

/* ---------- Etapes ---------- */

.steps { display: grid; gap: 18px; counter-reset: etape; }

.step {
  position: relative;
  display: grid; gap: 14px;
  padding: 28px 22px; padding-inline-start: 24px;
  border: 1px solid var(--ligne-2); border-radius: var(--r-lg);
  background: rgba(20, 56, 45, 0.3);
}
.step::before {
  counter-increment: etape; content: counter(etape);
  position: absolute; top: -16px; inset-inline-start: 22px;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--nuit); border: 1px solid var(--or);
  font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--or);
}
.step h3 { margin-top: 10px; }
.step .gauge-name {
  font: 600 0.72rem/1 var(--sans); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--or);
}
.step p { color: var(--clair-2); }
.step dl {
  margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  font-size: 0.88rem; border-top: 1px solid var(--ligne-2); padding-top: 16px;
}
.step dt { color: var(--clair-3); }
.step dd { margin: 0; color: var(--clair); }

/* ---------- Tuiles personnages ---------- */

.cards { display: grid; gap: 18px; }

.cards .btn { justify-self: start; margin-top: 4px; }

.card {
  display: grid; align-content: start; gap: 12px;
  padding: 26px 22px;
  border: 1px solid var(--ligne-2); border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(28, 74, 59, 0.38), rgba(7, 20, 15, 0.16));
}
.card-or { border-color: var(--ligne); background: linear-gradient(170deg, rgba(231, 178, 74, 0.12), rgba(7, 20, 15, 0.2)); }
.card-dark { background: linear-gradient(170deg, rgba(192, 57, 43, 0.16), rgba(7, 20, 15, 0.3)); border-color: rgba(192, 57, 43, 0.4); }
.card h3 { line-height: 1.15; }
.card p { color: var(--clair-2); font-size: 0.95rem; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: start;
  padding: 5px 12px; border-radius: 999px;
  font: 700 0.68rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(231, 178, 74, 0.14); color: var(--or-clair);
  border: 1px solid var(--ligne);
}
.tag-lock { background: rgba(244, 247, 242, 0.08); color: var(--clair-3); border-color: var(--ligne-2); }
.tag-red { background: rgba(192, 57, 43, 0.18); color: #ffb3a7; border-color: rgba(192, 57, 43, 0.45); }

.stat-line {
  margin: 0; padding-top: 14px; border-top: 1px solid var(--ligne-2);
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.86rem;
}
.stat-line dt { color: var(--clair-3); }
.stat-line dd { margin: 0; }

/* ---------- Liste de renforts ---------- */

.roster { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.roster li {
  display: grid; gap: 10px;
  padding: 20px; border-radius: var(--r-md);
  border: 1px solid var(--ligne-2); background: rgba(20, 56, 45, 0.26);
}
.roster .who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.roster .who b { font-size: 1.05rem; }
.roster .dot {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  box-shadow: 0 0 10px currentColor;
}
.roster p { font-size: 0.92rem; color: var(--clair-2); }
.roster .arme { font-size: 0.86rem; color: var(--clair-3); }
.roster .arme b { color: var(--clair); font-weight: 600; }

/* ---------- Niveaux de difficulte ---------- */

.levels { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.levels li {
  display: grid; gap: 8px; padding: 20px 22px;
  border: 1px solid var(--ligne-2); border-radius: var(--r-md);
  background: rgba(20, 56, 45, 0.24);
}
.levels .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.levels .head b { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.levels .head span {
  font: 600 0.7rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--or);
}
.levels p { font-size: 0.92rem; color: var(--clair-2); }
.levels .bars { display: flex; gap: 4px; }
.levels .bars i {
  width: 30px; height: 5px; border-radius: 3px; background: rgba(244, 247, 242, 0.14);
}
.levels .bars i.on { background: var(--or); }

/* ---------- Appel a l'action ---------- */

.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--ligne);
  padding: clamp(32px, 6vw, 60px);
  background:
    radial-gradient(80% 120% at 15% 0%, rgba(231, 178, 74, 0.2), transparent 62%),
    linear-gradient(170deg, rgba(28, 74, 59, 0.6), rgba(7, 20, 15, 0.5));
  text-align: center;
}
.cta h2 { margin-bottom: 14px; }
.cta .lead { margin-inline: auto; }
.cta .hero-actions { justify-content: center; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--ligne-2); border-radius: var(--r-md);
  background: rgba(20, 56, 45, 0.24);
  overflow: hidden;
}
.faq details[open] { border-color: var(--ligne); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; min-height: 58px;
  font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--or); border-bottom: 2px solid var(--or);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 20px 20px; color: var(--clair-2); font-size: 0.95rem; }

/* ---------- Prose (guide) ---------- */

.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--clair-2); }
.prose ul, .prose ol { padding-inline-start: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--clair); }

.keys { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.keys li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--ligne-2); border-radius: var(--r-md);
  background: rgba(20, 56, 45, 0.22); font-size: 0.93rem;
}
kbd {
  display: inline-block; min-width: 34px; text-align: center;
  padding: 6px 9px; border-radius: 7px;
  background: rgba(244, 247, 242, 0.1); border: 1px solid var(--ligne-2);
  border-bottom-width: 2px;
  font: 700 0.78rem/1 var(--sans); color: var(--clair);
}

.note {
  border-inline-start: 3px solid var(--or);
  background: rgba(231, 178, 74, 0.08);
  padding: 16px 18px;
  border-start-start-radius: 0; border-end-start-radius: 0;
  border-start-end-radius: var(--r-md); border-end-end-radius: var(--r-md);
  font-size: 0.93rem; color: var(--clair-2);
}

/* ---------- Pied de page ---------- */

.site-footer {
  border-top: 1px solid var(--ligne-2);
  background: var(--nuit-2);
  padding: clamp(44px, 7vw, 72px) 0 36px;
}
.footer-grid { display: grid; gap: 34px; }
.footer-grid h4 {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--or);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--clair-2); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--or-clair); text-decoration: underline; }
.footer-about p { color: var(--clair-3); font-size: 0.9rem; max-width: 42ch; }
.footer-about .brand { margin-bottom: 14px; }

.footer-bottom {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--ligne-2);
  display: grid; gap: 10px;
  font-size: 0.82rem; color: var(--clair-3);
}
.footer-bottom a { color: var(--clair-3); }

/* ---------- Apparitions ---------- */
/* La classe .rv est posee par le script : sans script, rien n'est masque. */

@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); }
  .rv.rv-in {
    opacity: 1; transform: none;
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
}

/* ---------- Tablette ---------- */

@media (min-width: 720px) {
  .figures ul { grid-template-columns: repeat(4, 1fr); }
  .figures li { border-bottom: 0; }
  .figures li:nth-child(odd) { border-inline-end: 0; }
  .figures li + li { border-inline-start: 1px solid var(--ligne-2); }

  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-mix { grid-template-columns: repeat(2, 1fr); }
  .cards-mix > :first-child, .cards-mix > :last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:first-child { grid-column: 1 / -1; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .split-2 { grid-template-columns: 1.05fr 0.95fr; }
  .split-rev .split-media { order: 2; }
}

/* ---------- Bureau ---------- */

@media (min-width: 1000px) {
  :root { --nav-h: 76px; }
  .nav-links { display: flex; align-items: center; gap: 26px; }
  .nav-cta { display: inline-flex; }
  .langs-nav { display: flex; margin-inline-start: 22px; }
  .langs-drawer { display: none; }
  .burger { display: none; }
  .drawer { display: none !important; }
  .rail-nav { display: flex; }
  .rail { grid-auto-columns: 300px; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-mix { grid-template-columns: repeat(3, 1fr); }
  .cards-mix > :first-child { grid-column: span 2; }
  .cards-mix > :last-child { grid-column: span 2; }
  .cards-mix > :nth-child(2), .cards-mix > :nth-child(3) { grid-column: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:first-child { grid-column: auto; }
  .levels { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: min(92vh, 860px); }
  .hero-art { object-position: 50% 24%; }
}

@media (min-width: 1240px) {
  .roster { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Arabe : ecriture de droite a gauche ---------- */
/* La mise en page utilise partout des proprietes logiques (inline-start, inline-end) :
   l'inversion est donc automatique. Ne restent ici que les degrades orientes,
   les chevrons du rail, et la typographie arabe. */

html[lang="ar"] {
  --display: "Noto Naskh Arabic", "Amiri", "Scheherazade New", "Times New Roman", serif;
  --sans: "Noto Sans Arabic", "Noto Naskh Arabic", ui-sans-serif, system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
}

/* L'arabe est une ecriture liee : un interlettrage casse les ligatures. */
html[lang="ar"] .eyebrow,
html[lang="ar"] .btn,
html[lang="ar"] .kicker,
html[lang="ar"] .nav-links a,
html[lang="ar"] .drawer a,
html[lang="ar"] .langs a,
html[lang="ar"] .langs .on,
html[lang="ar"] .brand-sub,
html[lang="ar"] .brand-name,
html[lang="ar"] .figures span,
html[lang="ar"] .feat h3,
html[lang="ar"] .step .gauge-name,
html[lang="ar"] .tag,
html[lang="ar"] .levels .head span,
html[lang="ar"] .footer-grid h4,
html[lang="ar"] kbd {
  letter-spacing: normal;
}

/* Les hampes et les points de l'arabe demandent un peu plus d'air que le Garamond. */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  line-height: 1.32; letter-spacing: normal;
}
html[lang="ar"] h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
html[lang="ar"] h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
html[lang="ar"] h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
html[lang="ar"] body, html[lang="ar"] .levels .head b, html[lang="ar"] .figures b { line-height: 1.85; }
html[lang="ar"] .figures b { line-height: 1; }

/* Degrades et halos : symetriques de la version gauche a droite. */
[dir="rtl"] .hero::after {
  background:
    radial-gradient(70% 55% at 70% 30%, rgba(231, 178, 74, 0.16), transparent 70%),
    linear-gradient(175deg, rgba(7, 20, 15, 0.58) 0%, rgba(7, 20, 15, 0.72) 42%, var(--nuit) 97%);
}
[dir="rtl"] .band-forest {
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(28, 74, 59, 0.55), transparent 65%),
    var(--nuit-2);
}
[dir="rtl"] .cta {
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(231, 178, 74, 0.2), transparent 62%),
    linear-gradient(190deg, rgba(28, 74, 59, 0.6), rgba(7, 20, 15, 0.5));
}
[dir="rtl"] .feat, [dir="rtl"] .card {
  background: linear-gradient(190deg, rgba(28, 74, 59, 0.42), rgba(7, 20, 15, 0.2));
}
[dir="rtl"] .card-or { background: linear-gradient(190deg, rgba(231, 178, 74, 0.12), rgba(7, 20, 15, 0.2)); }
[dir="rtl"] .card-dark { background: linear-gradient(190deg, rgba(192, 57, 43, 0.16), rgba(7, 20, 15, 0.3)); }

/* Les fleches du rail pointent vers l'avant de la lecture, donc vers la gauche. */
[dir="rtl"] .rail-nav svg { transform: scaleX(-1); }


/* ---------- Impression ---------- */

@media print {
  .masthead, .drawer, .hero-actions, .cta { display: none; }
  body { background: #fff; color: #111; }
}
