/**
 * Bifacto - site vitrine.
 *
 * Charte reprise de l'application (`app.bifacto.com/src/styles/theme.scss`) :
 * primaire cyan #17a2b8, accent orangered #ff4500, rampe de gris identique,
 * rayon 6px, ombres discrètes. Le site est volontairement plus aéré que l'app
 * (typo plus grande, plus d'espace) : une vitrine se lit de loin, un back-office
 * se scanne de près.
 */

/* ── Police auto-hébergée ─────────────────────────────────────────────────────
   Inter est déclarée dans l'app mais n'y est jamais chargée : elle retombe sur
   la pile système. Ici on la charge vraiment. Fichier variable unique par
   sous-ensemble (100→900), le cyrillique étant indispensable au bulgare. */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Jetons ─────────────────────────────────────────────────────────────────*/

:root {
  --primary: #17a2b8;
  --primary-hover: #127a8b;
  --primary-active: #0f6674;
  --primary-rgb: 23, 162, 184;
  --primary-fg: #ffffff;
  --accent: #ff4500;

  --success: #2fb344;
  --warning: #f59f00;
  --danger: #d63939;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 16px;
  --radius-pill: 100rem;

  --shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
  --shadow: rgba(0, 0, 0, .3) 0 2px 8px 0;
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);
  --focus-ring: 0 0 0 .25rem rgba(var(--primary-rgb), .25);

  --container: 1180px;
  --header-h: 68px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* Mêmes valeurs que l'app, exposées ici en variables neutres.
   Le site n'a qu'un thème - sombre. Il n'y a donc plus de bascule ni de jeu de
   jetons clair : ces valeurs sont les seules, posées directement sur :root. */
:root {
  --bg: #111827;
  --bg-elevated: #1f2937;
  --surface: #1f2937;
  --surface-2: #374151;
  --surface-3: #4b5563;
  --border: #374151;
  --border-soft: #374151;
  --text: #f3f4f6;
  --text-strong: #ffffff;
  --muted: #d1d5db;
  --hero-glow: rgba(var(--primary-rgb), .16);
}

/* ── Base ───────────────────────────────────────────────────────────────────*/

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }

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

a { color: var(--primary); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: .6rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { left: 8px; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Boutons ────────────────────────────────────────────────────────────────*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  color: var(--text);
  transition: background-color .15s var(--ease), border-color .15s var(--ease),
              color .15s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-primary:active { background: var(--primary-active); border-color: var(--primary-active); }

/* Accent orangered réservé au CTA principal : un seul par écran, sinon il
   cesse d'être un accent. */
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #e03e00; border-color: #e03e00; color: #fff; }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text-strong); }

.btn-lg { padding: .85rem 1.6rem; font-size: 1.02rem; }
.btn-sm { padding: .45rem .85rem; font-size: .87rem; }

.btn-icon {
  padding: .5rem;
  color: var(--muted);
  border-radius: var(--radius);
}
.btn-icon:hover { background: var(--surface-2); color: var(--text-strong); }

.icon { flex: none; vertical-align: middle; }

/* ── En-tête ────────────────────────────────────────────────────────────────*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
/* La bordure n'apparaît qu'au défilement : en haut de page, le header doit se
   fondre dans le hero. */
.site-header.is-stuck { border-bottom-color: var(--border-soft); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: none; }
/* Le logo n'existe qu'en PNG noir et blanc : sur fond sombre, c'est le blanc. */
.brand-logo { height: 30px; width: auto; }

.nav-main {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: 1.5rem;
  margin-right: auto;
}

.nav-link {
  padding: .5rem .85rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
}
.nav-link:hover { color: var(--text-strong); background: var(--surface-2); }
.nav-link.is-active { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav-mobile-only { display: none; }
.nav-burger { display: none; }

.lang-code { font-size: .82rem; font-weight: 600; letter-spacing: .02em; }

/* ── Menu déroulant ─────────────────────────────────────────────────────────*/

.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  padding: .35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s;
}
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .65rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: .92rem;
}
.dropdown-item:hover { background: var(--surface-2); color: var(--text-strong); }
.dropdown-item.is-active { color: var(--primary); font-weight: 600; }

/* ── Sections ───────────────────────────────────────────────────────────────*/

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-elevated); border-block: 1px solid var(--border-soft); }

.section-head { max-width: 660px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  padding: .3rem .75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  border-radius: var(--radius-pill);
  background: rgba(var(--primary-rgb), .08);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ── Héros ──────────────────────────────────────────────────────────────────*/

.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  text-align: center;
  overflow: hidden;
}
/* Halo cyan derrière le titre - le seul dégradé du site. La charte de l'app est
   plate ; ici il sert à poser une profondeur sans inventer de couleur. */
.hero::before {
  content: '';
  position: absolute;
  inset: -50% 0 auto 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--hero-glow) 0%, transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero-sub {
  max-width: 62ch;
  margin: 1.25rem auto 2rem;
  color: var(--muted);
  font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hero-note { margin-top: 1rem; color: var(--muted); font-size: .88rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero-stat-label { color: var(--muted); font-size: .84rem; line-height: 1.4; }

/* ── Cartes ─────────────────────────────────────────────────────────────────*/

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Carte plate et bordée plutôt qu'ombrée : c'est le trait dominant de l'app. */
.card {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: .95rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(var(--primary-rgb), .1);
  color: var(--primary);
}

/* ── Étapes ─────────────────────────────────────────────────────────────────*/

.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 3.25rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.step p { color: var(--muted); font-size: .95rem; }

/* ── Bandeau Bulgarie ───────────────────────────────────────────────────────*/

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split p { color: var(--muted); font-size: 1.02rem; }

.check-list { display: grid; gap: .85rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .97rem; }
.check-list .icon {
  margin-top: .18rem;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: rgba(47, 179, 68, .12);
  color: var(--success);
}

/* ── Aperçu du tableau de bord ──────────────────────────────────────────────
   Maquette, pas capture : elle se traduit, reste nette à toute résolution et ne
   coûte pas un octet d'image. Voir `partials/_dashboard.php`. */

.dash {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Barre de fenêtre : trois pastilles, assez pour dire « c'est un écran » sans
   imiter un navigateur en particulier. */
.dash-bar {
  display: flex;
  gap: .4rem;
  padding: .6rem .75rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dash-dot { width: 9px; height: 9px; border-radius: var(--radius-pill); background: var(--surface-3); }

.dash-body { display: grid; gap: .75rem; padding: .85rem; }

.dash-card {
  padding: .85rem .95rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.dash-card-title {
  margin: 0 0 .7rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dash-card-head .dash-card-title { margin-bottom: .7rem; }

.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.dash-kpi { display: grid; gap: .15rem; }
.dash-kpi-label { color: var(--muted); font-size: .72rem; }
.dash-kpi-value { color: var(--text-strong); font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.dash-kpi-value.is-collected { color: var(--success); }
.dash-kpi-value.is-issued { color: var(--primary); }

.dash-legend { display: flex; gap: .75rem; margin-bottom: .7rem; }
.dash-legend-item { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .7rem; }
.dash-swatch { width: 8px; height: 2px; border-radius: 2px; }
.dash-swatch.is-issued { background: var(--primary); }
.dash-swatch.is-collected { background: var(--success); }

/* `preserveAspectRatio="none"` étire le tracé : la hauteur est donc fixée ici,
   sinon la courbe s'aplatirait au gré de la largeur du conteneur. */
.dash-chart { display: block; width: 100%; height: 96px; }
.dash-grid { stroke: var(--border-soft); stroke-width: 1; }
.dash-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dash-line.is-issued { stroke: var(--primary); }
.dash-line.is-collected { stroke: var(--success); }

.dash-rows { display: grid; gap: .1rem; }
.dash-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: .75rem;
  padding: .4rem 0;
  border-top: 1px solid var(--border-soft);
  font-size: .76rem;
}
.dash-row:first-child { border-top: 0; }
.dash-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-client { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-amount { color: var(--text-strong); font-weight: 600; font-variant-numeric: tabular-nums; }

.dash-state {
  padding: .1rem .45rem;
  border-radius: var(--radius-pill);
  font-size: .66rem;
  font-weight: 700;
  white-space: nowrap;
}
.dash-state.is-paid { background: rgba(47, 179, 68, .16); color: var(--success); }
.dash-state.is-issued { background: rgba(var(--primary-rgb), .16); color: var(--primary); }

@media (max-width: 480px) {
  /* Le numéro est le premier sacrifié : le client et le montant portent le sens. */
  .dash-num { display: none; }
  .dash-row { grid-template-columns: 1fr auto auto; }
}

/* ── Conformité ─────────────────────────────────────────────────────────────
   Les références de loi sont le fond de cette section : elles doivent être
   lisibles, pas décoratives. */

.law-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.law-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.law-card h3 { margin-bottom: .6rem; }
.law-card p { color: var(--muted); font-size: .95rem; }

/* Les références suivent le texte au lieu d'être collées en bas : deux cartes
   n'ont pas le même nombre d'articles, et les aligner creusait un trou au milieu
   de la plus courte. La grille égalise déjà les hauteurs. */
.law-refs { display: grid; gap: .5rem; padding-top: 1.1rem; }
.law-ref {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .5rem .7rem;
  border-left: 2px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(var(--primary-rgb), .07);
  font-size: .84rem;
  line-height: 1.5;
}
/* La référence elle-même ne se traduit pas - c'est un identifiant, comme un
   ISBN. On l'isole typographiquement et on la marque `lang` pour que les
   synthèses vocales ne lisent pas du bulgare avec un accent français. */
.law-cite {
  flex: none;
  color: var(--primary);
  font-weight: 700;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.law-what { color: var(--muted); }

.law-note {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  max-width: 780px;
  margin: 2rem auto 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: .88rem;
}
.law-note .icon { flex: none; margin-top: .15rem; color: var(--muted); }

/* ── Tarifs ─────────────────────────────────────────────────────────────────*/

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.85rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
/* L'offre mise en avant se distingue par la bordure et l'élévation, pas par une
   couleur de fond : le fond coloré écraserait la lisibilité du tableau. */
.plan.is-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 12px 32px rgba(var(--primary-rgb), .12);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: .22rem .8rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-name { margin-bottom: .25rem; font-size: 1.1rem; }
.plan-desc { min-height: 2.8em; color: var(--muted); font-size: .9rem; }

.plan-price { display: flex; align-items: baseline; gap: .3rem; margin: 1.1rem 0 .2rem; }
.plan-amount { font-size: 2.6rem; font-weight: 700; color: var(--text-strong); letter-spacing: -.03em; line-height: 1; }
.plan-period { color: var(--muted); font-size: .92rem; font-weight: 500; }
.plan-note { min-height: 1.4em; margin-bottom: 1.35rem; color: var(--muted); font-size: .82rem; }

.plan-features { display: grid; gap: .7rem; margin: 1.35rem 0; padding-top: 1.35rem; border-top: 1px solid var(--border-soft); }
.plan-features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; }
.plan-features .icon { margin-top: .2rem; color: var(--success); flex: none; }

.plan .btn { width: 100%; margin-top: auto; }

.pricing-note { margin-top: 1.5rem; color: var(--muted); font-size: .85rem; text-align: center; }

.included {
  max-width: 760px;
  margin: 3rem auto 0;
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.included h3 { margin-bottom: 1rem; font-size: 1rem; text-align: center; }
.included ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.included li { display: flex; align-items: flex-start; gap: .55rem; color: var(--muted); font-size: .9rem; }
.included .icon { margin-top: .2rem; color: var(--success); flex: none; }

/* ── FAQ ────────────────────────────────────────────────────────────────────*/

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: .75rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .icon { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.faq-item[open] .faq-q .icon { transform: rotate(180deg); color: var(--primary); }

.faq-a { padding: 0 1.35rem 1.25rem; color: var(--muted); font-size: .95rem; }

/* ── Bandeau CTA ────────────────────────────────────────────────────────────*/

.cta-band {
  position: relative;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-active) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 52ch; margin: 0 auto 1.75rem; color: rgba(255, 255, 255, .88); font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.cta-band .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.cta-band .btn-light { background: #fff; color: var(--primary-active); }
.cta-band .btn-light:hover { background: rgba(255, 255, 255, .9); color: var(--primary-active); }

/* ── Contact ────────────────────────────────────────────────────────────────*/

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card { text-align: center; }
.contact-card .card-icon { margin-inline: auto; }
.contact-mail { font-size: 1.05rem; font-weight: 600; word-break: break-all; }

/* ── Pages de contenu ───────────────────────────────────────────────────────*/

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.prose p { color: var(--muted); font-size: 1.02rem; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface);
}
.notice .icon { flex: none; margin-top: .2rem; color: var(--primary); }

.page-404 { padding: clamp(4rem, 10vw, 7rem) 0; text-align: center; }
.page-404 .code { font-size: 4rem; font-weight: 700; color: var(--primary); line-height: 1; }

/* ── Document légal (CGU) ─────────────────────────────────────────────────────
   Un long texte contractuel : plus large que `.prose` standard, avec sommaire,
   articles ancrés et deux styles de tableaux (fiche prestataire + grille). */

.legal-doc { max-width: 820px; }
.legal-head { margin-bottom: 2.5rem; }
.legal-lead { margin-top: .5rem; color: var(--muted); font-size: 1.05rem; }
.legal-meta {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}

.legal-provider-title, .legal-article h2 {
  margin-top: 0;
  font-size: 1.2rem;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal-article { margin-top: 2.5rem; }
.legal-article h2 { margin-bottom: .8rem; }
.legal-article p { color: var(--muted); font-size: .98rem; }

/* Le tableau déborde plutôt que de casser la mise en page sur mobile. */
.legal-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }

.legal-provider {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.legal-provider th, .legal-provider td {
  padding: .7rem .9rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border-soft);
}
.legal-provider th {
  width: 34%;
  color: var(--text-strong);
  font-weight: 600;
  background: var(--surface-2);
}
.legal-provider td { color: var(--muted); }

.legal-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  white-space: nowrap;
}
.legal-grid th, .legal-grid td {
  padding: .6rem .8rem;
  text-align: left;
  border: 1px solid var(--border-soft);
}
.legal-grid thead th { color: var(--text-strong); font-weight: 600; background: var(--surface-2); }
.legal-grid td { color: var(--muted); }
.legal-grid td:first-child { color: var(--text-strong); font-weight: 600; }

.legal-toc {
  margin: 0 0 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}
.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
  columns: 2;
  column-gap: 2rem;
}
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-toc li { margin-bottom: .4rem; break-inside: avoid; }
.legal-toc a { color: var(--muted); font-size: .9rem; }
.legal-toc a:hover { color: var(--primary); }

.legal-list { margin: .5rem 0 1rem; padding-left: 1.1rem; list-style: disc; }
.legal-list li { margin-bottom: .5rem; color: var(--muted); font-size: .98rem; }

.legal-reference {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: .9rem;
  font-style: italic;
}

/* ── Pied de page ───────────────────────────────────────────────────────────*/

.site-footer {
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand-logo { height: 28px; width: auto; margin-bottom: 1rem; }
.footer-tagline { max-width: 34ch; margin-bottom: 1.25rem; color: var(--muted); font-size: .9rem; }

.footer-title { margin-bottom: .9rem; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-strong); }
.footer-list { display: grid; gap: .55rem; }
.footer-list a { color: var(--muted); font-size: .92rem; }
.footer-list a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: .85rem;
}
.footer-langs { display: flex; gap: 1rem; }
.footer-langs a { color: var(--muted); }
.footer-langs a:hover, .footer-langs a.is-active { color: var(--primary); }

/* ── Apparition au défilement ───────────────────────────────────────────────
   L'état masqué est conditionné à `.js`, posée par le script du <head>. Sans
   JavaScript - ou si le script échoue - rien n'est jamais masqué : une page
   dont tout le contenu sous la ligne de flottaison dépend d'un observateur est
   une page vide pour qui n'exécute pas JS. */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Responsive ─────────────────────────────────────────────────────────────*/

@media (max-width: 960px) {
  .grid-3, .steps, .plans, .contact-grid, .law-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan.is-featured { order: -1; }
}

@media (max-width: 820px) {
  .header-login, .header-signup { display: none; }
  .nav-burger { display: inline-flex; }

  /* Le menu devient un panneau plein écran sous le header : la nav inline ne
     tient pas, et un tiroir latéral coûterait un piège de focus. */
  .nav-main {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    margin: 0;
    padding: 1rem 20px 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }
  .nav-main.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav-link { padding: .75rem .85rem; font-size: 1rem; }
  .nav-mobile-only { display: grid; gap: .5rem; margin-top: .75rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); }
  .nav-burger .icon-close { display: none; }
  .nav-burger.is-open .icon-open { display: none; }
  .nav-burger.is-open .icon-close { display: block; }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; text-align: left; }
  .grid-2, .included ul, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
