/* ============================ Design tokens ============================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f1;   /* Gris chantier */
  --panel: #ffffff;
  --panel-2: #f5f6f1;
  --line: #e4e5df;      /* Filet */
  --txt: #4e4e4d;       /* Anthracite NDC — texte courant */
  --txt-dim: #7a7a74;   /* Légende / note */
  --txt-mute: #9a9a94;  /* Méta discret (numérotation, séparateurs) */
  --ink: #2e2e2d;       /* Titres, texte le plus fort */
  /* Charte graphique NDC26 (Charte graphique NDC26.html) : quatre couleurs
     prélevées sur le logo officiel. Vert = accent dominant (bois). Cyan =
     liens et onglets (béton). Rouge = alerte, ponctuel (métal). On ne les
     utilise jamais en aplat de fond de page — cf. « Règles de couleur ». */
  /* Trois variantes du bleu REMESURE (même teinte, luminosité differente)
     plutôt qu'une seule couleur plate répétée partout : --accent pour les
     boutons/CTA (reste constant, c'est la couleur d'action), --accent-2
     plus foncé pour les liens et le texte (meilleure lisibilité), --accent-3
     plus clair pour les touches décoratives, en particulier sur fond foncé. */
  --accent: #00aec7;    /* Bleu du logo REMESURE (couleur du « RE »), repris comme accent dominant */
  --accent-2: #0a6e82;  /* Variante foncée — liens, texte, survols */
  --accent-3: #4fd1e3;  /* Variante claire — touches décoratives, texte sur fond foncé */
  --red: #e84138;       /* Rouge NDC */
  /* Sur un aplat vert, la charte impose d'écrire en anthracite — jamais en blanc. */
  --accent-ink: #2e2e2d;
  --radius: 2px;        /* « Angles vifs partout » : rayon maximum toléré par la charte. */
  --max: 1180px;
  /* Corps de texte : Hanken Grotesk (substitut libre de Pontiac Regular/Light). */
  --font: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Valeurs mises en avant (prix, stats, formule) : la charte ne prévoit pas de
     police à chasse fixe, seulement Jost pour tout ce qui doit ressortir. */
  --font-mono: "Jost", sans-serif;
  /* Titres, logo, boutons, libellés : Jost (substitut libre de Pontiac Bold/
     SemiBold, la typographie du logo — sous licence, jamais embarquée ici). */
  --font-display: "Jost", var(--font);
}

* { box-sizing: border-box; }
/* Un display:inline-flex/flex/grid en CSS auteur (ex. .btn) l'emporte sinon
   sur le display:none de l'attribut hidden, qui n'est qu'un style navigateur. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Titres alignés à gauche, jamais justifiés, jamais en italique (règle fixe
   de la charte) — c'est déjà le comportement par défaut ici. */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
/* Un mot mis en avant dans un titre : vert, jamais plus d'un par titre. */
.hl { color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .section { padding: 52px 0; }
  .section--tight { padding: 38px 0; }
}

/* Surtitre : cyan, capitales, entre crochets — « [ Nos prestations ] »,
   exactement comme prescrit pour les écrans du site. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before { content: "[ "; }
.eyebrow::after { content: " ]"; }

.lead { font-size: 1.12rem; color: var(--txt-dim); max-width: 62ch; }

/* ============================== Boutons =============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  appearance: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
/* Un seul bouton plein par bloc (règle de la charte) : c'est le vert, la
   couleur d'accent dominante. Sur vert, toujours écrire en anthracite. */
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px -14px rgba(0, 174, 199, 0.7);
}
/* Le CTA principal « pousse » légèrement, comme un bouton qu'on enfonce. */
.btn--primary:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--txt); background: transparent; }
/* Le bouton secondaire ne bouge pas : sa bordure s'éclaire, c'est tout. */
.btn--ghost:hover { background: var(--panel-2); border-color: var(--accent-2); }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
/* Flèche de CTA isolée dans un span pour pouvoir l'animer indépendamment du bouton. */
.btn__arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Bouton « Voir la démo » du header : c'est un lien, pas un CTA plein — cyan,
   pour rester cohérent avec « cyan = liens » et ne pas faire un second bouton
   plein à côté du vert du menu. */
.btn--demo {
  border-color: rgba(10, 110, 130, 0.45);
  color: var(--accent-2);
  background: rgba(10, 110, 130, 0.07);
}
.btn--demo:hover {
  border-color: var(--accent-2);
  background: rgba(10, 110, 130, 0.14);
  transform: translateY(-2px);
}
/* La flèche du bouton démo file en diagonale (↗) plutôt qu'à l'horizontale. */
.btn--demo:hover .btn__arrow { transform: translateY(3px); }

/* =============================== Header =============================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-size: 1.15rem; flex-shrink: 0; }
/* only-remesure.png : le fichier logo fourni tel quel (recadré à son contenu). */
.logo__wordmark { height: 22px; width: auto; transition: transform 0.2s ease; }
.logo:hover .logo__wordmark { transform: scale(1.05); }
/* Créneau réservé au bouton démo, après le menu. Caché tant que la largeur du
   site (--max, 1180px) n'est pas atteinte : en dessous, logo + téléphone +
   nav n'ont déjà plus assez de place pour lui sans compresser leur texte. */
.header__demo { white-space: nowrap; flex-shrink: 0; padding: 11px 18px; }
@media (max-width: 1180px) { .header__demo { display: none; } }
.nav { display: flex; align-items: center; gap: 26px; }
/* Soulignement qui se déploie depuis la gauche, plutôt qu'un simple survol de couleur. */
.nav a:not(.btn) { position: relative; color: var(--txt-dim); font-family: var(--font-display); font-size: 0.94rem; font-weight: 500; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px;
  background: var(--accent-2); transition: right 0.2s ease;
}
.nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover::after { right: 0; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); padding: 8px 12px; cursor: pointer; font-family: var(--font-display); }

/* Le menu bascule en tiroir à 1000px et non 900 : entre les deux, logo +
   téléphone + nav (avec son CTA, qui ne doit jamais passer à la ligne — cf.
   .btn { white-space }) n'ont plus assez de place pour tenir sur une ligne. */
@media (max-width: 1000px) {
  .nav {
    position: absolute; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav__toggle { display: block; }
}

/* ================================ Hero ================================ */
/* Pas de photo plein cadre en fond : la charte veut des photos de chantier
   réelles, cadrées serré, sans filtre — c'est le rôle du comparateur en
   .hero__visual, pas d'un fond assombri sous le texte. */
.hero {
  position: relative;
  padding: 72px 0 96px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
/* Argument commercial mis en avant sous le titre. Aplat de couleur : la
   charte impose alors le texte en anthracite, jamais en blanc. */
.hero__included {
  display: inline-block; margin: 22px 0 16px; padding: 9px 17px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 46px; }
.hero__stat strong { display: block; font-family: var(--font-mono); font-size: 1.8rem; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.hero__stat span { font-size: 0.86rem; color: var(--txt-dim); }

@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 340px; margin-inline: auto; }
  .hero__stats { margin-top: 34px; gap: 26px; }
}
@media (max-width: 480px) {
  /* Sur petit écran, le comparateur n'a pas besoin d'occuper toute la largeur :
     on gagne de la hauteur d'écran avant d'atteindre le texte et les CTA. */
  .hero__visual { max-width: 260px; }
}

/* =============================== Cartes =============================== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease;
}
/* Pas de soulèvement ici : un filet d'accent qui se révèle à gauche, comme
   un repère qu'on coche — un autre geste que celui des boutons. */
.card:hover { border-left-color: var(--accent); }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 14px; font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.card:hover .card__icon { transform: scale(1.12); }
.card__text { color: var(--txt-dim); font-size: 0.95rem; }

.steps { counter-reset: step; }
.step { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step__num {
  flex: 0 0 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}
/* Le repère se remplit au survol de toute la ligne, comme une case cochée —
   un troisième registre, sans mouvement ni bordure de couleur. */
.step:hover .step__num { background: var(--accent); color: var(--accent-ink); }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--txt-dim); font-size: 0.95rem; margin: 0; }

/* ============================ Configurateur =========================== */
.config { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 30px; align-items: start; }
@media (max-width: 940px) {
  .config { grid-template-columns: 1fr; }
  /* Le prix ne colonne-suit plus la saisie une fois les deux blocs empilés :
     en sticky ici, il ne ferait que se figer un instant puis se décrocher. */
  .result { position: static; }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel + .panel { margin-top: 22px; }
.panel__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; color: var(--ink); }
.panel__title .num {
  width: 26px; height: 26px; border-radius: var(--radius); font-size: 0.8rem;
  font-family: var(--font-mono);
  background: rgba(10, 110, 130, 0.14); color: var(--accent-2);
  display: grid; place-items: center; font-weight: 600;
}

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 7px; color: var(--ink); }
.field .hint { display: block; font-size: 0.82rem; color: var(--txt-dim); font-weight: 400; margin-top: 3px; }

input[type="text"], input[type="number"], input[type="email"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--txt);
  font: inherit;
  /* 16px minimum : en dessous, Safari iOS zoome automatiquement le cadrage
     dès qu'on touche le champ, ce qui est très désagréable sur téléphone. */
  font-size: max(0.97rem, 16px);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(10, 110, 130, 0.16);
}
input[type="range"] { width: 100%; accent-color: var(--accent); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 760px) { .row--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .row--3 { grid-template-columns: 1fr; } }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 40px; height: 42px; border-radius: var(--radius);
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--ink); font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.stepper button:hover { border-color: var(--accent); }
.stepper input { text-align: center; }

.options { display: grid; gap: 12px; }
.option {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel-2); cursor: pointer;
  transition: border-color 0.15s ease;
}
.option:hover { border-color: var(--txt-mute); }
.option:has(input:checked) { border-color: var(--accent); background: rgba(0, 174, 199, 0.14); }
.option input { margin-top: 4px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.option strong { font-size: 0.95rem; font-weight: 600; display: block; color: var(--ink); }
.option span { font-size: 0.84rem; color: var(--txt-dim); }
.option em { font-style: normal; color: var(--ink); font-weight: 600; font-size: 0.84rem; white-space: nowrap; }

/* Note de bas de bloc dépliable (périmètre BIM). */
.footnote {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.86rem;
  color: var(--txt-dim);
}
.footnote > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.footnote > summary::-webkit-details-marker { display: none; }
.footnote > summary::after { content: " ▾"; color: var(--accent-2); }
.footnote[open] > summary::after { content: " ▴"; }
.footnote > summary:hover { color: var(--accent-2); }
.footnote .ast { color: var(--accent); font-weight: 700; margin-right: 4px; }
.footnote > *:not(summary) { padding-inline: 16px; }
.footnote > *:last-child { padding-bottom: 16px; }
.footnote h4 {
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}
.footnote ul { margin: 0; padding-left: 34px; }
.footnote li { margin-bottom: 3px; }
.footnote p { margin: 0 0 8px; }

.lod { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.lod td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.lod td:last-child {
  font-family: var(--font-mono);
  text-align: right; white-space: nowrap; font-weight: 500;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.lod tr:last-child td { border-bottom: 0; }

.suggestions {
  list-style: none; margin: 8px 0 0; padding: 6px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  max-height: 230px; overflow-y: auto;
}
.suggestions:empty { display: none; }
.suggestions li { padding: 9px 12px; border-radius: var(--radius); cursor: pointer; font-size: 0.9rem; }
.suggestions li:hover, .suggestions li[aria-selected="true"] { background: rgba(10, 110, 130, 0.14); }

.status { font-size: 0.87rem; color: var(--txt-dim); margin-top: 8px; min-height: 1.2em; }
.status--error { color: var(--red); }
.status--ok { color: var(--accent-ink); font-weight: 600; }

/* ------------------------------ Résultat ----------------------------- */
.result { position: sticky; top: 92px; }
.result__price { font-family: var(--font-mono); font-size: 2.7rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.05; }
.result__price small { font-size: 0.95rem; font-weight: 600; color: var(--txt-dim); letter-spacing: 0; }
.result__ttc { font-size: 0.9rem; color: var(--txt-dim); margin-top: 4px; }

.breakdown { list-style: none; padding: 0; margin: 22px 0 0; font-size: 0.9rem; }
.breakdown li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.breakdown li:last-child { border-bottom: 0; }
.breakdown .k { color: var(--txt-dim); }
.breakdown .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink); }
.breakdown li.is-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 13px; font-size: 0.98rem; }

.formula {
  margin-top: 18px; padding: 13px 15px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--line);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.8rem; color: var(--txt-dim); overflow-x: auto; white-space: nowrap;
}
.note { font-size: 0.8rem; color: var(--txt-dim); margin-top: 16px; }

/* =============================== Divers =============================== */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge {
  font-size: 0.8rem; padding: 6px 13px; border-radius: var(--radius);
  border: 1px solid var(--line); color: var(--txt-dim); background: var(--panel);
}

.cta {
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 46px;
  background: var(--panel);
  text-align: center;
}
.cta .lead { margin-inline: auto; }

.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 44px 0 30px; font-size: 0.9rem; color: var(--txt-dim); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--ink); font-family: var(--font-display); font-size: 0.95rem; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer__bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.82rem; }
/* Ligne de relief : toujours en pied de support, toujours dans l'accent
   dominant, jamais retournée ni répétée — le seul endroit du site où elle
   apparaît. */
.relief-line { height: 4px; background: var(--accent); }

/* ========================= Conversion / B2B =========================== */

/* Téléphone toujours visible dans l'en-tête. C'est un lien (tel:), donc cyan. */
.header__phone {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  white-space: nowrap; font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.header__phone:hover { border-color: var(--accent-2); color: var(--accent-2); text-decoration: none; }
.header__phone span { color: var(--accent-2); font-size: 1.05rem; }
.header__phone small { display: block; font-size: 0.66rem; font-weight: 600; color: var(--txt-dim); letter-spacing: 0.06em; text-transform: uppercase; }
/* Le téléphone reste dans l'en-tête à toutes les tailles ; seul le libellé
   disparaît quand la place manque. */
.header__phone { margin-left: auto; }
@media (max-width: 1080px) { .header__phone small { display: none; } }
@media (max-width: 900px) { .header__phone { padding: 8px 13px; font-size: 0.9rem; } }
@media (max-width: 480px) {
  .header__phone em { display: none; }
  .header__phone { padding: 9px 12px; }
  .logo__wordmark { height: 19px; }
}

/* Bandeau de preuve juste sous le hero. */
.trust { border-block: 1px solid var(--line); background: var(--bg-soft); padding: 22px 0; }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; }
.trust__item { display: flex; align-items: baseline; gap: 9px; font-size: 0.9rem; color: var(--txt-dim); }
.trust__item strong { color: var(--ink); font-weight: 700; font-size: 1rem; }
.trust__sep { width: 1px; height: 26px; background: var(--line); }
@media (max-width: 760px) { .trust__sep { display: none; } }

/* Chiffres clés « Pourquoi nous ». */
.stat-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--accent);
  transition: width 0.2s ease;
}
/* Trois cartes cote à cote avec exactement le même repère : la variante
   foncée sur la carte du milieu casse la répétition sans faire de bruit. */
.stat-card:nth-child(2)::before { background: var(--accent-2); }
/* Le repère de gauche s'élargit au survol, comme une graduation qu'on étire —
   quatrième registre : ni bordure, ni levée, ni remplissage. */
.stat-card:hover::before { width: 6px; }
.stat-card__num {
  font-family: var(--font-mono);
  font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1; margin-bottom: 6px;
}
.stat-card__num small { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.stat-card h3 { margin-bottom: 8px; }
.stat-card p { color: var(--txt-dim); font-size: 0.93rem; margin: 0; }

/* Bandeau d'appel à l'action en fin de section. */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; margin-top: 46px; padding: 24px 28px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius);
  background: var(--panel);
}
/* Le bandeau revient 4 fois en descendant la page : sans ça, le même filet
   bleu identique se répète à chaque section. */
.cta-band--alt { border-left-color: var(--accent-2); }
.cta-band p { margin: 0; font-weight: 600; color: var(--ink); }
.cta-band .card__text { font-weight: 400; margin-top: 3px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--accent-2); }
.faq p { margin: 0 22px 18px; color: var(--txt-dim); font-size: 0.95rem; }
.faq p:last-child { margin-bottom: 20px; }

/* Barre d'action fixe sur mobile. */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: none;
  gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; justify-content: center; padding: 12px 14px; font-size: 0.92rem; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
}

/* Mise en avant du configurateur sur la page d'accueil. */
.section--config {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.config-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 34px; }
.config-head .lead { margin-bottom: 0; }

/* ================================ Médias ============================== */
/* Signature de pied de page : le fichier logo-remesure.svg lui-même, fidèle à
   100 % (CAPTURE / REMESURE / REVISITE, trait de scan) — le header, trop à
   l'étroit pour cette composition complète, garde sa version compacte à côté. */
.brand-mark { width: 100%; max-width: 280px; height: auto; }

/* Rendus et plans : présentés comme des planches sur fond clair — angles vifs,
   comme le veut la charte (« cartes, boutons, encadrés et photos gardent des
   angles à 0 mm »). */
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  position: relative;
  display: block;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
/* Cinquième registre : un zoom photo, propre aux planches d'images — le
   cadre ne bouge pas, seule l'image respire derrière lui. */
.shot:hover img { transform: scale(1.05); }
.shot--photo { background: var(--panel); }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(46, 46, 45, 0.88));
  color: #fff; font-size: 0.85rem; font-weight: 600;
}
.shot__cap small { display: block; font-weight: 400; opacity: 0.8; font-size: 0.78rem; }

/* Deux colonnes texte / visuel, empilées sur mobile. */
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.gallery .shot { aspect-ratio: 4 / 3; }
.gallery .shot--tall { aspect-ratio: 3 / 4; }
.gallery .shot--wide { grid-column: span 2; aspect-ratio: 16 / 7; }
@media (max-width: 620px) { .gallery .shot--wide { grid-column: span 1; aspect-ratio: 4 / 3; } }

/* Comparateur nuage de points / maquette. */
.compare {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 3 / 4;
  max-width: 560px;
  margin-inline: auto;
  touch-action: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__top { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: var(--accent);
  box-shadow: 0 0 0 1px rgba(46, 46, 45, 0.25);
  pointer-events: none;
  /* Un petit va-et-vient au chargement, pour faire comprendre que le trait
     se déplace — septième registre : une animation ponctuelle, pas un effet
     de survol. Elle ne joue qu'une fois. */
  animation: compare-hint 1.6s ease-in-out 1;
  animation-delay: 1.1s;
}
@media (prefers-reduced-motion: reduce) { .compare__handle { animation: none; } }
@keyframes compare-hint {
  0%, 100% { left: var(--pos, 50%); }
  30% { left: calc(var(--pos, 50%) - 7%); }
  65% { left: calc(var(--pos, 50%) + 7%); }
}
.compare__handle::after {
  content: "⇔";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 700;
  transition: transform 0.2s ease;
}
.compare:hover .compare__handle::after,
.compare:focus-within .compare__handle::after { transform: translate(-50%, -50%) scale(1.12); }
.compare__label {
  position: absolute; top: 12px;
  padding: 5px 12px; border-radius: var(--radius);
  background: rgba(46, 46, 45, 0.78); color: #fff;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em;
}
.compare__label--l { left: 12px; }
.compare__label--r { right: 12px; }
.compare input[type="range"] {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}

/* Vidéos de chantier : rien n'est téléchargé avant le clic (preload none). */
.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  transition: border-color 0.2s ease;
}
/* Sixième registre : juste la bordure qui s'éclaircit — pas de zoom sur une
   vidéo, ça la déformerait. */
.video-card:hover { border-color: var(--accent-2); }
/* Rushes filmés au téléphone, donc en cadre vertical — un cadre 16/9 les
   aurait réduits à une bande minuscule au milieu de deux bandes noires. */
.video-card video { width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; object-fit: contain; display: block; background: #000; }
.video-card figcaption { padding: 12px 16px; font-size: 0.86rem; color: var(--txt-dim); background: var(--panel); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ============================ Cartes de démo ============================ */
/* Grille de visites virtuelles (hero) : au clic sur une carte, la vidéo se
   lance après une seconde de survol — voir assets/js/carrousel.js. */
.demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.demo-head .eyebrow { margin-bottom: 0; }
.demo-head__hint { font-size: 0.78rem; color: var(--txt-mute); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-card {
  border: 1px solid var(--line); background: var(--panel); padding: 10px;
  position: relative; transition: border-color 0.2s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.demo-card:hover, .demo-card.is-active { border-color: var(--accent-2); }
/* Un scale() plutôt qu'un grid-column:span pour l'agrandissement : ce
   dernier déplace la carte (et ses voisines) sous un curseur resté immobile
   et déclenche un mouseleave natif parasite qui coupe aussitôt la vidéo
   qu'on vient de lancer. Un scale() centré ne bouge rien dans le flux. */
.demo-card.is-active { transform: scale(1.12); z-index: 3; box-shadow: 0 20px 40px -20px rgba(46, 46, 45, 0.4); }
.demo-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
/* Toute la zone (image ou vidéo) mène à la visite, pas seulement le petit
   lien texte sous la carte — cliquer n'importe où sur le cadre suffit. */
.demo-card__media-link { position: absolute; inset: 0; z-index: 1; display: block; }
.demo-card__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #33332f 0 8px, #2a2a27 8px 16px);
}
.demo-card__placeholder span {
  font-family: ui-monospace, Consolas, monospace; font-size: 0.66rem; letter-spacing: 0.08em;
  color: #8c8c84; text-align: center; padding: 0 6px;
}
.demo-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-card__tag {
  position: absolute; left: 7px; top: 7px; padding: 3px 9px;
  background: rgba(46, 46, 45, 0.82); color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
}
.demo-card__body { padding: 12px 4px 4px; }
.demo-card__body strong { display: block; font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.demo-card__body > span { display: block; font-size: 0.8rem; color: var(--txt-dim); margin-top: 2px; }
.demo-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.demo-card__price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.demo-card__price small { font-size: 0.7rem; color: var(--txt-dim); font-weight: 600; }
.demo-card__link {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px;
  border: 1px solid rgba(10, 110, 130, 0.45); color: var(--accent-2); background: rgba(10, 110, 130, 0.07);
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; white-space: nowrap;
}
.demo-card__link:hover { border-color: var(--accent-2); background: rgba(10, 110, 130, 0.14); text-decoration: none; }
.demo-note { font-size: 0.78rem; color: var(--txt-mute); margin: 12px 0 0; }
@media (max-width: 560px) { .demo-grid { grid-template-columns: 1fr; } }

/* ======================= Mode de chiffrage (m² / mL) ===================== */
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-toggle__opt {
  display: block; padding: 14px 16px; border: 1px solid var(--line);
  background: var(--bg-soft); cursor: pointer; transition: border-color 0.15s ease;
}
.mode-toggle__opt:hover { border-color: var(--txt-mute); }
.mode-toggle__opt input { accent-color: var(--accent); margin-right: 8px; }
.mode-toggle__opt strong { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.mode-toggle__opt .unit { font-family: var(--font-display); }
@media (max-width: 480px) { .mode-toggle { grid-template-columns: 1fr; } }

/* ===================== Renvoi vers le bureau d'études ===================== */
/* Les projets hors du cadre standardisé de REMESURE sont orientés vers notre
   bureau d'études partenaire — pas de chiffrage en ligne pour ceux-là. */
.handoff { padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--bg-soft); }
.handoff p { margin: 0 0 10px; font-size: 0.95rem; color: var(--txt); max-width: 70ch; }
.handoff p:last-child { margin-bottom: 0; }
/* white-space:normal casse l'exception nowrap de .btn : ce CTA-là est dans
   une colonne étroite qui peut s'empiler verticalement (pas dans le header),
   le laisser passer à la ligne ne pose donc pas de problème ici. */
.handoff .btn { margin: 6px 0 16px; white-space: normal; }
.handoff__tags { font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--ink); }

/* ============================ Carrousel projets =========================== */
/* Section haute (600vh) au contenu collant : l'avancée du défilement choisit
   la diapo affichée — voir assets/js/carrousel.js. Une seule vue est montée
   à la fois, les cartes précédentes restent visibles en pile, en retrait. */
.carousel { position: relative; height: 600vh; scroll-margin-top: 80px; }
.carousel__sticky { position: sticky; top: 86px; }
.carousel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.carousel__head h3 { margin: 0; }
.carousel__count { font-size: 0.86rem; color: var(--txt-dim); }
.carousel__controls { display: flex; align-items: center; gap: 10px; }
.carousel__back { padding: 11px 18px; font-size: 0.88rem; margin-right: 6px; }
.carousel__nav {
  width: 46px; height: 46px; background: var(--panel); border: 1px solid var(--line);
  color: var(--ink); font-size: 1.15rem; cursor: pointer; font-family: var(--font-display);
}
.carousel__nav:hover { border-color: var(--accent-2); color: var(--accent-2); }
.carousel__stage {
  position: relative; height: calc(min(54vh, 40vw) + 44px); overflow: hidden;
  background: var(--panel); border: 1px solid var(--accent);
}
.carousel__card {
  margin: 0; position: absolute; height: calc(100% - 44px); overflow: hidden;
  background: var(--ink); box-shadow: 0 -16px 38px -20px rgba(46, 46, 45, 0.6);
  transition: top 0.5s ease, left 0.5s ease, right 0.5s ease;
}
/* La 1re diapo est aussi un .compare (drag nuage/maquette, cf. main.js) :
   on annule ici les dimensions propres à .compare pour la faire remplir
   la scène du carrousel comme les autres diapos. */
.carousel__card.compare {
  position: absolute; aspect-ratio: auto; max-width: none; margin-inline: 0;
  border-radius: 0; border: 0; touch-action: none; cursor: ew-resize;
}
.carousel__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel__card-label {
  position: absolute; top: 14px; padding: 5px 12px; background: rgba(46, 46, 45, 0.82);
  color: #fff; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
}
.carousel__card-label--l { left: 14px; }
.carousel__card-label--r { right: 14px; }
.carousel__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 26px; background: rgba(46, 46, 45, 0.9); color: #fff; }
.carousel__caption h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: #fff; margin: 0 0 6px; }
.carousel__caption p { margin: 0; font-size: 0.93rem; color: var(--line); max-width: 90ch; }
.carousel__caption p + p { margin-top: 8px; }
.carousel__caption ul { margin: 0; padding-left: 20px; font-size: 0.93rem; color: var(--line); columns: 2; column-gap: 34px; }
.carousel__caption ul li { margin-bottom: 3px; }
.carousel__caption .btn { margin-top: 8px; padding: 10px 18px; font-size: 0.88rem; }
.carousel__phone { border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }
.carousel__phone:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.carousel__hint { font-size: 0.82rem; color: var(--txt-dim); margin: 10px 0 0; }
