/* ==========================================================================
   QLYO — Site vitrine
   Feuille de style unique, sans framework.
   Thème CLAIR, aligné sur l'application : surfaces blanches, filets fins,
   couleur rare. Le dégradé 25° #20484F → #4E9BAB est réservé aux tuiles
   d'accent, comme la tuile « Bénéfice net » du tableau de bord.

   Règle de marque respectée : l'extrémité claire du dégradé ne porte jamais
   de texte. En thème clair, la couleur d'action est #20484F (9,09:1 — AAA).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marque */
  --brand-dark: #20484f;
  --brand-light: #4e9bab;
  --brand-gradient: linear-gradient(25deg, #20484f 0%, #4e9bab 100%);
  /* Variante resserrée : sûre pour porter du texte blanc, y compris en petit
     corps. L'extrémité claire est ramenée à #37727F (5,4:1 pour du blanc) —
     l'extrémité #4E9BAB d'origine ne tient que 4,15:1 et échoue sur les
     libellés secondaires des tuiles d'accent. */
  --brand-gradient-safe: linear-gradient(25deg, #1c4149 0%, #37727f 100%);

  /* Couleur d'action en thème clair */
  --accent: #20484f;
  --accent-hover: #163439;
  --accent-wash: #eef4f5;
  --accent-wash-2: #e2edef;

  /* Surfaces */
  --page: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f9fa;
  --surface-3: #eef2f3;
  /* Gris d'alternance des sections, commun avec les pages légales */
  --wash: #f5f5f7;

  /* Filets — le langage Bento sépare par un filet, pas par une ombre */
  --line: #e4eaeb;
  --line-2: #d5dee0;
  --line-accent: rgba(32, 72, 79, 0.26);
  /* Piste non remplie des curseurs. #E5E7EB (gray-200) ne contraste qu'à
     1,24:1 sur la carte blanche : la barre s'y devine à peine. Un cran plus
     foncé (gray-300) la rend franchement lisible sans l'alourdir. */
  --track: #d1d5db;

  /* Texte — échelle typographique QLYO
     ⚠️ --muted / --faint valent #86868B (gris secondaire demandé). Mesuré à
     3,62:1 sur blanc : sous le seuil AA de 4,5:1 pour du texte courant.
     Pour repasser conforme sans changer le rendu d'ensemble, remplacer les
     deux valeurs par #6E6E73 (5,07:1). Une seule ligne à modifier. */
  --text: #1d1d1f;
  --muted: #86868b;
  --faint: #86868b;
  /* Gris renforcé pour les micro-textes (≤ 13 px) : à cette taille, #86868B
     tombe à 3,3:1 et devient pénible à lire. 5,07:1 sur blanc, 4,66:1 sur gris. */
  --muted-strong: #6e6e73;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.88);

  /* États */
  --ok: #147a4a;
  --ok-bg: #e6f4ec;
  --warn: #8a5a04;
  --warn-bg: #fdf3e0;
  --bad: #b3261e;
  --bad-bg: #fdeceb;

  /* Rythme */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-btn: 12px;
  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-xs: 0 1px 2px rgba(13, 27, 30, 0.05);
  --shadow-sm: 0 2px 8px rgba(13, 27, 30, 0.06);
  --shadow-md: 0 8px 28px -12px rgba(13, 27, 30, 0.18);
  --shadow-lg: 0 26px 60px -30px rgba(13, 27, 30, 0.32);

  color-scheme: light;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;          /* 16 px */
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  word-spacing: normal;
  color: var(--text);
  background-color: var(--page);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

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

::selection { background: rgba(32, 72, 79, 0.16); color: var(--text); }

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.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;
}

/* --------------------------------------------------------------------------
   3. Typographie & primitives de mise en page
   -------------------------------------------------------------------------- */
/* Hiérarchie typographique — letter-spacing laissé à 0 (métrique native Inter) */
h1, h2, h3, h4 {
  letter-spacing: 0;
  text-wrap: balance;
  color: var(--text);
}

h1 { font-weight: 700; font-size: clamp(3rem,   5.5vw, 3.5rem); line-height: 1.2; }  /* 48 → 56 px */
h2 { font-weight: 600; font-size: clamp(2rem,   3.8vw, 2.5rem); line-height: 1.3; }  /* 32 → 40 px */
h3 { font-weight: 600; font-size: clamp(1.5rem, 2.1vw, 1.75rem); line-height: 1.4; } /* 24 → 28 px */
h4 { font-weight: 600; font-size: 1.125rem; line-height: 1.4; }

p { text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 900px; }
.container--mid { max-width: 1050px; }

.section { padding-block: clamp(4rem, 8.5vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

/* ---- Alternance blanc / gris ----------------------------------------------
   Une section sur deux est posée sur un gris très doux. Pas de filet entre
   les deux : c'est le changement de valeur seul qui découpe la page.
   Règle qui va avec : toute carte posée sur le gris redevient blanche et
   gagne une ombre, pour créer l'effet de superposition. */
.section--wash { background: var(--wash); }

.section--wash .card,
.section--wash .plan,
.section--wash .calc,
.section--wash .acc-item,
.section--wash .table-wrap,
.section--wash .panel--before,
.section--wash .panel--after,
.section--wash .pricing-note,
.section--wash .form { background: #ffffff; }

.section--wash .card,
.section--wash .plan,
.section--wash .acc-item { box-shadow: var(--shadow-sm); }

.section--wash .pricing-note { box-shadow: var(--shadow-xs); border-color: transparent; }

.section--wash .card--hover:hover,
.section--wash .plan--featured { box-shadow: var(--shadow-md); }

/* L'option écartée reste en retrait : blanche, mais sans relief. */
.section--wash .panel--before { box-shadow: none; }

/* Les blocs internes déjà gris gardent leur rôle de sous-niveau : ils sont
   posés dans une carte blanche, la hiérarchie tient toujours.
   ⚠️ La tuile d'accent est exclue : sans le :not(), cette règle l'emporterait
   sur .calc-card--accent (0-2-0 contre 0-1-0) et son texte blanc se
   retrouverait sur un fond gris clair. */
.section--wash .calc-card:not(.calc-card--accent) { background: var(--wash); }
.section--wash .contact-line,
.section--wash .mini-planning .mini-slot,
.section--wash .mini-invoice { background: var(--wash); }

.section-head { max-width: 780px; margin-inline: auto; text-align: center; }
/* Chapô de section : c'est du texte principal, il reste en #1D1D1F */
.section-head p {
  margin-top: 1.15rem;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.6;
  color: var(--text);
}

/* Surtitre : petite grille 2x2 + libellé */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  margin-bottom: 1.35rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.75rem;   /* 12 px — libellé */
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}
.eyebrow .grid-dot {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  width: 16px; height: 16px;
  flex: none;
}
.eyebrow .grid-dot span {
  border-radius: 2.5px;
  background: var(--brand-light);
}
.eyebrow .grid-dot span:nth-child(1),
.eyebrow .grid-dot span:nth-child(4) {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

/* Dégradé de texte : borné pour rester lisible sur blanc */
.grad-text {
  background: linear-gradient(25deg, #20484f 0%, #3c8291 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 62ch;
}

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }

/* Carte Bento générique */
.card {
  position: relative;
  height: 100%;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.card--hover:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--accent-wash);
  color: var(--accent);
  flex: none;
}
.icon-tile svg { width: 21px; height: 21px; }

/* Usage rare du dégradé : tuiles d'accent uniquement */
.icon-tile--grad {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 0.95rem;   /* 15,2 px */
  line-height: 1.5;
  text-align: center;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
              border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), color 0.22s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }

/* Primaire : teal foncé, texte blanc (9,99:1) — comme le bouton du panel */
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }

.btn--ghost {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }

.btn--outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn--outline:hover { background: var(--accent-wash); }

/* Variante posée sur un fond sombre (bandeau CTA) */
.btn--onDark {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}
.btn--onDark:hover { background: #f2f7f8; }

.btn--ghostOnDark {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn--ghostOnDark:hover { background: rgba(255, 255, 255, 0.18); }

.btn--lg { min-height: 54px; padding: 0.95rem 1.85rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Ligne de réassurance sous les CTA */
.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 1.5rem;
  font-size: 0.87rem;
  color: var(--muted);
}
.assurances li { display: inline-flex; align-items: center; gap: 0.45rem; }
.assurances svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.cta-final .assurances { color: var(--on-dark-muted); }
.cta-final .assurances svg { color: #fff; }

/* Ligne d'appui sous un bouton « Voir la démo ». Micro-texte : on prend le
   gris renforcé (5,07:1) plutôt que --muted, trop pâle à cette taille. */
.btn-note {
  margin-top: 0.9rem;
  font-size: 0.87rem;
  color: var(--muted-strong);
}
.btn-note--center { text-align: center; }

/* --------------------------------------------------------------------------
   5. En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease),
              border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  padding-block: 0.6rem;
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 32px; width: auto; }

.nav-main { display: none; }
@media (min-width: 1000px) {
  .nav-main { display: flex; align-items: center; gap: 2rem; }
}
.nav-main a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-main a:hover { color: var(--accent); }
.nav-main a:hover::after { transform: scaleX(1); }

.header-actions { display: none; align-items: center; gap: 0.6rem; }
@media (min-width: 1000px) { .header-actions { display: flex; } }
.header-actions .btn { min-height: 42px; padding: 0.5rem 1.15rem; font-size: 0.89rem; }
/* « Voir la démo » : n'apparaît dans l'en-tête que lorsque les trois boutons
   tiennent sur une ligne à côté de la navigation. En dessous, il reste
   accessible dans le menu mobile (< 1000 px), le hero, les tarifs et le
   bandeau final. Le troisième bouton dépasse de 5 px la largeur utile du
   conteneur : on resserre d'autant l'écart entre les liens de navigation. */
.header-actions .header-demo { display: none; }
@media (min-width: 1240px) {
  .header-actions .header-demo { display: inline-flex; }
  .nav-main { gap: 1.75rem; }
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1000px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.8rem 0.7rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
}
.nav-mobile a:hover { background: var(--surface-2); color: var(--accent); }
.nav-mobile .btn { margin-top: 0.6rem; }
.nav-mobile .btn + .btn { margin-top: 0.5rem; }
@media (min-width: 1000px) { .nav-mobile { display: none !important; } }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 15vw, 10rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
  overflow: hidden;
  background:
    radial-gradient(760px 520px at 88% -10%, rgba(78, 155, 171, 0.16), transparent 62%),
    radial-gradient(620px 480px at 4% 4%, rgba(32, 72, 79, 0.07), transparent 60%),
    linear-gradient(180deg, #fbfdfd 0%, #ffffff 62%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(32, 72, 79, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32, 72, 79, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 76% 60% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 76% 60% at 50% 0%, #000 30%, transparent 100%);
}

.hero-glow { display: none; }

.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 1080px) {
  .hero-inner { grid-template-columns: 1.02fr 0.98fr; gap: 3.5rem; }
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .line-accent { display: block; }
.hero .lede { font-size: clamp(1.04rem, 1.5vw, 1.24rem); }

/* Bandeau de confiance sous le hero */
.hero-trust {
  margin-top: clamp(3.5rem, 7vw, 4.5rem);
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.hero-trust p {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-trust ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2.4rem;
  margin-top: 1.4rem;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-trust svg { width: 19px; height: 19px; color: var(--accent); flex: none; }

/* --------------------------------------------------------------------------
   7. Maquette applicative — réplique du tableau de bord réel
   -------------------------------------------------------------------------- */
.mock { position: relative; }

.mock-window {
  position: relative;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.35rem 0.85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.85rem;
}
.mock-bar img { height: 19px; width: auto; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
}
.mock-dots span:last-child { background: var(--brand-light); }

.mock-body { display: grid; gap: 0.6rem; grid-template-columns: 1fr 1fr; }

.mock-tile {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.mock-tile h4 {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}
.mock-value {
  margin-top: 0.35rem;
  font-size: clamp(1.3rem, 2.9vw, 1.7rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

/* La seule tuile en dégradé — exactement comme « Bénéfice net » dans l'app */
.mock-tile--grad {
  border-color: transparent;
  background: var(--brand-gradient-safe);
}
.mock-tile--grad h4 { color: var(--on-dark-muted); }
.mock-tile--grad .mock-value { color: #fff; }

.mock-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.3rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.mock-delta svg { width: 13px; height: 13px; }

.mock-spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin-top: 0.7rem;
}
.mock-spark i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, #cfe3e7, var(--brand-light));
  transform-origin: bottom;
  animation: grow 1s var(--ease) backwards;
}

.mock-tile--wide { grid-column: 1 / -1; }

.mock-agenda { display: grid; gap: 0.45rem; margin-top: 0.7rem; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.79rem;
}
.mock-row time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
  flex: none;
}
.mock-row .r-main { flex: 1; min-width: 0; }
.mock-row .r-main b { display: block; font-weight: 600; font-size: 0.82rem; color: var(--text); }
.mock-row .r-main small { color: var(--faint); font-size: 0.71rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}
.chip--ok { background: var(--ok-bg); color: var(--ok); }
.chip--run { background: var(--accent-wash-2); color: var(--accent); }
.chip--wait { background: var(--warn-bg); color: var(--warn); }

/* Carte flottante « avant / après » */
.mock-float {
  position: absolute;
  right: clamp(-0.5rem, -1vw, 0rem);
  bottom: -2.4rem;
  width: clamp(160px, 42vw, 200px);
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
  animation: float 7s ease-in-out infinite 0.9s;
}
.mock-float p {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.15rem 0.3rem 0.45rem;
}
.compare {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(120deg, #4e9bab 0%, #8fd0dc 100%);
}
.compare::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  background: linear-gradient(120deg, #9aa5a8 0%, #c3cbcd 100%);
}
.compare-handle {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.28);
}
.compare-tag {
  position: absolute;
  bottom: 6px;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(13, 27, 30, 0.62);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
}
.compare-tag--a { left: 6px; }
.compare-tag--b { right: 6px; }

.mock-float footer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.3rem 0.15rem;
  font-size: 0.65rem;
  color: var(--muted);
}
.mock-float footer svg { width: 13px; height: 13px; color: var(--ok); flex: none; }

@media (max-width: 560px) {
  .mock-float { position: static; width: 100%; margin-top: 1.2rem; transform: none; animation: none; }
}

/* --------------------------------------------------------------------------
   8. Bandeau de chiffres
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--surface);
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(2.05rem, 4.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.stat span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.89rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Avant / après
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: 1.15rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }

.panel {
  height: 100%;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
}
.panel--before {
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.panel--after {
  border: 1px solid var(--line-accent);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.panel--before .panel-title { color: var(--faint); }
.panel--after .panel-title { color: var(--accent); }
.panel-title svg { width: 18px; height: 18px; }

.check-list { display: grid; gap: 0.9rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.96rem; }
.check-list svg { width: 19px; height: 19px; margin-top: 0.18rem; flex: none; }
.panel--before .check-list li { color: var(--muted); }
.panel--before .check-list svg { color: #c98b86; }
.panel--after .check-list li { color: var(--text); }
.panel--after .check-list svg { color: var(--accent); }

/* --------------------------------------------------------------------------
   10. Bento fonctionnalités
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(6, 1fr); } }

.bento > * { grid-column: span 1; }
@media (min-width: 1024px) {
  .bento .col-2 { grid-column: span 2; }
  .bento .col-3 { grid-column: span 3; }
  .bento .col-4 { grid-column: span 4; }
  .bento .col-6 { grid-column: span 6; }
}

.feature h3 { margin: 1.1rem 0 0.55rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }
.feature .feature-points {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.feature .feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.feature .feature-points svg { width: 15px; height: 15px; margin-top: 0.22rem; color: var(--accent); flex: none; }
.feature code {
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
  background: var(--surface-3);
  font-size: 0.85em;
}

/* Illustration « planning » */
.mini-planning { display: grid; gap: 0.45rem; margin-top: 1.4rem; }
.mini-slot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.79rem;
}
.mini-slot i {
  width: 3px;
  align-self: stretch;
  border-radius: 3px;
  background: var(--brand-light);
  flex: none;
}
.mini-slot .s-name { flex: 1; font-weight: 600; }
.mini-slot .s-meta { color: var(--faint); font-size: 0.72rem; }

/* Illustration « facture » */
.mini-invoice {
  margin-top: 1.4rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.81rem;
}
.mini-invoice .inv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--line-2);
}
.mini-invoice .inv-head b {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.77rem;
}
.mini-invoice dl { display: grid; gap: 0.35rem; margin-top: 0.65rem; }
.mini-invoice dl > div { display: flex; justify-content: space-between; gap: 1rem; }
.mini-invoice dt { color: var(--muted); }
.mini-invoice dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.mini-invoice .inv-total {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line-2);
  font-size: 0.93rem;
}
.mini-invoice .inv-total dd { color: var(--accent); font-weight: 700; }
.mini-invoice .inv-legal { margin-top: 0.6rem; font-size: 0.67rem; color: var(--faint); }

/* --------------------------------------------------------------------------
   11. Calculateur de rentabilité
   -------------------------------------------------------------------------- */
.calc {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.6rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.calc-controls { display: grid; gap: 2rem; }
@media (min-width: 760px) { .calc-controls { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

.calc-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.calc-field label output {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
/* Bornes min / max sous le curseur : gris franchement lisible (5,07:1),
   pas le gris secondaire qui plafonne à 3,62:1. */
.calc-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6e6e73;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  /* La piste entière est visible : rempli en couleur d'action jusqu'à --pct,
     gris clair au-delà. JavaScript ne pilote que --pct, jamais les couleurs. */
  --pct: 0%;
  background:
    linear-gradient(to right,
      var(--accent) 0%, var(--accent) var(--pct),
      var(--track)  var(--pct), var(--track) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line-2), 0 3px 10px rgba(13, 27, 30, 0.24);
  transition: transform 0.15s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(0.92); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line-2), 0 3px 10px rgba(13, 27, 30, 0.24);
  cursor: pointer;
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: transparent; }

.calc-results { display: grid; gap: 1rem; margin-top: 2.4rem; }
@media (min-width: 700px) { .calc-results { grid-template-columns: repeat(3, 1fr); } }

/* --- Carte de résultat, version claire (les deux premières) --- */
.calc-card {
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.calc-card b {
  display: block;
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.calc-card b small { font-size: 0.92rem; font-weight: 600; color: var(--muted-strong); letter-spacing: 0; }
.calc-card .c-label { margin-top: 0.5rem; font-size: 0.91rem; font-weight: 600; }
.calc-card .c-note { margin-top: 0.3rem; font-size: 0.78rem; color: var(--muted-strong); }

/* --- Tuile d'accent : aplat de marque foncé ---------------------------------
   Toutes les surcharges sont regroupées ICI, après les règles claires.
   À spécificité égale (0-2-0), c'est l'ordre de déclaration qui tranche :
   placées avant, `.calc-card .c-note` reprenait le dessus et repeignait la
   note en gris clair sur fond foncé. */
.calc-card--accent {
  border-color: transparent;
  background: var(--brand-dark);
}
.calc-card--accent b,
.calc-card--accent .c-label { color: #fff; }
.calc-card--accent b small,
.calc-card--accent .c-note { color: var(--on-dark-muted); }

.calc-footnote {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted-strong);
  text-align: center;
}

/* --------------------------------------------------------------------------
   12. Catalogue de prestations
   -------------------------------------------------------------------------- */
.table-wrap {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.price-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.89rem;
}
.price-table caption {
  padding: 1.1rem 1.4rem;
  text-align: left;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.price-table th,
.price-table td { padding: 0.82rem 1.4rem; text-align: left; }
.price-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table tbody tr { border-bottom: 1px solid var(--line); }
.price-table tbody tr:last-child { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--surface-2); }
.price-table td:first-child { font-weight: 600; }
.price-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table .num--accent { color: var(--accent); font-weight: 700; }
.price-table td.muted-cell { color: var(--muted); }

.gabarits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
  justify-content: center;
}
.gabarits li {
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.83rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Accordéon (modules & FAQ)
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 0.7rem; margin-top: clamp(2.2rem, 4vw, 3rem); }

.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.acc-item.is-open {
  border-color: var(--line-accent);
  box-shadow: var(--shadow-sm);
}

.acc-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.2rem 1.35rem;
  text-align: left;
  min-height: 56px;
}
.acc-trigger .acc-label { flex: 1; }
.acc-trigger .acc-title {
  display: block;
  font-size: 1.01rem;
  font-weight: 700;
  color: var(--text);
}
.acc-trigger .acc-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--faint);
}
.acc-chevron {
  width: 22px; height: 22px;
  color: var(--faint);
  flex: none;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.acc-item.is-open .acc-chevron { transform: rotate(180deg); color: var(--accent); }

/* Panneau replié : la hauteur est pilotée en JavaScript (voir main.js).
   Le motif CSS « grid-template-rows: 0fr → 1fr » a été écarté : il exige
   overflow:hidden sur l'élément de grille pour se refermer, or cette même
   propriété annule la résolution de la piste 1fr dans Chromium — le panneau
   reste alors à zéro à l'ouverture. */
.acc-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.38s var(--ease);
}
/* Réponses de la FAQ : contenu de lecture, donc texte principal */
.acc-content { padding: 0 1.35rem 1.35rem; color: var(--text); line-height: 1.6; }
.acc-content p + p { margin-top: 0.85rem; }
.acc-content code {
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
  background: var(--surface-3);
  font-size: 0.85em;
}

.acc-content .cols { display: grid; gap: 0.65rem; }
@media (min-width: 620px) { .acc-content .cols { grid-template-columns: 1fr 1fr; gap: 0.65rem 1.6rem; } }
.acc-content .cols li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.89rem; }
.acc-content .cols svg { width: 15px; height: 15px; margin-top: 0.22rem; color: var(--accent); flex: none; }

/* --------------------------------------------------------------------------
   14. Bandeau défilant
   -------------------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--wash);
  padding-block: 1.4rem;
  overflow: hidden;
}
/* Le masque est porté par le conteneur fixe, pas par la piste qui se déplace :
   le fondu reste ancré aux bords de l'écran. */
.marquee-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.marquee-track svg { width: 19px; height: 19px; color: var(--accent); flex: none; }

/* --------------------------------------------------------------------------
   15. Témoignages
   -------------------------------------------------------------------------- */
.testimonials { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 780px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

.quote { display: flex; flex-direction: column; }
.stars { display: flex; gap: 2px; color: #d99a1e; }
.stars svg { width: 17px; height: 17px; }
.quote blockquote { flex: 1; margin: 1.1rem 0 0; font-size: 0.95rem; color: var(--text); }
.quote figcaption {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.quote .q-name { font-weight: 700; }
.quote .q-role { font-size: 0.84rem; color: var(--muted); }
.quote .q-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.quote .q-tags span {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. Tarifs
   -------------------------------------------------------------------------- */
.pricing {
  display: grid;
  gap: 1.15rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 840px) { .pricing { grid-template-columns: 1fr 1fr; } }

.plan {
  position: relative;
  padding: clamp(1.75rem, 3.4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-gradient-safe);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.plan-name { font-size: 1.22rem; font-weight: 700; }
.plan-for { margin-top: 0.35rem; font-size: 0.9rem; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 0.4rem; margin: 1.5rem 0 0.3rem; }
.plan-price b {
  font-size: clamp(2.4rem, 5.2vw, 3.05rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.plan-price span { font-size: 0.93rem; font-weight: 600; color: var(--muted); }
.plan-vat { font-size: 0.79rem; color: var(--faint); }
.plan .btn { margin-top: 1.7rem; }
.plan-features {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.7rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}
.plan-features li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.91rem; }
.plan-features svg { width: 17px; height: 17px; margin-top: 0.2rem; flex: none; }
.plan-features .yes svg { color: var(--accent); }
.plan-features .no { color: var(--faint); }
.plan-features .no svg { color: #b9c4c6; }
.plan-features strong { font-weight: 700; }

.pricing-note {
  margin-top: 1.9rem;
  padding: 1.3rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.89rem;
  color: var(--muted);
  text-align: center;
}
.pricing-note strong { color: var(--text); }

/* --------------------------------------------------------------------------
   17. Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 1.15rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; } }

.contact-aside { display: flex; flex-direction: column; }
.contact-aside p { color: var(--muted); font-size: 0.95rem; }

.contact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.contact-line .c-key {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-line a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
  font-weight: 700;
  color: var(--accent);
  word-break: break-all;
}
.contact-line a svg { width: 17px; height: 17px; flex: none; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px; /* même seuil tactile que l'application */
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  flex: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn svg { width: 14px; height: 14px; }

.btn--wa { margin-top: 1rem; background: #1c9d4f; color: #fff; }
.btn--wa:hover { background: #17853f; }

/* Formulaire */
.form { padding: clamp(1.5rem, 3vw, 2.2rem); }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.field label .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: #93a2a6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(32, 72, 79, 0.12);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320484F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.75rem;
}

.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.field-consent input[type="checkbox"] {
  width: 20px; height: 20px;
  min-height: 0;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  flex: none;
}
.field-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  pointer-events: none;
}

.form-alert {
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
  font-weight: 600;
}
.form-alert--ok { border: 1px solid #9cd0b4; background: var(--ok-bg); color: #0f5d38; }
.form-alert--err { border: 1px solid #eeb0ac; background: var(--bad-bg); color: #8f1e17; }
[hidden] { display: none !important; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* --------------------------------------------------------------------------
   18. CTA final — le seul grand aplat de marque de la page
   -------------------------------------------------------------------------- */
.cta-final {
  position: relative;
  margin-block: clamp(3rem, 7vw, 4.5rem);
  padding: clamp(2.75rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
  color: #fff;
  /* Voile sombre sur le dégradé : garantit un contraste AAA pour le texte blanc */
  background:
    linear-gradient(rgba(4, 15, 17, 0.5), rgba(4, 15, 17, 0.58)),
    var(--brand-gradient);
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 75%);
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 { margin-bottom: 1.2rem; color: #fff; }
.cta-final p {
  max-width: 58ch;
  margin-inline: auto;
  color: var(--on-dark-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}
.cta-final .btn-row { justify-content: center; }
.cta-final .assurances { justify-content: center; }
.cta-final .icon-tile--grad {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

/* --------------------------------------------------------------------------
   19. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding-top: clamp(3rem, 6vw, 4rem);
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }

.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 1.05rem; font-size: 0.88rem; color: var(--muted); max-width: 34ch; }
.footer-brand .footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.05rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}
.footer-brand .footer-mail svg { width: 16px; height: 16px; }

.footer-col h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.05rem;
}
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }

.footer-seo {
  padding-block: 1.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--faint);
}
.footer-seo b { color: var(--muted); font-weight: 600; }

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding-block: 1.85rem;
  border-bottom: 1px solid var(--line);
}
/* Logos institutionnels : couleurs d'origine, sans exception.
   Aucun filtre, aucune désaturation, aucun effet au survol — ces marques
   officielles ne se retouchent pas. */
.footer-badges img {
  height: 44px;
  width: auto;
  filter: none;
  opacity: 1;
  transition: none;
}
.footer-badges img:hover { filter: none; opacity: 1; }
.footer-badge-text {
  max-width: 46ch;
  font-size: 0.81rem;
  color: var(--muted);
  text-align: center;
}
.footer-badge-text strong { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  font-size: 0.81rem;
  color: var(--faint);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-bottom a:hover { color: var(--accent); }
.footer-made strong { color: var(--muted); font-weight: 600; }

/* --------------------------------------------------------------------------
   20. Pages légales — traitement épuré façon « document »
        Fond gris très clair, feuille blanche centrée, ombre douce, texte
        anthracite plein contraste. Aucun gris clair sur du texte de fond.
   -------------------------------------------------------------------------- */
:root {
  --legal-bg: var(--wash);
  --legal-ink: #1d1d1f;
  --legal-ink-soft: #1d1d1f;   /* texte principal des pages légales */
}

body.page-legal { background: var(--legal-bg); }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.legal-header .header-inner { padding-block: 0.9rem; }

.legal-main { padding-block: clamp(3rem, 7vw, 5rem); }

.legal-card {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(1.9rem, 5.5vw, 4rem);
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 12px 40px -18px rgba(0, 0, 0, 0.14);
}
.legal-card > h1 {
  font-size: clamp(1.95rem, 4.6vw, 2.75rem);
  color: var(--legal-ink);
}
.legal-updated { margin-top: 0.75rem; font-size: 0.86rem; color: #6e6e73; }

.legal-body { margin-top: 2.6rem; font-size: 1.02rem; line-height: 1.75; }
.legal-body h2 {
  font-size: clamp(1.22rem, 2.4vw, 1.45rem);
  font-weight: 700;
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  color: var(--legal-ink);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 1.05rem;
  margin-top: 1.7rem;
  margin-bottom: 0.5rem;
  color: var(--legal-ink);
}
.legal-body p { color: var(--legal-ink-soft); margin-bottom: 1.1rem; }
.legal-body ul { margin: 0 0 1.35rem; display: grid; gap: 0.6rem; }
.legal-body ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--legal-ink-soft);
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--brand-light);
}
.legal-body strong { color: var(--legal-ink); font-weight: 600; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--accent-hover); }

/* Bloc d'identité (coordonnées de l'éditeur) : lecture en liste de paires */
.legal-facts {
  display: grid;
  gap: 0.05rem;
  margin: 0 0 1.35rem;
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  background: var(--legal-bg);
}
.legal-facts > div {
  display: grid;
  gap: 0.1rem 1.25rem;
  padding-block: 0.5rem;
}
@media (min-width: 620px) {
  .legal-facts > div { grid-template-columns: 15.5rem 1fr; align-items: baseline; }
}
.legal-facts > div + div { border-top: 1px solid rgba(0, 0, 0, 0.06); }
.legal-facts dt { font-size: 0.88rem; color: #6e6e73; }
.legal-facts dd { margin: 0; color: var(--legal-ink); font-weight: 500; }

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}
.legal-body th, .legal-body td {
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.09);
  text-align: left;
  color: var(--legal-ink-soft);
}
.legal-body th { color: var(--legal-ink); font-weight: 600; background: var(--legal-bg); }

body.page-legal .site-footer { background: transparent; border-top-color: rgba(0, 0, 0, 0.08); }

/* Page 404 */
.page-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.page-404 .code {
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(25deg, #20484f 0%, #4e9bab 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   20 bis. Section démonstration — bande sombre & lecteur vidéo
   Le fond reprend celui du montage (mesuré à rgb(3,9,12)) : les bords de la
   vidéo se fondent dans la section au lieu de former un rectangle rapporté.
   -------------------------------------------------------------------------- */
.section--dark {
  background:
    radial-gradient(900px 520px at 72% -10%, rgba(78, 155, 171, 0.18), transparent 62%),
    linear-gradient(180deg, #071619 0%, #03090c 100%);
  color: #fff;
}
.section--dark h2,
.section--dark .section-head p { color: #fff; }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.78); }

.eyebrow--onDark {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #a5dbe6;
  box-shadow: none;
}
.eyebrow--onDark .grid-dot span { background: #7cc3d1; }
.eyebrow--onDark .grid-dot span:nth-child(1),
.eyebrow--onDark .grid-dot span:nth-child(4) {
  background: none;
  box-shadow: inset 0 0 0 1.5px #7cc3d1;
}

.btn-row--center { justify-content: center; }
.assurances--center { justify-content: center; }
.section--dark .assurances { color: rgba(255, 255, 255, 0.8); }
.section--dark .assurances svg { color: #7cc3d1; }

/* ---- Cadre du lecteur ---------------------------------------------------- */
.video-frame {
  position: relative;
  margin: clamp(2.25rem, 5vw, 3rem) auto 0;
  width: 100%;
  aspect-ratio: 16 / 9;                 /* réservé d'avance : aucun saut de mise en page */
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* L'image d'attente est portée par le CSS, pas par l'attribut poster :
     une media query ne télécharge QUE le fichier correspondant, alors qu'un
     attribut poster dans le HTML partirait toujours, y compris le mauvais. */
  background-color: #03090c;
  background-image: url("../video/qlyo-tutoriel-16x9.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.9);
}

/* Format portrait. Le point de bascule est ici une MEDIA QUERY, et non un
   attribut posé par JavaScript : le navigateur ne télécharge alors que la
   seule image d'attente utile. Avec un sélecteur d'attribut, la version
   paysage partirait d'abord, puis la portrait — deux fichiers au lieu d'un.
   Ce seuil doit rester identique à celui de main.js (767 px). */
@media (max-width: 767px) {
  .video-frame {
    aspect-ratio: 9 / 16;
    max-width: min(100%, calc(72vh * 9 / 16));
    background-image: url("../video/qlyo-tutoriel-9x16.jpg");
  }
}

.video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;   /* laisse voir l'image d'attente posée en CSS */
}
.video-player > p {
  padding: 2rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
.video-player > p a { color: #7cc3d1; text-decoration: underline; }

/* ---- Bouton de lecture ---------------------------------------------------
   Masqué dans le HTML, révélé par main.js : sans JavaScript, le visiteur garde
   les contrôles natifs du navigateur au lieu d'un calque qui avale ses clics. */
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  background: linear-gradient(180deg, rgba(3, 9, 12, 0.1), rgba(3, 9, 12, 0.45));
  color: #fff;
  transition: background 0.3s var(--ease);
}
.video-play:hover { background: linear-gradient(180deg, rgba(3, 9, 12, 0.05), rgba(3, 9, 12, 0.35)); }

.video-play-icon {
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-dark);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.video-play-icon svg { width: 36%; height: auto; aspect-ratio: 1; }
.video-play:hover .video-play-icon { transform: scale(1.06); background: #fff; }
.video-play:active .video-play-icon { transform: scale(0.97); }

.video-play-text { text-align: center; line-height: 1.4; }
.video-play-text b {
  display: block;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-weight: 600;
}
.video-play-text small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ---- Transcription ------------------------------------------------------- */
.video-transcript {
  max-width: 62ch;
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.35rem;
}
.video-transcript > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.87rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease);
}
.video-transcript > summary::-webkit-details-marker { display: none; }
.video-transcript > summary::before {
  content: "＋";
  font-size: 0.95em;
  color: #7cc3d1;
}
.video-transcript[open] > summary::before { content: "－"; }
.video-transcript > summary:hover { color: #fff; }
.video-transcript > div { margin-top: 1.1rem; }
.video-transcript p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
.video-transcript p + p { margin-top: 0.8rem; }

/* --------------------------------------------------------------------------
   21. Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.mock-float { animation-name: float; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   22. Impression
   -------------------------------------------------------------------------- */
@media print {
  body { background: #fff; }
  .site-header, .nav-mobile, .cta-final, .marquee, .btn { display: none !important; }
  .card, .legal-card, .acc-item { border-color: #ccc; box-shadow: none; }
  .acc-panel { height: auto !important; }
}
