/* =====================================================================
   WASILA — Site officiel
   Charte : 60 % vert profond #0F5B4A · 30 % ivoire #F3EAD8 · 10 % jaune #FFD60A
   Les nuances (--green-deep, --ivory-2…) sont des teintes de ces trois
   couleurs ; aucune autre couleur n'est introduite.
   Mise en page en propriétés logiques (inline/block) : le RTL arabe
   s'applique automatiquement via dir="rtl".
   ===================================================================== */

/* ---------- 1. Jetons ---------- */
:root {
  --green: #0F5B4A;
  --green-deep: #0B4A3C;
  --green-ink: #083A2F;
  --ivory: #F3EAD8;
  --ivory-2: #EADFC8;
  --sun: #FFD60A;

  --ivory-a08: rgba(243, 234, 216, .08);
  --ivory-a12: rgba(243, 234, 216, .12);
  --ivory-a20: rgba(243, 234, 216, .2);
  --ivory-a40: rgba(243, 234, 216, .4);
  --ivory-a72: rgba(243, 234, 216, .72);
  --green-a08: rgba(15, 91, 74, .08);
  --green-a14: rgba(15, 91, 74, .14);
  --green-a30: rgba(15, 91, 74, .3);
  --green-a70: rgba(8, 58, 47, .74);
  --shadow-lg: 0 40px 90px -30px rgba(4, 34, 27, .55);
  --shadow-md: 0 20px 50px -24px rgba(4, 34, 27, .45);

  --f-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
  --dir: 1;
  --fill-dir: to right;
}

[dir="rtl"] {
  --dir: -1;
  --fill-dir: to left;
}

:lang(ar) {
  --f-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Noto Kufi Arabic", system-ui, sans-serif;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--green);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:lang(ar) body { line-height: 1.85; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--sun); color: var(--green-ink); }

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--ivory :focus-visible { outline-color: var(--green); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--green-ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* Langue non française mémorisée : contenu masqué le temps d'appliquer
   la traduction (sécurité : réaffiché après 1,2 s quoi qu'il arrive). */
.i18n-pending body { opacity: 0; animation: i18n-failsafe 0s 1.2s forwards; }
@keyframes i18n-failsafe { to { opacity: 1; } }

/* ---------- 3. Typographie & éléments communs ---------- */
.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
:lang(ar) .eyebrow,
:lang(ar) .kicker { letter-spacing: 0; font-size: .92rem; text-transform: none; }

.eyebrow--light { color: var(--ivory-a72); }

.gem {
  width: 10px; height: 10px;
  background: var(--sun);
  transform: rotate(45deg);
  flex: none;
}

.kicker { color: var(--green); margin-block-end: 22px; }
.kicker--light { color: var(--ivory-a72); }
.kicker__num {
  display: inline-grid;
  place-items: center;
  min-width: 40px; height: 26px;
  padding-inline: 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.035em;
  max-width: 17ch;
  text-wrap: balance;
}
.section-title > span { display: block; }
:lang(ar) .section-title { letter-spacing: 0; line-height: 1.35; font-size: clamp(2rem, 4.4vw, 3.8rem); }

.accent-text { color: var(--sun); }

.section-lead {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  opacity: .82;
  margin-block-start: 22px;
  text-wrap: pretty;
}

.section-head { margin-block-end: clamp(48px, 7vw, 88px); }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 32px 64px;
  align-items: end;
}
.section-head--split .section-lead { margin: 0; }

/* Boutons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ivory);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s;
}
.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--green-ink); box-shadow: 0 10px 30px -12px rgba(255, 214, 10, .55); }
.btn--sun::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ivory);
  transform: translateX(calc(-101% * var(--dir)));
  transition: transform .45s var(--ease-out);
}
.btn--sun:hover::after { transform: none; }
.btn--sun:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(255, 214, 10, .6); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--ivory-a40); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ivory); background: var(--ivory-a08); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: .92rem; }
.btn--lg { min-height: 60px; padding: 18px 32px; font-size: 1.06rem; }

.icon-arrow { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(calc(4px * var(--dir))); }
[dir="rtl"] .icon-arrow { scale: -1 1; }

/* Disclaimers */
.disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-block-start: 22px;
  font-size: .88rem;
  max-width: 70ch;
}
.disclaimer svg,
.result__disclaimer svg {
  width: 18px; height: 18px; flex: none; margin-block-start: 2px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
}
.disclaimer--light { color: var(--ivory-a72); }

/* Apparitions au défilement (uniquement si JS actif) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left center;
}
[dir="rtl"] .scroll-progress span { transform-origin: right center; }

/* ---------- 4. Navigation ---------- */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
  background: rgba(11, 74, 60, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--ivory-a12);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  position: relative;
  z-index: 2;
}
.brand__mark { width: 40px; height: 40px; transition: transform .6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__word {
  font-family: "Bricolage Grotesque", var(--f-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: .22em;
}

.nav__menu { margin-inline-start: auto; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ivory-a72);
  transition: color .25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  inset-block-end: 4px;
  height: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover,
.nav__links a[aria-current] { color: var(--ivory); }
.nav__links a:hover::after,
.nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__menu-cta { display: none; }

.nav__actions { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ivory-a20);
}
.lang__btn {
  min-width: 40px;
  height: 34px;
  padding-inline: 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ivory-a72);
  transition: background-color .25s, color .25s;
}
.lang__btn--ar { font-family: "IBM Plex Sans Arabic", var(--f-body); letter-spacing: 0; font-size: .9rem; }
.lang__btn:hover { color: var(--ivory); }
.lang__btn[aria-pressed="true"] { background: var(--ivory); color: var(--green-ink); }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ivory-a20);
  position: relative;
}
.nav__toggle span {
  position: absolute;
  inset-inline-start: 14px;
  width: 18px; height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--nav-h) + 40px) 96px;
  background: var(--green);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ivory-a08) 1px, transparent 1px),
    linear-gradient(90deg, var(--ivory-a08) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
}
[dir="rtl"] .hero__grid {
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 30% 45%, #000 20%, transparent 75%);
}
.hero__beam {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: var(--sun);
  opacity: .35;
  animation: beam 9s linear infinite;
}
@keyframes beam {
  0% { transform: translateY(12vh); opacity: 0; }
  10% { opacity: .35; }
  90% { opacity: .35; }
  100% { transform: translateY(92vh); opacity: 0; }
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero__copy .eyebrow { margin-block-end: 28px; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 6.3vw, 6.4rem);
  line-height: .9;
  letter-spacing: -.05em;
}
.hero__line { display: block; overflow: hidden; padding-block: .04em .1em; white-space: nowrap; }
.hero__line > span { display: inline-block; }
.hero__line--accent { color: var(--sun); }
.hero__line--accent > span::after {
  content: "";
  display: inline-block;
  width: .2em; height: .2em;
  margin-inline-start: .14em;
  background: var(--ivory);
  transform: rotate(45deg) translateY(-.06em);
}
.js .hero__line > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.js .hero__line--accent > span { transition-delay: .12s; }
.js.is-ready .hero__line > span { transform: none; }
:lang(ar) .hero__title { letter-spacing: 0; line-height: 1.3; font-size: clamp(2.5rem, 5.6vw, 5.4rem); }
:lang(ar) .hero__line { padding-block: .02em .12em; }

.hero__lead {
  max-width: 34rem;
  margin-block-start: 30px;
  font-size: clamp(1.06rem, 1.4vw, 1.24rem);
  color: var(--ivory-a72);
  text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 38px; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-block-start: 44px;
  font-size: .9rem;
  color: var(--ivory-a72);
}
.hero__chips li { display: inline-flex; align-items: center; gap: 10px; }
.hero__chips .dot { width: 6px; height: 6px; background: var(--sun); transform: rotate(45deg); }

/* Scène 3D */
.hero__stage {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 600px;
  justify-self: center;
  perspective: 1400px;
}

.orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbits__ring { fill: none; stroke: var(--ivory-a20); stroke-width: 1; }
.orbits__ring--dash { stroke-dasharray: 2 10; stroke: var(--ivory-a40); }
.orbits__ring--faint { stroke: var(--ivory-a12); }
.orbits__gem { fill: var(--sun); }
.orbits__gem--ivory { fill: var(--ivory); }
.orbits__dot { fill: var(--sun); }
.orbits__spin { transform-origin: 300px 300px; transform-box: view-box; animation: spin 38s linear infinite; }
.orbits__spin--b { animation-duration: 26s; animation-direction: reverse; }
.orbits__spin--c { animation-duration: 18s; }
@keyframes spin { to { transform: rotate(360deg); } }

.card3d {
  --tx: 0deg;
  --ty: 0deg;
  --gx: 30%;
  --gy: 20%;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76%;
  aspect-ratio: 1.586;
  margin: calc(-76% / 1.586 / 2) 0 0 -38%;
  transform-style: preserve-3d;
  transform:
    rotateY(calc(-18deg * var(--dir) + var(--tx)))
    rotateX(calc(12deg + var(--ty)))
    rotateZ(calc(-5deg * var(--dir)));
  transition: transform .6s var(--ease-out);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.card3d__shadow {
  position: absolute;
  inset: 12% 8% -14%;
  border-radius: 30px;
  background: rgba(4, 34, 27, .55);
  filter: blur(34px);
  transform: translateZ(-80px);
}
.card3d__ghost {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: var(--ivory);
  transform: translateZ(-60px) translate(calc(9% * var(--dir)), 10%) rotate(calc(5deg * var(--dir)));
  box-shadow: var(--shadow-md);
}
.card3d__ghost::before {
  content: "";
  position: absolute;
  inset-inline-end: 8%;
  inset-block-end: 12%;
  width: 22%;
  aspect-ratio: 1;
  background: var(--sun);
  transform: rotate(45deg);
}
.card3d__face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 4%;
  padding: 6% 7%;
  border-radius: 26px;
  background-color: var(--green-ink);
  background-image:
    linear-gradient(var(--ivory-a08) 1px, transparent 1px),
    linear-gradient(90deg, var(--ivory-a08) 1px, transparent 1px);
  background-size: 22px 22px;
  box-shadow: inset 0 0 0 1px var(--ivory-a20), var(--shadow-lg);
  overflow: hidden;
  transform: translateZ(0);
  font-size: clamp(.62rem, 1.35vw, .9rem);
  line-height: 1.35;
}
.card3d__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card3d__brand { display: inline-flex; align-items: center; gap: 8px; font-family: "Bricolage Grotesque", var(--f-display); font-weight: 800; letter-spacing: .2em; font-size: 1.05em; }
.card3d__brand img { width: 2.2em; height: 2.2em; }
.card3d__tag {
  padding: .35em .9em;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ivory-a40);
  font-size: .82em;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
:lang(ar) .card3d__tag { letter-spacing: 0; }
.card3d__holder { display: flex; flex-direction: column; gap: 2px; }
.card3d__label { font-size: .78em; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-a72); font-weight: 700; }
:lang(ar) .card3d__label { letter-spacing: 0; }
.card3d__phone { font-family: "Bricolage Grotesque", var(--f-display); font-size: 1.45em; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; unicode-bidi: isolate; white-space: nowrap; }
[dir="rtl"] .card3d__phone { text-align: end; }

.card3d__stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4%; align-self: center; }
.card3d__stamps i {
  aspect-ratio: 1;
  transform: rotate(45deg) scale(.72);
  box-shadow: inset 0 0 0 1.5px var(--ivory-a40);
  border-radius: 3px;
}
.card3d__stamps i.on { background: var(--sun); box-shadow: none; }
.card3d__stamps i.next { animation: stamp 3.6s var(--ease-out) infinite; }
@keyframes stamp {
  0%, 35% { background: transparent; transform: rotate(45deg) scale(.72); }
  45% { background: var(--sun); transform: rotate(45deg) scale(1.05); box-shadow: 0 0 0 6px rgba(255, 214, 10, .25); }
  55%, 85% { background: var(--sun); transform: rotate(45deg) scale(.72); box-shadow: none; }
  100% { background: transparent; transform: rotate(45deg) scale(.72); }
}
.card3d__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.card3d__bottom strong { display: block; font-family: var(--f-display); font-size: 1.3em; font-weight: 700; color: var(--sun); }
.card3d__qr { width: 3.6em; height: 3.6em; padding: .35em; background: var(--ivory); border-radius: 6px; fill: var(--green-ink); shape-rendering: crispEdges; }
.card3d__shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(243, 234, 216, .16), transparent 45%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--green-ink);
  font-size: .86rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-chip--a { inset-block-start: 12%; inset-inline-start: 2%; }
.float-chip--b { inset-block-end: 13%; inset-inline-end: 0; animation-delay: -2s; padding-block: 8px; border-radius: 18px; }
.float-chip--c { inset-block-end: 4%; inset-inline-start: 12%; animation-delay: -4s; background: var(--sun); }
.float-chip__gem { width: 12px; height: 12px; background: var(--sun); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--green-ink); }
.float-chip__icon { width: 18px; height: 18px; }
.float-chip small { display: block; font-size: .7rem; font-weight: 600; opacity: .7; line-height: 1.2; }
.float-chip b { font-family: var(--f-display); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.float-chip__ring svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.float-chip__ring circle { fill: none; stroke: var(--green-a14); stroke-width: 4; }
.float-chip__ring .float-chip__arc { stroke: var(--green); stroke-dasharray: 94.2; stroke-dashoffset: 28.3; stroke-linecap: round; }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.stage-tag {
  position: absolute;
  inset-block-start: 2%;
  inset-inline-end: 4%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ivory-a72);
  box-shadow: inset 0 0 0 1px var(--ivory-a20);
}
:lang(ar) .stage-tag { letter-spacing: 0; font-size: .78rem; }

.hero__scroll {
  position: absolute;
  inset-block-end: 26px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory-a72);
}
:lang(ar) .hero__scroll { letter-spacing: 0; font-size: .82rem; }
.hero__scroll-line { width: 1px; height: 44px; background: var(--ivory-a20); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 40%;
  background: var(--sun);
  animation: scrollcue 2.2s var(--ease-out) infinite;
}
@keyframes scrollcue {
  from { transform: translateY(-100%); }
  to { transform: translateY(260%); }
}

/* ---------- 6. Sections : fonds ---------- */
.section { position: relative; padding-block: clamp(96px, 12vw, 168px); isolation: isolate; }
.section--ivory { background: var(--ivory); color: var(--green-ink); }
.section--green { background: var(--green-deep); color: var(--ivory); }
.section--deep { background: var(--green); color: var(--ivory); }

/* ---------- 7. Le concept ---------- */
.concept .section-title { max-width: 14ch; }

.steps-wrap { --draw: 0; position: relative; }
.steps__path {
  position: absolute;
  inset-inline: 4%;
  top: 84px;
  width: 92%;
  height: 120px;
  overflow: visible;
  pointer-events: none;
}
[dir="rtl"] .steps__path { transform: scaleX(-1); }
.steps__path path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.steps__path-base { stroke: var(--green-a14); stroke-dasharray: 3 8; }
.steps__path-draw { stroke: var(--green); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw)); }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.step { position: relative; }
.step:nth-child(2) { margin-block-start: 72px; }
.step:nth-child(3) { margin-block-start: 144px; }
.js .step.reveal:nth-child(2) { transition-delay: .12s; }
.js .step.reveal:nth-child(3) { transition-delay: .24s; }

.step__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 210px;
  margin-block-end: 28px;
  border-radius: var(--radius-lg);
  background: var(--ivory-2);
  box-shadow: inset 0 0 0 1px var(--green-a14);
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.step__visual::before {
  content: "";
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  width: 10px; height: 10px;
  background: var(--sun);
  transform: rotate(45deg);
}
.step:hover .step__visual { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--green-a30), var(--shadow-md); }

.step__num {
  position: absolute;
  inset-block-start: 160px;
  inset-inline-start: 20px;
  font-family: "Bricolage Grotesque", var(--f-display);
  font-size: 5.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ivory);
  -webkit-text-stroke: 1.5px var(--green);
  pointer-events: none;
}
.step__title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-block: 26px 10px;
}
:lang(ar) .step__title { letter-spacing: 0; }
.step__text { max-width: 30ch; color: var(--green-a70); }

.v-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ivory);
  font-size: .78rem;
  font-weight: 700;
}
.v-pill--ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }

.v-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ivory);
  box-shadow: inset 0 0 0 1.5px var(--green-a30), 0 12px 24px -16px rgba(4, 34, 27, .5);
  font-family: "Bricolage Grotesque", var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.v-phone__code { padding-inline-end: 12px; border-inline-end: 1.5px solid var(--green-a30); color: var(--green); }
.v-phone__num { display: inline-flex; align-items: center; }
.v-caret { display: inline-block; width: 2px; height: 1.1em; margin-inline-start: 3px; background: var(--green); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.v-count { display: flex; align-items: flex-end; gap: 18px; }
.v-count__plus {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: var(--sun);
  font-family: "Bricolage Grotesque", var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
}
.v-count__bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.v-count__bars i { width: 10px; border-radius: 4px 4px 2px 2px; background: var(--green-a30); height: 30%; transition: height 1s var(--ease-out); }
.v-count__bars i:last-child { background: var(--green); }
.step.is-in .v-count__bars i:nth-child(1) { height: 32%; }
.step.is-in .v-count__bars i:nth-child(2) { height: 46%; transition-delay: .08s; }
.step.is-in .v-count__bars i:nth-child(3) { height: 40%; transition-delay: .16s; }
.step.is-in .v-count__bars i:nth-child(4) { height: 62%; transition-delay: .24s; }
.step.is-in .v-count__bars i:nth-child(5) { height: 74%; transition-delay: .32s; }
.step.is-in .v-count__bars i:nth-child(6) { height: 100%; transition-delay: .4s; }

.v-ring { position: relative; width: 92px; height: 92px; }
.v-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.v-ring circle { fill: none; stroke: var(--green-a14); stroke-width: 6; }
.v-ring .v-ring__arc { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease-out) .3s; }
[dir="rtl"] .v-ring svg { transform: rotate(-90deg) scaleY(-1); }
.step.is-in .v-ring__arc,
html:not(.js) .v-ring__arc { stroke-dashoffset: 28; }
.v-ring__gem { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; background: var(--sun); transform: rotate(45deg); box-shadow: 0 0 0 5px var(--green); }

/* ---------- 8. Technologie & expérience ---------- */
.xp__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 22l6 6-6 6-6-6z' fill='none' stroke='%23F3EAD8' stroke-opacity='.07'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(#000, transparent 70%);
  mask-image: linear-gradient(#000, transparent 70%);
}
.xp .section-title { max-width: 14ch; }

.console {
  border-radius: var(--radius-xl);
  background: var(--green-ink);
  box-shadow: inset 0 0 0 1px var(--ivory-a12), var(--shadow-lg);
  overflow: hidden;
}
.console__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  padding-inline: 20px;
  border-block-end: 1px solid var(--ivory-a12);
  font-size: .86rem;
}
.console__dots { display: flex; gap: 7px; }
.console__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ivory-a20); }
.console__dots i:first-child { background: var(--sun); }
.console__title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; color: var(--ivory-a72); white-space: nowrap; }
.console__title > span { overflow: hidden; text-overflow: ellipsis; }
.console__title img { flex: none; }
.console__title img { width: 18px; height: 18px; }
.console__badge {
  margin-inline-start: auto;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--sun);
  color: var(--sun);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
:lang(ar) .console__badge { letter-spacing: 0; font-size: .8rem; }

.console__body { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 470px; }
.console__tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  border-inline-end: 1px solid var(--ivory-a12);
}
.console__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  text-align: start;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ivory-a72);
  transition: background-color .25s, color .25s;
}
.console__tab svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.console__tab::before {
  content: "";
  position: absolute;
  inset-inline-start: -14px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: var(--sun);
  transform: scaleY(0);
  transition: transform .35s var(--ease-out);
}
.console__tab:hover { color: var(--ivory); background: var(--ivory-a08); }
.console__tab[aria-selected="true"] { color: var(--ivory); background: var(--ivory-a12); }
.console__tab[aria-selected="true"]::before { transform: none; }
.console__tab[aria-selected="true"] svg { stroke: var(--sun); }

.console__panels { position: relative; padding: clamp(22px, 3vw, 40px); }
.panel { animation: panel-in .6s var(--ease-out); }
.panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block-end: 26px; }
.panel__title { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
:lang(ar) .panel__title { letter-spacing: 0; }
.panel__caption { margin-block-start: 26px; font-size: .92rem; color: var(--ivory-a72); }
.mock-tag {
  flex: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ivory-a08);
  color: var(--ivory-a72);
  font-size: .72rem;
  font-weight: 700;
}

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 18px 20px; border-radius: var(--radius-md); background: var(--ivory-a08); box-shadow: inset 0 0 0 1px var(--ivory-a12); }
.kpi__label { display: block; font-size: .82rem; color: var(--ivory-a72); }
.kpi__value { display: block; margin-block-start: 6px; font-family: "Bricolage Grotesque", var(--f-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi--sun .kpi__value { color: var(--sun); }

.chart { margin-block-start: 22px; padding: 20px; border-radius: var(--radius-md); background: var(--ivory-a08); }
.chart__bars { display: flex; align-items: flex-end; gap: 3%; height: 150px; }
.chart__bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--ivory-a20); transform-origin: bottom; animation: bar-grow .9s var(--ease-out) both; }
.chart__bars i:last-child { background: var(--sun); }
.chart__bars i:nth-child(1) { height: 34%; }
.chart__bars i:nth-child(2) { height: 42%; animation-delay: .03s; }
.chart__bars i:nth-child(3) { height: 38%; animation-delay: .06s; }
.chart__bars i:nth-child(4) { height: 52%; animation-delay: .09s; }
.chart__bars i:nth-child(5) { height: 48%; animation-delay: .12s; }
.chart__bars i:nth-child(6) { height: 61%; animation-delay: .15s; }
.chart__bars i:nth-child(7) { height: 57%; animation-delay: .18s; }
.chart__bars i:nth-child(8) { height: 69%; animation-delay: .21s; }
.chart__bars i:nth-child(9) { height: 66%; animation-delay: .24s; }
.chart__bars i:nth-child(10) { height: 78%; animation-delay: .27s; }
.chart__bars i:nth-child(11) { height: 84%; animation-delay: .3s; }
.chart__bars i:nth-child(12) { height: 96%; animation-delay: .33s; }
@keyframes bar-grow { from { transform: scaleY(0); } }
.chart__axis { display: flex; justify-content: space-between; margin-block-start: 12px; }
.chart__axis span { width: 18%; height: 4px; border-radius: 4px; background: var(--ivory-a12); }

.phone {
  width: min(280px, 100%);
  margin-inline: auto;
  padding: 10px;
  border-radius: 40px;
  background: var(--green-deep);
  box-shadow: inset 0 0 0 1px var(--ivory-a20), var(--shadow-lg);
}
.phone__screen { display: flex; flex-direction: column; gap: 14px; padding: 24px 18px 22px; border-radius: 32px; background: var(--green); }
.phone__brand { display: inline-flex; align-items: center; gap: 7px; font-family: "Bricolage Grotesque", var(--f-display); font-weight: 800; letter-spacing: .2em; font-size: .78rem; }
.phone__hello { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; }
.phone__card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 20px; background: var(--ivory); color: var(--green-ink); }
.phone__card .card3d__label { color: var(--green); font-size: .68rem; }
.phone__shop { font-family: var(--f-display); font-size: 1.1rem; }
.phone__stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding-block: 6px; }
.phone__stamps i { aspect-ratio: 1; transform: rotate(45deg) scale(.7); border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--green-a30); }
.phone__stamps i.on { background: var(--green); box-shadow: none; }
.phone__stamps i.on:nth-child(7) { background: var(--sun); box-shadow: 0 0 0 2px var(--green); }
.phone__meta { font-size: .8rem; font-weight: 700; color: var(--green); }
.phone__row { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--ivory-a08); font-size: .82rem; }
.phone__row span { color: var(--ivory-a72); }
.phone__row b { color: var(--sun); }

.feed { display: flex; flex-direction: column; gap: 10px; }
.feed li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--ivory-a08);
  animation: panel-in .6s var(--ease-out) both;
}
.feed li:nth-child(2) { animation-delay: .06s; }
.feed li:nth-child(3) { animation-delay: .12s; }
.feed li:nth-child(4) { animation-delay: .18s; }
.feed__phone { font-variant-numeric: tabular-nums; font-weight: 600; unicode-bidi: isolate; white-space: nowrap; }
[dir="rtl"] .feed__phone { text-align: end; }
.feed__delta { padding: 5px 12px; border-radius: 999px; background: var(--ivory-a12); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.feed__delta--sun { background: var(--sun); color: var(--green-ink); }
.feed__time { font-size: .8rem; color: var(--ivory-a72); white-space: nowrap; }

.rewards { display: flex; flex-direction: column; gap: 12px; }
.reward { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-md); background: var(--ivory-a08); }
.reward__gem { width: 16px; height: 16px; margin-block-start: 6px; flex: none; background: var(--sun); transform: rotate(45deg); }
.reward__body { display: grid; gap: 4px; flex: 1; }
.reward__body b { font-family: var(--f-display); font-size: 1.1rem; }
.reward__body span:not(.bar) { font-size: .86rem; color: var(--ivory-a72); }
.bar { display: block; height: 6px; margin-block-start: 8px; border-radius: 6px; background: var(--ivory-a12); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--ivory); transform-origin: left; animation: bar-x 1.1s var(--ease-out) both .15s; }
[dir="rtl"] .bar i { transform-origin: right; }
.bar i.w45 { width: 45%; }
.bar i.w70 { width: 70%; }
.bar i.w90 { width: 90%; background: var(--sun); }
@keyframes bar-x { from { transform: scaleX(0); } }

.settings { display: flex; flex-direction: column; border-radius: var(--radius-md); background: var(--ivory-a08); }
.settings__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; }
.settings__row + .settings__row { border-block-start: 1px solid var(--ivory-a12); }
.settings__row > span { color: var(--ivory-a72); font-size: .92rem; }
.settings__value { text-align: end; }
.settings__value[hidden] { display: none; }
.switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--green); box-shadow: inset 0 0 0 1px var(--ivory-a20); }
.switch button { padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--ivory-a72); transition: background-color .25s, color .25s; }
.switch button:hover { color: var(--ivory); }
.switch button[aria-pressed="true"] { background: var(--sun); color: var(--green-ink); }

/* ---------- 9. Avantages (bento) ---------- */
.benefits .section-title { max-width: 15ch; }
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  gap: clamp(14px, 2vw, 22px);
}
.tile {
  position: relative;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--ivory-2);
  box-shadow: inset 0 0 0 1px var(--green-a14);
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.tile:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--green-a30), var(--shadow-md); }
.tile--hero { grid-row: span 2; background: var(--green); color: var(--ivory); box-shadow: none; }
.tile--green { background: var(--green-ink); color: var(--ivory); box-shadow: none; }
.tile--wide { grid-column: span 6; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; column-gap: 40px; align-items: start; }
.js .tile.reveal:nth-child(2) { transition-delay: .08s; }
.js .tile.reveal:nth-child(3) { transition-delay: .16s; }

.tile__num {
  align-self: flex-start;
  display: inline-grid;
  place-items: center;
  min-width: 44px; height: 28px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px currentColor;
  font-size: .78rem;
  font-weight: 700;
  opacity: .8;
}
.tile__art { flex: 1; display: grid; place-items: center; min-height: 120px; margin-block: 22px; }
.tile__title { font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
:lang(ar) .tile__title { letter-spacing: 0; line-height: 1.4; }
.tile__text { margin-block-start: 12px; max-width: 42ch; opacity: .78; }
.tile--wide .tile__num { grid-row: 1 / 3; }
.tile--wide .tile__title { grid-column: 2; }
.tile--wide .tile__text { grid-column: 2; grid-row: 2; }
.tile--wide .tile__art { grid-column: 3; grid-row: 1 / 3; margin: 0; min-height: 0; }

.tile__icon { width: 92px; height: 92px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; transition: transform .6s var(--ease-out); }
.tile:hover .tile__icon { transform: rotate(calc(-6deg * var(--dir))) scale(1.06); }

.tile__art--card { perspective: 900px; min-height: 260px; }
.mini-card {
  position: relative;
  grid-area: 1 / 1;
  width: min(330px, 86%);
  aspect-ratio: 1.586;
  padding: 7%;
  border-radius: 20px;
  background: var(--green-ink);
  box-shadow: inset 0 0 0 1px var(--ivory-a20), var(--shadow-lg);
  transform: rotateY(calc(-20deg * var(--dir))) rotateX(14deg) rotateZ(calc(-4deg * var(--dir)));
  transition: transform .8s var(--ease-out);
  z-index: 1;
}
.mini-card img { width: 34px; height: 34px; }
.mini-card span { display: block; height: 8px; margin-block-start: 12px; border-radius: 6px; background: var(--ivory-a20); width: 60%; }
.mini-card span + span { width: 38%; }
.mini-card i { position: absolute; inset-inline-end: 9%; inset-block-end: 14%; width: 18%; aspect-ratio: 1; background: var(--sun); transform: rotate(45deg); }
.mini-card--back {
  z-index: 0;
  background: var(--ivory);
  box-shadow: none;
  transform: rotateY(calc(-20deg * var(--dir))) rotateX(14deg) rotateZ(calc(6deg * var(--dir))) translate(calc(8% * var(--dir)), 8%);
  opacity: .9;
}
.tile--hero:hover .mini-card:not(.mini-card--back) { transform: rotateY(calc(-8deg * var(--dir))) rotateX(6deg) rotateZ(0deg) translateY(-8px); }

.duo { display: flex; align-items: center; gap: 22px; }
.duo__a { font-family: "Bricolage Grotesque", var(--f-display); font-size: 2.8rem; font-weight: 800; color: var(--sun); line-height: 1; }
.duo__a small { font-size: .45em; color: var(--ivory); }
.duo__sep { width: 1px; height: 54px; background: var(--ivory-a40); }
.duo__b { display: grid; grid-template-columns: repeat(5, 18px); gap: 8px; }
.duo__b i { aspect-ratio: 1; transform: rotate(45deg) scale(.8); background: var(--ivory); border-radius: 2px; }
.duo__b i:nth-child(n + 4) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ivory-a40); }

.sliders { display: grid; gap: 22px; width: 100%; max-width: 380px; }
.sliders span { position: relative; height: 6px; border-radius: 6px; background: var(--green-a14); }
.sliders i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 6px; background: var(--green); transition: width .8s var(--ease-out); }
.sliders i::after { content: ""; position: absolute; inset-inline-end: -10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--ivory-2), 0 0 0 5px var(--green-a30); }
.sliders .w60 { width: 60%; }
.sliders .w35 { width: 35%; }
.sliders .w80 { width: 80%; }
.tile--wide:hover .w60 { width: 72%; }
.tile--wide:hover .w35 { width: 52%; }
.tile--wide:hover .w80 { width: 64%; }

/* ---------- 10. Simulateur ---------- */
.sim { overflow: hidden; }
.sim__glyph {
  position: absolute;
  z-index: -1;
  inset-block-start: -180px;
  inset-inline-end: -180px;
  width: 620px; height: 620px;
  border: 1px solid var(--ivory-a12);
  transform: rotate(45deg);
  animation: glyph 40s linear infinite;
}
.sim__glyph::before,
.sim__glyph::after { content: ""; position: absolute; inset: 70px; border: 1px solid var(--ivory-a08); }
.sim__glyph::after { inset: 150px; border-color: rgba(255, 214, 10, .22); }
@keyframes glyph { to { transform: rotate(405deg); } }

.sim__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.sim .section-head { margin-block-end: 48px; }
.sim .section-title { max-width: 15ch; font-size: clamp(2.2rem, 4.4vw, 3.9rem); }

.sim__controls { display: grid; gap: 34px; }
.range__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-block-end: 14px; }
.range__head label { font-weight: 600; font-size: 1rem; color: var(--ivory-a72); }
.range__out {
  font-family: "Bricolage Grotesque", var(--f-display);
  font-size: 1.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
:lang(ar) .range__out { font-family: var(--f-display); font-size: 1.45rem; }
.range__scale span { unicode-bidi: isolate; }
.range__scale { display: flex; justify-content: space-between; margin-block-start: 10px; font-size: .78rem; color: var(--ivory-a72); font-variant-numeric: tabular-nums; }

input[type="range"] {
  --fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(var(--fill-dir), var(--sun) var(--fill), var(--ivory-a20) var(--fill));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--ivory-a20); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--sun); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px; height: 28px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--sun);
  border: 6px solid var(--green-ink);
  box-shadow: 0 0 0 1px var(--sun), 0 8px 20px -6px rgba(4, 34, 27, .7);
  transition: transform .2s var(--ease-out);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sun);
  border: 6px solid var(--green-ink);
  box-shadow: 0 0 0 1px var(--sun);
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:focus-visible::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: 2px solid var(--sun); outline-offset: 6px; border-radius: 8px; }

.result {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--ivory);
  color: var(--green-ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.result__corner {
  position: absolute;
  inset-block-start: -34px;
  inset-inline-end: -34px;
  width: 96px; height: 96px;
  background: var(--sun);
  transform: rotate(45deg);
}
.result__label { max-width: 22ch; font-weight: 700; font-size: 1.02rem; color: var(--green); }
.result__value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-block-start: 18px; }
.result__num {
  font-family: "Bricolage Grotesque", var(--f-display);
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.result__unit { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; color: var(--green); }
.result__period { margin-block-start: 6px; font-weight: 600; color: var(--green-a70); }

.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-start: 28px; padding-block-start: 24px; border-block-start: 1px solid var(--green-a14); }
.formula__term { display: grid; padding: 10px 14px; border-radius: 12px; background: var(--green-a08); }
.formula__term b { font-family: "Bricolage Grotesque", var(--f-display); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.formula__term small { font-size: .74rem; color: var(--green-a70); font-weight: 600; }
.formula__op { font-weight: 700; color: var(--green); }

.result__disclaimer { display: flex; gap: 10px; margin-block-start: 24px; font-size: .84rem; line-height: 1.55; color: var(--green-a70); }

/* ---------- 11. Secteurs ---------- */
.sectors { padding-block-start: 0; }
.marquee { overflow: hidden; padding-block: 28px; margin-block-end: clamp(72px, 9vw, 120px); background: var(--sun); color: var(--green-ink); }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__track span {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}
:lang(ar) .marquee__track span { letter-spacing: 0; }
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px var(--green-ink); }
.marquee__track i { width: 14px; height: 14px; flex: none; background: var(--green-ink); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

.sector-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.sector {
  grid-column: span 2;
  position: relative;
  padding: 30px 28px 34px;
  border-radius: var(--radius-lg);
  background: var(--ivory-a08);
  box-shadow: inset 0 0 0 1px var(--ivory-a12);
  transition: transform .5s var(--ease-out), background-color .4s, color .4s;
}
.sector:nth-child(1),
.sector:nth-child(2) { grid-column: span 3; }
.js .sector.reveal:nth-child(2) { transition-delay: .06s; }
.js .sector.reveal:nth-child(3) { transition-delay: .12s; }
.js .sector.reveal:nth-child(4) { transition-delay: .18s; }
.js .sector.reveal:nth-child(5) { transition-delay: .24s; }
.sector::after {
  content: "";
  position: absolute;
  inset-block-start: 26px;
  inset-inline-end: 26px;
  width: 12px; height: 12px;
  background: var(--sun);
  transform: rotate(45deg) scale(0);
  transition: transform .45s var(--ease-out);
}
.sector:hover { transform: translateY(-6px); background: var(--ivory); color: var(--green-ink); }
.sector:hover::after { transform: rotate(45deg) scale(1); }
.sector__icon { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--sun); transition: color .4s; }
.sector:hover .sector__icon { color: var(--green); }
.sector h3 { margin-block: 26px 8px; font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; }
:lang(ar) .sector h3 { letter-spacing: 0; }
.sector p { font-size: .95rem; opacity: .78; max-width: 36ch; }

/* ---------- 12. Appel à l'action final ---------- */
.cta {
  position: relative;
  padding-block: clamp(120px, 15vw, 210px);
  background: var(--green);
  overflow: hidden;
  isolation: isolate;
}
.cta__art {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline-end: -8%;
  width: min(760px, 70vw);
  display: grid;
  place-items: center;
}
.cta__ring {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--ivory-a20);
  animation: ring 6s var(--ease-out) infinite;
}
.cta__ring--1 { width: 40%; }
.cta__ring--2 { width: 70%; animation-delay: -2s; border-style: dashed; }
.cta__ring--3 { width: 100%; animation-delay: -4s; border-color: rgba(255, 214, 10, .3); }
@keyframes ring {
  0%, 100% { transform: scale(.96); opacity: .7; }
  50% { transform: scale(1.04); opacity: 1; }
}
.cta__ring::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  background: var(--sun);
  transform: rotate(45deg);
}
.cta__ring--2::after { top: auto; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--ivory); }
.cta__ring--1::after { width: 8px; height: 8px; top: -4px; margin-left: -4px; }
.cta__orbit { position: absolute; inset: 0; display: grid; place-items: center; animation: spin 50s linear infinite; }
.cta__orbit--rev { animation-duration: 34s; animation-direction: reverse; }
.cta__mark { position: relative; width: 30%; height: auto; opacity: .95; animation: float 8s ease-in-out infinite; }

.cta__inner { position: relative; }
.cta__title {
  max-width: 15ch;
  margin-block-start: 26px;
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6.6vw, 6.2rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
:lang(ar) .cta__title { letter-spacing: 0; line-height: 1.35; font-size: clamp(2.2rem, 5.2vw, 4.8rem); }
.cta__lead { max-width: 44ch; margin-block-start: 28px; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ivory-a72); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 44px; }

/* ---------- 13. Pied de page ---------- */
.footer { background: var(--green-ink); color: var(--ivory); padding-block: 72px 32px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block-end: 48px; border-block-end: 1px solid var(--ivory-a12); }
.footer__brand p { max-width: 36ch; margin-block-start: 18px; color: var(--ivory-a72); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 28px; align-content: flex-start; }
.footer__nav a { padding-block: 6px; font-weight: 600; color: var(--ivory-a72); transition: color .25s; }
.footer__nav a:hover { color: var(--sun); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block-start: 26px; font-size: .86rem; color: var(--ivory-a72); }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1100px) {
  .console__body { grid-template-columns: 230px minmax(0, 1fr); }
  .tile--wide { grid-template-columns: auto minmax(0, 1fr); }
  .tile--wide .tile__art { grid-column: 2; grid-row: 3; margin-block-start: 28px; justify-items: start; }
}

@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav__toggle { display: inline-block; }
  .nav__actions { margin-inline-start: auto; }
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: calc(var(--nav-h) + 24px) var(--gutter) 48px;
    background: var(--green-deep);
    background-image:
      linear-gradient(var(--ivory-a08) 1px, transparent 1px),
      linear-gradient(90deg, var(--ivory-a08) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease-out), visibility 0s .4s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease-out); }
  .nav.is-open { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__links { flex-direction: column; gap: 6px; }
  .nav__links a {
    padding: 8px 0;
    font-family: var(--f-display);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ivory);
    transform: translateY(16px);
    opacity: 0;
    transition: transform .6s var(--ease-out), opacity .6s var(--ease-out), color .25s;
  }
  :lang(ar) .nav__links a { letter-spacing: 0; }
  .nav__links a::after { inset-inline: 0 auto; width: 48px; bottom: 0; }
  .nav.is-open .nav__links a { transform: none; opacity: 1; }
  .nav.is-open .nav__links li:nth-child(2) a { transition-delay: .05s; }
  .nav.is-open .nav__links li:nth-child(3) a { transition-delay: .1s; }
  .nav.is-open .nav__links li:nth-child(4) a { transition-delay: .15s; }
  .nav__menu-cta { display: inline-flex; align-self: flex-start; }
  .menu-open body { overflow: hidden; }

  .hero { padding-block-end: 72px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stage { max-width: 520px; margin-block-start: 20px; }

  .section-head--split { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; gap: 56px; max-width: 560px; }
  .step:nth-child(2),
  .step:nth-child(3) { margin-block-start: 0; }
  .steps__path { display: none; }
  .steps::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 50%;
    width: 1px;
    background: var(--green-a14);
    display: none;
  }

  .console__body { grid-template-columns: 1fr; }
  .console__tabs {
    flex-direction: row;
    overflow-x: auto;
    border-inline-end: 0;
    border-block-end: 1px solid var(--ivory-a12);
    padding: 12px;
    scrollbar-width: none;
  }
  .console__tabs::-webkit-scrollbar { display: none; }
  .console__tab { width: auto; flex: none; white-space: nowrap; padding: 10px 14px; }
  .console__tab::before { inset-inline-start: 14px; inset-inline-end: 14px; top: auto; bottom: -12px; width: auto; height: 3px; transform: scaleX(0); }
  .console__tab[aria-selected="true"]::before { transform: none; }

  .sim__inner { grid-template-columns: 1fr; }
  .result { position: relative; top: 0; }

  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector,
  .sector:nth-child(1),
  .sector:nth-child(2) { grid-column: span 1; }
  .sector:nth-child(5) { grid-column: span 2; }

  .cta__art { inset-inline-end: -30%; width: 110vw; opacity: .5; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .nav__cta { display: none; }
  .lang__btn { min-width: 36px; padding-inline: 8px; }

  .hero__chips { gap: 10px 18px; }
  .float-chip { font-size: .76rem; padding: 8px 12px; }
  .float-chip--b { inset-block-end: 8%; }
  .float-chip--c { inset-block-end: 0; }

  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile,
  .tile--hero,
  .tile--wide { grid-column: auto; grid-row: auto; }
  .tile--wide { display: flex; }
  .tile--wide .tile__art { margin-block: 22px 0; order: 4; justify-items: stretch; }
  .tile__art--card { min-height: 220px; }

  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi--sun { grid-column: span 2; }
  .feed li { grid-template-columns: 1fr auto; }
  .feed__time { grid-column: 1 / -1; }
  .settings__row { flex-wrap: wrap; }

  .sector-grid { grid-template-columns: 1fr; }
  .sector:nth-child(5) { grid-column: auto; }

  .hero__scroll { display: none; }
}

@media (max-width: 420px) {
  .brand__word { display: none; }
  .btn { white-space: normal; text-align: center; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .cta__actions .btn { flex: 1 1 100%; }
}

/* ---------- 15. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .hero__beam,
  .hero__scroll-line::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero__line > span { transform: none; }
  .card3d__stamps i.next { background: transparent; }
  .steps-wrap { --draw: 1 !important; }
}

/* ---------- 16. Impression ---------- */
@media print {
  .nav, .scroll-progress, .hero__bg, .orbits, .float-chip, .marquee, .cta__art, .hero__scroll { display: none !important; }
  body, .section, .hero, .cta, .footer { background: #fff !important; color: #083A2F !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   17. ESPACE COMMERÇANT — accès depuis la navigation + page portail
   ===================================================================== */

/* Bouton « Espace commerçant » : ivoire plein, distinct du CTA jaune */
.btn--merchant { --btn-bg: var(--ivory); --btn-fg: var(--green-ink); box-shadow: 0 10px 28px -14px rgba(4, 34, 27, .6); }
.btn--merchant::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sun);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn--merchant:hover::after,
.btn--merchant[aria-current="page"]::after { transform: none; }
.btn--merchant:hover { transform: translateY(-2px); }
.icon-user { width: 18px; height: 18px; flex: none; }

.nav__menu-actions { display: none; }

.footer__merchant { display: inline-flex; align-items: center; gap: 8px; color: var(--ivory) !important; }
.footer__merchant .gem { width: 8px; height: 8px; }
.footer__merchant:hover { color: var(--sun) !important; }

@media (max-width: 1180px) and (min-width: 961px) {
  .nav__cta { display: none; }
  .nav__inner { gap: 16px; }
  .nav__links a { padding-inline: 10px; }
  .nav__links a::after { inset-inline: 10px; }
}
.nav__links a { white-space: nowrap; }

@media (max-width: 960px) {
  .nav__menu-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .nav__menu-cta { align-self: auto; }
  /* En-tête mobile : icône seule, nom accessible conservé */
  .nav__merchant { width: 46px; min-height: 46px; height: 46px; padding: 0; border-radius: 50%; }
  .nav__merchant span {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .nav__merchant .icon-user { width: 20px; height: 20px; }
}
@media (max-width: 720px) {
  .nav__merchant { display: inline-flex; }
  .nav__actions { gap: 8px; }
}
@media (max-width: 360px) {
  .lang__btn { min-width: 32px; padding-inline: 6px; }
}

/* ---------- Page portail ---------- */
.portal {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 48px) 88px;
  background: var(--green);
  overflow: hidden;
  isolation: isolate;
}
.portal__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.portal__copy .eyebrow { margin-block-end: 26px; }

/* Bouton « Retour au site » */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 28px;
  padding-block: 9px;
  padding-inline: 12px 18px;
  border-radius: 999px;
  background: var(--ivory-a08);
  box-shadow: inset 0 0 0 1px var(--ivory-a20);
  color: var(--ivory);
  font-weight: 700;
  font-size: .92rem;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.back-link__icon {
  width: 26px; height: 26px;
  padding: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--sun);
  color: var(--green-ink);
  transition: transform .35s var(--ease-out);
}
[dir="rtl"] .back-link__icon { scale: -1 1; }
.back-link:hover { background: var(--ivory); color: var(--green-ink); box-shadow: none; }
.back-link:hover .back-link__icon { transform: translateX(-3px); }
.portal__title { font-size: clamp(2.7rem, 5.8vw, 5.8rem); }
:lang(ar) .portal__title { font-size: clamp(2.4rem, 5vw, 4.8rem); }

.access { margin-block-start: 38px; }
.access__btn { min-height: 62px; }
.access__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-start: 16px;
  font-size: .9rem;
  color: var(--ivory-a72);
}
.access__note svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--sun); stroke-width: 1.7; stroke-linejoin: round; }

.access__soon {
  position: relative;
  max-width: 34rem;
  padding: 26px 28px 28px;
  border-radius: var(--radius-lg);
  background: var(--ivory-a08);
  box-shadow: inset 0 0 0 1px var(--ivory-a20);
  overflow: hidden;
}
.access__soon::before {
  content: "";
  position: absolute;
  inset-block-start: -22px;
  inset-inline-end: -22px;
  width: 64px; height: 64px;
  background: var(--sun);
  transform: rotate(45deg);
}
.access__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--green-ink);
  font-weight: 800;
  font-size: .95rem;
}
.access__pulse {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
}
.access__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: pulse 1.8s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.access__text { margin-block: 16px 22px; color: var(--ivory-a72); max-width: 40ch; }

.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-block-start: 44px; }
.role { display: flex; gap: 14px; align-items: flex-start; }
.role__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--ivory-a08);
  box-shadow: inset 0 0 0 1px var(--ivory-a12);
}
.role__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--sun); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.role__title { font-family: var(--f-display); font-size: 1.08rem; font-weight: 700; }
.role__text { margin-block-start: 4px; font-size: .9rem; color: var(--ivory-a72); }

/* Illustration « porte d'entrée » */
.gate {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 540px;
  justify-self: center;
  display: grid;
  place-items: center;
}
.gate__ring {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--ivory-a20);
}
.gate__ring--1 { width: 100%; border-style: dashed; border-color: var(--ivory-a40); animation: spin 60s linear infinite; }
.gate__ring--2 { width: 74%; animation: spin 40s linear infinite reverse; }
.gate__ring--3 { width: 50%; border-color: rgba(255, 214, 10, .45); }
.gate__ring--2::after,
.gate__ring--1::after {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  background: var(--sun);
  transform: rotate(45deg);
}
.gate__ring--2::after { top: auto; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--ivory); }
.gate__core {
  position: relative;
  display: grid;
  place-items: center;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 32%;
  background: var(--green-ink);
  box-shadow: inset 0 0 0 1px var(--ivory-a20), var(--shadow-lg);
  transform: rotate(45deg);
  animation: core 7s ease-in-out infinite;
}
.gate__core img { width: 62%; height: auto; transform: rotate(-45deg); }
@keyframes core {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
.gate-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--green-ink);
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  animation: bob 6s ease-in-out infinite;
}
.gate-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gate-chip--1 { inset-block-start: 9%; inset-inline-start: 4%; }
.gate-chip--2 { inset-block-start: 30%; inset-inline-end: -2%; animation-delay: -1.5s; background: var(--sun); }
.gate-chip--3 { inset-block-end: 22%; inset-inline-start: -2%; animation-delay: -3s; }
.gate-chip--4 { inset-block-end: 6%; inset-inline-end: 12%; animation-delay: -4.5s; }
.gate .stage-tag { inset-block-start: 0; inset-inline-end: 0; }

/* Étapes de connexion */
.portal-steps .section-title { max-width: 16ch; }
.pstep-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.pstep {
  position: relative;
  padding: 34px 30px 36px;
  border-radius: var(--radius-xl);
  background: var(--ivory-2);
  box-shadow: inset 0 0 0 1px var(--green-a14);
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.pstep:nth-child(2) { background: var(--green); color: var(--ivory); box-shadow: none; }
.pstep:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--green-a30), var(--shadow-md); }
.js .pstep.reveal:nth-child(2) { transition-delay: .1s; }
.js .pstep.reveal:nth-child(3) { transition-delay: .2s; }
.pstep__num {
  display: block;
  font-family: "Bricolage Grotesque", var(--f-display);
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--green);
}
.pstep:nth-child(2) .pstep__num { -webkit-text-stroke-color: var(--sun); }
.pstep::after {
  content: "";
  position: absolute;
  inset-block-start: 28px;
  inset-inline-end: 28px;
  width: 12px; height: 12px;
  background: var(--sun);
  transform: rotate(45deg);
}
.pstep__title { margin-block: 22px 8px; font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
:lang(ar) .pstep__title { letter-spacing: 0; }
.pstep__text { opacity: .8; max-width: 34ch; }

@media (max-width: 960px) {
  .portal__inner { grid-template-columns: 1fr; }
  .gate { max-width: 440px; margin-block-start: 12px; }
  .pstep-list { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 720px) {
  .portal { padding-block-end: 64px; }
  .roles { grid-template-columns: 1fr; }
  .gate-chip { font-size: .8rem; padding: 9px 12px; }
  .access__btn { width: 100%; white-space: normal; text-align: center; }
}
