/* ==========================================================================
   Clapify — feuille de style unique
   Aucune police externe, aucune librairie : le site doit charger instantanément.
   C'est notre première démonstration commerciale.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs — base neutre chaude + un seul accent */
  --bg:            #fbfaf8;
  --bg-alt:        #f4f1eb;
  --surface:       #ffffff;
  --ink:           #14120f;
  --ink-2:         #3b3630;
  --muted:         #776f63;
  --line:          #e5dfd5;
  --line-strong:   #d3cabb;
  --accent:        #a8432a;
  --accent-hover:  #8b3520;
  --accent-soft:   #fbefe9;
  --dark:          #14120f;
  --dark-muted:    #a49a8c;
  --dark-line:     #2e2a24;

  /* Typographie — piles système uniquement (0 requête réseau) */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Échelle fluide — les références montent bien plus haut que nous : 90 px
     chez Steep, 128 chez Subframe. Une page premium se reconnaît d'abord à
     l'écart entre son plus grand et son plus petit corps. */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.15rem, 1.06rem + 0.42vw, 1.42rem);
  --step-2:  clamp(1.5rem, 1.28rem + 1.05vw, 2.25rem);
  --step-3:  clamp(2rem, 1.6rem + 1.95vw, 3.4rem);
  --step-4:  clamp(2.6rem, 1.85rem + 3.6vw, 5.4rem);

  /* Rythme — respiration franchement plus large (96–120 px chez Figma). */
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);

  /* Dichotomie des rayons, comme chez Figma : pilules pour les commandes,
     grand arrondi pour les surfaces, rien entre les deux. */
  --radius: 999px;      /* commandes : boutons, pastilles */
  --radius-sm: 10px;    /* champs de saisie, petits encarts */
  --radius-lg: 20px;    /* surfaces */
  --radius-card: 24px;
  --maxw: 1200px;
  --maxw-prose: 60ch;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); letter-spacing: -0.032em; line-height: 1.04; }
h2 { font-size: var(--step-3); letter-spacing: -0.026em; line-height: 1.08; }
h3 { font-size: var(--step-1); letter-spacing: -0.012em; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* Au repos, pas de soulignement : c'est la flèche qui signale le départ,
   comme chez Steep. Le soulignement revient au survol et au focus. */
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }
p a, li a, dd a { border-bottom-color: var(--line-strong); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

strong { color: var(--ink); font-weight: 600; }

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

::selection { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   3. Utilitaires de mise en page
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
/* Les surfaces se distinguent par un pas de clarté, pas par une élévation —
   l'ancien beige tranchait trop pour une page qui se veut calme. */
.section--alt { background: var(--surface); }
.section--tint { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--dark-muted); }
.section--dark h2,
.section--dark h3 { color: #fbfaf8; }
.section--dark strong { color: #fbfaf8; }

.section-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.section--dark .eyebrow { color: #d98b6f; }

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: var(--maxw-prose);
}
.section--dark .lead { color: #cdc4b7; }

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

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  background: var(--ink); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 200;
  text-decoration: none; border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.75rem;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

/* Le bouton principal passe à l'encre : dans les trois références l'action
   forte est monochrome et à fort contraste, la couleur ne sert qu'une fois
   par page. Ici elle est réservée à la carte de tarif. */
.btn--primary { background: var(--ink); color: #fbfaf8; border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:focus-visible, .btn--primary:focus-visible { outline-offset: 4px; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--light { background: #fbfaf8; color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--step--1); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-note {
  font-size: var(--step--1);
  color: var(--muted);
  margin: 1rem 0 0;
}

/* --------------------------------------------------------------------------
   5. En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(20, 18, 15, 0.04);
}

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

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2rem; }

.nav-list {
  display: flex;
  gap: 1.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.nav-list a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }
.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 (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 4.75rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.75rem;
    transform: translateY(-140%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    max-height: calc(100dvh - 4.75rem);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    display: block;
    padding: 0.95rem 0;
    font-size: var(--step-0);
    border-bottom: 1px solid var(--line);
  }
  .nav .btn { margin-top: 1.25rem; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
/* Pile centrée : étiquette, titre, sous-titre, deux boutons. C'est la
   composition de Subframe, et elle vaut mieux qu'une grille deux colonnes —
   rien ne dispute l'attention à la phrase qui doit être lue en premier. */
.hero {
  padding-top: clamp(3.5rem, 9vw, 7rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.hero-grid { max-width: 60rem; margin-inline: auto; }

/* Étiquette en pilule, à la place de l'ancien surtitre en capitales. */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.hero-tag b { color: var(--accent); font-weight: 650; }

.hero h1 { margin-bottom: 1.4rem; text-wrap: balance; }
/* Le mot en serif est la seule ponctuation éditoriale du titre : chez
   Subframe c'est exactement un mot, pas une proposition entière. */
.hero h1 em {
  font-style: italic;
  color: var(--ink);
}

.hero .lead {
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  max-width: 46rem;
  font-size: var(--step-1);
  color: var(--muted);
}
.hero .btn-row { justify-content: center; }
.hero .btn-note { text-align: center; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta svg { width: 15px; height: 15px; stroke: var(--muted); flex: none; }

/* Le cadre produit vient juste après le hero, pleine largeur. */
.hero-product { padding-bottom: var(--section-y); }
.hero-product .app-switch { justify-content: center; }

/* Carte de prix du hero */
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: left;
}

.price-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.price-card__amount b { font-size: clamp(3rem, 7vw, 4rem); font-weight: 400; letter-spacing: -0.03em; }
.price-card__amount i { font-style: normal; font-size: var(--step-1); color: var(--muted); font-family: var(--font-body); }

.price-card__sub { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.5rem; }

.price-card__list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}
.price-card__list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  color: var(--ink-2);
}
.price-card__list svg { width: 16px; height: 16px; stroke: var(--accent); flex: none; margin-top: 3px; }

.price-card__foot {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin: 1rem 0 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. Bandeau de réassurance
   -------------------------------------------------------------------------- */
/* Bande de preuve, à la manière des bandeaux de logos en niveaux de gris des
   références : une énumération sobre, sans gras coloré, qui dit à qui l'on
   s'adresse sans hausser la voix. */
.strip {
  border-block: 1px solid var(--line);
  background: var(--bg);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem clamp(1.5rem, 4vw, 3rem);
  font-size: var(--step--1);
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.strip-inner b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   8. Grilles génériques
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Carte « constat » */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}
.card h3 { margin-bottom: 0.6rem; font-size: var(--step-1); }
.card p { font-size: var(--step-0); color: var(--muted); line-height: 1.6; }
/* Le numéro n'est plus un ornement coloré : il chiffre, discrètement. */
.card__num {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  line-height: 1;
  display: block;
  margin-bottom: 1.25rem;
}

.section--dark .card {
  background: #1c1915;
  border-color: var(--dark-line);
}
.section--dark .card p { color: var(--dark-muted); }

/* --------------------------------------------------------------------------
   9. Ce qui est inclus
   -------------------------------------------------------------------------- */
.included {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.included li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.included svg { width: 18px; height: 18px; stroke: var(--accent); flex: none; margin-top: 4px; }
.included b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.15rem; }
.included span { font-size: var(--step--1); color: var(--muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   10. Tarifs
   -------------------------------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
/* Chez Steep, l'accent ne colore qu'une seule carte par page. C'est celle-ci :
   la formule que nous recommandons, distinguée par la couleur plutôt que par
   une ombre — la page n'a aucune élévation ailleurs. */
.plan--featured {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.plan--featured .plan__price { color: var(--accent); }
.plan--featured ul svg { stroke: var(--accent); }
.plan h3 { font-size: var(--step-2); margin-bottom: 0.35rem; }
.plan__desc { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.75rem; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.plan__price b { font-size: clamp(2.8rem, 6vw, 4rem); font-weight: 400; letter-spacing: -0.035em; }
.plan__price i { font-style: normal; font-size: var(--step-0); color: var(--muted); font-family: var(--font-body); }

.plan__then {
  font-size: var(--step--1);
  color: var(--muted);
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.plan__then b { color: var(--ink); }

.plan ul { list-style: none; padding: 0; margin: 0 0 2rem; font-size: var(--step--1); }
.plan ul li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.65rem; }
.plan ul svg { width: 15px; height: 15px; stroke: var(--accent); flex: none; margin-top: 4px; }

/* Encadré transparence — point de vigilance n°1 de l'étude */
.transparency {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.transparency h3 { font-size: var(--step-1); margin-bottom: 1rem; }
.transparency ul { margin: 0; padding-left: 1.1rem; font-size: var(--step--1); color: var(--muted); }
.transparency li { margin-bottom: 0.55rem; }

/* --------------------------------------------------------------------------
   11. Calculateur de rentabilité
   -------------------------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

.calc-controls {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}

.field { margin-bottom: 2rem; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.field output {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--line-strong);
  border-radius: 100px;
  outline-offset: 8px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
}
.field__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.calc-result__big {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 6.5rem);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.calc-result__label {
  font-size: var(--step-1);
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 24ch;
}
.calc-result__rows {
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}
.calc-result__rows div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.calc-result__rows dt { color: var(--muted); margin: 0; }
.calc-result__rows dd { margin: 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 0.8rem; color: var(--muted); margin-top: 1.25rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   12. Méthode (remplace le portfolio)
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step__num {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--accent);
  line-height: 1;
  padding-top: 0.15rem;
}
.step__body h3 { margin-bottom: 0.5rem; }
.step__body p { color: var(--muted); max-width: 58ch; margin-bottom: 0; }
.step__body p + p { margin-top: 0.75rem; }

.step__time {
  font-size: var(--step--1);
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.4rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .step { grid-template-columns: 3rem 1fr; }
  .step__time { grid-column: 2; padding-top: 0.75rem; }
}

.step__you {
  display: inline-block;
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--ink-2);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.95rem;
}
.step__you b { color: var(--accent); }

/* --------------------------------------------------------------------------
   13. L'agence
   -------------------------------------------------------------------------- */
.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 620px) { .founders { grid-template-columns: 1fr; } }

.founder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}
/* Portrait pleine largeur en haut de la carte. L'initiale reste dessous en
   repli : si le fichier image manque, on voit la lettre, pas une icône cassée
   (main.js retire l'<img> sur erreur de chargement). */
.founder__photo {
  position: relative;
  aspect-ratio: 5 / 4;
  margin: calc(clamp(1.5rem, 3vw, 2rem) * -1);
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: var(--bg-alt);
}
.founder__photo::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--line-strong);
}
.founder__photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 0;
}
.founder h3 { font-size: var(--step-1); margin-bottom: 0.15rem; }
.founder__role {
  font-size: var(--step--1);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.founder p { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 52rem; margin-inline: auto; }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  line-height: 1.3;
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }

.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.faq details p {
  color: var(--muted);
  max-width: var(--maxw-prose);
  padding-bottom: 1.5rem;
  font-size: var(--step-0);
}

/* --------------------------------------------------------------------------
   16. Formulaire d'audit
   -------------------------------------------------------------------------- */
.audit {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .audit { grid-template-columns: 1fr; } }

.audit-promise { list-style: none; padding: 0; margin: 2rem 0 0; }
.audit-promise li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--dark-line);
  font-size: var(--step--1);
}
.audit-promise svg { width: 17px; height: 17px; stroke: #e08a68; flex: none; margin-top: 3px; }
.audit-promise b { display: block; color: #fbfaf8; margin-bottom: 0.1rem; }

.form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.form-field .hint { font-weight: 400; color: var(--muted); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--step-0);
  transition: border-color .15s ease, background-color .15s ease;
}
.form-field textarea { resize: vertical; min-height: 6.5rem; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #a89e91; }

.form-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1.5rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}
.form-consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  display: none;
}
.form-status.is-error { display: block; background: #fdeceb; color: #8b2318; border: 1px solid #f3c9c4; }
.form-status.is-ok { display: block; background: #eaf4ec; color: #1f5b2e; border: 1px solid #c3e0c9; }

/* Anti-spam : champ leurre invisible */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   17. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--step--1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--dark-line);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.site-footer .logo { color: #fbfaf8; margin-bottom: 1rem; }
.site-footer p { color: var(--dark-muted); max-width: 34ch; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbfaf8;
  margin: 0 0 1.1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.65rem; }
.site-footer a { color: var(--dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fbfaf8; text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   18. Pages secondaires (légal, merci)
   -------------------------------------------------------------------------- */
.page-narrow { max-width: 46rem; }
.page-narrow h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.page-narrow h3 { font-size: var(--step-1); margin-top: 1.75rem; }
.page-narrow p, .page-narrow li { color: var(--ink-2); }
.page-narrow dl { margin: 0 0 1.5rem; }
.page-narrow dt { font-weight: 600; color: var(--ink); margin-top: 1rem; }
.page-narrow dd { margin: 0.2rem 0 0; }

.thanks { text-align: center; max-width: 40rem; margin-inline: auto; padding-block: clamp(4rem, 12vw, 8rem); }
.thanks__mark {
  width: 68px; height: 68px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
}
.thanks__mark svg { width: 30px; height: 30px; stroke: var(--accent); }

/* --------------------------------------------------------------------------
   19. Animations d'apparition
   -------------------------------------------------------------------------- */
/* Amélioration progressive : le contenu est visible par défaut.
   Il n'est masqué que si le JavaScript s'exécute (classe `js` posée dans le
   <head>) — sinon un tiers de la page serait invisible en cas d'échec du script. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   19 bis. Réalisations
   Des vignettes qui doivent donner envie de cliquer, donc grandes, et un
   avertissement qui ne se rate pas : ces sites sont des démonstrations.
   -------------------------------------------------------------------------- */
.rea-note {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  max-width: var(--maxw-prose);
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  padding: 1.15rem 1.35rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.rea-note p { margin: 0; font-size: var(--step--1); line-height: 1.65; color: var(--ink-2); }
.rea-note b { color: var(--ink); }

.rea-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }

.rea-item { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 900px) {
  .rea-item { grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
  /* Une ligne sur deux inverse l'image et le texte. Il faut alors inverser
     aussi les colonnes, sinon la capture passe de 1,35fr à 1fr et les
     vignettes n'ont plus la même taille d'une ligne à l'autre. */
  .rea-item:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
  .rea-item:nth-child(even) .rea-shot { order: 2; }
}

.rea-shot {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(20,18,15,.03), 0 18px 50px -22px rgba(20,18,15,.22);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.rea-shot img { width: 100%; height: auto; display: block; }
.rea-shot:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px rgba(20,18,15,.04), 0 26px 60px -24px rgba(20,18,15,.3);
}

.rea-body h3 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.rea-metier {
  display: block; font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem;
}
.rea-body p { color: var(--muted); font-size: var(--step--1); line-height: 1.7; }
.rea-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0 1.35rem; padding: 0; list-style: none; }
.rea-tags li {
  margin: 0; font-size: 0.78rem; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.75rem; background: var(--bg-alt);
}

/* --------------------------------------------------------------------------
   20. Impression
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .nav-toggle, .form, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}

/* --------------------------------------------------------------------------
   21. L'application — maquette du panneau client
   Trois partis pris repris des références : le produit est montré dans un
   cadre à filet fin plutôt qu'en capture posée sur la page, l'ombre reste
   quasi absente, et les commandes sont des pilules. Aucune image : la
   maquette est du HTML, donc nette à tout zoom et sans requête réseau.
   Les jetons sont ceux du panneau réel — le visiteur voit vraiment le produit.
   -------------------------------------------------------------------------- */
.app-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.app-switch button {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: transparent;
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.app-switch button:hover { border-color: var(--ink); color: var(--ink); }
.app-switch button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fbfaf8; }

/* Le cadre produit : filet fin, coins arrondis, ombre à peine perceptible. */
.app-frame {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(20,18,15,.04), 0 24px 70px -32px rgba(20,18,15,.16);
}

/* Barre globale sombre, comme dans le panneau : c'est le cadre de
   l'application, pas une surface de travail. */
.app-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.9rem;
  height: 44px;
  background: #14120f;
  border-bottom: 1px solid #2e2a24;
}
.app-bar__logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fbfaf8;
  letter-spacing: -0.02em;
  flex: none;
}
.app-bar__logo i { font-style: normal; color: #d98b6f; }
.app-bar__search {
  flex: 1;
  max-width: 300px;
  margin-inline: auto;
  height: 26px;
  border-radius: 6px;
  background: #211d18;
  border: 1px solid #2e2a24;
  display: flex;
  align-items: center;
  padding-inline: 0.55rem;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #a49a8c;
}
.app-bar__search kbd {
  margin-left: auto;
  font: inherit;
  font-size: 0.62rem;
  border: 1px solid #2e2a24;
  border-radius: 3px;
  padding: 1px 4px;
}
.app-bar__acct {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.6rem; font-weight: 700;
  flex: none;
}

.app-body { display: flex; min-height: 380px; }

.app-nav {
  width: 176px;
  flex: none;
  border-right: 1px solid var(--line);
  padding: 0.7rem 0.55rem;
  font-size: 0.78rem;
}
.app-nav .grp {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  padding: 0.8rem 0.6rem 0.3rem;
}
.app-nav .grp:first-child { padding-top: 0; }
.app-nav span.it {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.36rem 0.6rem;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 550;
}
.app-nav span.it.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.app-nav span.it i { font-style: normal; width: 15px; text-align: center; flex: none; }

.app-main { flex: 1; min-width: 0; padding: 1.1rem 1.3rem 1.4rem; }
.app-screen { display: none; }
.app-screen.on { display: block; animation: appfade .22s ease; }
@keyframes appfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.app-h { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: 0.15rem; }
.app-sub { font-size: 0.76rem; color: var(--muted); margin-bottom: 1.1rem; }
.app-sec {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin: 1.1rem 0 0.6rem;
}
.app-sec:first-child { margin-top: 0; }
.app-sec .n { background: var(--bg-alt); color: var(--ink-2); border-radius: 100px; padding: 0 0.45rem; font-size: 0.62rem; letter-spacing: 0; }
.app-sec .ln { flex: 1; height: 1px; background: var(--line); }

.app-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: var(--surface);
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.5rem;
}
.app-item.warn { border-left-color: #8a5a12; }
.app-item b { display: block; font-size: 0.82rem; color: var(--ink); font-weight: 650; }
.app-item span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }
.app-acts { display: flex; gap: 0.4rem; margin-top: 0.55rem; flex-wrap: wrap; }
.app-acts em {
  font-style: normal; font-size: 0.68rem; font-weight: 600;
  padding: 0.25rem 0.6rem; border-radius: 4px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
}
.app-acts em.p { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Calendrier des rendez-vous */
.app-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.app-cal .d {
  text-align: center; font-size: 0.58rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 2px;
}
.app-cal .c {
  min-height: 46px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--surface); padding: 3px 4px; font-size: 0.6rem; color: var(--ink-2);
  overflow: hidden;
}
.app-cal .c.out { opacity: 0.34; }
.app-cal .c.today { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.app-cal .c.closed { background: repeating-linear-gradient(45deg,transparent,transparent 4px,var(--bg-alt) 4px,var(--bg-alt) 8px); }
.app-cal .c b { display: block; font-size: 0.62rem; font-weight: 650; }
.app-cal .c u {
  display: block; text-decoration: none; margin-top: 2px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 3px; padding: 0 3px; font-size: 0.55rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-cal .c u.ok { background: #e9f1e9; color: #2f6b3f; }

/* Fil de discussion Clapy */
.app-chat { display: flex; flex-direction: column; gap: 0.6rem; }
.app-chat p { margin: 0; max-width: 78%; padding: 0.5rem 0.75rem; border-radius: 10px; font-size: 0.76rem; line-height: 1.5; }
.app-chat p.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 3px; }
.app-chat p.it { align-self: flex-start; background: var(--bg-alt); color: var(--ink); border-bottom-left-radius: 3px; }
.app-chat .prop {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 6px; background: var(--surface); padding: 0.7rem 0.85rem; font-size: 0.74rem;
}
.app-chat .prop b { font-size: 0.72rem; color: var(--ink); }
.app-chat .prop ul { margin: 0.4rem 0 0.6rem; padding-left: 1.1rem; color: var(--ink-2); }
.app-chat .prop li { margin: 0; }

/* Tableau de chantier */
.app-tab { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
.app-tab th {
  text-align: left; font-size: 0.6rem; font-weight: 650; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0 0.5rem 0.4rem; border-bottom: 1px solid var(--line);
}
.app-tab td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.app-tab td b { color: var(--ink); font-weight: 650; }
.app-tab .tag {
  display: inline-block;
  font-size: 0.62rem; font-weight: 650; border-radius: 100px; padding: 0.1rem 0.5rem;
  background: var(--bg-alt); color: var(--ink-2); white-space: nowrap;
}
.app-tab .tag.go { background: #e9f1e9; color: #2f6b3f; }
.app-tab .tag.wait { background: #f8f0df; color: #8a5a12; }

/* Légende sous le cadre */
.app-note {
  font-size: var(--step--1); color: var(--muted);
  margin: 1rem 0 0; text-align: center;
}

/* Les familles d'écrans */
.app-fams { margin-top: clamp(3rem, 6vw, 4.5rem); }
.app-fam {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}
.app-fam:last-child { border-bottom: 1px solid var(--line); }
.app-fam > h3 { font-size: var(--step-1); margin: 0; }
.app-fam ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.app-fam li { margin: 0; display: flex; gap: 0.7rem; align-items: flex-start; }
.app-fam li i { font-style: normal; flex: none; width: 1.3rem; text-align: center; }
.app-fam li b { color: var(--ink); font-weight: 600; }
.app-fam li span { color: var(--muted); font-size: var(--step--1); }

@media (max-width: 760px) {
  .app-nav { display: none; }
  /* 44 px : la plus petite cible qu'un pouce atteint sans viser. Les pilules
     tombaient a 40 px alors que tous les autres boutons du site sont a 51. */
  .app-switch button { padding: 0.68rem 1.1rem; }
  .app-body { min-height: 0; }
  .app-main { padding: 1rem; }
  .app-bar__search { max-width: none; }
  .app-fam { grid-template-columns: 1fr; gap: 0.9rem; padding-block: 1.4rem; }
}

/* --------------------------------------------------------------------------
   22. Candidature par étapes
   Une question à la fois : un formulaire de neuf champs se referme avant
   d'être commencé, six écrans d'une question se remplissent. L'ordre n'est
   pas neutre — le métier d'abord, qui ne coûte qu'un clic ; les coordonnées
   en avant-dernier, quand la personne a déjà investi cinq réponses.
   -------------------------------------------------------------------------- */
.stepper { position: relative; }

.step-head { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.step-bar {
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.step-bar i {
  display: block;
  height: 100%;
  width: 16.66%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .45s cubic-bezier(.16,1,.3,1);
}
.step-count {
  margin: 0.7rem 0 0;
  font-size: var(--step--1);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Les étapes se superposent : la sortante s'efface pendant que l'entrante
   arrive, sinon la carte se replie puis se déplie et la page sursaute. */
#steps { position: relative; }
.qstep {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.qstep[hidden] { display: none; }
.qstep.is-on { animation: stepIn .42s cubic-bezier(.16,1,.3,1) both; }
.qstep.is-out { animation: stepOut .2s ease both; }

@keyframes stepIn  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stepOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }

/* Reculer doit se voir : l'animation part de l'autre côté. */
.stepper.is-back .qstep.is-on { animation-name: stepInBack; }
@keyframes stepInBack { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

.step-q {
  display: block;
  float: none;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}
.step-hint {
  font-size: var(--step--1);
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.stepper input[type="text"],
.stepper input[type="email"],
.stepper input[type="tel"],
.stepper input[type="url"],
.stepper textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--step-0);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.stepper textarea { resize: vertical; min-height: 6rem; line-height: 1.6; }
.stepper input:focus,
.stepper textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.stepper input[aria-invalid="true"] { border-color: #9d2235; }

.step-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 560px) { .step-row { grid-template-columns: 1fr; } }

/* Choix du métier : des pastilles cliquables plutôt qu'une liste déroulante.
   Le vrai <input radio> reste dessous — le clavier et les lecteurs d'écran
   fonctionnent sans un mot de JavaScript. */
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; margin: 0; }
.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: block;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.choice input:hover + span { border-color: var(--ink); color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fbfaf8;
}

.step-skip {
  margin-top: 1rem;
  background: none;
  border: 0;
  padding: 0;
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.step-skip:hover { color: var(--ink); }

.step-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
}
.step-nav .btn--ghost { order: -1; }

/* « Retour » sortait à 37 px en btn--sm : sous le pouce c'est une cible
   manquée, et c'est le bouton qu'on cherche justement quand on s'est trompé. */
@media (max-width: 620px) {
  .step-nav { flex-wrap: wrap; }
  .step-nav .btn { flex: 1 1 auto; justify-content: center; }
  .step-nav .btn--sm { padding: 0.8rem 1.25rem; font-size: var(--step-0); }
}

.step-err {
  margin: 0.75rem 0 0;
  font-size: var(--step--1);
  color: #9d2235;
}

/* --------------------------------------------------------------------------
   23. Écran de confirmation
   Ce que la personne doit lire tient en une phrase : son site est en
   préparation, et elle n'a plus rien à faire. Le reste répond à la question
   qui suit immédiatement — et ensuite, il se passe quoi ?
   -------------------------------------------------------------------------- */
.done { text-align: center; animation: stepIn .5s cubic-bezier(.16,1,.3,1) both; }
.done[hidden] { display: none; }

.done-mark {
  width: 62px; height: 62px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}
.done-mark svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* La coche se dessine : 40 unités couvrent la polyligne entière. */
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: trace .5s cubic-bezier(.65,0,.35,1) .25s forwards;
}
@keyframes trace { to { stroke-dashoffset: 0; } }

.done h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.done-lead {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 34rem;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
}

.done-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  counter-reset: d;
}
.done-steps li {
  position: relative;
  padding: 0 0 1.4rem 2.5rem;
  margin: 0;
  counter-increment: d;
}
/* Le trait relie les jalons ; le dernier n'a personne à relier. */
.done-steps li::before {
  content: '';
  position: absolute;
  left: 0.6rem; top: 1.4rem; bottom: 0;
  width: 1px;
  background: var(--line);
}
.done-steps li:last-child { padding-bottom: 0; }
.done-steps li:last-child::before { display: none; }
.done-steps li::after {
  content: '';
  position: absolute;
  left: 0.25rem; top: 0.45rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.done-steps li.is-now::after {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.done-steps b { display: block; color: var(--ink); font-weight: 600; font-size: var(--step-0); }
.done-steps span { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 0.15rem; }

.done-note {
  margin: clamp(1.75rem, 4vw, 2.25rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .qstep.is-on, .qstep.is-out, .done { animation: none; }
  .step-bar i { transition: none; }
  .done-mark svg { animation: none; stroke-dashoffset: 0; }
}
