/* ==========================================================================
   NOREXI — Feuille de style principale
   PIM SaaS pour TPE/PME — vitrine statique
   Palette et typographie propres au produit (aucun template générique)
   ========================================================================== */

/* ---------- Design tokens (thème clair par défaut) ---------- */
:root {
  /* Marque */
  --brand: #5a47e8;          /* indigo électrique */
  --brand-600: #4a37d6;
  --brand-700: #3c2cb8;
  --brand-100: #ece9fd;
  --accent: #0fb99f;         /* menthe / signal qualité */
  --accent-600: #0a9d87;
  --accent-100: #d9f6f0;
  --warn: #e5893b;

  /* Neutres */
  --ink: #0e1424;            /* texte fort / fonds sombres */
  --ink-2: #2a3244;
  --muted: #5b6577;          /* texte secondaire */
  --line: #e6e9f0;           /* bordures */
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;        /* sections alternées */
  --bg-elevated: #ffffff;
  --card: #ffffff;

  /* Sémantique surface/texte */
  --text: var(--ink);
  --text-soft: var(--muted);
  --surface: var(--bg);
  --surface-alt: var(--bg-soft);

  /* Effets */
  --shadow-sm: 0 1px 2px rgba(14, 20, 36, .06), 0 1px 3px rgba(14, 20, 36, .05);
  --shadow-md: 0 6px 20px rgba(14, 20, 36, .08), 0 2px 6px rgba(14, 20, 36, .05);
  --shadow-lg: 0 24px 60px rgba(20, 24, 60, .16);
  --ring: 0 0 0 3px rgba(90, 71, 232, .35);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --grad-brand: linear-gradient(135deg, #6a54ff 0%, #5a47e8 45%, #7b4bd6 100%);
  --grad-accent: linear-gradient(135deg, #14c9ad 0%, #0fb99f 100%);
  --grad-ink: linear-gradient(160deg, #141b30 0%, #0e1424 60%, #0b1020 100%);
}

/* ---------- Thème sombre ---------- */
:root[data-theme="dark"] {
  --ink: #f4f6fb;
  --ink-2: #d7dcea;
  --muted: #9aa4ba;
  --line: #232a3d;
  --line-2: #1b2130;
  --bg: #0c1120;
  --bg-soft: #10162a;
  --bg-elevated: #141b30;
  --card: #141b30;
  --brand-100: #211d4a;
  --accent-100: #0c3a34;

  --text: var(--ink);
  --text-soft: var(--muted);
  --surface: var(--bg);
  --surface-alt: var(--bg-soft);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .6);
}

/* Respect de la préférence système si l'utilisateur n'a pas choisi */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --ink: #f4f6fb;
    --ink-2: #d7dcea;
    --muted: #9aa4ba;
    --line: #232a3d;
    --line-2: #1b2130;
    --bg: #0c1120;
    --bg-soft: #10162a;
    --bg-elevated: #141b30;
    --card: #141b30;
    --brand-100: #211d4a;
    --accent-100: #0c3a34;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 26px rgba(0, 0, 0, .5);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, .6);
  }
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--text); letter-spacing: -.02em; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--soft { background: var(--surface-alt); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
  background: var(--brand-100); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section-lead { font-size: 1.12rem; color: var(--text-soft); margin-bottom: 0; }
.glance .section-head { margin-bottom: clamp(28px, 4vw, 40px); }
.glance-flow { display: flex; align-items: stretch; justify-content: center; gap: 14px; flex-wrap: wrap; }
.g-node { flex: 1 1 210px; max-width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: 0 8px 30px rgba(14,20,36,.05); }
.g-node b { font-family: var(--font-head); font-size: 1.06rem; }
.g-ic, .g-mark { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; }
.g-ic svg, .g-mark svg { width: 26px; height: 26px; }
.g-ic { background: var(--brand-100); color: var(--brand); }
.g-hub { border-color: transparent; background: var(--grad-brand); color: #fff; transform: scale(1.05); }
.g-hub b { color: #fff; }
.g-hub .g-mark { background: rgba(255,255,255,.16); color: #fff; }
.g-sub { font-size: .86rem; color: var(--text-soft); }
.g-hub .g-sub { color: rgba(255,255,255,.88); }
.g-conn { display: flex; align-items: center; color: var(--accent); flex: 0 0 auto; }
.g-conn svg { width: 30px; height: 30px; }
.g-out .g-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 2px; }
.g-out .g-chips span { font-size: .76rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-soft); }
.g-out .g-chips .more { background: var(--brand-100); color: var(--brand); border-color: transparent; }
.g-back { margin: clamp(20px, 3vw, 28px) auto 0; max-width: 660px; display: flex; align-items: center; gap: 12px; justify-content: center; text-align: left; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 14px; padding: 14px 20px; color: var(--text-soft); font-size: .96rem; }
.g-back .g-ic.sm { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; flex: 0 0 auto; }
.g-back .g-ic.sm svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .glance-flow { flex-direction: column; align-items: center; gap: 10px; } .g-conn { transform: rotate(90deg); } .g-node { width: 100%; max-width: 440px; } .g-back { text-align: center; flex-direction: column; gap: 10px; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(90, 71, 232, .32); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(90, 71, 232, .42); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-100); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--brand); }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; list-style: none; }
.nav-links a { color: var(--text-soft); font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: 9px; }
.nav-links a:hover { color: var(--text); background: var(--surface-alt); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-soft); cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .moon { display: block; }
}

.nav-toggle { display: none; }
.lang-link { font-size: .9rem; font-weight: 600; color: var(--text-soft); padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); font-family: var(--font-head); }
.lang-link:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 12px; font-size: 1.05rem; }
  .header-cta-desktop { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(52px, 8vw, 104px) 0 clamp(48px, 7vw, 92px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(90, 71, 232, .16), transparent 60%),
    radial-gradient(50% 50% at 8% 20%, rgba(15, 185, 159, .12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); margin-bottom: 20px; }
.hero h1 .hl { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--text-soft); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--text-soft); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; margin-inline: auto; }
}

/* ---------- Carte produit (visuel hero, 100% CSS/SVG) ---------- */
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.mock-dot { width: 11px; height: 11px; border-radius: 50%; background: #d5d9e3; }
.mock-dot:nth-child(1) { background: #ff6058; } .mock-dot:nth-child(2) { background: #ffbd2e; } .mock-dot:nth-child(3) { background: #28c840; }
.mock-url { margin-left: 10px; font-size: .8rem; color: var(--text-soft); font-family: var(--font-body); }
.mock-body { padding: 20px; display: grid; gap: 16px; }
.mock-row { display: flex; align-items: center; gap: 14px; }
.mock-thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--grad-brand); flex: none; display: grid; place-items: center; color: #fff; }
.mock-thumb svg { width: 26px; height: 26px; }
.mock-lines { flex: 1; display: grid; gap: 7px; }
.mock-line { height: 9px; border-radius: 999px; background: var(--line); }
.mock-line.w-70 { width: 70%; } .mock-line.w-90 { width: 90%; } .mock-line.w-50 { width: 50%; }
.mock-line.accent { background: var(--grad-accent); width: 40%; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-chip { font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--brand-100); color: var(--brand); font-family: var(--font-head); }
.mock-chip.ok { background: var(--accent-100); color: var(--accent-600); }
.mock-score { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: 12px; background: var(--surface-alt); }
.mock-score .val { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--accent-600); }
.mock-score .lbl { font-size: .82rem; color: var(--text-soft); }
.gauge { width: 92px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.gauge > span { display: block; height: 100%; width: 88%; background: var(--grad-accent); }
.mock-channels { display: flex; gap: 8px; flex-wrap: wrap; }
.mock-channels span { font-size: .72rem; font-weight: 600; color: var(--text-soft); border: 1px solid var(--line); padding: 4px 9px; border-radius: 8px; font-family: var(--font-head); }

/* ---------- Bandeau canaux ---------- */
.channels-strip { padding: 30px 0; border-block: 1px solid var(--line); background: var(--surface); }
.channels-strip p { text-align: center; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 16px; font-family: var(--font-head); font-weight: 600; }
.channels-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.channels-list span {
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text-soft);
  opacity: .9; display: inline-flex; align-items: center; gap: 8px;
}
.channels-list span::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--brand); opacity: .55; }

/* ---------- Grille générique ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Problème → Solution ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 44px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); background: var(--card); }
.panel h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.panel.problem { background: var(--surface-alt); }
.panel.solution { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: var(--shadow-md); }
.check-list { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list .ico { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; margin-top: 2px; }
.check-list.cons .ico { background: #fdecea; color: #d0492f; }
.check-list.pros .ico { background: var(--accent-100); color: var(--accent-600); }
.check-list .ico svg { width: 15px; height: 15px; }
:root[data-theme="dark"] .check-list.cons .ico { background: #3a1d18; }

/* ---------- Cartes fonctionnalités ---------- */
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; height: 100%; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 24%, var(--line)); }
.feature .f-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand); margin-bottom: 16px; }
.feature .f-ico svg { width: 24px; height: 24px; }
.feature.accent .f-ico { background: var(--accent-100); color: var(--accent-600); }
.feature h3 { font-size: 1.22rem; margin-bottom: 8px; }
.feature p { color: var(--text-soft); margin-bottom: 0; font-size: .98rem; }
.feature .f-tag { display: inline-block; margin-top: 14px; font-size: .78rem; font-weight: 600; font-family: var(--font-head); color: var(--brand); background: var(--brand-100); padding: 4px 10px; border-radius: 999px; }
.feature.accent .f-tag { color: var(--accent-600); background: var(--accent-100); }
.feature.span-2 { grid-column: span 2; }
@media (max-width: 900px) { .feature.span-2 { grid-column: span 1; } }

/* ---------- Comment ça marche ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.step .num {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #fff;
  background: var(--grad-brand); margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--text-soft); font-size: .95rem; margin-bottom: 0; }

/* ---------- Tarification à crédits ---------- */
.pricing-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; margin-bottom: 40px; }
@media (max-width: 860px) { .pricing-intro { grid-template-columns: 1fr; } }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured::after { content: "Le plus choisi"; position: absolute; top: -13px; right: 24px; background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .74rem; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .plan-sub { color: var(--text-soft); font-size: .92rem; margin-bottom: 18px; }
.plan .price { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--text); line-height: 1; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--text-soft); font-family: var(--font-body); }
.plan .credits { margin: 6px 0 20px; font-weight: 600; color: var(--accent-600); font-family: var(--font-head); }
.plan ul { list-style: none; display: grid; gap: 11px; margin-bottom: 24px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); font-size: .95rem; }
.plan ul li svg { width: 18px; height: 18px; color: var(--accent-600); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.credit-note { margin-top: 28px; padding: 18px 22px; border-radius: var(--radius); background: var(--surface-alt); border: 1px solid var(--line); font-size: .95rem; color: var(--text-soft); display: flex; gap: 12px; align-items: flex-start; }
.credit-note svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 1px; }
.cost-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cost-table th, .cost-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cost-table th { font-family: var(--font-head); font-weight: 600; color: var(--text); background: var(--surface-alt); }
.cost-table td:last-child, .cost-table th:last-child { text-align: right; font-weight: 600; color: var(--text); }
.cost-table tr:last-child td { border-bottom: none; }

/* ---------- Confiance ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.trust-item .t-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.trust-item .t-ico svg { width: 21px; height: 21px; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 5px; }
.trust-item p { color: var(--text-soft); font-size: .92rem; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--text); }
.faq-q:hover { color: var(--brand); }
.faq-q .chev { flex: none; width: 22px; height: 22px; color: var(--text-soft); transition: transform .25s ease; }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); color: var(--brand); }
.faq-a { padding: 0 22px 20px; color: var(--text-soft); }
.faq-a p { margin: 0; }
/* Version <details> : réutilise .faq-q comme summary */
details.faq-item > summary { list-style: none; }
details.faq-item > summary::-webkit-details-marker { display: none; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--grad-ink); color: #fff; border-radius: clamp(20px, 4vw, 34px); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 80% 10%, rgba(122, 75, 214, .4), transparent 60%), radial-gradient(40% 50% at 10% 90%, rgba(15, 185, 159, .3), transparent 60%); }
.cta-final > * { position: relative; }
.cta-final h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-final p { color: rgba(255, 255, 255, .82); font-size: 1.14rem; max-width: 580px; margin-inline: auto; margin-bottom: 30px; }
.cta-final .hero-cta { justify-content: center; }
.cta-final .hero-note { color: rgba(255, 255, 255, .72); justify-content: center; }

/* ---------- Formulaire pilote (ancre) ---------- */
.pilot-form { max-width: 560px; margin-inline: auto; display: grid; gap: 16px; text-align: left; margin-top: 34px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 26px; }
.pilot-form .field { display: grid; gap: 6px; }
.pilot-form label { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.9); font-family: var(--font-head); }
.pilot-form input, .pilot-form select, .pilot-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(9, 12, 24, .5); color: #fff; font-family: var(--font-body); font-size: 1rem;
}
.pilot-form input::placeholder, .pilot-form textarea::placeholder { color: rgba(255,255,255,.5); }
.pilot-form input:focus, .pilot-form select:focus, .pilot-form textarea:focus { border-color: #8b76ff; box-shadow: 0 0 0 3px rgba(139, 118, 255, .4); }
.pilot-form textarea { min-height: 92px; line-height: 1.45; resize: vertical; }
.pilot-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) {
  .pilot-form .row { grid-template-columns: 1fr; }
  .cta-final { padding: 32px 20px; }
  .pilot-form { padding: 20px; }
  .pilot-form textarea { min-height: 132px; }
}
.pilot-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: rgba(255,255,255,.72); }
.pilot-form .consent input { width: auto; margin-top: 3px; }
.form-status { font-size: .92rem; color: #9be7d9; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 72px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-soft); font-size: .94rem; max-width: 300px; margin-top: 12px; }
.footer-col h4 { font-family: var(--font-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-soft); font-size: .95rem; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: .88rem; }
.footer-bottom .badges { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom .badges span { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom .badges svg { width: 15px; height: 15px; color: var(--accent-600); }

/* ---------- Utilitaires ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-accent { color: var(--accent-600); }
.mt-0 { margin-top: 0; }

/* Révélation douce au scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Sélecteur de langue ---------- */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary svg { width: 16px; height: 16px; }
.lang-list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  min-width: 180px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); display: grid; gap: 2px;
}
[dir="rtl"] .lang-list { right: auto; left: 0; }
.lang-list a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-soft); font-size: .95rem; font-family: var(--font-body); }
.lang-list a:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }
.lang-list a[aria-current="true"] { color: var(--brand); font-weight: 600; background: var(--brand-100); }
@media (max-width: 900px) { .lang-list { right: 0; } }

/* ---------- Ajustements RTL (arabe) ---------- */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .nav-actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav-links { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .hero-lead, [dir="rtl"] .section-lead { margin-inline: 0; }
[dir="rtl"] .check-list li, [dir="rtl"] .plan ul li, [dir="rtl"] .faq-q,
[dir="rtl"] .hero-note, [dir="rtl"] .credit-note, [dir="rtl"] .pilot-form label,
[dir="rtl"] .pilot-form .consent { text-align: right; }
[dir="rtl"] .cost-table th, [dir="rtl"] .cost-table td { text-align: right; }
[dir="rtl"] .cost-table td:last-child, [dir="rtl"] .cost-table th:last-child { text-align: left; }
[dir="rtl"] .plan.featured::after { right: auto; left: 24px; }
[dir="rtl"] .btn svg, [dir="rtl"] .hero-cta .btn svg { transform: scaleX(-1); }
[dir="rtl"] .section-head.center { text-align: center; }
