/* ==========================================================================
   RAMONEURS DE FRANCE — Système « Registre & Braise »
   --------------------------------------------------------------------------
   Deux vérités du produit gouvernent le design :
   1. les données viennent du registre officiel Sirene  -> précision, mono,
      filets, chiffres tabulaires, étiquettes de champ ;
   2. le sujet est le feu et le conduit -> suie, braise, laiton.
   D'où l'alternance de bandes sombres (le conduit) et claires (le document),
   et une braise employée avec parcimonie : concentrée, jamais diffuse.
   ========================================================================== */

/* --------------------------------------------------------- polices locales */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ---------------------------------------------------------------- jetons */
:root {
  /* matière */
  --soot:      #17130F;   /* suie — noir chaud */
  --flue:      #241D18;   /* surface sombre surélevée */
  --flue-line: #3A302A;   /* filet sur fond sombre */
  --ember:     #D6431B;   /* braise — accent unique, concentré */
  --ember-lit: #F2652F;   /* braise avivée (survol) */
  --brass:     #B8873B;   /* laiton patiné — filets, étiquettes */
  --paper:     #FBF9F6;   /* document */
  --ash:       #E6E0D8;   /* cendre — bordures sur fond clair */
  --ash-deep:  #D3CABF;
  --ink:       #17130F;
  --ink-soft:  #6B615A;
  --white:     #FFFFFF;

  /* type */
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --body:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* échelle typographique — ratio 1.25, ancrée sur 16px */
  --t-xs:  0.75rem;
  --t-sm:  0.875rem;
  --t-md:  1rem;
  --t-lg:  1.125rem;
  --t-xl:  1.375rem;
  --t-2xl: 1.75rem;
  --t-3xl: 2.25rem;
  --t-4xl: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  --t-5xl: clamp(2.75rem, 1.4rem + 5.4vw, 5rem);

  /* rythme */
  --gap:   1.5rem;
  --band:  clamp(3.5rem, 2rem + 5vw, 6rem);
  --wrap:  1180px;
  --r-sm:  3px;
  --r-md:  5px;

  --shadow-lift: 0 18px 40px -22px rgba(23, 19, 15, .45);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-md);
  line-height: 1.6;
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'wdth' 88;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, iframe { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.wrap--narrow { max-width: 860px; }

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

/* ------------------------------------------------------- bandes / rythme */
.band { padding-block: var(--band); }
.band--paper { background: var(--paper); }
.band--white { background: var(--white); }
.band--ash   { background: linear-gradient(180deg, #F2EEE8 0%, #EBE5DD 100%); }
.band--soot  { background: var(--soot); color: #E9E3DC; }
.band--tight { padding-block: calc(var(--band) * 0.6); }

.band--soot h1, .band--soot h2, .band--soot h3 { color: var(--white); }

/* -------------------------------------------- eyebrow : étiquette de champ
   Petite ligne mono précédée d'un filet laiton. C'est le marqueur
   « donnée de registre » : il annonce la nature de la section, pas un ornement. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brass);
  flex: none;
}
.band--soot .eyebrow { color: var(--brass); }

/* ------------------------------------------------------------- titres */
.title    { font-size: var(--t-3xl); }
.title-lg { font-size: var(--t-4xl); font-weight: 800; }
.title-sm { font-size: var(--t-xl); }

.lede {
  font-size: var(--t-lg);
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 1rem;
}
.band--soot .lede { color: #B9AFA5; }

.section-head { margin-bottom: 2.5rem; }

/* --------------------------------------------------------------- boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: var(--t-md);
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ember { background: var(--ember); color: var(--white); }
.btn--ember:hover { background: var(--ember-lit); color: var(--white); }

.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--flue); color: var(--white); }

.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ash-deep);
}
.btn--line:hover { border-color: var(--ink); background: var(--white); }

.band--soot .btn--line { color: #E9E3DC; border-color: var(--flue-line); }
.band--soot .btn--line:hover { border-color: #6E6058; background: rgba(255,255,255,.04); }

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

.btn .ico { width: 18px; height: 18px; flex: none; }
/* Envoi en cours (formulaire de devis) : le bouton reste visible mais inerte */
.btn[disabled], .btn.is-sending { opacity: 0.65; cursor: wait; pointer-events: none; transform: none; }

/* ----------------------------------------------------------------- HERO
   Le conduit : fond suie, halo de braise concentré derrière le titre,
   et le champ de recherche traité comme l'instrument principal. */
.hero {
  position: relative;
  background: var(--soot);
  color: #E9E3DC;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -22%;
  width: min(760px, 105vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle,
              rgba(214, 67, 27, .40) 0%,
              rgba(214, 67, 27, .13) 42%,
              transparent 68%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 820px; }

.hero__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D8CFC5;
  border: 1px solid var(--flue-line);
  border-radius: 100px;
  padding: 0.45rem 0.95rem;
  margin-bottom: 1.6rem;
}
.hero__flag .ico { width: 15px; height: 15px; color: var(--brass); }

.hero__title {
  font-size: var(--t-5xl);
  font-weight: 800;
  font-variation-settings: 'wdth' 84;
  letter-spacing: -0.032em;
  color: var(--white);
}
.hero__title em {
  font-style: normal;
  color: var(--ember-lit);
}
.hero__sub {
  font-size: var(--t-lg);
  color: #B9AFA5;
  max-width: 56ch;
  margin-top: 1.25rem;
}

/* ------------------------------------------------- champ de recherche */
.finder { margin-top: 2.25rem; max-width: 620px; }
.finder__form {
  display: flex;
  gap: 0.5rem;
  background: var(--flue);
  border: 1px solid var(--flue-line);
  border-radius: var(--r-md);
  padding: 0.5rem;
}
.finder__field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.finder__field .ico {
  position: absolute;
  left: 0.9rem;
  width: 18px; height: 18px;
  color: var(--brass);
  pointer-events: none;
}
.finder__input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: var(--body);
  font-size: var(--t-md);
  padding: 0.85rem 0.9rem 0.85rem 2.7rem;
}
.finder__input::placeholder { color: #8A7F76; }
.finder__input:focus { outline: none; }
.finder__form:focus-within { border-color: var(--brass); }

.finder__hint {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: #8A7F76;
  margin-top: 0.8rem;
  letter-spacing: 0.04em;
}

.finder__results {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.finder__hit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--flue);
  border: 1px solid var(--flue-line);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.8rem;
  font-size: var(--t-sm);
  color: #E9E3DC;
  transition: border-color .18s ease;
}
.finder__hit:hover { border-color: var(--brass); }
.finder__hit .zip { font-family: var(--mono); color: var(--brass); font-size: var(--t-xs); }
.finder__miss { margin-top: 1rem; color: var(--ember-lit); font-size: var(--t-sm); }
.finder__miss a { text-decoration: underline; }

/* ------------------------------------------------------------ compteurs */
.tally {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--flue-line);
}
.tally__item { display: flex; flex-direction: column; gap: 0.15rem; }
.tally__num {
  font-family: var(--display);
  font-size: var(--t-2xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.tally__label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A7F76;
}

/* ============================================================== SIGNATURE
   LA FICHE — la carte artisan traitée comme un extrait de registre.
   Filet laiton en tête qui s'embrase au survol, identifiants en mono,
   étiquettes de champ en petites capitales. C'est le produit lui-même. */
.fiche {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ash);
  border-radius: var(--r-md);
  padding: 1.6rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fiche::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  background: var(--brass);
  border-radius: var(--r-md) var(--r-md) 0 0;
  transition: background-color .2s ease;
}
.fiche:hover {
  transform: translateY(-3px);
  border-color: var(--ash-deep);
  box-shadow: var(--shadow-lift);
}
.fiche:hover::before { background: var(--ember); }

.fiche__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.scope {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
}
.scope .ico { width: 13px; height: 13px; }
.scope--here { background: #FBE9E2; color: #A6330F; }
.scope--near { background: #F0EDE7; color: var(--ink-soft); }

.seniority {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fiche__name {
  font-size: var(--t-lg);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.fiche__rows {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ash);
  margin-bottom: 1.4rem;
}
.row { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--t-sm); }
.row .ico { width: 15px; height: 15px; color: var(--brass); flex: none; margin-top: 3px; }
.row__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
}
.row__value { color: var(--ink); }
.row__value--mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.row__value--soft { color: var(--ink-soft); }

.fiche__foot {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
}
.fiche__foot .btn { flex: 1; }

/* --------------------------------------------------------------- grilles */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--sidebar { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; gap: 2.5rem; }
.grid--split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: start; }

/* ------------------------------------------------------ tuiles de maillage */
.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--ash);
  border-radius: var(--r-sm);
  padding: 0.95rem 1.1rem;
  font-size: var(--t-sm);
  font-weight: 500;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.tile:hover {
  border-color: var(--brass);
  transform: translateX(2px);
}
.tile__main { display: flex; align-items: baseline; gap: 0.55rem; min-width: 0; }
.tile__code {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.tile__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .ico { width: 15px; height: 15px; color: var(--ash-deep); flex: none; }
.tile:hover .ico { color: var(--brass); }

/* ---------------------------------------------------------------- panneau */
.panel {
  background: var(--white);
  border: 1px solid var(--ash);
  border-radius: var(--r-md);
  padding: 2rem;
}
.panel--flat { background: transparent; border-style: dashed; }
.panel__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: #F4F0EA;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.panel__icon .ico { width: 21px; height: 21px; }
.panel h3 { font-size: var(--t-lg); margin-bottom: 0.6rem; }
.panel p { color: var(--ink-soft); font-size: var(--t-sm); }

/* ------------------------------------------------------- prose éditoriale */
.prose { max-width: 68ch; }
.prose h3 {
  font-size: var(--t-xl);
  margin: 2rem 0 0.7rem;
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; color: var(--ink-soft); }
.prose ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1rem; }
.prose li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  font-size: var(--t-sm);
}
.prose li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 1px;
  background: var(--brass);
}
.prose strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- simulateur */
.sim {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 0;
  border: 1px solid var(--ash);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
}
.sim__controls { padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.select {
  appearance: none;
  width: 100%;
  font-family: var(--body);
  font-size: var(--t-sm);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ash-deep);
  border-radius: var(--r-sm);
  padding: 0.8rem 2.2rem 0.8rem 0.9rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23B8873B' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
}
.select:focus { outline: none; border-color: var(--brass); }

.sim__out {
  background: var(--soot);
  color: #E9E3DC;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}
.sim__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}
.sim__price {
  font-family: var(--display);
  font-size: clamp(2rem, 1.2rem + 2.4vw, 2.9rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  letter-spacing: -0.02em;
}
.sim__note { font-size: var(--t-xs); color: #9C9187; margin-bottom: 1.25rem; line-height: 1.5; }

/* -------------------------------------------------------- étapes / parcours
   Numérotées parce que la demande de devis EST une séquence :
   l'ordre porte une information utile au lecteur. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: step; }
.steps--2 { grid-template-columns: repeat(2, 1fr); }
.step {
  border-top: 1px solid var(--ash-deep);
  padding-top: 1.1rem;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--brass);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.step strong { display: block; font-size: var(--t-md); margin-bottom: 0.3rem; }
.step span { font-size: var(--t-sm); color: var(--ink-soft); }
.band--soot .step { border-color: var(--flue-line); }
.band--soot .step span { color: #9C9187; }
.band--soot .step strong { color: var(--white); }

/* ------------------------------------------------------------------- CTA */
.cta { text-align: center; }
.cta__actions { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.cta__fine { font-size: var(--t-xs); color: var(--ink-soft); }
.band--soot .cta__fine { color: #8A7F76; }

/* ------------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--ash-deep); }
.faq__item { border-bottom: 1px solid var(--ash-deep); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  padding: 1.4rem 0;
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 600;
  font-variation-settings: 'wdth' 90;
  color: var(--ink);
}
.faq__q .ico { width: 18px; height: 18px; color: var(--brass); flex: none; transition: transform .22s ease; }
.faq__item[open] .faq__q .ico { transform: rotate(45deg); }
.faq__a { padding-bottom: 1.5rem; color: var(--ink-soft); font-size: var(--t-sm); max-width: 68ch; }
.faq__a strong { color: var(--ink); }

/* <details>/<summary> natifs : accessibles au clavier sans JavaScript */
summary.faq__q { list-style: none; }
summary.faq__q::-webkit-details-marker { display: none; }
summary.faq__q::marker { content: ''; }

/* ------------------------------------------------------------- offres/prix */
.panel--offer { display: flex; flex-direction: column; }
.panel--offer .btn { margin-top: auto; }
.price {
  font-family: var(--display);
  font-size: var(--t-2xl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ember);
  margin: 0.25rem 0 1.25rem;
}
.checklist { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.5rem; }
.checklist li { display: flex; gap: 0.6rem; font-size: var(--t-sm); color: var(--ink-soft); }
.checklist .ico { width: 16px; height: 16px; color: var(--brass); flex: none; margin-top: 3px; }

/* ------------------------------------------------- encart formulaire tiers */
.widget {
  background: var(--white);
  border: 1px solid var(--ash);
  border-radius: var(--r-md);
  padding: clamp(1.25rem, 0.6rem + 2vw, 2rem);
  min-height: 120px;
}
.trust { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.trust span {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--ash-deep); border-radius: 100px; padding: 0.35rem 0.75rem;
}
.trust .ico { width: 13px; height: 13px; color: var(--brass); }

/* ------------------------------------------------------ formulaire de devis
   Trois blocs numérotés dans l'encart .widget. Les champs reprennent la
   matière de .select (simulateur) pour ne former qu'une seule famille. */
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.form__legend {
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 700;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ash);
}
.form__legend:not(:first-of-type) { margin-top: 0.5rem; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field--wide { grid-column: 1 / -1; }
.field__hint { font-size: var(--t-xs); color: var(--ink-soft); }
.input {
  width: 100%;
  font-family: var(--body);
  font-size: var(--t-md);   /* 16px : pas de zoom automatique sur iOS */
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ash-deep);
  border-radius: var(--r-sm);
  padding: 0.8rem 0.9rem;
}
.input--area { resize: vertical; min-height: 7rem; line-height: 1.5; }
.input::placeholder { color: #A39990; }
.input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(184, 135, 59, .18); }
.form .select { font-size: var(--t-md); }
.form .select:focus { box-shadow: 0 0 0 3px rgba(184, 135, 59, .18); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--t-sm); color: var(--ink-soft); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ember); }
/* pot-de-miel anti-robots : hors écran, jamais display:none (les robots le détectent) */
.hp { position: absolute; left: -9999px; top: -9999px; }

.alert {
  display: flex;
  gap: 0.9rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--ash-deep);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: var(--t-sm);
  margin-bottom: 1.5rem;
}
.alert .ico { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert ul { margin: 0.5rem 0 0 1.1rem; }
.alert p { margin-top: 0.5rem; color: var(--ink-soft); }
.alert--error { border-left-color: var(--ember); background: #FDF3EF; }
.alert--error .ico { color: var(--ember); }
.alert--ok { border-left-color: #3F7D4E; background: #F1F7F2; }
.alert--ok .ico { color: #3F7D4E; }

@media (max-width: 760px) {
  .form__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- utilitaires d'axe */
.eyebrow--center { justify-content: center; }
.lede--center { margin-inline: auto; text-align: center; }
.mt-sm { margin-top: 1rem; }
.finder--center { margin-inline: auto; }
.section-head--tight { margin-bottom: 1.25rem; }
.limit-sm { max-width: 560px; }
.mail-link { color: var(--ink); border-bottom: 1px solid var(--ash-deep); }
.mail-link:hover { color: var(--ember); border-color: var(--ember); }
.prose a { color: var(--ink); border-bottom: 1px solid var(--ash-deep); }
.prose a:hover { color: var(--ember); border-color: var(--ember); }

/* ------------------------------------------------------------- fil d'Ariane */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-soft);
  padding-block: 1.5rem;
  letter-spacing: 0.03em;
}
.crumbs a:hover { color: var(--ember); }
.crumbs .sep { color: var(--ash-deep); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------------------------------------------------------------- tableau */
.table-wrap { overflow-x: auto; border: 1px solid var(--ash); border-radius: var(--r-md); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 520px; }
.table th, .table td { padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--ash); }
.table thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #F6F2EC;
  font-weight: 500;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr:hover { background: #FCFAF7; }

/* ------------------------------------------------------------- en-tête site */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 246, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ash);
}
.masthead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; flex: none; }
.brand__mark {
  width: 30px; height: 30px;
  flex: none;
}
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wdth' 82;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
}
.brand__name span { color: var(--ember); }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav__list { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav__link {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .16s ease;
}
.nav__link:hover, .nav__link[aria-current] { color: var(--ink); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--ash-deep);
  border-radius: var(--r-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}
.burger .ico { width: 20px; height: 20px; }

/* ------------------------------------------------------------ pied de page */
/* La réserve basse empêche le CTA flottant de recouvrir les liens légaux */
.footer { background: var(--soot); color: #9C9187; padding-block: 4rem 5.5rem; }
.footer h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__about { font-size: var(--t-sm); line-height: 1.65; max-width: 40ch; }
.footer .brand__name { color: var(--white); margin-bottom: 1rem; }
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; font-size: var(--t-sm); }
.footer__list a:hover { color: var(--white); }
.footer__mail { color: #E9E3DC; border-bottom: 1px solid var(--flue-line); }
.footer__mail:hover { color: var(--white); border-color: var(--brass); }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--flue-line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-xs);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__legal a:hover { color: var(--white); }

/* --------------------------------------------------------------- carte / iframe */
.mapbox { border: 1px solid var(--ash); border-radius: var(--r-md); overflow: hidden; height: 300px; }
.mapbox iframe { width: 100%; height: 100%; border: 0; }

/* ----------------------------------------------------------------- divers */
.note {
  display: flex;
  gap: 0.8rem;
  padding: 1.1rem 1.25rem;
  background: #F6F2EC;
  border-left: 2px solid var(--brass);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.note .ico { width: 17px; height: 17px; color: var(--brass); flex: none; margin-top: 2px; }

.empty { text-align: center; padding: 3rem 1.5rem; }
.empty .ico { width: 30px; height: 30px; color: var(--ash-deep); margin: 0 auto 1rem; }
.empty h3 { font-size: var(--t-lg); margin-bottom: 0.6rem; }
.empty p { color: var(--ink-soft); max-width: 58ch; margin: 0 auto 1.5rem; font-size: var(--t-sm); }

.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.stack--sm { gap: 0.75rem; }
.inline { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.mt-lg { margin-top: 3rem; }
.mb-lg { margin-bottom: 3rem; }

/* ------------------------------------------------------------- CTA flottant
   Bureau : pastille ancrée en bas à droite.
   Mobile : barre pleine largeur en bas, avec marge pour la zone sûre iOS.
   Masqué sur la page Devis, où il ferait doublon avec le formulaire. */
.cta-dock {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.5rem;
  border-radius: 100px;
  background: var(--ember);
  color: var(--white);
  font-family: var(--body);
  font-size: var(--t-md);
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 10px 30px -8px rgba(214, 67, 27, .55), 0 2px 8px rgba(23, 19, 15, .25);
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cta-dock:hover {
  background: var(--ember-lit);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -10px rgba(214, 67, 27, .65), 0 2px 8px rgba(23, 19, 15, .25);
}
.cta-dock .ico { width: 19px; height: 19px; flex: none; }
.cta-dock__short { display: none; }

@media (max-width: 760px) {
  .cta-dock {
    left: 1rem;
    right: 1rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    justify-content: center;
    border-radius: var(--r-md);
    padding: 1rem 1.25rem;
  }
  .cta-dock__long  { display: none; }
  .cta-dock__short { display: inline; }
  /* le pied de page ne doit pas passer sous la barre */
  body { padding-bottom: 5.5rem; }
}

@media print { .cta-dock { display: none; } }

/* --------------------------------------------------------------- révélation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .grid--sidebar, .grid--split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .nav.is-open {
    display: block;
    position: absolute;
    left: 0; right: 0; top: 68px;
    background: var(--paper);
    border-bottom: 1px solid var(--ash);
    padding: 1rem 1.5rem 1.5rem;
  }
  .nav.is-open .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav.is-open .nav__link { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--ash); }
  .nav.is-open .btn { margin-top: 1rem; width: 100%; }
  .burger { display: inline-flex; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps, .steps--2 { grid-template-columns: 1fr; }
  .sim { grid-template-columns: 1fr; }
  .finder__form { flex-direction: column; }
  .finder__form .btn { width: 100%; }
  .tally { gap: 1.5rem 2rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

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

@media print {
  .masthead, .footer, .hero::before { display: none; }
  body { background: #fff; }
}
