/* =========================================================================
   WF-N1 — site produit (brouillon), refonte 2026-09
   Propriétés logiques uniquement (inline/block) : la même feuille sert le
   LTR et le RTL, sans variante miroir. Aucune ressource externe hormis les
   polices Google déclarées dans le <head>.
   ========================================================================= */

/* ---------- jetons ------------------------------------------------------ */
:root {
  --bg:        #0a0d0b;
  --bg-2:      #0e1310;
  --panel:     #131a15;
  --panel-2:   #18211a;
  --line:        rgba(226, 236, 220, 0.10);
  --line-strong: rgba(226, 236, 220, 0.22);

  --fg:        #eef2ea;   /* 17:1 sur --bg */
  --fg-muted:  #b3bdb0;   /* 10:1 */
  --fg-faint:  #8b968a;   /* 6,3:1 */

  --olive:      #cbdb6d;  /* accent, 13:1 */
  --olive-dim:  rgba(203, 219, 109, 0.14);
  --olive-deep: #3f4a19;
  --ember:      #f0b357;  /* 10:1 — alerte, principe humain */
  --fire:       #ef6a3a;
  --ember-grad: linear-gradient(100deg, #f7c86a 0%, #f0a24a 45%, #ef6a3a 100%);

  --space:   clamp(5rem, 11vw, 9.5rem);
  --gutter:  clamp(1.25rem, 4.5vw, 3.5rem);
  --maxw:    1240px;
  --measure: 62ch;
  --radius:  22px;
  --radius-s: 14px;
  --ease:    cubic-bezier(.2, .7, .1, 1);

  --ff-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ff-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --header-h: 68px;
  --to-end: 90deg;      /* sens de lecture, pour les dégradés horizontaux */
  color-scheme: dark;
}

html[dir="rtl"] { --to-end: -90deg; }
html[lang="ar"] {
  --ff-body:    "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --ff-display: "Noto Kufi Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="ar"] body { line-height: 1.9; font-size: clamp(1.03rem, 0.98rem + 0.22vw, 1.12rem); }
img, video, svg { display: block; max-inline-size: 100%; }
img { block-size: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--ff-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
html[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.45; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--olive); color: #111; }

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

.wrap { inline-size: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 100;
  background: var(--olive); color: #111; padding: .6rem 1rem; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { inset-block-start: 1rem; }

/* ---------- bandeau brouillon ------------------------------------------ */
.draft-bar {
  position: relative; z-index: 60;
  background: repeating-linear-gradient(-45deg, #2b2410 0 12px, #231e0d 12px 24px);
  color: #f6dfae; font-size: .82rem; line-height: 1.45; padding-block: .5rem;
  border-block-end: 1px solid rgba(240, 179, 87, .3);
  text-align: center;
}
.draft-bar strong { color: var(--ember); }

/* ---------- en-tête ----------------------------------------------------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  block-size: var(--header-h);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-block-end: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.nav-open {
  background: rgba(10, 13, 11, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-block-end-color: var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.5rem; block-size: 100%; }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; flex-shrink: 0; }
.brand img { inline-size: 40px; block-size: auto; }
.brand-sep { inline-size: 1px; block-size: 26px; background: var(--line-strong); }
.brand-name { display: flex; flex-direction: column; font-family: "Space Grotesk", var(--ff-display); font-weight: 700; font-size: 1.02rem; line-height: 1.1; letter-spacing: .01em; }
.brand-name small { font-family: var(--ff-body); font-weight: 500; font-size: .72rem; color: var(--fg-faint); letter-spacing: .04em; }
html[lang="ar"] .brand-name small { letter-spacing: 0; font-size: .78rem; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-inline-start: auto; }
.site-nav ul { display: flex; gap: .25rem; }
.site-nav ul a {
  display: block; padding: .45rem .7rem; border-radius: 999px;
  text-decoration: none; color: var(--fg-muted); font-size: .95rem; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.site-nav ul a:hover, .site-nav ul a.is-current { color: var(--fg); background: rgba(255, 255, 255, .06); }

.lang-switch { display: flex; gap: .15rem; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--fg-faint); }
.lang-switch a:hover { color: var(--fg); }
.lang-switch a[aria-current="page"] { background: var(--olive); color: #111; }

.menu-btn { display: none; }

/* ---------- boutons ----------------------------------------------------- */
.btn {
  --b: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-block-size: 3.1rem; padding: .8rem 1.5rem; border-radius: 999px;
  font: 600 .98rem/1.2 var(--ff-body); text-decoration: none; cursor: pointer;
  border: 1px solid var(--b);
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--olive); color: #10140c; border-color: var(--olive); box-shadow: 0 10px 30px -10px rgba(203, 219, 109, .55); }
.btn-primary:hover { background: #d8e685; box-shadow: 0 16px 40px -12px rgba(203, 219, 109, .7); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--fg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.btn-small { min-block-size: 2.4rem; padding: .45rem 1.05rem; font-size: .88rem; }
.btn-icon { inline-size: 1.15rem; block-size: 1.15rem; }
html[dir="rtl"] .btn-icon { transform: scaleX(-1); } /* le triangle « lecture » pointe dans le sens de lecture */
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ---------- typo de section -------------------------------------------- */
.section { padding-block: var(--space); position: relative; }
.section-head { max-inline-size: 52rem; margin-block-end: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(1.8rem, 1.1rem + 2.2vw, 2.9rem); }
.section-head .lead { margin-block-start: 1.25rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-block-end: 1.1rem;
  font: 600 .78rem/1 var(--ff-body); text-transform: uppercase; letter-spacing: .16em; color: var(--olive);
}
.eyebrow::before { content: ""; inline-size: 1.6rem; block-size: 1px; background: currentColor; opacity: .7; }
html[lang="ar"] .eyebrow { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.28rem); color: var(--fg-muted); max-inline-size: var(--measure); }
.fine { font-size: .9rem; color: var(--fg-faint); max-inline-size: 70ch; margin-block-start: 1.5rem; }

.render-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .75rem; border-radius: 999px;
  background: rgba(10, 13, 11, .6); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .82rem; font-weight: 500; color: var(--fg-muted); white-space: nowrap;
}
.render-tag::before { content: ""; inline-size: .45rem; block-size: .45rem; border-radius: 50%; background: var(--ember); }

/* ---------- accueil ----------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-block-size: calc(100svh - var(--header-h));
  margin-block-start: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + 3rem) 2rem;
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media video { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.04); }
.hero-veil {
  position: absolute; inset: 0;
  /* dégradés verticaux et radiaux seulement : identiques en LTR et en RTL */
  background:
    radial-gradient(120% 70% at 50% 10%, transparent 30%, rgba(10, 13, 11, .55) 70%),
    linear-gradient(to bottom, rgba(10, 13, 11, .55) 0%, rgba(10, 13, 11, .05) 30%, rgba(10, 13, 11, .35) 60%, var(--bg) 97%);
}
/* Écran large : le produit passe du côté opposé au texte. La vidéo n'est jamais
   retournée (le contour de l'Algérie serait inversé) : seul son cadre se déplace. */
@media (min-width: 1100px) {
  .hero-media video { inline-size: 72%; margin-inline-start: auto; transform: none; }
  .hero-media::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(var(--to-end), var(--bg) 26%, rgba(10, 13, 11, .75) 36%, transparent 58%);
  }
}
.grain {
  position: absolute; inset: 0; opacity: .09; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content { align-self: end; padding-block-end: clamp(1.5rem, 4vw, 3rem); }
.hero-eyebrow { color: var(--fg); background: rgba(10, 13, 11, .45); border: 1px solid var(--line-strong); padding: .5rem .9rem; border-radius: 999px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); letter-spacing: .08em; }
.hero-eyebrow::before { display: none; }
.dot { inline-size: .5rem; block-size: .5rem; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(240, 179, 87, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 179, 87, .55); } 70% { box-shadow: 0 0 0 10px rgba(240, 179, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 179, 87, 0); } }

.hero-title {
  font-size: clamp(2.4rem, 1rem + 4.4vw, 4.9rem);
  font-weight: 600; line-height: .98; letter-spacing: -0.035em;
  max-inline-size: 13ch;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .35);
}
html[lang="ar"] .hero-title { line-height: 1.35; letter-spacing: 0; max-inline-size: 14ch; font-size: clamp(2.2rem, 1rem + 3.8vw, 4.2rem); }
.hero-title em { font-style: normal; background: var(--ember-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-block-start: 1.6rem; max-inline-size: 58ch; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: #d7ded3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-block-start: 2.2rem; }
.hero-partner { display: flex; align-items: center; gap: .9rem; margin-block-start: 2.4rem; font-size: .9rem; color: var(--fg-faint); }
.hero-partner img { inline-size: 104px; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.motion-toggle {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px;
  background: rgba(10, 13, 11, .55); border: 1px solid var(--line-strong); color: var(--fg-muted);
  font: 500 .78rem var(--ff-body); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.motion-toggle:hover { color: var(--fg); }
.motion-glyph { inline-size: .6rem; block-size: .7rem; border-inline: 2px solid currentColor; }
.motion-toggle[aria-pressed="true"] .motion-glyph { border: 0; inline-size: 0; block-size: 0; border-block: .36rem solid transparent; border-inline-start: .6rem solid currentColor; }

/* ---------- film -------------------------------------------------------- */
.film { background: radial-gradient(60% 50% at 50% 55%, rgba(203, 219, 109, .07), transparent 70%); }
.film-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--line-strong);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03), 0 30px 80px -50px rgba(240, 179, 87, .35);
}
.film-frame video { inline-size: 100%; block-size: 100%; object-fit: contain; background: #000; }
.film-cover {
  position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #000; color: var(--fg);
  display: grid; place-items: center;
}
.film-cover img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: brightness(.8); }
.film-cover:hover img { transform: scale(1.03); filter: brightness(.65); }
.film-play {
  position: relative; display: grid; place-items: center;
  inline-size: clamp(4.5rem, 9vw, 7rem); aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .4s var(--ease), background-color .3s;
}
.film-play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.film-play svg { inline-size: 38%; margin-inline-start: 6%; }
.film-cover:hover .film-play { transform: scale(1.08); background: var(--olive); color: #111; }
.film-cover-label {
  position: absolute; inset-block-end: clamp(1rem, 3vw, 2rem); inset-inline-start: clamp(1rem, 3vw, 2rem);
  display: flex; flex-direction: column; gap: .2rem; text-align: start;
  font: 600 clamp(1rem, .9rem + .5vw, 1.35rem)/1.2 var(--ff-display);
}
.film-cover-label small { font: 500 .8rem var(--ff-body); color: var(--fg-muted); }
.film-frame.is-playing .film-cover { opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
/* sous-titres fr/en : en haut du cadre, lisibles sur l'image */
.film-frame video::cue { background: rgba(0, 0, 0, .62); color: #fff; font-family: "Inter", sans-serif; font-size: 1.05rem; line-height: 1.35; }

.chapters { display: flex; gap: .5rem; margin-block-start: 1.4rem; overflow-x: auto; padding-block-end: .4rem; scrollbar-width: thin; }
.chapters button {
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
  padding: .5rem .9rem; border-radius: 999px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--fg-muted);
  font: 500 .85rem var(--ff-body); transition: color .2s, border-color .2s, background-color .2s;
}
.chapters button:hover { color: var(--fg); border-color: var(--line-strong); }
.chapters button.is-current { color: #111; background: var(--olive); border-color: var(--olive); }
.chapters .t { font-variant-numeric: tabular-nums; font-size: .82rem; opacity: .75; font-family: "Inter", sans-serif; }

/* ---------- en une phrase ---------------------------------------------- */
.statement { padding-block: calc(var(--space) * 1.1); }
.statement-text {
  font-size: clamp(1.7rem, 1rem + 2.6vw, 3.3rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500;
  max-inline-size: 22ch;
}
html[lang="ar"] .statement-text { line-height: 1.5; letter-spacing: 0; font-weight: 600; font-size: clamp(1.6rem, 1rem + 2.2vw, 2.9rem); }
.statement-text .w { opacity: .18; transition: opacity .5s var(--ease), color .5s; }
.statement-text .w.on { opacity: 1; }
.statement-sub { margin-block-start: 2.5rem; }

/* ---------- mesures (bento) -------------------------------------------- */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(14rem, auto); }
.bento-hero {
  grid-column: span 2; grid-row: span 2; margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: #3a3f3b;
}
.bento-hero img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.bento-hero:hover img { transform: scale(1.04); }
.bento-hero figcaption { position: absolute; inset-block-end: 1rem; inset-inline-start: 1rem; }
.tile {
  position: relative; overflow: hidden;
  padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem;
  transition: border-color .3s, transform .4s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -30%; inline-size: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(203, 219, 109, .16), transparent 65%); opacity: 0; transition: opacity .4s;
}
.tile:hover { border-color: rgba(203, 219, 109, .35); transform: translateY(-3px); }
.tile:hover::before { opacity: 1; }
.tile .icon { inline-size: 2.4rem; block-size: 2.4rem; color: var(--olive); margin-block-end: auto; padding: .45rem; border-radius: 12px; background: var(--olive-dim); }
.tile h3 { font-size: 1.4rem; }
.tile p { color: var(--fg-muted); font-size: 1rem; }

/* ---------- chaîne ------------------------------------------------------ */
.chain { background: linear-gradient(to bottom, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.steps-wrap { --progress: 0; position: relative; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
/* piste SVG : pointillé fixe, trait qui se dessine au défilement, paquets qui circulent */
.steps-svg { position: absolute; z-index: 2; inset-block-start: calc(1.55rem - 5px); inset-inline: 1.6rem; inline-size: calc(100% - 3.2rem); block-size: 12px; overflow: visible; pointer-events: none; }
html[dir="rtl"] .steps-svg { transform: scaleX(-1); }
.steps-track { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.steps-bar { stroke: url(#steps-grad); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(240, 179, 87, .45)); }
.steps-flow { stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 26; vector-effect: non-scaling-stroke; opacity: .9; animation: steps-flow 1.2s linear infinite; }
@keyframes steps-flow { to { stroke-dashoffset: -29; } }
.steps-head {
  position: absolute; z-index: 4; inset-block-start: calc(1.55rem - 7px); inset-inline-start: calc(1.6rem + (100% - 3.2rem) * var(--progress) - 8px);
  inline-size: 16px; block-size: 16px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 0 4px rgba(240, 179, 87, .22), 0 0 18px 4px rgba(240, 179, 87, .55);
  opacity: calc(var(--progress) * 8); transition: opacity .3s;
}
.steps-head::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ember); animation: steps-ping 1.6s ease-out infinite; }
@keyframes steps-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.steps-wrap.is-done .steps-head { opacity: 0; }
.step .step-n { transition: background .4s, color .4s, box-shadow .4s, border-color .4s; }
.step.on { border-color: rgba(203, 219, 109, .45); }
.step.on .step-n { background: var(--olive); color: #111; box-shadow: 0 0 0 5px var(--olive-dim), 0 0 16px rgba(203, 219, 109, .45); }
.step-human.on { border-color: var(--ember); }
.step-human.on .step-n { background: var(--ember); box-shadow: 0 0 0 5px rgba(240, 179, 87, .2), 0 0 22px rgba(240, 179, 87, .6); }
.step { position: relative; padding: 4.3rem 1.4rem 1.6rem; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step-n {
  position: absolute; inset-block-start: .35rem; inset-inline-start: .35rem; z-index: 3;
  display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--olive); color: var(--olive);
  font: 600 .82rem "Space Grotesk", sans-serif;
}
.step h3 { font-size: 1.35rem; margin-block-end: .6rem; }
.step p { color: var(--fg-muted); font-size: 1rem; }
.step-human { background: linear-gradient(160deg, rgba(240, 179, 87, .12), var(--panel) 60%); border-color: rgba(240, 179, 87, .4); }
.step-human .step-n { border-color: var(--ember); color: #111; background: var(--ember); }
.step-human h3 { color: var(--ember); }

/* ---------- règle ------------------------------------------------------- */
.rule { overflow: hidden; text-align: center; padding-block: calc(var(--space) * 1.25); }
.rule-glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 50% 55%, rgba(239, 106, 58, .16), transparent 70%), radial-gradient(35% 40% at 50% 50%, rgba(240, 179, 87, .12), transparent 70%);
}
.rule-inner { display: flex; flex-direction: column; align-items: center; }
.rule-inner .eyebrow::before { display: none; }
.rule-title {
  font-size: clamp(2rem, 1rem + 3.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.035em; max-inline-size: 16ch;
  background: linear-gradient(180deg, #fff 30%, #d9c8a5 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-block-end: .1em;
}
html[lang="ar"] .rule-title { line-height: 1.45; letter-spacing: 0; font-size: clamp(1.9rem, 1rem + 3vw, 3.7rem); }
.rule .lead { margin-block-start: 2rem; margin-inline: auto; }

/* ---------- terrain ----------------------------------------------------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(18rem, 30rem); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: max(var(--gutter), (100% - var(--maxw)) / 2);
  scroll-padding-inline: max(var(--gutter), (100% - var(--maxw)) / 2);
  padding-block-end: 1rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.gallery:focus-visible { outline-offset: -2px; }
.shot { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: .8rem; }
.shot-wide { grid-column: span 1; }
.shot picture, .shot > img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #3a3f3b; }
.shot img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { font-size: .95rem; color: var(--fg-muted); padding-inline: .2rem; }
.gallery-note { margin-block: .75rem 3rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.facts li { padding-block-start: 1.4rem; border-block-start: 1px solid var(--line-strong); }
.facts h3 { font-size: 1.2rem; margin-block-end: .6rem; }
.facts p { color: var(--fg-muted); font-size: 1rem; }

/* ---------- limites ----------------------------------------------------- */
.limits-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.nots li { display: flex; gap: 1.1rem; padding-block: 1.4rem; border-block-end: 1px solid var(--line); }
.nots li:first-child { padding-block-start: 0; }
.x {
  flex-shrink: 0; position: relative; inline-size: 2rem; block-size: 2rem; border-radius: 50%;
  border: 1px solid rgba(239, 106, 58, .5); background: rgba(239, 106, 58, .08);
}
.x::before, .x::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%; inline-size: .8rem; block-size: 1.5px; background: var(--fire); }
.x::before { transform: translate(-50%, -50%) rotate(45deg); }
.x::after { transform: translate(-50%, -50%) rotate(-45deg); }
html[dir="rtl"] .x::before { transform: translate(50%, -50%) rotate(45deg); }
html[dir="rtl"] .x::after { transform: translate(50%, -50%) rotate(-45deg); }
.nots h3 { font-size: 1.15rem; margin-block-end: .35rem; }
.nots p { color: var(--fg-muted); font-size: 1rem; }
.claims {
  position: sticky; inset-block-start: calc(var(--header-h) + 1.5rem);
  padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(240, 179, 87, .09), var(--panel) 45%);
  border: 1px solid rgba(240, 179, 87, .3);
}
.claims h3 { font-size: 1.5rem; color: var(--ember); margin-block-end: .7rem; }
.claims > p { color: var(--fg-muted); font-size: 1rem; margin-block-end: 1.2rem; }
.claims li { position: relative; padding-inline-start: 1.3rem; padding-block: .7rem; border-block-start: 1px solid var(--line); font-size: .98rem; color: var(--fg-muted); }
.claims li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 1.35rem; inline-size: .5rem; block-size: 1.5px; background: var(--ember); }
.claims strong { color: var(--fg); font-weight: 600; }

/* ---------- exploitation ------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { padding: 1.7rem; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card-n { display: inline-grid; place-items: center; inline-size: 2.2rem; block-size: 2.2rem; border-radius: 10px; background: var(--olive-dim); color: var(--olive); font: 700 .9rem "Space Grotesk", sans-serif; margin-block-end: 2.5rem; }
.card h3 { font-size: 1.2rem; margin-block-end: .6rem; }
.card p { color: var(--fg-muted); font-size: 1rem; }

/* ---------- état -------------------------------------------------------- */
.status-list { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.status-row {
  --lv: 0; position: relative;
  display: grid; grid-template-columns: minmax(10rem, 1fr) 9rem 2.4fr; gap: 1.25rem; align-items: center;
  padding: 1.15rem 1.5rem; border-block-start: 1px solid var(--line);
}
.status-row::after { content: ""; position: absolute; inset-block-end: -1px; inset-inline-start: 0; block-size: 2px; inline-size: calc(var(--lv) * 100% / 3); background: linear-gradient(var(--to-end), var(--olive), transparent); opacity: .6; }
.status-row[data-level="1"] { --lv: 1; } .status-row[data-level="2"] { --lv: 2; } .status-row[data-level="3"] { --lv: 3; }
.status-headrow { border-block-start: 0; padding-block: .85rem; background: var(--panel-2); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-faint); }
html[lang="ar"] .status-headrow { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.status-row [role="rowheader"] { font-weight: 600; }
.status-row [role="cell"]:last-child { color: var(--fg-muted); font-size: 1rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; inline-size: .45rem; block-size: .45rem; border-radius: 50%; background: currentColor; }
.pill-done { color: var(--olive); background: var(--olive-dim); }
.pill-wip  { color: var(--ember); background: rgba(240, 179, 87, .12); }
.pill-none { color: var(--fg-faint); background: rgba(255, 255, 255, .05); }

/* ---------- partenariat & pilote --------------------------------------- */
.pilot { background: radial-gradient(70% 50% at 50% 0%, rgba(239, 106, 58, .1), transparent 70%); }
.partner { text-align: center; display: flex; flex-direction: column; align-items: center; margin-block-end: clamp(3rem, 6vw, 5rem); }
.partner .eyebrow::before { display: none; }
.partner-logos { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; }
.partner-logos img:first-child { inline-size: clamp(110px, 14vw, 160px); }
.partner-logos img:last-child  { inline-size: clamp(160px, 20vw, 230px); }
.amp { font: 300 clamp(2.5rem, 5vw, 4rem)/1 "Space Grotesk", sans-serif; color: var(--fg-faint); }
.partner-text { margin-block-start: 1.8rem; color: var(--fg-muted); font-size: 1.1rem; }

.pilot-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem; }
.pilot-card, .ask { padding: clamp(1.6rem, 3.5vw, 2.8rem); border-radius: var(--radius); border: 1px solid var(--line); }
.pilot-card { background: linear-gradient(150deg, rgba(240, 179, 87, .14), rgba(239, 106, 58, .06) 40%, var(--panel) 75%); border-color: rgba(240, 179, 87, .3); }
.pilot-count { display: flex; align-items: baseline; gap: .8rem; margin-block: .2rem 1rem; }
.pilot-count > span { font: 600 clamp(4rem, 8vw, 6.2rem)/.9 "Space Grotesk", sans-serif; letter-spacing: -0.05em; background: var(--ember-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pilot-count small { font-size: 1.1rem; color: var(--fg-muted); font-weight: 500; }
.pilot-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin-block-end: 1rem; }
.pilot-card p:last-child { color: var(--fg-muted); }
.ask { background: var(--panel); }
.ask h3 { font-size: 1.5rem; margin-block-end: .8rem; }
.ask > p { color: var(--fg-muted); }
.ask-list { margin-block: 1.4rem 2rem; counter-reset: a; }
.ask-list li { counter-increment: a; position: relative; padding-block: .85rem; padding-inline-start: 2.6rem; border-block-start: 1px solid var(--line); color: var(--fg-muted); font-size: 1rem; }
.ask-list li::before { content: counter(a); position: absolute; inset-inline-start: 0; inset-block-start: .8rem; display: grid; place-items: center; inline-size: 1.7rem; block-size: 1.7rem; border-radius: 50%; background: var(--olive-dim); color: var(--olive); font: 700 .8rem "Space Grotesk", sans-serif; }

/* ---------- pied de page ------------------------------------------------ */
.site-footer { border-block-start: 1px solid var(--line); padding-block: 4rem 2rem; background: var(--bg-2); font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; }
.foot-strong { margin-block-start: 1.2rem; color: var(--fg-muted); }
.foot-text { display: grid; gap: .8rem; color: var(--fg-faint); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-block-start: 3rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); color: var(--fg-faint); }

/* ---------- apparition -------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- adaptatif --------------------------------------------------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-svg, .steps-head { display: none; }
}

@media (max-width: 980px) {
  .menu-btn {
    display: grid; place-items: center; margin-inline-start: auto;
    inline-size: 2.75rem; block-size: 2.75rem; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong); color: var(--fg);
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; inline-size: 1.15rem; block-size: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; inset-inline-start: 0; }
  .menu-icon::before { transform: translateY(-6px); }
  .menu-icon::after { transform: translateY(6px); }
  .nav-open .menu-icon { background: transparent; }
  .nav-open .menu-icon::before { transform: rotate(45deg); }
  .nav-open .menu-icon::after { transform: rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.25rem var(--gutter) 2rem;
    background: rgba(10, 13, 11, .97); border-block-end: 1px solid var(--line);
    max-block-size: calc(100svh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: .9rem .2rem; border-radius: 0; border-block-end: 1px solid var(--line); font-size: 1.05rem; color: var(--fg); }
  .lang-switch { align-self: flex-start; }
  .nav-cta { align-self: stretch; }

  .limits-grid, .pilot-grid, .footer-grid { grid-template-columns: 1fr; }
  .claims { position: static; }
  .facts { grid-template-columns: 1fr; }
  .status-row { grid-template-columns: 1fr auto; gap: .5rem 1rem; }
  .status-row [role="cell"]:last-child { grid-column: 1 / -1; }
  .status-headrow { display: none; }
}

@media (max-width: 640px) {
  .bento, .cards, .steps { grid-template-columns: 1fr; }
  .bento-hero { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .tile { min-block-size: 0; }
  .tile .icon { margin-block-end: 1.2rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .gallery { grid-auto-columns: 82%; }
  .film-cover-label small { display: none; }
  .brand-sep, .brand-name small { display: none; }
}

/* ---------- moins d'animation ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .steps-flow, .steps-head::after { animation: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .statement-text .w { opacity: 1; }
}
