/* ==========================================================================
   Formation TikTok, Jamal-eddine Zaki
   Design system : voir docs/DESIGN-SYSTEM.md
   Une seule feuille pour les deux langues : français (LTR) et arabe (RTL).
   ========================================================================== */

/* ---------- Polices (auto-hébergées, licence OFL) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght.woff2") format("woff2-variations"),
       url("../fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Arabe : ne se télécharge que si la page contient des caractères arabes. */
@font-face {
  font-family: "Alexandria";
  src: url("../fonts/alexandria-arabic-wght.woff2") format("woff2-variations"),
       url("../fonts/alexandria-arabic-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF,
                 U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- Tokens ---------- */
:root {
  /* Couleurs : thème sombre unique, un seul accent (rose TikTok). */
  --bg: #0B0B0F;
  --bg-raise: #101016;
  --surface: #16161D;
  --surface-2: #1D1D26;
  --line: rgb(244 244 246 / 0.08);
  --line-strong: rgb(244 244 246 / 0.16);

  --text: #F4F4F6;
  --text-muted: #A1A1AD;
  --text-faint: #8A8A96;

  --accent: #FE2C55;          /* texte et détails sur fond sombre (contraste 5,3:1) */
  --accent-strong: #D8104A;   /* fonds de boutons et bannière, texte clair (4,9:1) */
  --accent-deep: #C80E3F;     /* survol */
  --accent-tint: rgb(254 44 85 / 0.12);
  --on-accent: #FFF8F9;

  --cyan: #25F4EE;            /* réservé à l'effet chromatique, jamais en aplat d'interface */
  --whatsapp: #25D366;

  /* Typographie */
  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-hero: clamp(2.5rem, 1.3rem + 3.3vw, 4rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  --lh-display: 1.06;
  --lh-body: 1.6;

  /* Formes : boutons et chips en pilule, cartes 20px, visuels 28px. */
  --r-card: 20px;
  --r-media: 28px;
  --r-pill: 999px;

  /* Espacements */
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1240px;
  --section-y: clamp(3.25rem, 2.25rem + 3vw, 5rem);
  --nav-h: 68px;

  /* Sens de lecture : 1 en français, -1 en arabe (retourne les flèches). */
  --dir: 1;

  /* Mouvement */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  /* Couches */
  --z-nav: 50;
  --z-float: 60;
  --z-toast: 70;
}

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

/* Arabe : police Alexandria (les chiffres et mots latins restent en Bricolage / Geist),
   pas d'interlettrage (il casse la liaison des lettres) et interlignage plus généreux. */
html[lang="ar"] {
  --font-display: "Alexandria", "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Alexandria", "Geist", system-ui, sans-serif;
  --lh-display: 1.32;
  --lh-body: 1.85;
}
html[lang="ar"] body { font-weight: 350; }
html[lang="ar"] * { letter-spacing: 0 !important; }

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a,
button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

::selection { background: var(--accent-strong); color: var(--on-accent); }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: calc(var(--z-toast) + 1);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section { padding-block: var(--section-y); }

/* Deux sections de même fond qui se suivent : un seul espacement, pas deux. */
.proof + .audience,
.audience + .pricing,
.coaching + .coach,
.coach + .reviews { padding-top: calc(var(--section-y) * 0.4); }

/* ---------- Typographie ---------- */
.h2,
.hero__title,
.final__title,
.coaching__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: var(--lh-display);
  text-wrap: balance;
}

.h2 { font-size: var(--fs-h2); }

.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 58ch;
  text-wrap: pretty;
}
html[lang="ar"] .lead { line-height: 1.85; }

/* Titre de section : même texte que la barre de navigation, même taille, même place (au-dessus du H2). */
.section-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px rgb(254 44 85 / 0.28);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
html[lang="ar"] .section-tag { font-size: var(--fs-sm); }
.section-tag .icon { width: 18px; height: 18px; }

/* Variante « sticker » pour la section Notre différence : même taille, plus visible. */
.section-tag--sticker {
  background: var(--text);
  color: var(--bg);
  box-shadow: -3px -3px 0 var(--cyan), 3px 3px 0 var(--accent);
  transform: rotate(-2deg);
}
[dir="rtl"] .section-tag--sticker { transform: rotate(2deg); }
.section-tag--sticker .icon { color: var(--accent-strong); }

.text-accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* Signature : décalage chromatique cyan / rose, façon écran TikTok. */
.chroma {
  color: var(--text);
  text-shadow:
    -0.03em -0.018em 0 var(--cyan),
    0.03em 0.018em 0 var(--accent);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.2s ease;
}

/* ---------- Boutons ---------- */
.btn {
  --btn-h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding-inline: 24px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.2s ease,
    box-shadow 0.25s var(--ease-out),
    color 0.2s ease;
}
.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transform: scaleX(var(--dir));
  transition: transform 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn--sm { --btn-h: 42px; padding-inline: 18px; font-size: var(--fs-sm); }
.btn--lg { --btn-h: 56px; padding-inline: 28px; font-size: 1.0625rem; }

.btn--primary {
  background: var(--accent-strong);
  color: var(--on-accent);
  box-shadow: 0 12px 32px -14px rgb(216 16 74 / 0.75);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--light {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 14px 34px -16px rgb(11 11 15 / 0.6);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--bg);
  box-shadow: 0 12px 30px -16px rgb(37 211 102 / 0.8);
}
.btn--whatsapp .icon { width: 1.3em; height: 1.3em; transform: none; }

.btn[aria-busy="true"] { cursor: progress; opacity: 0.75; }
.btn:disabled { pointer-events: none; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgb(11 11 15 / 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }

.logo__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--text);
  color: var(--bg);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  box-shadow: -3px -3px 0 var(--cyan), 3px 3px 0 var(--accent);
}

.logo__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo__name { font-weight: 650; font-size: 0.95rem; white-space: nowrap; }
.logo__sub { font-size: var(--fs-xs); color: var(--text-faint); white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgb(244 244 246 / 0.06);
}
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__toggle .icon--close { display: none; }
.nav[data-open="true"] .nav__toggle .icon--open { display: none; }
.nav[data-open="true"] .nav__toggle .icon--close { display: block; }

/* Sélecteur de langue (drapeaux Maroc / France) */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgb(244 244 246 / 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}

.lang__opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding-inline: 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.lang__opt[aria-current="page"] {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.flag {
  display: block;
  flex: none;
  width: 20px;
  height: 15px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(244 244 246 / 0.18);
}
.flag svg { display: block; width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(4rem, 3rem + 4vw, 6rem);
  min-height: min(calc(100dvh - var(--nav-h)), 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 60% at 82% 40%, rgb(254 44 85 / 0.16), transparent 70%),
    radial-gradient(35% 40% at 62% 85%, rgb(37 244 238 / 0.06), transparent 70%);
  pointer-events: none;
}
[dir="rtl"] .hero::before { transform: scaleX(-1); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero__copy { display: flex; flex-direction: column; align-items: flex-start; }

.hero__heading {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  font-weight: inherit;
}
.hero__heading .section-tag { margin: 0; }

.hero__title {
  display: block;
  font-size: var(--fs-hero);
  line-height: max(1.03, var(--lh-display));
  letter-spacing: -0.025em;
}

/* Sur grand écran, la partie en effet chromatique reste sur une seule ligne. */
@media (min-width: 961px) {
  .hero__title .chroma { white-space: nowrap; }
}

.hero__lede {
  margin-top: 24px;
  max-width: 46ch;
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.55;
}
html[lang="ar"] .hero__lede { line-height: 1.85; }

/* Badge de confiance (note clients) */
.trust {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding-block: 12px;
  padding-inline: 12px 22px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 44px -26px rgb(0 0 0 / 0.9);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.trust:active { transform: scale(0.99); }

.trust__seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--accent-strong);
  color: var(--on-accent);
}
.trust__seal { position: relative; overflow: hidden; }
.trust__seal .icon { width: 28px; height: 28px; }

.trust__body { display: grid; gap: 6px; min-width: 0; }

.trust__top,
.trust__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.3;
}

.trust__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.trust__diamonds { display: inline-flex; gap: 2px; }
.trust__diamonds .icon { width: 8px; height: 8px; }

.trust__rating strong {
  font-family: "Bricolage Grotesque", var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: center;
  padding: 28px 56px 32px;
}

/* Téléphone façon vidéo TikTok : écran 9:16, calques cyan et rose lumineux derrière. */
.phone {
  position: relative;
  isolation: isolate;
  direction: ltr;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  rotate: -3deg;
  --offset: 14px;
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
}
.phone::before {
  background: var(--cyan);
  transform: translate(calc(var(--offset) * -1), calc(var(--offset) * -1));
  box-shadow: 0 0 70px -6px rgb(37 244 238 / 0.45);
}
.phone::after {
  background: var(--accent);
  transform: translate(var(--offset), var(--offset));
  box-shadow: 0 0 80px -4px rgb(254 44 85 / 0.55);
}

.phone__screen {
  position: relative;
  container-type: inline-size;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  border: 6px solid #111117;
  background:
    radial-gradient(80% 50% at 50% 0%, rgb(254 44 85 / 0.16), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}
.phone__screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Écran du téléphone : ouverture d'une vidéo (fond flou chaud + accroche au style des textes TikTok). */
.phone__clip {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 44% 8% 0;
  background:
    radial-gradient(42% 30% at 22% 26%, rgb(255 168 92 / 0.5), transparent 70%),
    radial-gradient(48% 34% at 84% 58%, rgb(37 244 238 / 0.3), transparent 70%),
    radial-gradient(56% 40% at 36% 88%, rgb(254 44 85 / 0.5), transparent 70%),
    linear-gradient(170deg, #2B2030, #121017 70%);
}
.phone__hook {
  font-family: "Bricolage Grotesque", var(--font-display);
  font-size: 1.05rem;
  font-size: min(6.4cqi, 1.15rem);
  font-weight: 750;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-align: center;
  color: #111116;
}
.phone__hook span {
  padding: 4px 10px;
  border-radius: 8px;
  background: #FFFFFF;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
html[lang="ar"] .phone__hook { font-family: var(--font-display); font-weight: 700; line-height: 1.95; letter-spacing: 0; }

.phone__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgb(0 0 0 / 0.6));
  pointer-events: none;
}

.phone__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  translate: -50% -50%;
  background: rgb(254 44 85 / 0.9);
  color: #FFFFFF;
  box-shadow: 0 12px 30px -8px rgb(254 44 85 / 0.8);
}
.phone__play .icon { width: 26px; height: 26px; margin-left: 3px; }
/* Onde autour du bouton lecture : animée en transform/opacity seulement (léger pour le téléphone). */
.phone__play::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 2px rgb(254 44 85 / 0.6);
  opacity: 0;
}

.phone__actions {
  position: absolute;
  right: 10px;
  bottom: 52px;
  display: grid;
  gap: 14px;
  justify-items: center;
  color: #FFFFFF;
  font-family: "Geist", var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.6);
}
.phone__actions li { display: grid; justify-items: center; gap: 3px; }
.phone__actions .icon { width: 26px; height: 26px; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.5)); }
.phone__like .icon { color: var(--accent); }

.phone__progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 4px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.25);
  overflow: hidden;
}
.phone__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0.38);
}

/* Pastilles flottantes autour du téléphone */
.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgb(16 16 22 / 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(254 44 85 / 0.35), 0 18px 36px -16px rgb(0 0 0 / 0.85), 0 0 30px -12px rgb(254 44 85 / 0.6);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}
.float-chip .icon { width: 20px; height: 20px; color: var(--accent); }
/* Positions physiques (gauche, droite), identiques en arabe : la colonne d'icônes TikTok, à droite, reste toujours visible. */
.float-chip--hook { top: 9%; left: 0; rotate: -6deg; }
.float-chip--edit { top: 3%; right: 0; rotate: 5deg; }
.float-chip--strategy { bottom: 2%; right: 6px; rotate: 4deg; }

.float-note {
  position: absolute;
  z-index: -1;
  color: rgb(244 244 246 / 0.1);
  filter: drop-shadow(-3px -3px 0 rgb(37 244 238 / 0.22)) drop-shadow(3px 3px 0 rgb(254 44 85 / 0.22));
}
.float-note .icon { width: 56px; height: 56px; }
.float-note--1 { top: 2%; inset-inline-end: 4%; rotate: 12deg; }
.float-note--2 { bottom: 2%; inset-inline-start: 2%; rotate: -14deg; }

/* ---------- Visuels (photo hero et formateur) ---------- */
.media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-media);
  --offset: 14px;
}

/* Deux calques décalés cyan et rose derrière la photo. */
.media::before,
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transition: transform 0.9s var(--ease-out);
}
.media::before { background: var(--cyan); transform: translate(calc(var(--offset) * -1), calc(var(--offset) * -1)); }
.media::after { background: var(--accent); transform: translate(var(--offset), var(--offset)); }

.media__frame {
  position: relative;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 0%, rgb(254 44 85 / 0.12), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}

.media__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* L'image n'apparaît qu'une fois chargée : si le fichier manque, le cadre de remplacement reste visible. */
.js .media__frame img,
.js img[data-fade] { opacity: 0; transition: opacity 0.6s ease; }
.js .media__frame img.is-loaded,
.js img[data-fade].is-loaded { opacity: 1; }

.media__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--text-faint);
  border: 1px dashed var(--line-strong);
  border-radius: inherit;
}
.media__placeholder .icon { width: 44px; height: 44px; color: var(--text-muted); margin-bottom: 4px; }
.media__placeholder-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text); }
.media__placeholder-hint { font-size: var(--fs-xs); }

.proof-chip {
  position: absolute;
  z-index: 3;
  left: -8px;
  bottom: 13%;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
  padding-block: 12px;
  padding-inline: 12px 16px;
  border-radius: 18px;
  background: rgb(16 16 22 / 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 40px -18px rgb(0 0 0 / 0.7);
  font-size: var(--fs-xs);
  line-height: 1.35;
  color: var(--text-muted);
}
html[lang="ar"] .proof-chip { line-height: 1.6; }
.proof-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.proof-chip__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: #111116;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  color: #FFFFFF;
}
/* Triangle de lecture au décalage cyan / rose de TikTok (et non blanc sur rouge, qui évoque YouTube). */
.proof-chip__icon .icon {
  width: 18px;
  height: 18px;
  margin-left: 2px;
  filter: drop-shadow(-1.5px -1px 0 var(--cyan)) drop-shadow(1.5px 1px 0 var(--accent));
}

/* ---------- Bandeau thèmes ---------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-raise);
  padding-block: 18px;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: ticker 46s linear infinite;
}
[dir="rtl"] .ticker__track { animation-name: ticker-rtl; }

.ticker span {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
}
.ticker .icon { width: 18px; height: 18px; color: var(--accent); }

@keyframes ticker {
  to { transform: translateX(calc(-50% - 14px)); }
}
@keyframes ticker-rtl {
  to { transform: translateX(calc(50% + 14px)); }
}

/* ---------- Pourquoi TikTok ---------- */
.why { position: relative; isolation: isolate; overflow: hidden; }
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 45% at 62% 18%, rgb(37 244 238 / 0.08), transparent 70%),
    radial-gradient(30% 40% at 98% 92%, rgb(254 44 85 / 0.12), transparent 70%),
    radial-gradient(28% 38% at 42% 96%, rgb(37 244 238 / 0.06), transparent 70%);
  pointer-events: none;
}
[dir="rtl"] .why::before { transform: scaleX(-1); }

.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.why__copy .lead { margin-top: 20px; }

/* Sur ordinateur, marge haute réduite : en arrivant sur la section, les trois cartes tiennent dans l'écran (même 1280 x 590). */
@media (min-width: 961px) {
  .why { padding-top: calc(var(--section-y) * 0.55); }
}

/* Bento : la carte 800 M en bandeau pleine largeur (chiffre à gauche, courbe à droite),
   puis croissance et vidéo côte à côte. Hauteur pensée pour tenir dans l'écran d'un ordinateur portable. */
.why__bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

/* En-tête de carte : icône et titre sur une seule ligne. */
.stat__head { display: flex; align-items: center; gap: 12px; }
.stat__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
}
.stat__icon .icon { width: 20px; height: 20px; }

.stat__title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text);
}

/* La taille des chiffres suit la largeur de leur carte : ils ne débordent jamais. */
.stat__value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.16em;
  font-family: "Bricolage Grotesque", var(--font-display);
  font-size: 2.25rem;
  font-size: min(14cqi, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
html[lang="ar"] .stat__value { line-height: 1.3; font-weight: 700; font-family: var(--font-display); font-size: min(11cqi, 2.1rem); }
.stat__arrow { width: 0.7em; height: 0.7em; color: var(--accent); transform: scaleX(var(--dir)); }
.stat__plus { margin-inline-start: 0.06em; }

.stat__label { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.45; max-width: 38ch; }
.stat__value + .stat__label { margin-top: -6px; }

/* Carte 800 M : rose, courbe de croissance qui se dessine */
.stat--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "head spark" "value spark" "label spark";
  column-gap: 12px;
  row-gap: 10px;
  padding-block: 20px 0;
  padding-inline: 20px 0;
  background:
    radial-gradient(70% 45% at 100% 0%, rgb(255 255 255 / 0.18), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgb(120 0 30 / 0.35), transparent 70%),
    linear-gradient(165deg, #FF2D62, var(--accent-strong) 55%, #B50C3D);
  box-shadow: 0 40px 80px -40px rgb(254 44 85 / 0.7);
}
.stat--feature .stat__head { grid-area: head; }
.stat--feature .stat__icon { background: rgb(255 248 249 / 0.18); color: var(--on-accent); }
.stat--feature .stat__title { color: rgb(255 248 249 / 0.92); font-family: var(--font-body); font-weight: 500; font-size: var(--fs-body); }
.stat--feature .stat__value { grid-area: value; gap: 0; font-size: 4rem; font-size: min(11cqi, 4.25rem); color: var(--on-accent); }
html[lang="ar"] .stat--feature .stat__value { font-size: min(8.5cqi, 3.4rem); }
.stat--feature .stat__label { grid-area: label; margin: 0; padding-bottom: 20px; color: var(--on-accent); font-size: 1rem; line-height: 1.4; }

.spark { position: relative; grid-area: spark; align-self: end; aspect-ratio: 300 / 190; }
.spark__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.spark__line { fill: none; stroke: #FFF8F9; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgb(255 255 255 / 0.5)); }
.spark__dot { fill: #FFF8F9; transform-box: fill-box; transform-origin: center; }
.spark__halo { fill: rgb(255 248 249 / 0.3); transform-box: fill-box; transform-origin: center; }
.spark__tip {
  position: absolute;
  left: 88.7%;
  top: 35.5%;
  translate: -86% -175%;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgb(80 0 24 / 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgb(255 248 249 / 0.25);
  color: var(--on-accent);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}

/* Carte croissance : 0 → 100K abonnés, barres qui montent */
.stat--dots {
  background:
    radial-gradient(circle at 1px 1px, rgb(244 244 246 / 0.1) 1px, transparent 0) 0 0 / 14px 14px,
    var(--surface);
}
.stat__up {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-inline-start: auto;
  border-radius: 9px;
  background: rgb(254 44 85 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(254 44 85 / 0.3);
  color: var(--accent);
}
.stat__up .icon { width: 16px; height: 16px; }
/* La flèche « en hausse » termine la ligne du chiffre 0 → 100K. */
.stat--growth .stat__value { flex-wrap: nowrap; }
.stat__value .stat__up { margin-inline-start: auto; letter-spacing: 0; }

.bars {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 40px;
  margin-top: auto;
}
.bars span {
  height: var(--h);
  min-height: 5px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--accent), rgb(254 44 85 / 0.18));
  transform-origin: bottom;
}
.bars span:last-child { background: linear-gradient(180deg, #FF6A88, var(--accent)); box-shadow: 0 0 18px rgb(254 44 85 / 0.6); }
.bars__axis { display: flex; justify-content: space-between; margin-top: -4px; font-size: var(--fs-xs); color: var(--text-faint); }

/* Carte vidéo : audience qui arrive */
.stat--video {
  background:
    radial-gradient(80% 60% at 100% 100%, rgb(254 44 85 / 0.1), transparent 70%),
    var(--surface);
}
.reach { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.reach__avatars { display: inline-flex; padding-inline-start: 8px; }
.reach__avatars span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-inline-start: -9px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.8rem;
  font-weight: 750;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--cyan), #2A7BFF);
}
.reach__avatars span:nth-child(2) { background: linear-gradient(135deg, var(--accent), #FF8A5C); }
.reach__avatars span:nth-child(3) { background: linear-gradient(135deg, #8B5CF6, var(--accent)); }
.reach__avatars span:nth-child(4) { background: linear-gradient(135deg, #22C55E, var(--cyan)); }
.reach__avatars span:nth-child(5) { background: linear-gradient(135deg, #F59E0B, var(--accent)); }
.reach__pill {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem;
  font-weight: 750;
  color: var(--text);
}
.reach__caption { margin-top: -4px; font-size: var(--fs-xs); color: var(--text-faint); }

/* ---------- Programme ---------- */
.program { background: var(--bg-raise); border-block: 1px solid var(--line); }

.program__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.program__head {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
.program__head .lead { margin-top: 20px; }

.module {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding-block: 36px;
  border-top: 1px solid var(--line-strong);
}
.module:first-child { padding-top: 0; border-top: 0; }

.module__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-tint);
  color: var(--accent);
}
.module__icon .icon { width: 30px; height: 30px; }

.module__kicker {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.module__body > p:not(.module__kicker) {
  margin-top: 12px;
  color: var(--text-muted);
  max-width: 58ch;
}

.tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* ---------- Notre différence : cas réels ---------- */
.proof__head { max-width: 820px; }
.proof__head .lead { margin-top: 18px; }

.cases {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.case--win {
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(254 44 85 / 0.16), transparent 60%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1.5px rgb(254 44 85 / 0.55), 0 30px 70px -40px rgb(254 44 85 / 0.5);
}

.case__tag {
  position: absolute;
  top: 26px;
  inset-inline-end: 26px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  background: rgb(244 244 246 / 0.08);
  color: var(--text-muted);
}
.case--win .case__tag { background: var(--accent-strong); color: var(--on-accent); }

.case__head { display: flex; align-items: center; gap: 14px; padding-inline-end: 90px; }

.case__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgb(244 244 246 / 0.06);
  color: var(--text-muted);
}
.case--win .case__icon { background: var(--accent-tint); color: var(--accent); }
.case__icon .icon { width: 26px; height: 26px; }

.case__value {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2em;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-size: min(10.5cqi, 3.25rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}
.case--win .case__value { justify-content: flex-start; font-size: min(14cqi, 3.75rem); }
[dir="rtl"] .case--win .case__value { justify-content: flex-end; }
html[lang="ar"] .case__value { line-height: 1.3; font-weight: 700; font-size: min(9cqi, 2.75rem); }
.case__value .icon { width: 0.6em; height: 0.6em; color: var(--accent); transform: scaleX(var(--dir)); }

.case__lede { margin-top: 12px; color: var(--text-muted); max-width: 46ch; }

.case__list {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.case__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
html[lang="ar"] .case__list li { line-height: 1.75; }
.case__list .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--text-faint); }
html[lang="ar"] .case__list .icon { margin-top: 6px; }
.case--win .case__list .icon { color: var(--accent); }

/* ---------- Public visé ---------- */
.section-head { max-width: 760px; }
.section-head .lead { margin-top: 18px; }

.personas {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.persona {
  display: flex;
  flex-direction: column;
  padding: 32px 26px;
  border-radius: var(--r-card);
  background: linear-gradient(180deg, var(--surface), var(--bg-raise));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.persona__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 28px;
}
.persona__icon .icon { width: 28px; height: 28px; }

.persona > p { margin-top: 12px; color: var(--text-muted); font-size: var(--fs-sm); }

.checks { margin-top: 22px; display: grid; gap: 10px; }
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.45;
}
html[lang="ar"] .checks li { line-height: 1.7; }
.checks .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
html[lang="ar"] .checks .icon { margin-top: 6px; }

.audience__more {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgb(244 244 246 / 0.05);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
}

/* ---------- Formules ---------- */
.plans {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px 30px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.plan--featured {
  background:
    radial-gradient(120% 60% at 50% 0%, rgb(254 44 85 / 0.16), transparent 65%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 30px 70px -36px rgb(254 44 85 / 0.55);
}

.plan__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-strong);
  color: var(--on-accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}

.plan__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.plan__pitch { margin-top: 6px; color: var(--text-muted); font-size: var(--fs-sm); }

.plan__price {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan__amount {
  font-family: "Bricolage Grotesque", var(--font-display);
  font-size: clamp(2.75rem, 2.2rem + 1.6vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1;
}
.plan__currency { font-weight: 600; color: var(--text-muted); }
.plan--featured .plan__currency { color: var(--accent); }

.plan__note { margin-top: 6px; font-size: var(--fs-xs); color: var(--text-faint); }

.plan__features {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  flex-grow: 1;
  align-content: start;
}
.plan__features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.45;
}
html[lang="ar"] .plan__features li { line-height: 1.7; }
.plan__features .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
html[lang="ar"] .plan__features .icon { margin-top: 6px; }
.plan__features li:first-child { color: var(--text); }

.plan__cta { margin-top: 32px; width: 100%; }

.pricing__help {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 20px 24px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pricing__help p { color: var(--text-muted); }
.pricing__help strong { color: var(--text); font-weight: 650; }

.pricing__secure {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.pricing__secure .icon { flex: none; color: var(--accent); }
.pricing__secure .link { font-weight: 500; color: var(--text-muted); }

/* ---------- Carrousels (mobile) ---------- */
.carousel__nav,
.plan-switch { display: none; }

.carousel__nav {
  margin-top: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.carousel__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
}
.carousel__btn .icon { width: 20px; height: 20px; transform: scaleX(var(--dir)); }
.carousel__btn--prev .icon { transform: scaleX(calc(-1 * var(--dir))); }
.carousel__btn:active { transform: scale(0.94); }
.carousel__btn:disabled { opacity: 0.3; cursor: default; }

.carousel__dots { display: flex; align-items: center; gap: 8px; }
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  transition: width 0.3s var(--ease-out), background-color 0.3s ease;
}
.carousel__dot[aria-current="true"] { width: 26px; background: var(--accent); }

/* Avis : carrousel à toutes les tailles d'écran, un avis à la fois (flèches masquées s'il n'y en a qu'un). */
.carousel--reviews .carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel--reviews .carousel__track::-webkit-scrollbar { display: none; }
.carousel--reviews .carousel__track > * { scroll-snap-align: center; }
.carousel--reviews .carousel__nav { display: flex; margin-top: 14px; }
.carousel--reviews[data-single] .carousel__nav { display: none; }

/* Sélecteur de formule (segmented control), au-dessus des cartes sur mobile */
.plan-switch {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 4px;
  padding: 4px;
  gap: 2px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.plan-switch button {
  height: 40px;
  padding-inline: 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.plan-switch button[aria-pressed="true"] { background: var(--accent-strong); color: var(--on-accent); }

/* ---------- Bannière 1:1 ---------- */
.coaching { padding-block: 0 var(--section-y); }

.coaching__banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 48px;
  padding: clamp(24px, 1rem + 2vw, 40px) clamp(22px, 1rem + 3vw, 56px);
  border-radius: var(--r-media);
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(255 255 255 / 0.14), transparent 60%),
    var(--accent-strong);
  color: var(--on-accent);
  box-shadow: 0 40px 90px -50px rgb(216 16 74 / 0.9);
}

.coaching__banner :focus-visible { outline-color: var(--on-accent); }

.coaching__deco {
  position: absolute;
  inset-inline-end: -0.06em;
  top: 50%;
  z-index: -1;
  transform: translateY(-50%);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(7rem, 4rem + 7vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgb(255 248 249 / 0.22);
  pointer-events: none;
  user-select: none;
}

.coaching__copy { max-width: 760px; }

.coaching__status {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgb(11 11 15 / 0.22);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coaching__title {
  margin-top: 12px;
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.05rem);
}

.coaching__text { margin-top: 8px; font-size: var(--fs-body); line-height: 1.5; max-width: 56ch; }
html[lang="ar"] .coaching__text { line-height: 1.8; }

.coaching__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.coaching__action .btn { min-width: 280px; }
.coaching__fine { font-size: var(--fs-xs); font-weight: 500; }

/* ---------- Formateur ---------- */
/* Ordinateur : photo à gauche, nom puis citation centrés à droite.
   Téléphone : tag et nom d'abord, puis la photo, puis la citation (ordre du HTML). */
.coach__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: "media ." "media head" "media copy" "media .";
  column-gap: clamp(48px, 7vw, 112px);
}
.coach__head { grid-area: head; }
.coach__copy { grid-area: copy; }

.media--coach { grid-area: media; align-self: center; --offset: 10px; max-width: 440px; width: 100%; justify-self: center; }


.coach__role { margin-top: 14px; font-size: var(--fs-lead); color: var(--text-muted); max-width: 46ch; }

.expert {
  margin-top: 36px;
  padding: 28px 30px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  border-inline-start: 3px solid var(--accent);
}

.expert__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  color: var(--accent);
}
.expert__label .icon { width: 22px; height: 22px; }

.expert__quote {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: pretty;
}
html[lang="ar"] .expert__quote { line-height: 1.85; font-weight: 400; }

.coach__copy .chips { margin-top: 28px; }

/* ---------- Avis ---------- */
.reviews__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
}

.score,
.criteria,
.review {
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.score { padding: 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }

.score__value {
  font-family: "Bricolage Grotesque", var(--font-display);
  font-size: clamp(4rem, 3rem + 3vw, 5.5rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.score__count { margin-top: 8px; color: var(--text-muted); font-size: var(--fs-sm); }

/* Étoiles : couche de base atténuée + couche remplie coupée selon la note. */
.stars {
  --star: 24px;
  position: relative;
  display: inline-block;
  margin-top: 16px;
  line-height: 0;
}
.stars--sm { --star: 18px; margin-top: 0; }
.stars__base,
.stars__fill { display: flex; gap: 0; }
.stars__base { color: rgb(244 244 246 / 0.16); }
.stars__fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  color: var(--accent);
  overflow: hidden;
  width: calc(var(--rating) / 5 * 100%);
}
/* L'espace entre les étoiles est intégré à chaque icône : la largeur remplie (note / 5) tombe pile au milieu d'une étoile. */
.stars .icon { width: calc(var(--star) + 4px); height: var(--star); padding-inline: 2px; }

.dist { margin-top: 28px; display: grid; gap: 10px; align-self: stretch; }
.dist__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
}
.dist__row dt { color: var(--text-muted); white-space: nowrap; }
html[lang="ar"] .dist__row { grid-template-columns: 92px minmax(0, 1fr); }
.dist__row dd { display: flex; align-items: center; gap: 10px; }
.dist__bar {
  display: block;
  height: 6px;
  min-width: 6px;
  width: calc(var(--w) * 0.85);
  border-radius: var(--r-pill);
  background: var(--accent);
}
.dist__n { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }

.reviews__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.carousel { min-width: 0; }

.criteria {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px;
}
.criterion {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px 22px;
}
.criterion + .criterion { box-shadow: calc(-1px * var(--dir)) 0 0 var(--line); }
.criterion dt { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.35; }
.criterion dd {
  font-family: "Bricolage Grotesque", var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.review { padding: 32px; }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review__tag {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgb(244 244 246 / 0.06);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.review__tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* Avis d'exemple : clairement signalés tant qu'ils ne sont pas remplacés par de vrais avis. */
.review__tag--example {
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--text-faint);
}

.review__quote {
  margin-top: 20px;
  font-family: "Bricolage Grotesque", var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.review__author { margin-top: 20px; font-size: var(--fs-sm); font-weight: 600; }


/* ---------- FAQ ---------- */
.faq { background: var(--bg-raise); border-block: 1px solid var(--line); }

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq__head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__head .lead { margin-top: 20px; }

.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item:first-child { border-top: 1px solid var(--line-strong); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding-block: 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
}
.faq__item[open] summary .icon { transform: rotate(45deg); }

.faq__item p {
  padding-bottom: 24px;
  max-width: 62ch;
  color: var(--text-muted);
}

/* ---------- CTA final ---------- */
/* Phrase de conclusion, sans bouton : un bandeau court avant le pied de page. */
.final { padding-block: calc(var(--section-y) * 0.6); }

.final__title {
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.6rem);
  text-wrap: balance;
}
.final__title .chroma { display: block; }

/* ---------- Pied de page ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px calc(32px + env(safe-area-inset-bottom));
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer__title {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
}

.footer__brand p { margin-top: 16px; font-size: var(--fs-sm); color: var(--text-faint); max-width: 36ch; }

.footer__nav { display: grid; gap: 4px; align-content: start; }
.footer__nav a {
  padding-block: 6px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color 0.2s ease;
  width: fit-content;
}

.footer__contact { display: grid; gap: 14px; align-content: start; font-size: var(--fs-sm); }
.footer__contact p { display: flex; align-items: center; gap: 10px; color: var(--text-faint); }
.footer__contact .icon { color: var(--accent); }
.footer__contact .footer__title { color: var(--text); }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.footer__bottom--legal {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

/* ---------- Signature Y&N Growth ---------- */
.footer__bottom--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.footer--slim { padding-block: 0 calc(28px + env(safe-area-inset-bottom)); border-top: 0; }
.footer--slim .footer__bottom { margin-top: 0; }

@property --credit-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.credit {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out);
}
/* Bordure dégradée cyan / rose qui tourne autour de la pastille. */
.credit::before,
.credit::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: inherit;
}
.credit::before {
  inset: -1.5px;
  background: conic-gradient(from var(--credit-angle), var(--cyan), var(--accent), var(--accent-strong), var(--cyan));
  animation: credit-spin 4s linear infinite;
}
.credit::after { inset: 0; background: var(--surface); }

/* Reflet qui balaie le nom de l'agence. */
.credit__brand {
  font-family: "Bricolage Grotesque", var(--font-display);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--text) 0%, var(--text) 35%, var(--cyan) 45%, var(--accent) 55%, var(--text) 65%, var(--text) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: credit-shine 3.2s ease-in-out infinite;
}
.credit__icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  transform: scaleX(var(--dir));
  transition: transform 0.25s var(--ease-out);
}

@keyframes credit-spin { to { --credit-angle: 360deg; } }
@keyframes credit-shine {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed;
  inset-inline-end: calc(20px + env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #FFFFFF;
  box-shadow: 0 16px 36px -12px rgb(37 211 102 / 0.55);
  transition: transform 0.3s var(--ease-out);
}
.wa-float:active { transform: scale(0.97); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:focus-visible { outline-color: var(--whatsapp); border-radius: 50%; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 48px -20px rgb(0 0 0 / 0.8);
  font-size: var(--fs-sm);
  color: var(--text);
  text-align: center;
  animation: toast-in 0.35s var(--ease-out);
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
}

/* ---------- Pages légales (CGV, confidentialité) ---------- */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section-y); }
.legal__inner { max-width: 780px; }
.legal__meta { margin-top: 12px; color: var(--text-faint); font-size: var(--fs-sm); }
.legal__intro { margin-top: 20px; color: var(--text-muted); font-size: var(--fs-lead); line-height: 1.55; }
.legal__body { margin-top: 40px; display: grid; gap: 32px; }
.legal__body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}
.legal__body p,
.legal__body ul { margin-top: 10px; color: var(--text-muted); }
.legal__body ul { display: grid; gap: 8px; padding-inline-start: 20px; list-style: disc; }
.legal__body li::marker { color: var(--accent); }
.legal__body strong { color: var(--text); font-weight: 600; }
.legal__body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
html[lang="ar"] .legal__body p,
html[lang="ar"] .legal__body li { line-height: 1.9; }

/* Champ à compléter avant la mise en ligne */
.todo {
  padding-inline: 4px;
  border-radius: 4px;
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px rgb(254 44 85 / 0.35);
  color: var(--text);
}

/* ---------- Page 404 ---------- */
.notfound {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  place-items: center;
  padding-block: var(--section-y);
}
.notfound__inner { display: grid; gap: 20px; justify-items: start; }
.notfound__code {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(5rem, 3rem + 10vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
}
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Survol : uniquement sur les écrans avec souris ---------- */
@media (hover: hover) {
  .link:hover { color: var(--accent); }
  .btn:hover .icon { transform: translateX(calc(3px * var(--dir))) scaleX(var(--dir)); }
  .btn--primary:hover {
    background: var(--accent-deep);
    box-shadow: 0 16px 40px -14px rgb(216 16 74 / 0.9);
  }
  .btn--ghost:hover {
    background: rgb(244 244 246 / 0.06);
    box-shadow: inset 0 0 0 1px rgb(244 244 246 / 0.3);
  }
  .btn--light:hover { background: #FFFFFF; }
  .btn--whatsapp:hover { background: #3BE07A; }
  .btn--whatsapp:hover .icon { transform: none; }
  .carousel__btn:not(:disabled):hover { background: var(--surface); box-shadow: inset 0 0 0 1px rgb(254 44 85 / 0.5); }
  .nav__links a:hover { color: var(--text); background: rgb(244 244 246 / 0.06); }
  .lang__opt:not([aria-current="page"]):hover { color: var(--text); background: rgb(244 244 246 / 0.06); }
  .persona:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgb(254 44 85 / 0.35), 0 24px 48px -28px rgb(254 44 85 / 0.4);
  }
  .faq__item summary:hover { color: var(--accent); }
  .footer__nav a:hover { color: var(--text); }
  .wa-float:hover { transform: scale(1.06); }
  .credit:hover { transform: translateY(-2px); color: var(--text); }
  .credit:hover .credit__icon { transform: translate(calc(2px * var(--dir)), -2px) scaleX(var(--dir)); }
  .trust:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgb(254 44 85 / 0.45), 0 24px 48px -26px rgb(254 44 85 / 0.45);
  }
}

/* ---------- Animations d'entrée ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-enter] {
    animation: enter 0.9s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 110ms + 80ms);
  }

  /* Hero : les calques chromatiques se décalent, les pastilles flottent, la vidéo « joue ». */
  .js .hero__visual .phone::before,
  .js .hero__visual .phone::after { animation: chroma-settle 1.1s var(--ease-out) 0.35s both; }
  .float-chip { animation: chip-in 0.7s var(--ease-out) both, float 6s ease-in-out infinite; }
  .float-chip--hook { animation-delay: 0.7s, 1.4s; }
  .float-chip--edit { animation-delay: 0.85s, -2s; }
  .float-chip--strategy { animation-delay: 1s, -4s; }
  .float-note { animation: drift 9s ease-in-out infinite; }
  .float-note--2 { animation-delay: -4.5s; }
  .phone__progress span { animation: progress 8s linear infinite; }
  .phone__like .icon { animation: beat 2.4s ease-in-out infinite; }
  .phone__play::after { animation: play-ring 2.4s ease-out infinite; }

  /* Pourquoi TikTok : la courbe se dessine, les barres montent, l'audience arrive. */
  .js .spark__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out) 0.35s; }
  .js .spark__area { opacity: 0; transition: opacity 1s ease 1.1s; }
  .js .spark__dot,
  .js .spark__tip { opacity: 0; scale: 0.6; transition: opacity 0.4s ease 1.9s, scale 0.5s var(--ease-out) 1.9s; }
  .js .is-visible .spark__line { stroke-dashoffset: 0; }
  .js .is-visible .spark__area,
  .js .is-visible .spark__dot,
  .js .is-visible .spark__tip { opacity: 1; scale: 1; }
  .js .is-visible .spark__halo { animation: halo 2.2s ease-out 2.2s infinite; }

  .js .bars span { transform: scaleY(0.05); transition: transform 0.9s var(--ease-out) calc(0.25s + var(--i) * 80ms); }
  .js .is-visible .bars span { transform: none; }
  .js .is-visible .stat__up { animation: nudge-up 1.8s ease-in-out 1.2s infinite; }

  .js .reach__avatars span { opacity: 0; translate: calc(-14px * var(--dir)) 0; transition: opacity 0.5s ease, translate 0.6s var(--ease-out); transition-delay: calc(0.3s + var(--i) * 90ms); }
  .js .is-visible .reach__avatars span { opacity: 1; translate: 0 0; }
  .js .reach__pill { opacity: 0; scale: 0.7; transition: opacity 0.4s ease 0.85s, scale 0.5s var(--ease-out) 0.85s; }
  .js .is-visible .reach__pill { opacity: 1; scale: 1; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(22px); }
}

@keyframes chroma-settle {
  from { transform: translate(0, 0); }
}
@keyframes chip-in {
  from { opacity: 0; scale: 0.6; }
}
@keyframes float {
  50% { translate: 0 -10px; }
}
@keyframes drift {
  50% { translate: 0 -14px; }
}
@keyframes progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes beat {
  0%, 60%, 100% { scale: 1; }
  30% { scale: 1.2; }
}
@keyframes play-ring {
  from { opacity: 0.9; scale: 1; }
  to { opacity: 0; scale: 1.45; }
}
@keyframes halo {
  from { scale: 1; opacity: 0.8; }
  to { scale: 2.6; opacity: 0; }
}
@keyframes nudge-up {
  50% { translate: 0 -4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .credit::before,
  .credit__brand,
  .float-chip,
  .float-note,
  .phone__progress span,
  .phone__like .icon,
  .phone__play::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

/* Ordinateurs portables à écran bas (1366 x 768, 1280 x 720…) */
@media (min-width: 961px) and (max-height: 820px) {
  .hero { min-height: 0; padding-block: 2.5rem 3.5rem; }
  .hero__visual { max-width: 400px; padding-block: 16px 20px; }
  .phone { max-width: 270px; }
}

/* Hero sur petit ordinateur : la pastille « 837K vues » prend le format compact du mobile. */
@media (max-width: 1100px) {
  .proof-chip { max-width: 220px; padding-block: 10px; }
  .proof-chip strong { font-size: 1.05rem; }
  .proof-chip__icon { width: 34px; height: 34px; }
}

@media (max-width: 1180px) {
  .nav__links a { padding-inline: 9px; }
  .logo__sub { display: none; }
}

@media (max-width: 1080px) {
  .personas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .criteria { grid-template-columns: 1fr; }
  .criterion { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 14px; padding: 14px 20px; }
  .criterion + .criterion { box-shadow: 0 -1px 0 var(--line); }
  .criterion dd { flex: none; font-size: 1.75rem; min-width: 3.3em; white-space: nowrap; }
}

@media (max-width: 960px) {
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    padding: 12px max(var(--gutter), env(safe-area-inset-right)) 20px max(var(--gutter), env(safe-area-inset-left));
    background: rgb(11 11 15 / 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav__links a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; font-size: 1rem; border-radius: 12px; }
  .nav[data-open="true"] .nav__links { display: flex; }
  .nav__toggle { display: grid; }

  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; margin-top: 8px; }

  .why__grid,
  .program__grid,
  .coach__grid,
  .reviews__grid,
  .faq__grid { grid-template-columns: 1fr; }
  .coach__grid { grid-template-rows: none; grid-template-areas: "head" "media" "copy"; row-gap: 32px; }
  .coach__copy .expert { margin-top: 0; }

  .cases { grid-template-columns: 1fr; max-width: 640px; }

  .program__head,
  .faq__head { position: static; }

  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 28px; }

  .coaching__banner { grid-template-columns: 1fr; }
  .coaching__action { align-items: flex-start; }

  .criteria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .criterion { flex-direction: column-reverse; justify-content: flex-end; align-items: flex-start; gap: 4px; padding: 20px 22px; }
  .criterion + .criterion { box-shadow: calc(-1px * var(--dir)) 0 0 var(--line); }

  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* Carrousels : profils et formules défilent horizontalement sur téléphone. */
@media (max-width: 760px) {
  .carousel__track {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 12px;
    max-width: none;
    margin-top: 0;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-block: 4px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .carousel__track::-webkit-scrollbar { display: none; }
  .carousel__track > * { scroll-snap-align: center; scroll-snap-stop: always; }
  .carousel { margin-top: 36px; }
  .carousel__nav { display: flex; justify-content: center; gap: 22px; }

  .personas.carousel__track { padding-block: 4px 12px; }
  .persona { padding: 26px 22px; }

  .carousel--plans { display: grid; gap: 20px; }
  .plan-switch { display: flex; }
  .plans.carousel__track { grid-auto-columns: 86%; padding-block: 18px 28px; }
  .plan { padding: 34px 24px 24px; }
  .plan--featured { box-shadow: inset 0 0 0 1.5px var(--accent), 0 20px 40px -30px rgb(254 44 85 / 0.6); }

  .pricing__help { margin-top: 8px; padding: 20px; }

  .carousel--reviews { margin-top: 0; }
  .carousel--reviews .carousel__nav { justify-content: center; gap: 22px; }
  .carousel--reviews .carousel__track { grid-auto-columns: 88%; }
  .carousel--reviews[data-single] .carousel__track { grid-auto-columns: 100%; }
  .pricing__help .btn { width: 100%; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  .ticker { padding-block: 14px; }

  /* Hero mobile : texte, badge, puis le téléphone en grand, centré. */
  .hero { padding-block: 26px 12px; }
  .hero__heading { gap: 16px; }
  .hero__lede { margin-top: 16px; }
  .trust { margin-top: 22px; width: 100%; }
  .hero__visual { max-width: 380px; margin-top: 18px; padding: 18px 34px 26px; }
  .phone { max-width: 236px; border-radius: 30px; --offset: 9px; rotate: -2deg; }
  .phone__screen { border-width: 5px; }
  .phone__play { width: 54px; height: 54px; }
  .phone__play .icon { width: 22px; height: 22px; }
  .phone__actions { right: 8px; bottom: 44px; gap: 11px; font-size: 10px; }
  .phone__actions .icon { width: 22px; height: 22px; }
  .float-chip { gap: 7px; padding: 8px 12px; border-radius: 12px; font-size: 0.82rem; background: #121218; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .proof-chip { background: #121218; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .float-chip .icon { width: 16px; height: 16px; }
  .float-chip--hook { top: 7%; }
  .float-chip--edit { top: 2%; }
  .float-chip--strategy { bottom: 0; right: 0; }
  .float-note .icon { width: 40px; height: 40px; }
  .proof-chip { left: 0; bottom: 10%; max-width: 220px; padding-block: 10px; }
  .proof-chip strong { font-size: 1.05rem; }
  .proof-chip__icon { width: 34px; height: 34px; }

  /* Chiffres clés : carte 800 M compacte (chiffre et courbe côte à côte), puis les deux autres cartes pleine largeur. */
  .why__bento { grid-template-columns: 1fr; gap: 12px; }
  .stat { padding: 18px; gap: 10px; border-radius: 18px; }
  .stat--feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "head head" "value spark" "label label";
    row-gap: 16px;
    padding-block: 18px;
    padding-inline: 18px 0;
  }
  .stat--feature .stat__head,
  .stat--feature .stat__label { padding-inline-end: 18px; }
  .stat--feature .stat__label { padding-bottom: 0; }
  .stat--feature .stat__value { align-self: center; font-size: min(14cqi, 3.4rem); }
  html[lang="ar"] .stat--feature .stat__value { font-size: min(9cqi, 2.3rem); }
  .spark { align-self: center; }
  .spark__tip { translate: -86% -160%; }
  .stat__value { font-size: min(11cqi, 2.4rem); }
  html[lang="ar"] .stat__value { font-size: min(9cqi, 2rem); }

  /* Fond opaque plutôt que flou : plus fluide sur les téléphones modestes. */
  .nav { background: rgb(11 11 15 / 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__inner { gap: 10px; }
  .nav__actions { gap: 8px; }
  .nav__actions .btn { display: none; }
  .logo { gap: 10px; }
  .logo__mark { width: 34px; height: 34px; border-radius: 10px; font-size: 0.85rem; }
  .logo__name { font-size: 0.9rem; }

  /* Drapeaux seuls sur mobile, le code langue reste lu par les lecteurs d'écran. */
  .lang__opt { padding-inline: 8px; height: 36px; }
  .lang__code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  .trust__seal { width: 46px; height: 46px; border-radius: 13px; }
  .cases { grid-template-columns: 1fr; }
  .case { padding: 26px; }
  .case__tag { top: 22px; inset-inline-end: 22px; }
  .media { --offset: 8px; }

  .module { grid-template-columns: 1fr; gap: 16px; }
  .module__icon { width: 52px; height: 52px; border-radius: 14px; }
  .module__icon .icon { width: 26px; height: 26px; }

  .coaching__deco { display: none; }
  .coaching__action,
  .coaching__action .btn { width: 100%; min-width: 0; }
  .coaching__action { align-items: stretch; text-align: center; }

  .pricing__secure { justify-content: flex-start; align-items: flex-start; text-align: start; }
  .pricing__secure .icon { margin-top: 2px; }

  .score,
  .review { padding: 26px; }
  .criteria { grid-template-columns: 1fr; }
  .criterion { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 14px; padding: 14px 18px; }
  .criterion + .criterion { box-shadow: 0 -1px 0 var(--line); }
  .criterion dd { flex: none; font-size: 1.75rem; min-width: 3.3em; white-space: nowrap; }

  .expert { padding: 24px 22px; }


  .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .footer--slim { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer__contact { grid-column: 1 / -1; }

  .wa-float {
    inset-inline-end: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }
}

/* Petits téléphones (iPhone SE, Android compacts) : hero resserré pour garder le bandeau visible. */
@media (max-width: 400px) {
  :root { --fs-hero: 2.3rem; }
  .hero { padding-block: 22px 26px; }
  .hero__lede { font-size: 1rem; line-height: 1.5; }
  html[lang="ar"] .hero__lede { line-height: 1.75; }
  .trust { padding-block: 10px; }
}

/* Très petits écrans : le nom reste lu par les lecteurs d'écran. */
@media (max-width: 370px) {
  .logo__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
