/* ==========================================================================
   DRAY CLIM : « LE BON D'INTERVENTION »
   La page est le devis du technicien : papier, réglures, stylo rouge, tampon,
   copie jaune. Direction et raisons : .impeccable/surfaces/index-html.md
   et docs/ui/02-DIRECTION.md.

   Aucun framework : HTML, cette feuille et un script vanilla. La remise à zéro
   de base est la nôtre (plus de runtime Tailwind à compiler dans le navigateur,
   ce qui comptait sur iPhone). Typographie et composants restent en classes.
   ========================================================================== */

/* Polices hébergées sur le site (2026-10-14, vitesse) : Archivo, Caveat et Plus Jakarta
   Sans, sous-ensembles latin et latin étendu, pris sur Google Fonts (licence SIL OFL).
   Plus de connexion à fonts.googleapis.com ni fonts.gstatic.com avant l'affichage.
   Provenance : assets/fonts/SOURCES.md. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 112%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 112%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Polices de secours aux mesures d'Archivo (E0927-30). Tant qu'Archivo n'est
   pas arrivé, le texte s'affiche en Arial (iPhone, Mac, Windows) ou en Roboto
   (Android), agrandi ou réduit pour prendre la même largeur, face par face :
   condensé 75 % (libellés), normal, large 112 % (titres), maigre et gras. Au
   remplacement, les lignes gardent leur longueur et la page ne saute plus.
   size-adjust : largeur moyenne d'une phrase du site en Archivo divisée par la
   même en Arial ou Roboto ; ascent et descent : ceux d'Archivo (0,878 et
   0,210) divisés par size-adjust. Mesures du 2026-09-27, Chromium. */
@font-face { font-family: "Archivo secours"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); font-stretch: 62% 87%; font-weight: 100 550; size-adjust: 76.2%; ascent-override: 115.1%; descent-override: 27.5%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-stretch: 62% 87%; font-weight: 551 900; size-adjust: 77.5%; ascent-override: 113.3%; descent-override: 27.1%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); font-stretch: 88% 106%; font-weight: 100 450; size-adjust: 98.2%; ascent-override: 89.5%; descent-override: 21.4%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); font-stretch: 88% 106%; font-weight: 451 550; size-adjust: 99.7%; ascent-override: 88.0%; descent-override: 21.1%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-stretch: 88% 106%; font-weight: 551 650; size-adjust: 94.7%; ascent-override: 92.7%; descent-override: 22.2%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-stretch: 88% 106%; font-weight: 651 900; size-adjust: 98.2%; ascent-override: 89.4%; descent-override: 21.4%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); font-stretch: 107% 125%; font-weight: 100 550; size-adjust: 112.8%; ascent-override: 77.9%; descent-override: 18.6%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-stretch: 107% 125%; font-weight: 551 900; size-adjust: 115.1%; ascent-override: 76.3%; descent-override: 18.2%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours Roboto"; src: local("Roboto"), local("Roboto-Regular"); font-stretch: 62% 87%; font-weight: 100 550; size-adjust: 83.1%; ascent-override: 105.7%; descent-override: 25.3%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours Roboto"; src: local("Roboto Bold"), local("Roboto-Bold"); font-stretch: 62% 87%; font-weight: 551 900; size-adjust: 84.0%; ascent-override: 104.5%; descent-override: 25.0%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours Roboto"; src: local("Roboto"), local("Roboto-Regular"); font-stretch: 88% 106%; font-weight: 100 450; size-adjust: 99.4%; ascent-override: 88.3%; descent-override: 21.1%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours Roboto"; src: local("Roboto"), local("Roboto-Regular"); font-stretch: 88% 106%; font-weight: 451 550; size-adjust: 101.0%; ascent-override: 86.9%; descent-override: 20.8%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours Roboto"; src: local("Roboto Bold"), local("Roboto-Bold"); font-stretch: 88% 106%; font-weight: 551 650; size-adjust: 100.8%; ascent-override: 87.1%; descent-override: 20.8%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours Roboto"; src: local("Roboto Bold"), local("Roboto-Bold"); font-stretch: 88% 106%; font-weight: 651 900; size-adjust: 104.6%; ascent-override: 84.0%; descent-override: 20.1%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours Roboto"; src: local("Roboto"), local("Roboto-Regular"); font-stretch: 107% 125%; font-weight: 100 550; size-adjust: 114.2%; ascent-override: 76.9%; descent-override: 18.4%; line-gap-override: 0%; }
@font-face { font-family: "Archivo secours Roboto"; src: local("Roboto Bold"), local("Roboto-Bold"); font-stretch: 107% 125%; font-weight: 551 900; size-adjust: 122.6%; ascent-override: 71.6%; descent-override: 17.1%; line-gap-override: 0%; }

:root {
  /* Marque : un seul rouge, un seul jaune */
  --red: #EA0B14;
  --red-press: #CF0A12;
  --yellow: #FFE500;
  --yellow-press: #F2D900;
  --yellow-edge: #C9B400;

  /* Encre et papier */
  --ink: #111827;
  --ink-2: #374151;       /* 10,3:1 sur papier */
  --muted: #5A6779;       /* 5,7:1 sur papier, 5,2:1 sur papier-2 */
  --paper: #FCFDFE;
  --paper-2: #F2F5F8;     /* second feuillet : bandeaux de référence, pied de page */
  --rule: #D3DCE6;        /* réglure principale */
  --rule-soft: #E6EBF1;   /* réglure fine entre deux lignes */
  --margin-line: rgba(234, 11, 20, 0.3);

  /* Teintes de service, nommées pour ne jamais revenir en dur */
  --leader: #B7C3D1;          /* points de conduite */
  --slash: #A9B6C5;           /* barres entre les marques */
  --dash: #9AAABD;            /* pointillés de l'encadré verdict */
  --placeholder: #5E6D83;     /* 4,8:1 sur le fond des champs, mesuré */
  --media: #E1E6EB;           /* fond d'attente des photos */
  --ink-hover: #1F2937;       /* bouton encre au survol */
  --scrollbar: #C3CEDB;
  --scrollbar-hover: #9DAEC2;
  --field: #F6F8FA;           /* fond d'un champ à remplir */
  --field-hover: #EFF3F6;
  --error: #B4121A;           /* erreur sur papier */
  --error-on-yellow: #8E0E15; /* erreur sur la copie jaune, 7,4:1 */

  /* Thermomètre de la marge, du bouillant au glacial. Le bleu n'existe que là
     et dans la neige du bas de page : c'est le froid, rien d'autre. */
  --thermo-hot: var(--red);
  --thermo-warm: #F2652B;
  --thermo-mid: #B58FBE;
  --thermo-cool: #7DB6E8;
  --thermo-ice: #1E9FEF;
  --thermo-frost: #CDEBFB;

  /* Grain de craie : un bruit rendu une seule fois, posé en masque sur les
     boucles (le trait s'effrite par endroits, comme un bâton sur le papier). */
  --chalk-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 2.3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");

  /* Familles */
  --font-sans: "Archivo", "Archivo secours", "Archivo secours Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
  --font-logo: "Plus Jakarta Sans", "Archivo", system-ui, sans-serif;

  /* Mise en page : la marge (--rail-x) est l'axe de toute la page */
  --container: 1440px;
  --gutter-l: 34px;
  --gutter-r: 20px;
  --rail-x: 15px;
  --header-h: 64px;

  /* Air et largeur de lecture (DESIGN.md, spacing ; docs/ui/AIR-ET-RYTHME.md).
     Les jetons à deux valeurs changent d'eux-mêmes dès 1024 px. */
  --section: 5rem;          /* entre deux sections, de chaque côté de la réglure */
  --part: 4.5rem;           /* entre deux parties, deux thèmes */
  --lead-gap: 1.125rem;     /* titre de section → chapô */
  --read: 1rem;             /* corps du texte courant */
  --measure: 32rem;         /* texte courant : 60 à 75 caractères */
  --measure-sm: 28rem;      /* résumé lu en diagonale */
  --measure-lead: 30em;     /* chapô, en em de son propre corps */

  /* Formes : papier et formulaire, donc angles droits */
  --radius: 2px;

  /* Mouvement */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pen: cubic-bezier(0.55, 0.05, 0.3, 1);
}

@media (min-width: 640px) {
  :root {
    --gutter-l: 56px;
    --gutter-r: 32px;
    --rail-x: max(27px, calc(env(safe-area-inset-left, 0px) + 10px));
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter-l: 80px;
    --gutter-r: 40px;
    /* Le pourcentage se résout sur la largeur de la fenêtre (élément fixe) :
       la marge suit le bord gauche du conteneur centré, à 40 px du texte. */
    --rail-x: max(40px, calc((100% - var(--container)) / 2 + 40px));
    --header-h: 76px;
    --section: 7.5rem;
    --part: 6rem;
    --lead-gap: 1.5rem;
    --read: 1.0625rem;
  }
}

/* --------------------------------------------------------------------------
   BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Remise à zéro minimale : seulement ce que la page utilise */
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol, fieldset, legend {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

ul, ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

img, svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: inherit;
}

input::placeholder {
  opacity: 1;
}

/* Un tap part tout de suite : pas d'attente de double-tap sur les commandes */
a, button, label, input, select, textarea {
  touch-action: manipulation;
}

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

/* Posée par typographie() (src/build.py) : un numéro d'article (R. 421-17) ou une
   inversion (reste-t-elle) ne se coupe pas à son trait d'union. Aucune boîte
   (display: contents) : dans un parent flex (.sources a, .toc-name a, td de
   .compare), le texte reste un seul élément au lieu d'être découpé. */
.nowrap {
  display: contents;
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

html {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--header-h) + 16px);
  caret-color: var(--red);
  scrollbar-color: var(--scrollbar) var(--paper);
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: var(--paper);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}

::selection {
  background-color: var(--yellow);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar);
  border: 3px solid var(--paper);
  border-radius: 12px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-hover);
}

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

.on-yellow :focus-visible {
  outline-color: var(--ink);
}

a {
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

input,
select,
textarea {
  font-size: 16px !important; /* pas de zoom automatique sur iOS */
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 70;
  padding: 0.75rem 1.125rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   MISE EN PAGE : conteneur, marge, sections
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* iPhone en paysage : le texte ne passe jamais sous l'encoche. Les gouttières
   restent des variables ; la zone sûre s'y ajoute là où le navigateur la connaît. */
@supports (padding-left: max(0px, env(safe-area-inset-left))) {
  .wrap {
    --safe-l: calc(env(safe-area-inset-left) + 1rem);
    --safe-r: calc(env(safe-area-inset-right) + 1rem);
    padding-left: max(var(--gutter-l), var(--safe-l));
    padding-right: max(var(--gutter-r), var(--safe-r));
  }
}

/* La marge du bon : un filet vertical qui court du haut au bas de la page.
   C'est l'axe de lecture, et le fil rouge du site : le thermomètre ci-dessous. */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--rail-x);
  width: 1px;
  background-color: var(--margin-line);
  z-index: 30;
  pointer-events: none;
}

/* LE FIL ROUGE : la marge se fait thermomètre. Chaque zone porte sa
   température (data-temp) : 38 °C en haut, mercure rouge bouillant, halo qui
   bat et vapeur au-dessus du relevé ; la page se rafraîchit pendant la
   lecture ; tout en bas, 20 °C : bleu glacier, le réservoir gèle en flocon et
   il neige. Graduation de 15 à 40 °C. Le script mélange la couleur du mercure
   (--mercury) entre les repères --thermo-*. Ce n'est pas une barre de
   progression : rien ne bouge entre deux zones. Sans JS, la marge reste un
   simple filet. */
.thermo {
  display: none;
}

.js .thermo {
  --level: 0;
  --flake-turns: 0;
  --mercury: var(--thermo-hot);
  display: block;
  position: absolute;
  left: 0;
  width: 1px;
  top: calc(var(--header-h) + 2rem);
  /* Sur téléphone, au-dessus de la barre d'action (et de la barre d'accueil) */
  bottom: calc(env(safe-area-inset-bottom, 0px) + 5.5rem);
}

@media (min-width: 768px) {
  .js .thermo {
    bottom: 2.25rem;
  }
}

/* Graduations à gauche du filet : un trait par degré, un plus long tous les 5 */
.thermo-scale {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 3px;
  width: 7px;
  background:
    repeating-linear-gradient(to top, transparent 0 calc(100% / 5 - 1px), var(--margin-line) calc(100% / 5 - 1px) calc(100% / 5)) right / 7px 100% no-repeat,
    repeating-linear-gradient(to top, transparent 0 calc(100% / 25 - 1px), var(--margin-line) calc(100% / 25 - 1px) calc(100% / 25)) right / 4px 100% no-repeat;
}

.thermo-tube {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 3px;
  overflow: hidden;
  border-radius: 2px;
}

/* Le mercure et le relevé glissent ensemble : même transform, même durée */
.thermo-mercury,
.thermo-level {
  position: absolute;
  inset: 0;
  transform: translateY(calc((1 - var(--level)) * 100%));
  transition: transform 1.2s var(--ease-out);
}

.thermo-mercury {
  background-color: var(--mercury);
  border-radius: 2px;
  transition: transform 1.2s var(--ease-out), background-color 1.2s var(--ease-out);
}

/* Le relevé, écrit à l'encre dans la marge : sa couleur suit le mercure */
.thermo-read {
  position: absolute;
  top: 0;
  left: 0.5px;
  display: flex;
  align-items: center;
  height: 1.125rem;
  padding: 0 0.1875rem;
  overflow: hidden;
  background-color: var(--paper);
  color: var(--mercury);
  border: 1.5px solid var(--mercury);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), color 1.2s var(--ease-out), border-color 1.2s var(--ease-out);
}

.thermo.is-live .thermo-read {
  opacity: 1;
}

.thermo-num {
  display: inline-block;
}

/* Halo derrière le relevé : il bat quand ça bout, il givre quand c'est glacial */
.thermo-glow {
  position: absolute;
  top: 0;
  left: 0.5px;
  width: 2.25rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: var(--mercury);
  filter: blur(8px);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), background-color 1.2s var(--ease-out);
}

/* Quatre battements, puis le halo reste pâle : fini à 4,8 s (WCAG 2.2.2). Il
   repart à chaque retour au-dessus de 34 °C. */
.thermo.is-live[data-state="hot"] .thermo-glow {
  animation: thermo-boil 1.2s ease-in-out 4 alternate both;
}

.thermo.is-live[data-state="ice"] .thermo-glow {
  opacity: 0.55;
  background-color: var(--thermo-frost);
}

@keyframes thermo-boil {
  from { opacity: 0.15; transform: translate(-50%, -50%) scale(0.85); }
  to { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

/* Vapeur : trois volutes montent au-dessus du relevé tant que ça bout */
.thermo-heat {
  position: absolute;
  top: 0;
  left: 0.5px;
  width: 1.25rem;
  height: 1.0625rem;
  overflow: visible;
  fill: none;
  stroke: var(--thermo-hot);
  stroke-width: 1.8;
  stroke-linecap: round;
  transform: translate(-50%, calc(-100% - 0.75rem));
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.thermo.is-live[data-state="hot"] .thermo-heat {
  opacity: 1;
}

.thermo-heat path {
  opacity: 0;
}

/* Deux bouffées par volute, puis plus rien : fini à 4,8 s (WCAG 2.2.2). Les
   propriétés une à une, pas le raccourci « animation » : il remettrait à 0 les
   délais posés par :nth-child (E0927-36). La vapeur repart à chaque retour au
   chaud. */
.thermo.is-live[data-state="hot"] .thermo-heat path {
  animation-name: thermo-steam;
  animation-duration: 1.8s;
  animation-timing-function: ease-out;
  animation-iteration-count: 2;
}

.thermo-heat path:nth-child(2) {
  animation-delay: 0.6s;
}

.thermo-heat path:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes thermo-steam {
  0% { opacity: 0; transform: translateY(4px); }
  35% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-7px); }
}

/* Réservoir : une boule rouge tant qu'il fait chaud, un flocon quand il fait
   froid. Le flocon tourne d'un sixième de tour par degré gagné et retombe
   toujours sur la même figure. */
.thermo-bulb {
  position: absolute;
  left: 0.5px;
  bottom: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background-color: var(--mercury);
  transform: translate(-50%, 50%);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), background-color 1.2s var(--ease-out);
}

.thermo-flake {
  position: absolute;
  left: 0.5px;
  bottom: 0;
  width: 1.125rem;
  height: 1.125rem;
  overflow: visible;
  fill: none;
  stroke: var(--mercury);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(-50%, 50%) rotate(calc(var(--flake-turns) * 60deg)) scale(0.4);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out), transform 1.2s var(--ease-out), stroke 1.2s var(--ease-out);
}

.thermo[data-cold] .thermo-bulb {
  opacity: 0;
  transform: translate(-50%, 50%) scale(0.3);
}

.thermo[data-cold] .thermo-flake {
  opacity: 1;
  transform: translate(-50%, 50%) rotate(calc(var(--flake-turns) * 60deg));
}

@media (min-width: 1024px) {
  .thermo-bulb {
    width: 0.8125rem;
    height: 0.8125rem;
  }

  .thermo-flake {
    width: 1.375rem;
    height: 1.375rem;
    stroke-width: 1.5;
  }
}

/* La neige du bas de page : posée par le script à 20 °C, au-dessus du contenu
   sans jamais capter un geste, et elle fond dès qu'on remonte. */
.snow {
  position: fixed;
  inset: 0;
  z-index: 35;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.9s var(--ease-out);
}

.snow.is-melting {
  opacity: 0;
}

.snow-flake {
  position: absolute;
  top: 0;
  width: var(--size);
  height: var(--size);
  color: var(--thermo-ice);
  opacity: var(--alpha);
  animation: snow-fall var(--fall) linear var(--delay) infinite;
  will-change: transform;
}

.snow-flake svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: snow-sway var(--sway-time) ease-in-out var(--delay) infinite alternate;
}

@keyframes snow-fall {
  from { transform: translate3d(0, -6vh, 0); }
  to { transform: translate3d(0, 106vh, 0); }
}

@keyframes snow-sway {
  from { transform: translateX(calc(var(--sway) * -1)) rotate(0deg); }
  to { transform: translateX(var(--sway)) rotate(var(--spin)); }
}

.page-end {
  height: 1px;
}

.section {
  position: relative;
  padding-top: var(--section);
  padding-bottom: var(--section);
  border-top: 1px solid var(--rule);
}

.section--sunken {
  background-color: var(--paper-2);
}

.sec-head {
  max-width: 46rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 1024px) {
  .sec-head {
    margin-bottom: 4rem;
  }
}

.sec-head .t-lead {
  margin-top: var(--lead-gap);
}

/* --------------------------------------------------------------------------
   TYPOGRAPHIE : Archivo en largeur variable, Caveat pour le stylo
   -------------------------------------------------------------------------- */

.t-display {
  font-family: var(--font-sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2.625rem, 1.05rem + 6.4vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--ink);
}

.t-h2 {
  font-family: var(--font-sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
}

.t-h3 {
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.t-lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: var(--measure-lead);
  text-wrap: pretty;
}

.t-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Sur téléphone, les paragraphes à lire passent à 17 px (Apple : 17 pt par
   défaut ; GOV.UK : 19 px) ; les listes et lignes de devis restent à 16 px. */
@media (max-width: 639px) {
  .t-body,
  .faq-a p,
  .qa-item p,
  .fiche--text dd {
    font-size: 1.0625rem;
  }
}

/* Libellé de formulaire : condensé, capitales, jamais au-dessus d'un titre */
.t-label {
  font-family: var(--font-sans);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}

.t-hand {
  font-family: var(--font-hand);
  font-weight: 600;
  line-height: 1.05;
}

.t-num {
  font-variant-numeric: tabular-nums lining-nums;
}

.red {
  color: var(--red);
}

/* --------------------------------------------------------------------------
   STYLO ET TAMPON : les marques du technicien
   -------------------------------------------------------------------------- */

.pen {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Motif 1/2 et décalage 1,02 : le trait caché ne laisse aucun point
     (une butée de longueur nulle dessine sinon un rond avec le bout arrondi). */
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
}

/* Le trait ne se cache que si le JS est là pour le dessiner */
.js .inkable .pen {
  stroke-dashoffset: 1.02;
}

.js .inkable.is-inked .pen {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--pen-dur, 0.5s) var(--ease-pen) var(--pen-delay, 0s);
}

.nowrap {
  white-space: nowrap;
}

/* Croquis du technicien : petits dessins au trait, tracés au stylo à leur
   propre entrée à l'écran (pas avec la liste qui les contient). */
.croquis {
  display: block;
  width: 4.5rem;
}

/* Dans une étape : le croquis à droite du titre, le reste en pleine largeur */
.step-body:has(> .croquis) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: start;
}

.step-body:has(> .croquis) > * {
  grid-column: 1 / -1;
}

.step-body > .croquis {
  grid-column: 2;
  grid-row: 1;
}

.step-body:has(> .croquis) > .step-title-row {
  grid-column: 1;
  grid-row: 1;
}

/* Sur ordinateur, les étapes sont en colonnes étroites : le croquis passe au-dessus du titre */
@media (min-width: 1024px) {
  .step-body:has(> .croquis) {
    display: block;
  }

  .step-body > .croquis {
    width: 5rem;
    margin-bottom: 1rem;
  }
}

/* Pannes et gestes : le croquis à côté du titre, le texte en pleine largeur dessous.
   Gestes : croquis à droite, comme dans les étapes. Pannes : croquis à gauche, le
   plus/moins à droite (comme les cartes des métiers). */
.qa-item:has(> .croquis) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.25rem;
  column-gap: 1rem;
  row-gap: 0.625rem;
  align-items: center;
}

.qa-item > .croquis {
  grid-column: 2;
  grid-row: 1;
  width: 4.25rem;
}

.qa-item:has(> .croquis) > h3 {
  grid-column: 1;
  grid-row: 1;
}

.qa-item:has(> .croquis) > p {
  grid-column: 1 / -1;
  margin-top: 0;
}

.symptom:has(> .croquis) {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0;
  align-items: center;
  padding: 1rem 0;
}

.symptom > .croquis {
  grid-column: 1;
  grid-row: 1;
  width: 3.75rem;
}

.symptom:has(> .croquis) > h3 {
  grid-column: 2;
  grid-row: 1;
}

.symptom:has(> .croquis) > .fold-a {
  grid-column: 1 / -1;
}

.symptom .fold-a > div > p:first-child {
  padding-top: 0.75rem;
}

.symptom .fold-a > div > p:last-child {
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .symptom:has(> .croquis) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) 5rem;
    column-gap: 2rem;
    align-items: start;
    padding: 1.375rem 0 1.5rem;
  }

  .symptom:has(> .croquis) > h3 {
    grid-column: 1;
  }

  .symptom:has(> .croquis) > .fold-a {
    grid-column: 2;
    grid-row: 1;
  }

  .symptom > .croquis {
    grid-column: 3;
    width: 5rem;
  }

  .symptom .fold-a > div > p:first-child {
    padding-top: 0;
  }

  .symptom .fold-a > div > p:last-child {
    padding-bottom: 0;
  }
}

@media (max-width: 374.98px) {
  .step-body:has(> .croquis) {
    display: block;
  }

  .step-body > .croquis {
    width: 3.5rem;
    margin-bottom: 0.625rem;
  }
}

.croquis svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.croquis .pen {
  stroke-width: 2;
}

.croquis .pen--ink {
  stroke: var(--ink);
  stroke-width: 1.6;
}

.croquis .pen--thin {
  stroke: var(--muted);
  stroke-width: 1.15;
}

.js .croquis.inkable:not(.is-inked) .pen {
  stroke-dashoffset: 1.02;
  transition: none;
}

@media (min-width: 1024px) {
  .croquis {
    width: 5.5rem;
  }
}

/* Case à cocher dessinée, cochée au stylo rouge */
.tickbox {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid var(--ink);
  border-radius: 1px;
  background-color: var(--paper);
}

.tickbox > svg {
  position: absolute;
  left: -3px;
  top: -9px;
  width: 1.625rem;
  height: 1.625rem;
  display: block;
  overflow: visible;
  pointer-events: none;
}

/* Coche statique, plus discrète, pour les listes */
.tick {
  display: inline-block;
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.22em;
  color: var(--red);
}

.tick > svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Mot entouré à la main */
.circled {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.circled > svg {
  position: absolute;
  left: -0.95em;
  top: -0.72em;
  width: calc(100% + 1.9em);
  height: calc(100% + 1.44em);
  display: block;
  overflow: visible;
  pointer-events: none;
}

.circled .pen {
  stroke-width: 2.1;
}

/* LA CRAIE : les boucles (mots entourés, anneau des fiches, anneau du conseil)
   sont tracées à la craie rouge. Un trait plus large, doublé d'un second
   passage plus fin qui tremble autour (.pen-dust), et le grain en masque. */
.circled > svg,
.sol-ring,
.verdict-ring {
  -webkit-mask-image: var(--chalk-grain);
  mask-image: var(--chalk-grain);
  -webkit-mask-size: 140px 140px;
  mask-size: 140px 140px;
}

.js .circled .pen {
  stroke-width: 2.6;
}

.js .circled .pen-dust {
  stroke-width: 1.3;
  opacity: 0.6;
}

/* Souligné à la main */
.underlined {
  position: relative;
  display: inline-block;
}

.underlined > svg {
  position: absolute;
  left: -2%;
  bottom: -0.32em;
  width: 104%;
  height: 0.45em;
  display: block;
  overflow: visible;
  pointer-events: none;
}

/* La réponse soulignée (N6) : posée par le script sur le titre visé par
   l'adresse, un trait par ligne, à la longueur mesurée de la ligne. */
.has-answer-mark {
  position: relative;
}

.answer-mark {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
}

.answer-mark .pen {
  stroke-width: 2.4;
  stroke-dashoffset: 1.02;
}

.answer-mark.is-inked .pen {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--line-dur, 0.4s) var(--ease-pen) var(--line-delay, 0s);
}

/* Tampon DRAY : encre rouge usée, posé en biais */
.stamp {
  display: block;
  color: var(--red);
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: rotate(var(--stamp-rot, -7deg));
  opacity: 0.92;
}

.stamp svg {
  display: block;
  width: 100%;
  height: auto;
}

.js .stamp.inkable {
  opacity: 0;
  transform: rotate(-13deg) scale(1.45);
}

.js .stamp.inkable.is-inked {
  opacity: 0.92;
  transform: rotate(var(--stamp-rot, -7deg)) scale(1);
  transition:
    opacity 0.16s linear var(--pen-delay, 0s),
    transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1) var(--pen-delay, 0s);
}

/* Écriture manuscrite qui s'écrit de gauche à droite. Les insets négatifs
   laissent passer les jambages et les débords de la cursive (le « d » final,
   le « p ») : un clip à la boîte exacte les rognerait. */
.js .writes.inkable {
  clip-path: inset(-0.3em 100% -0.35em -0.3em);
}

.js .writes.inkable.is-inked {
  clip-path: inset(-0.3em -0.5em -0.35em -0.3em);
  transition: clip-path 0.9s cubic-bezier(0.5, 0.1, 0.4, 1) var(--pen-delay, 0s);
}

/* Au rythme de la main (R3) : trois courts arrêts du stylo, le même à chaque
   visite. linear() sous @supports, après la règle ancienne : un navigateur qui
   ne la connaît pas (iOS avant 17.2) garde la courbe au-dessus (E0927-36). */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --ease-hand: linear(0, 0.1 12%, 0.17 20%, 0.18 25%, 0.33 38%, 0.45 50%, 0.47 55%, 0.62 67%, 0.74 78%, 0.76 83%, 0.9 93%, 1);
  }

  .js .writes.inkable.is-inked {
    transition: clip-path 1s var(--ease-hand) var(--pen-delay, 0s);
  }
}

/* --------------------------------------------------------------------------
   BOUTONS : rectangles pleins, le triangle DRAY pour flèche
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1.375rem;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease-out);
}

/* Téléphone : dans le contenu, un libellé long (« Demander un devis Mitsubishi Electric »)
   passe à la ligne au lieu de sortir de sa colonne ; la barre du bas et l'en-tête gardent
   leurs boutons sur une ligne (revue du critique, 2026-10-27) */
@media (max-width: 479.98px) {
  main .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
}

.btn:active {
  transform: translateY(1px);
}

.btn-tri {
  display: block;
  flex: none;
  width: 0.625rem;
  height: 0.75rem;
  fill: currentColor;
  transition: transform 0.25s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn-tri {
    transform: translateX(3px);
  }
}

.btn-primary {
  background-color: var(--yellow);
  color: var(--ink);
}

.btn-primary:hover {
  background-color: var(--yellow-press);
}

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

.btn-ink .btn-tri {
  fill: var(--yellow);
}

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

/* Bouton secondaire du formulaire : filet d'encre, jamais rempli */
.btn-line {
  background-color: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn-line:hover {
  background-color: var(--paper-2);
}

.btn-sm {
  min-height: 2.75rem;
  padding: 0 1rem;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

/* Lien d'action en texte : même intention que le bouton, sans voler l'isolement du jaune.
   En ligne, pas en inline-flex : sur deux lignes, le triangle suit le dernier mot au
   lieu de partir au bord droit. Le rembourrage vertical garde la cible de 44 px. */
.link-act {
  display: inline;
  padding-block: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s ease;
}

.link-act:hover {
  text-decoration-color: var(--red);
}

.link-act .btn-tri {
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: -0.0625rem;
  fill: var(--red);
}

@media (hover: hover) and (pointer: fine) {
  .link-act:hover .btn-tri {
    transform: translateX(3px);
  }
}

/* Téléphone : chiffres tabulaires, toujours lisible en entier */
.tel {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tel svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--red);
  flex: none;
}

.tel:hover .tel-num {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   EN-TÊTE : papier à en-tête
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(252, 253, 254, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

/* Logo B « le fil du froid » (choisi le 2026-09-29) : DRAY, le triangle à la
   hauteur des capitales, un fil qui descend du rouge (38 °C) au bleu glacier
   (20 °C) comme le thermomètre de la marge, puis CLIM, l'enseigne
   (2026-10-19), sous DRAY. Tout est en em : une seule taille (font-size du
   .logo-mark) règle le logo entier. Mesures relevées avec Plus Jakarta Sans 800. */
.logo-mark {
  display: flex;
  flex-direction: column;
  font-size: 1.875rem;
}

.logo-word {
  display: flex;
  align-items: center;
  gap: 0.07em;
}

.logo-dray {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 1em;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--red);
}

.logo-tri {
  display: block;
  flex: none;
  width: 0.62em;
  height: 0.72em;
  overflow: visible;
  fill: var(--yellow);
}

/* Un filet or tient le triangle sur le papier blanc */
.logo-tri polygon {
  stroke: var(--yellow-edge);
  stroke-width: 3;
  stroke-linejoin: round;
  paint-order: stroke;
}

.logo-fil {
  display: block;
  height: max(2px, 0.075em);
  margin-top: 0.12em;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--thermo-hot) 0%, var(--thermo-warm) 30%, var(--thermo-mid) 55%, var(--thermo-cool) 75%, var(--thermo-ice) 100%);
  transform-origin: left center;
}

/* À la première page de la visite, le fil se remplit une fois, du chaud au froid */
@media (prefers-reduced-motion: no-preference) {
  .fil-premier .site-header .logo-fil {
    animation: logo-fil 0.7s var(--ease-out) 0.2s both;
  }
}

/* Le souffle (animation d'appel, 2026-10-09) : toutes les 7 s le triangle
   « souffle » : il se gonfle, trois filets d'air glacier en sortent vers la
   droite et une vague froide traverse le fil du chaud au froid. Entrée de
   l'en-tête seulement ; les filets n'existent que dans l'en-tête. */
.logo-word { position: relative; }

.logo-air {
  position: absolute;
  left: 100%;
  top: 50%;
  width: 1.1em;
  height: 0;
  margin-left: 0.04em;
  pointer-events: none;
}

.logo-air i {
  position: absolute;
  left: 0;
  width: 0.7em;
  height: max(2px, 0.06em);
  border-radius: 2px;
  background: var(--thermo-ice);
  opacity: 0;
  transform-origin: left center;
}

.logo-air i:nth-child(1) { top: -0.24em; width: 0.55em; }
.logo-air i:nth-child(2) { top: -0.03em; width: 0.8em; }
.logo-air i:nth-child(3) { top: 0.18em; width: 0.6em; }

.logo-fil { position: relative; overflow: hidden; }

.logo-fil::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  transform: translateX(-100%);
}

@media (prefers-reduced-motion: no-preference) {
  .site-header .logo-tri {
    animation: logo-souffle-tri 7s var(--ease-out) 1.5s infinite;
  }
  .site-header .logo-air i {
    animation: logo-souffle-air 7s var(--ease-out) 1.5s infinite;
  }
  .site-header .logo-air i:nth-child(2) { animation-delay: 1.62s; }
  .site-header .logo-air i:nth-child(3) { animation-delay: 1.74s; }
  .site-header .logo-fil::after {
    animation: logo-souffle-fil 7s ease-in-out 1.65s infinite;
  }
}

@keyframes logo-souffle-tri {
  0%, 12%, 100% { transform: scale(1) rotate(0); }
  3% { transform: scale(1.35) rotate(-10deg); }
  7% { transform: scale(0.92) rotate(3deg); }
}

@keyframes logo-souffle-air {
  0% { opacity: 0; transform: translateX(-0.3em) scaleX(0.2); }
  5% { opacity: 1; transform: translateX(0) scaleX(1); }
  16%, 100% { opacity: 0; transform: translateX(0.55em) scaleX(1); }
}

@keyframes logo-souffle-fil {
  0% { transform: translateX(-100%); }
  18%, 100% { transform: translateX(260%); }
}

@keyframes logo-fil {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

.logo-sub {
  margin-top: 0.12em;
  margin-right: -0.25em;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 0.62em;
  line-height: 1;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

.logo-tagline {
  display: none;
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--muted);
}

@media (min-width: 1440px) {
  .logo-tagline {
    display: block;
  }
}

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(0.875rem, 1.5vw, 1.75rem);
  }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link[aria-current="page"] {
  color: var(--ink);
}

/* Section en cours : un trait de stylo sous le lien */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  height: 2px;
  background-color: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Survols à la souris seulement (DESIGN.md, Tactile) : au doigt, l'effet
   resterait collé après le tap. */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--ink);
  }

  .nav-link:hover::after {
    transform: scaleX(1);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-tel {
  display: none;
}

@media (min-width: 1280px) {
  .header-tel {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.1rem;
    min-height: 2.75rem;
    padding-right: 1.125rem;
    margin-right: 0.5rem;
    border-right: 1px solid var(--rule);
    text-decoration: none;
    white-space: nowrap;
    color: var(--ink);
  }

  .header-tel-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
  }

  .header-tel-num {
    font-size: 0.9375rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  .header-tel:hover .header-tel-num {
    color: var(--red);
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  transition: background-color 0.2s ease;
}

.icon-btn svg {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}

.icon-btn--red {
  color: var(--red);
}

/* Survols à la souris seulement : au doigt, le bouton du menu resterait gris
   et l'appel rouge appuyé après le tap. Sur le second feuillet du survol, le
   rouge appuyé garde plus de 4,5:1. */
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    background-color: var(--paper-2);
  }

  .icon-btn--red:hover,
  .ios-bottom-bar .btn-line:hover svg,
  .mobile-menu-foot .btn-line:hover svg {
    color: var(--red-press);
  }
}

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .only-mobile-nav {
    display: none;
  }
}

@media (min-width: 1280px) {
  .only-below-xl {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   HERO : la feuille de devis
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: 1rem;
  padding-bottom: 2.75rem;
}



@media (min-width: 1024px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 4.5rem;
  }
}

/* En-tête de feuille : nature de l'intervention et zone */
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.sheet-nature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

@media (min-width: 640px) {
  .sheet-nature {
    gap: 0.75rem 1.5rem;
  }
}

.sheet-nature li {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

@media (max-width: 639px) {
  .sheet-head {
    gap: 0.625rem 1rem;
    padding-bottom: 0.875rem;
  }

  .sheet-nature {
    gap: 0.5rem 0.875rem;
  }

  .sheet-nature li {
    gap: 0.5rem;
  }

  .sheet-nature .t-label,
  .sheet-head .sheet-zone {
    font-size: 0.75rem;
    letter-spacing: 0.045em;
  }

  .sheet-nature .tickbox {
    width: 1rem;
    height: 1rem;
  }
}

.sheet-zone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-2);
}

.sheet-zone svg {
  display: block;
  width: 1rem;
  height: 1rem;
  color: var(--red);
}

.hero-title {
  margin-top: 1.25rem;
}

@media (min-width: 1024px) {
  .hero-title {
    margin-top: 2.25rem;
  }

  /* La première ligne doit finir avant la photo remontée à côté de la seconde :
     elle mesure 7,16 em, la place disponible est la colonne de texte plus la
     gouttière. Taille bornée en conséquence, de 1024 px à la largeur maximale. */
  .hero-title .t-display {
    font-size: min(6.75rem, calc(8vw - 10px));
  }
}

/* Le tampon est posé en biais sur le filet d'en-tête des lignes de devis,
   au-dessus de « Gratuit » : il valide ce qu'il recouvre. */
.devis-wrap {
  position: relative;
  margin-top: 1.75rem;
}

.devis-wrap .devis {
  margin-top: 0;
}

.hero-stamp {
  position: absolute;
  z-index: 3;
  width: 6.25rem;
  right: -0.25rem;
  top: -2.75rem;
  --stamp-rot: -8deg;
}

@media (min-width: 640px) {
  .devis-wrap {
    margin-top: 2.5rem;
  }

  .hero-stamp {
    width: 8rem;
    top: -4.1rem;
  }
}

@media (min-width: 1024px) {
  .devis-wrap {
    margin-top: 2.75rem;
  }

  .hero-stamp {
    width: 9.25rem;
    right: -1.75rem;
    top: -4.4rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 1.25rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4rem;
    margin-top: 2.5rem;
    align-items: start;
  }
}

.hero-copy .t-lead {
  max-width: 30em;
}

/* Lignes de devis : désignation, points de conduite, valeur */
.devis {
  margin-top: 1.75rem;
  border-top: 1.5px solid var(--ink);
}

.devis-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.75rem;
  padding: 0.6875rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

@media (min-width: 640px) {
  .devis-row {
    padding: 0.8125rem 0;
  }
}

.devis-row dt {
  display: flex;
  align-items: baseline;
  flex: 1 0 auto;
  max-width: 100%;
  min-width: 0;
  font-weight: 500;
  color: var(--ink-2);
}

.devis-row dt::after {
  content: "";
  flex: 1 1 auto;
  min-width: 1rem;
  margin-left: 0.75rem;
  border-bottom: 2px dotted var(--leader);
  transform: translateY(-0.28em);
}

.devis-row dd {
  flex: none;
  max-width: 100%;
  margin-left: auto;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}

.hide-narrow {
  display: none;
}

@media (min-width: 480px) {
  .hide-narrow {
    display: inline;
  }
}

/* Variante resserrée : fiches solutions et récapitulatif du formulaire */
.devis--sm {
  margin-top: 0.875rem;
  border-top: 1px solid var(--rule);
}

.devis--sm .devis-row {
  flex-wrap: wrap;
  gap: 0 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}

.devis--sm .devis-row dd {
  margin-left: auto;
}

.devis-row .devis-note {
  font-weight: 500;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .hero-actions {
    margin-top: 2rem;
  }
}

.hero-actions .tel {
  font-size: 1.0625rem;
}

/* iPhone en paysage : la hauteur commande, le titre ne mange plus l'écran */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-title .t-display {
    font-size: clamp(2.25rem, 1rem + 7vh, 3.25rem);
  }
}

/* Pièce jointe : une photo tirée et posée sur la feuille */
.attach {
  position: relative;
  margin: 0;
}

.attach-print {
  position: relative;
  padding: 0.625rem;
  background-color: #fff;
  border: 1px solid var(--rule);
}

.attach-print img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero .attach-print img {
  aspect-ratio: 5 / 4;
  object-position: 80% 40%;
}

@media (min-width: 1024px) {
  /* La photo remonte au niveau de la seconde ligne du titre : la feuille
     s'emboîte au lieu d'empiler deux blocs. */
  .hero .attach {
    margin-top: -8.5rem;
  }

  .hero .attach-print img {
    aspect-ratio: 1 / 1;
    object-position: 86% 50%;
  }
}

.attach-note {
  position: relative;
  display: block;
  margin-top: 0.875rem;
  font-size: 1.5rem;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .attach-note {
    position: absolute;
    left: -3.25rem;
    bottom: 1.75rem;
    margin: 0;
    padding: 0.5rem 0.875rem 0.625rem;
    background-color: var(--paper);
    font-size: 1.875rem;
    transform: rotate(-3deg);
  }
}

/* La section suivante doit dépasser sous le hero : la page n'a pas l'air finie */
.peek {
  height: 0;
}

/* --------------------------------------------------------------------------
   SOLUTIONS : questionnaire et fiches
   -------------------------------------------------------------------------- */

.sol-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .sol-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4.5rem;
    align-items: start;
  }
}

.finder {
  border: 1.5px solid var(--ink);
  background-color: #fff;
  padding: 1.5rem 1.25rem 1.25rem;
}

@media (min-width: 640px) {
  .finder {
    padding: 2rem 2rem 1.75rem;
  }
}

@media (min-width: 1024px) {
  .finder {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.finder-title {
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.finder-intro {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.finder-q {
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 1px solid var(--rule-soft);
  min-width: 0;
}

.finder-q legend {
  float: left;
  width: 100%;
  margin-bottom: 0.75rem;
}

.finder-q legend + * {
  clear: left;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.choice label {
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0 0.875rem 0 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.choice label:hover {
  border-color: var(--ink);
}

.choice label:active,
.devis-option:active,
.faq-q:active {
  transform: scale(0.985);
}

.choice input:focus-visible + label {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.choice input:checked + label {
  border-color: var(--ink);
  background-color: #fff;
}

.choice .tickbox {
  width: 1rem;
  height: 1rem;
}

.choice .pen {
  stroke-dashoffset: 1.02;
}

.choice input:checked + label .pen {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s var(--ease-pen);
}

.finder-verdict {
  position: relative;
  margin-top: 1.5rem;
  padding: 1.125rem 1.125rem 1.25rem;
  border: 1px dashed var(--dash);
  background-color: var(--paper);
  /* Ramené à l'écran sur téléphone : ni sous l'en-tête (déjà réservé par le
     scroll-padding de la page), ni sous la barre du bas */
  scroll-margin-top: 1rem;
  scroll-margin-bottom: 5.25rem;
}

/* Sur téléphone et tablette, la liste est loin : le conseil montre tout de
   suite la photo et les lignes de devis de la solution, et le stylo l'entoure. */
.verdict-media {
  float: right;
  width: 5.5rem;
  margin: 0.125rem 0 0.5rem 0.875rem;
  overflow: hidden;
  background-color: var(--media);
  aspect-ratio: 4 / 3;
}

.verdict-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.verdict-facts {
  clear: both;
  margin-top: 0.875rem;
}

.verdict-media:empty,
.verdict-facts:empty {
  display: none;
}

.verdict-ring {
  position: absolute;
  top: -0.875rem;
  left: -1rem;
  width: calc(100% + 2rem);
  height: calc(100% + 1.75rem);
  display: block;
  overflow: visible;
  pointer-events: none;
}

.verdict-ring .pen {
  stroke-width: 3.2;
  stroke-dashoffset: 1.02;
}

.finder-verdict.is-circled .verdict-ring .pen {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s var(--ease-pen);
}

/* Sur téléphone, le conseil reste compact : il doit tenir dans l'écran avec son bouton */
@media (max-width: 1023.98px) {
  .finder-verdict {
    padding: 0.875rem 1rem 1rem;
  }

  .finder-verdict-name {
    font-size: 1.3125rem;
  }

  .verdict-media {
    width: 5rem;
  }

  .verdict-facts {
    margin-top: 0.625rem;
  }

  .verdict-actions {
    margin-top: 0.875rem;
  }
}

/* Écran court (iPhone SE) : sans la photo, le conseil tient avec son bouton */
@media (max-width: 1023.98px) and (max-height: 600px) {
  .verdict-media {
    display: none;
  }
}

/* Sur ordinateur, la liste est à côté : c'est la fiche qui est entourée */
@media (min-width: 1024px) {
  .verdict-media,
  .verdict-facts,
  .verdict-ring {
    display: none;
  }
}

.finder-verdict-empty {
  font-size: 0.9375rem;
  color: var(--muted);
}

.verdict-prefix {
  font-stretch: 100%;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--ink-2);
}

.finder-verdict-name {
  margin-top: 0;
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.finder-verdict-why {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.verdict-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}

/* Liste des solutions : fiches à photo, entourées quand elles sont retenues */
.sol-list {
  border-top: 1.5px solid var(--ink);
}

.sol {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 640px) {
  .sol {
    grid-template-columns: 11rem minmax(0, 1fr) auto;
    gap: 1.5rem 2rem;
    align-items: center;
    padding: 1.5rem 0;
  }
}

/* iPhone : photo et titre côte à côte, lignes de devis et case « Choisir » sur
   toute la largeur de la fiche, pour que chaque ligne tienne sur une seule ligne. */
@media (max-width: 639px) {
  .sol {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    grid-template-areas:
      "media head"
      "media desc"
      "facts facts"
      "pick pick";
    gap: 0.25rem 1rem;
    align-items: start;
  }

  .sol-body {
    display: contents;
  }

  .sol-media {
    grid-area: media;
  }

  .sol-body > .t-h3 {
    grid-area: head;
    align-self: end;
  }

  .sol-desc {
    grid-area: desc;
  }

  .sol .devis--sm {
    grid-area: facts;
  }

  .sol .sol-pick {
    grid-area: pick;
    grid-column: 1 / -1;
    margin-top: 0.25rem;
  }
}

.sol-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background-color: var(--media);
  aspect-ratio: 4 / 3;
}

.sol-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .sol:hover .sol-media img {
    transform: scale(1.07);
  }
}

.sol-desc {
  margin-top: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.sol-pick {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

@media (min-width: 640px) {
  .sol-pick {
    grid-column: 3;
  }
}

.sol-pick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.sol-pick label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.sol-pick label:hover .tickbox {
  border-color: var(--red);
}

.sol-pick input:focus-visible + label {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.sol-pick .pen {
  stroke-dashoffset: 1.02;
}

.sol-pick input:checked + label .pen {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s var(--ease-pen);
}

/* Anneau du stylo autour de la fiche retenue */
.sol-ring {
  position: absolute;
  left: -1.5rem;
  top: -0.25rem;
  width: calc(100% + 3rem);
  height: calc(100% + 0.5rem);
  display: block;
  overflow: visible;
  pointer-events: none;
}

.sol-ring .pen {
  stroke-width: 3.2;
  stroke-dashoffset: 1.02;
}

.sol-ring .pen-dust,
.verdict-ring .pen-dust {
  stroke-width: 1.5;
  opacity: 0.6;
}

.sol.is-picked .sol-ring .pen {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s var(--ease-pen);
}

/* Sur téléphone et tablette, on ne montre que le questionnaire : la solution
   n'apparaît, entourée, qu'une fois les réponses cochées (voir le conseil). */
@media (max-width: 1023.98px) {
  .sol-list {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   MARQUES : la liste des fabricants, en toutes lettres
   -------------------------------------------------------------------------- */

.brands-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .brands-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 4rem;
    align-items: start;
  }

  /* Même règle que .split, pour une colonne de 4/12 : 15 % d'elle, la taille
     d'un titre de .split à la même largeur d'écran (« installateur. » sortait
     de 30 px à 1024, E0928-118). */
  .brands-grid .sec-head {
    container-type: inline-size;
  }

  .brands-grid .sec-head .t-h2 {
    font-size: min(clamp(2rem, 1.3rem + 2.9vw, 3.75rem), 15cqi);
  }
}

.brands-grid .sec-head {
  margin-bottom: 0;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.2em;
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.1rem + 2.7vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-list li {
  display: inline-flex;
  align-items: baseline;
}

.brand-list li:not(:last-child)::after {
  content: "/";
  margin-left: 0.2em;
  font-weight: 400;
  color: var(--slash);
}

/* Les logos des marques, en couleurs d'origine (choix du propriétaire, 2026-09-29) :
   une grille réglée comme un tableau du bon, chaque logo centré dans sa case, à une
   hauteur commune pour qu'aucun ne crie plus fort que les autres. */
.brand-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.brand-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem 1.25rem;
  background-color: #fff;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.brand-logos img {
  display: block;
  width: auto;
  height: calc(var(--logo-h, 1.75rem) * 0.85);
  max-width: 100%;
  object-fit: contain;
}

.brands-names {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46rem;
}

/* Pages marques (2026-10-27) : « Quelle … choisir ? », un besoin par ligne ; la photo du
   modèle (photo du fabricant) à droite du titre quand on l'a */
.qa-item:has(> .besoin-photo) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  grid-template-rows: auto 1fr;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  align-items: start;
}

.qa-item > .besoin-photo {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 6.5rem;
  margin: 0;
}

.qa-item:has(> .besoin-photo) > h3 {
  grid-column: 1;
  grid-row: 1;
}

.qa-item:has(> .besoin-photo) > p {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
}

.besoin-photo img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--rule-soft);
}

@media (min-width: 640px) {
  .qa-item:has(> .besoin-photo) {
    grid-template-columns: minmax(0, 1fr) 8.5rem;
  }

  .qa-item > .besoin-photo {
    width: 8.5rem;
  }
}

/* Téléphone : la vignette flotte à droite, le texte reprend toute la largeur dessous */
@media (max-width: 639.98px) {
  .qa-item:has(> .besoin-photo) {
    display: flow-root;
  }

  .qa-item > .besoin-photo {
    float: right;
    width: 6rem;
    margin: 0 0 0.5rem 1rem;
  }

  .qa-item:has(> .besoin-photo) > p {
    margin-top: 0.625rem;
  }
}

/* Sous la liste : l'aide au choix, puis le bouton de devis au nom de la marque */
.besoins-cta {
  margin-top: 1.75rem;
}

.besoins-cta p {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: var(--read);
  color: var(--ink);
}

/* Pages solutions et installation : la ligne de liens vers les pages marques */
.ligne-marques {
  max-width: var(--measure);
  margin-top: 1.75rem;
  font-size: var(--read);
  line-height: 1.6;
  color: var(--ink-2);
}

/* Pages marques : les autres marques, sur une ligne avant le dernier appel */
.autres-marques {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

.autres-marques .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
}

.autres-marques ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Une marque dont le logo manque : son nom, en capitales du bon, dans sa case */
/* Une marque qui a sa page (page Marques, 2026-10-27) : toute la case est le lien. */
.brand-logos li:has(.brand-logo-link) {
  position: relative;
  transition: background-color 0.15s;
}

.brand-logos li:has(.brand-logo-link):hover {
  background-color: var(--paper-2);
}

.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-logo-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.brand-logo-link:focus-visible {
  outline: none;
}

.brand-logo-link:focus-visible::after {
  outline: 2px solid var(--red);
  outline-offset: -4px;
}

.brand-logo-text {
  font-family: var(--font-sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (max-width: 399.98px) {
  .brand-logos li {
    padding-inline: 0.75rem;
  }
}

@media (min-width: 768px) {
  .brand-logos {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .brand-logos--page li {
    padding-inline: 0.875rem;
  }

  .brand-logos--page img {
    height: calc(var(--logo-h, 1.75rem) * 0.8);
  }

  .brand-logos li {
    min-height: 6.5rem;
  }

  .brand-logos img {
    height: calc(var(--logo-h, 1.75rem) * 1.15);
  }
}

.brands-foot {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-weight: 600;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   ACCOMPAGNEMENT : le déroulé de l'intervention
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: none;
  border-top: 1.5px solid var(--ink);
}

.step {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}

.step-num {
  padding-top: 0.2rem;
  font-stretch: 75%;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.step-body {
  min-width: 0;
}

.step-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-lead {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.checklist {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.125rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

@media (min-width: 1024px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-bottom: 1px solid var(--rule);
  }

  .step {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem 2rem;
    border-bottom: 0;
    border-left: 1px solid var(--rule);
  }

  .step:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .step:last-child {
    padding-right: 0;
  }

  .step-num {
    padding-top: 0;
    margin-bottom: 1rem;
  }
}

/* --------------------------------------------------------------------------
   HISTOIRE : la maison DRAY
   -------------------------------------------------------------------------- */

.store-print img {
  aspect-ratio: 4 / 3;
  object-position: 50% 42%;
}

.store-cap {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.story-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 5rem;
    align-items: start;
  }
}

.story-grid .fiche {
  margin-top: 2.25rem;
}

.story-grid .t-body {
  margin-top: 1.25rem;
  max-width: 36em;
}

/* Fiche entreprise : libellé à gauche, valeur à droite, comme un formulaire */
.fiche {
  border-top: 1.5px solid var(--ink);
}

.fiche div {
  display: grid;
  grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.fiche dt {
  padding-top: 0.2rem;
}

.fiche dd {
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* Téléphone : 16 px de plus pour la valeur (« Plusieurs magasins en Île-de-France ») */
@media (max-width: 479.98px) {
  .fiche:not(.fiche--text) div {
    grid-template-columns: minmax(0, 6rem) minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   EXEMPLES TYPES (section #exemples)
   Une mosaïque de trois photos visibles d'un seul regard : la grande à gauche,
   à la hauteur exacte des deux autres empilées à droite. Chaque photo ne porte
   que le nom du lieu, en petit au-dessus d'elle. Les figures passent en
   `display: contents` : noms et photos se rangent dans la même grille.
   -------------------------------------------------------------------------- */

.examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "l1 l2"
    "p1 p2"
    "p1 l3"
    "p1 p3"
    "note note";
  column-gap: 0.625rem;
}

.example {
  display: contents;
}

.example--lead .example-cap { grid-area: l1; }
.example--lead .example-print { grid-area: p1; }
.example:nth-child(2) .example-cap { grid-area: l2; }
.example:nth-child(2) .example-print { grid-area: p2; }
.example:nth-child(3) .example-print { grid-area: p3; }

.example:nth-child(3) .example-cap {
  grid-area: l3;
  margin-top: 0.875rem;
}

/* Le nom du lieu : un libellé du bon, rien de plus */
.example-cap {
  margin-bottom: 0.5rem;
  color: var(--ink-2);
}

@media (max-width: 479.98px) {
  .example-cap {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }
}

.example-print {
  position: relative;
  overflow: hidden;
  background-color: var(--media);
  aspect-ratio: 16 / 10;
}

/* Sans taille propre, la grande photo s'étire sur les trois rangées de
   droite : son bas tombe au pixel sur celui de la dernière petite. */
.example--lead .example-print {
  aspect-ratio: auto;
}

.example--lead .example-print img {
  position: absolute;
  inset: 0;
  object-position: 62% 50%;
}

.examples-note {
  grid-area: note;
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .examples {
    column-gap: 1.25rem;
  }

  .example:nth-child(3) .example-cap {
    margin-top: 1.25rem;
  }

  .examples-note {
    margin-top: 2rem;
  }
}

/* Ordinateur : la grande photo prend les deux tiers et passe en largeur ;
   la mosaïque tient dans l'écran avec son titre. */
@media (min-width: 1024px) {
  .examples {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: 1.5rem;
  }

  .example:nth-child(3) .example-cap {
    margin-top: 1.5rem;
  }
}

.example-print img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .example:hover .example-print img {
    transform: scale(1.03);
  }
}

.examples-foot {
  font-size: 1.5rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   FAQ : questions et réponses, comme au dos du bon
   -------------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 5rem;
    align-items: start;
  }

  /* Le titre suit la largeur de sa colonne (5/12 de la grille) : 10,5 % d'elle,
     au plus la taille de .t-h2. Un mot long (« Réglementation. ») tient, et
     « Vos questions, nos réponses. » ne s'empile plus en colonne de mots isolés
     (E0927-31). Sans unités de conteneur, la taille de .t-h2 reste. */
  .faq-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    container-type: inline-size;
  }

  .faq-aside .t-h2 {
    font-size: min(clamp(2rem, 1.3rem + 2.9vw, 3.75rem), 10.5cqi);
  }
}

.faq-aside .sec-head {
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  .faq-aside {
    display: contents;
  }

  .faq-grid > .faq-aside .faq-help {
    order: 2;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

@media (min-width: 1024px) {
  .faq-aside .t-h2 {
    font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
  }
}

/* /faq/ : les thèmes se suivent dans un même bloc, --part entre eux, sans
   réglure ni fond alterné. Le grand air (--section) reste pour les vrais
   changements de bloc ; autour d'une ou deux questions, il vidait la page. */
.page-faq .section--sunken[id^="theme-"] {
  background-color: transparent;
}

.page-faq .section[id^="theme-"]:has(+ .section[id^="theme-"]) {
  padding-bottom: var(--part);
}

.page-faq .section[id^="theme-"] + .section[id^="theme-"] {
  padding-top: 0;
  border-top: 0;
}

.faq-note {
  margin-top: 1.75rem;
  font-size: 1.875rem;
  color: var(--ink);
}

.faq-help {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.faq-help p {
  color: var(--ink-2);
}

.faq-help .hero-actions {
  margin-top: 1rem;
}

/* Même respiration qu'avant, mais le retrait appartient à la ligne et à la
   liste : aucun contenu ne touche un filet. */
.faq-list {
  padding-top: 0.5rem;
  border-top: 1.5px solid var(--ink);
}

.faq-item {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.faq-item:first-child .faq-q {
  padding-top: 0.875rem;
}

.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.375rem 0 0.875rem;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
}

@media (min-width: 640px) {
  .faq-q {
    font-size: 1.1875rem;
  }
}

.faq-q:hover {
  color: var(--ink-2);
}

/* Case plus / moins : le trait vertical disparaît à l'ouverture */
.faq-sign {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  border: 1.5px solid var(--ink);
  border-radius: 1px;
}

.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.625rem;
  height: 1.5px;
  background-color: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out), background-color 0.2s ease;
}

.faq-sign::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.svc-q[aria-expanded="true"] .faq-sign,
.faq-q[aria-expanded="true"] .faq-sign {
  border-color: var(--red);
}

.svc-q[aria-expanded="true"] .faq-sign::before,
.svc-q[aria-expanded="true"] .faq-sign::after,
.faq-q[aria-expanded="true"] .faq-sign::before,
.faq-q[aria-expanded="true"] .faq-sign::after {
  background-color: var(--red);
}

.svc-q[aria-expanded="true"] .faq-sign::after,
.faq-q[aria-expanded="true"] .faq-sign::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Sans script, les réponses restent ouvertes : le repli n'existe que sous .js,
   là où le bouton sait l'ouvrir (même règle que le pied de page, E0928-04). */
.faq-a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

.js .faq-a {
  grid-template-rows: 0fr;
}

html:not(.js) .faq-sign {
  display: none;
}

html:not(.js) .faq-q {
  cursor: default;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  padding: 0 2.5rem 1rem 0;
  max-width: var(--measure);
  font-size: var(--read);
  color: var(--ink-2);
  line-height: 1.65;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

/* --------------------------------------------------------------------------
   PROJET : le bon pour accord, rempli sur la copie jaune
   -------------------------------------------------------------------------- */

.band-grid {
  display: grid;
  gap: 2.75rem;
}

@media (min-width: 1024px) {
  .band-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 5rem;
    align-items: start;
  }
}

.section--projet .t-lead {
  margin-top: 1.25rem;
}

.band-list {
  display: grid;
  gap: 0.875rem;
  margin-top: 2rem;
}

.band-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.band-call {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--ink);
}

.band-call p {
  font-size: 0.9375rem;
}

.band-call .tel {
  font-size: 1.5rem;
  font-stretch: 112%;
  font-weight: 800;
}

/* La copie jaune : c'est la feuille que le visiteur remplit. Le jaune du
   parcours (boutons « Demander un devis ») mène ici, et nulle part ailleurs. */
.form-sheet {
  position: relative;
  background-color: var(--yellow);
  border: 1px solid rgba(17, 24, 39, 0.18);
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: 0 30px 50px -34px rgba(17, 24, 39, 0.45);
  --sheet-rule: rgba(17, 24, 39, 0.14);
}

@media (min-width: 640px) {
  .form-sheet {
    padding: 2.25rem 2.25rem 2.5rem;
  }
}

.form-sheet-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1.5px solid var(--ink);
}

.form-title {
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.form-step-count {
  margin-top: 0.5rem;
  color: var(--ink-2);
}

.form-stamp {
  flex: none;
  width: 6.25rem;
  margin-bottom: -0.25rem;
  --stamp-rot: 6deg;
}

.form-steps-track {
  display: flex;
  gap: 0.375rem;
  margin-top: 1rem;
}

.form-steps-track span {
  height: 3px;
  flex: 1;
  background-color: rgba(17, 24, 39, 0.16);
  transition: background-color 0.3s ease;
}

/* Récapitulatif en lignes de devis, rempli au fil des étapes */
.form-recap {
  margin-top: 1rem;
  border-top-color: var(--sheet-rule);
}

.form-sheet .devis-row {
  border-bottom-color: var(--sheet-rule);
}

.form-sheet .devis-row dt {
  color: var(--ink);
}

.form-sheet .devis-row dt::after {
  border-bottom-color: rgba(17, 24, 39, 0.3);
}

.form-recap dd.is-empty {
  font-weight: 500;
  color: var(--ink-2);
}

.form-steps-track span.is-done {
  background-color: var(--ink);
}

.devis-step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.devis-step legend {
  float: left;
  width: 100%;
  margin: 1.5rem 0 1rem;
}

.devis-step legend + * {
  clear: left;
}

.fields {
  display: grid;
  gap: 1.125rem;
}

@media (min-width: 640px) {
  .fields--two {
    grid-template-columns: 1fr 1fr;
  }
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.field-opt {
  margin-left: 0.3rem;
  font-weight: 500;
  color: var(--muted);
}

/* Champ : une ligne de formulaire à remplir, pas une boîte */
.field {
  display: block;
  width: 100%;
  min-height: 3.125rem;
  padding: 0.75rem 0.875rem;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background-color: var(--field);
  font-family: var(--font-sans);
  color: var(--ink);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.field:hover {
  background-color: var(--field-hover);
}

.field:focus {
  background-color: #fff;
  border-bottom-color: var(--red);
}

.field:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.field::placeholder {
  color: var(--placeholder); /* 4,8:1 sur var(--field), mesuré */
}

.field[aria-invalid="true"] {
  border-bottom: 2px solid var(--error);
}

/* Le stylo souligne le libellé du champ à reprendre (le champ est entouré de
   .field-line quand le script lui pose sa coche : E0927-33) */
div:has(> .field[aria-invalid="true"]) > .field-label,
div:has(> .field-line > .field[aria-invalid="true"]) > .field-label {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* La ligne bien remplie (N5) : le technicien coche au bout de la ligne. La
   place de la coche est réservée dès le premier rendu (.js), avant que le
   script n'entoure le champ : rien ne bouge. Coche décorative : la validité
   reste dite par aria-invalid et le message. Sans JS, pas de coche. */
.js .devis-step .field {
  padding-right: 2.5rem;
}

.field-line {
  position: relative;
  display: block;
}

.field-tick {
  position: absolute;
  top: 50%;
  right: 0.625rem;
  width: 1.375rem;
  height: 1.375rem;
  overflow: visible;
  pointer-events: none;
  transform: translateY(-60%);
}

.field-tick .pen {
  stroke-dashoffset: 1.02;
}

.field-line.is-valid .field-tick .pen {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s var(--ease-pen) 0.05s;
}

.field-error {
  display: none;
  align-items: flex-start;
  gap: 0.375rem;
  margin-top: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--error);
}

.field-error.visible {
  display: flex;
}

.field-error svg {
  display: block;
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.1em;
}

/* Récapitulatif d'erreurs : écrit à l'encre rouge sur la feuille, entre deux filets */
.form-summary {
  display: none;
  gap: 0.625rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 0.875rem 0;
  border-top: 1px solid rgba(142, 14, 21, 0.35);
  border-bottom: 1px solid rgba(142, 14, 21, 0.35);
  color: var(--error-on-yellow); /* 7,4:1 sur la copie jaune */
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.form-summary.visible {
  display: flex;
}

.form-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.25rem;
}

.form-summary-list a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  color: var(--error-on-yellow);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Envoi en cours : le bouton reste lisible mais ne répond plus au second clic */
.btn.is-loading {
  cursor: progress;
  opacity: 0.7;
}

.form-summary svg {
  display: block;
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1em;
}

.options {
  display: grid;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .options--two {
    grid-template-columns: 1fr 1fr;
  }
}

.devis-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--paper);
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.devis-option:hover {
  border-color: var(--ink);
}

.devis-option[aria-pressed="true"] {
  border-color: var(--ink);
  background-color: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.devis-option .pen {
  stroke-dashoffset: 1.02;
}

.devis-option[aria-pressed="true"] .pen {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s var(--ease-pen);
}

.devis-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.devis-option-hint {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.step-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.step-actions .btn-primary,
.step-actions .btn-ink {
  flex: 1;
}

.form-legal {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.form-sheet .field-opt {
  color: var(--ink-2);
}

/* Sur la copie jaune, le champ est une ligne à remplir sur un léger voile papier */
.form-sheet .field {
  background-color: rgba(255, 255, 255, 0.62);
}

.form-sheet .field:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.form-sheet .field:focus {
  background-color: #fff;
}

.form-sheet .devis-option {
  background-color: rgba(255, 255, 255, 0.55);
  border-color: rgba(17, 24, 39, 0.24);
}

.form-sheet .devis-option:hover {
  border-color: var(--ink);
}

.form-sheet .devis-option[aria-pressed="true"] {
  background-color: #fff;
  border-color: var(--ink);
}

.form-sheet .devis-option-hint {
  color: var(--ink-2);
}

.form-sheet .btn-line:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

/* « Bon pour accord » : la ligne de signature du bon */
.signature {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.75rem;
}

.signature .t-label {
  flex: none;
  padding-bottom: 0.3rem;
}

.signature-line {
  position: relative;
  flex: 1;
  height: 2.5rem;
  border-bottom: 1.5px solid var(--ink);
}

.signature-hand {
  position: absolute;
  left: 0.5rem;
  bottom: 0.05rem;
  font-size: 1.875rem;
  white-space: nowrap;
  color: var(--ink);
}

.signature--signed {
  margin: 0 0 1.5rem;
}

/* iPhone : le libellé au-dessus, la ligne sur toute la largeur de la copie */
@media (max-width: 639px) {
  .signature {
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
  }

  .signature .t-label {
    width: 100%;
    padding-bottom: 0;
  }

  .signature-hand {
    font-size: 1.5rem;
  }
}

.success {
  padding: 1.75rem 0 0.5rem;
}

/* iPhone : la ligne de signature prend toute la largeur, le tampon vient après
   le message, calé à droite. Il ne recouvre jamais « Bon pour accord ». */
.success {
  display: flex;
  flex-direction: column;
}

.success-stamp {
  order: 5;
  align-self: flex-end;
  width: 8rem;
  margin: 1.25rem -0.25rem 0 0;
  --stamp-rot: -6deg;
}

@media (min-width: 640px) {
  .success {
    display: block;
  }

  .success-stamp {
    float: right;
    width: 8.5rem;
    margin: -0.5rem -0.5rem 0.5rem 1rem;
  }
}

.success .t-body {
  margin-top: 0.75rem;
  max-width: 30em;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   PIED DE PAGE : les mentions en bas du bon
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--paper-2);
  border-top: 1px solid var(--rule);
  /* Sous 768px, la barre d'action mobile repasse devant le pied de page :
     la place lui est réservée ici, dans la couleur du pied de page. */
  padding: 4rem 0 calc(2.5rem + 76px + env(safe-area-inset-bottom, 0px));
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 2.5rem;
  }
}

.footer-top {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Quatre groupes de liens (Services, Solutions, Guides, DRAY, plan du
   2026-09-27) : de 1024 à 1279 px, la marque garde sa ligne au-dessus et les
   groupes tiennent sur une rangée ; dès 1280 px, elle reprend sa colonne. */
@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

@media (min-width: 1280px) {
  /* Marque à 1,25fr : les colonnes de liens gagnent 8 px (190 px à 1280),
     « Quelle climatisation choisir ? » tient sur une ligne et les lignes
     restent alignées d'une colonne à l'autre. */
  .footer-top {
    grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: auto;
  }
}

.footer-brand > .logo-mark {
  display: inline-flex;
  min-height: 2.75rem;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
}

.footer-brand p {
  margin-top: 0.875rem;
  max-width: 24rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin-top: 1rem;
}

.footer-contact .tel {
  font-size: 1.0625rem;
}

.footer-accordion-item {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .footer-accordion-item {
    border-bottom: 0;
  }
}

/* Téléphone : les groupes repliés se suivent comme des rangées, sans l'écart
   de grille (sinon le libellé est à 50 px de la réglure du dessus et à 19 px
   de la sienne). Une réglure ouvre la première rangée ; la dernière ferme les
   groupes, et le bas n'en répète pas une seconde (voir .footer-bottom). */
@media (max-width: 767.98px) {
  .footer-top {
    row-gap: 0;
  }

  .footer-brand {
    margin-bottom: 2rem;
  }

  .footer-brand + .footer-accordion-item {
    border-top: 1px solid var(--rule);
  }
}

.footer-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.25rem;
  text-align: left;
  cursor: pointer;
}

@media (min-width: 768px) {
  .footer-accordion-trigger {
    min-height: 0;
    margin-bottom: 1rem;
    cursor: default;
    pointer-events: none;
  }
}

.footer-accordion-chevron {
  display: block;
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  transition: transform 0.25s var(--ease-out);
}

@media (min-width: 768px) {
  .footer-accordion-chevron {
    display: none;
  }
}

.footer-accordion-trigger[aria-expanded="true"] .footer-accordion-chevron {
  transform: rotate(90deg);
  color: var(--red);
}

/* Sans script, les listes restent ouvertes (et les chevrons cachés) : le repli
   n'existe que sous .js, là où le bouton sait l'ouvrir. */
.footer-accordion-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s var(--ease-out);
}

.js .footer-accordion-panel {
  grid-template-rows: 0fr;
}

.js .footer-accordion-trigger[aria-expanded="true"] + .footer-accordion-panel {
  grid-template-rows: 1fr;
}

html:not(.js) .footer-accordion-chevron {
  display: none;
}

html:not(.js) .footer-accordion-trigger {
  cursor: default;
}

@media (min-width: 768px) {
  .footer-accordion-panel {
    grid-template-rows: 1fr !important;
  }
}

.footer-accordion-panel-inner {
  overflow: hidden;
}

.footer-links {
  display: grid;
  gap: 0.125rem;
  padding-bottom: 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Au survol (souris seulement), l'encre reste et le stylo souligne : le rouge
   sur le second feuillet ne ferait que 4,2:1. */
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
  }
}

.footer-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
}

/* Sous 768 px, la réglure du dernier groupe suffit (après la règle de base,
   qui la poserait sinon). */
@media (max-width: 767.98px) {
  .footer-bottom {
    border-top: 0;
    padding-top: 0;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink-2);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .footer-legal a:hover {
    color: var(--ink);
    text-decoration: underline;
  }
}

.fine-print {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   MOBILE : barre d'action, menu
   -------------------------------------------------------------------------- */

.ios-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 0.625rem;
  padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
  background-color: rgba(252, 253, 254, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule);
  transition: transform 0.3s var(--ease-out);
}

.ios-bottom-bar .btn {
  flex: 1;
  min-height: 3rem;
}

.ios-bottom-bar .btn-line svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--red);
}

/* Masquée quand le formulaire est à l'écran : elle ne doit jamais couvrir le champ en cours */
.ios-bottom-bar.is-away {
  transform: translateY(110%);
}

@media (min-width: 768px) {
  .ios-bottom-bar {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  background-color: rgba(17, 24, 39, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* À l'ouverture, visible tout de suite : le script y pose le focus à l'image
   suivante, et un élément encore « hidden » le refuse. La fermeture garde ses
   0,25 s de fondu. */
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s;
}

.mobile-menu-sheet {
  display: flex;
  flex-direction: column;
  width: min(24rem, 100%);
  height: 100%;
  background-color: var(--paper);
  border-left: 1px solid var(--rule);
  /* Pas de marge en bas : le pied collé la porte (zone sûre comprise), pour
     rester au ras de l'écran jusqu'au bout de la liste. */
  padding: 1rem 1.5rem 0;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu-sheet {
  transform: translateX(0);
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.mobile-nav {
  display: grid;
  margin-top: 0.5rem;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--rule-soft);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .mobile-nav a:hover {
    color: var(--red);
  }
}

/* Page en cours (aria-current="page") ou sa rubrique (aria-current="true",
   « Guides » sur un guide) : le trait du stylo sous le mot, comme dans l'en-tête */
.mobile-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* Les quatre solutions, en retrait sous « Quelle climatisation choisir ? » */
.mobile-nav a.mobile-nav-sub {
  min-height: 2.875rem;
  padding-left: 1.25rem;
  font-stretch: 100%;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--ink-2);
}

/* Zone et horaires : une ligne discrète sous la liste */
.mobile-menu-zone {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Pied du panneau : le jumeau de la barre d'action (Appeler, Demander un
   devis), collé en bas de l'écran quelle que soit la longueur de la liste.
   Il déborde des marges du panneau pour en prendre toute la largeur ; une
   ligne à moitié cachée dessous montre que la liste continue. */
.mobile-menu-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 0.625rem;
  margin: auto -1.5rem 0;
  padding: 0.625rem 1rem max(1.5rem, env(safe-area-inset-bottom));
  background-color: rgba(252, 253, 254, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule);
}

.mobile-menu-foot .btn {
  flex: 1;
  min-height: 3rem;
}

.mobile-menu-foot .btn-line svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--red);
}

/* Zones sûres de l'iPhone pour le panneau de menu et la barre d'action */
@supports (padding-right: max(0px, env(safe-area-inset-right))) {
  .mobile-menu-sheet {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }

  .ios-bottom-bar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  /* En paysage, l'encoche peut être à droite : le pied du panneau suit la
     marge droite du panneau et garde ses boutons hors de la zone. */
  .mobile-menu-foot {
    margin-right: calc(-1 * max(1.5rem, env(safe-area-inset-right)));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* ==========================================================================
   PAGES INTÉRIEURES (site en plusieurs pages, 2026-09-25)
   Chaque page est un seul bon : en-tête de feuille (fil d'Ariane et zone),
   titre, réponse courte, lignes de devis, puis quelques sections aérées, et
   toujours la copie jaune au bout. Même papier, mêmes traits, moins par écran.
   ========================================================================== */

/* Fil d'Ariane, écrit dans l'en-tête de la feuille */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.crumbs li + li::before {
  content: "/";
  margin: 0 0.5rem;
  font-weight: 400;
  color: var(--slash);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--ink-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

@media (max-width: 639px) {
  .crumbs {
    font-size: 0.75rem;
    letter-spacing: 0.045em;
  }
}

/* En-tête d'une page intérieure : un titre, la réponse courte, ce qui est compris */
.page-hero {
  position: relative;
  padding-top: 1rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .page-hero {
    padding-top: 2rem;
    padding-bottom: 6rem;
  }
}

.page-hero-grid {
  display: grid;
  gap: 2.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .page-hero-grid {
    margin-top: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .page-hero-grid--photo {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4.5rem;
    align-items: start;
  }

  .page-hero-grid--photo .attach {
    margin-top: 0.5rem;
  }
}

.t-h1 {
  font-family: var(--font-sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2.375rem, 1.3rem + 4.1vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.032em;
  text-wrap: balance;
  color: var(--ink);
}

.page-hero .t-lead {
  margin-top: 1.5rem;
}

.page-hero .devis {
  max-width: 36rem;
  margin-top: 2rem;
}

/* Téléphone : comme sur L'essentiel, la désignation reste sur sa ligne et une
   valeur trop longue passe dessous, à droite (« Obligation légale »). */
@media (max-width: 479.98px) {
  .page-hero .devis-row {
    flex-wrap: wrap;
    gap: 0 0.75rem;
  }

  .page-hero .devis-row dd {
    margin-left: auto;
  }
}

/* Les points de conduite (N3) : dans les lignes de devis de la tête d'une page
   intérieure et dans L'essentiel d'un guide, le technicien remplit le bon
   devant vous. Les points se tirent de la désignation vers la valeur ; le texte
   est là tout de suite. Le script marque la liste (.inkable) et la trace une
   fois à l'écran ; les points ne se cachent que sous .js, dès le premier rendu.
   Jamais l'accueil (pas de .page-hero-copy), jamais la copie jaune. */
.page-hero-copy > .devis .devis-row:nth-child(2),
.essentiel > .devis .devis-row:nth-child(2) { --i: 1; }
.page-hero-copy > .devis .devis-row:nth-child(3),
.essentiel > .devis .devis-row:nth-child(3) { --i: 2; }
.page-hero-copy > .devis .devis-row:nth-child(4),
.essentiel > .devis .devis-row:nth-child(4) { --i: 3; }
.page-hero-copy > .devis .devis-row:nth-child(n + 5),
.essentiel > .devis .devis-row:nth-child(n + 5) { --i: 4; }

.js .page-hero-copy > .devis .devis-row dt::after,
.js .essentiel > .devis .devis-row dt::after {
  clip-path: inset(0 100% 0 0);
}

.js .page-hero-copy > .devis.is-inked .devis-row dt::after,
.js .essentiel > .devis.is-inked .devis-row dt::after {
  clip-path: inset(0);
  transition: clip-path 0.45s var(--ease-pen) calc(0.15s + var(--i, 0) * 90ms);
}

.page-hero .attach-print img {
  aspect-ratio: 4 / 3;
}

@media (min-width: 1024px) {
  .page-hero .attach-note {
    left: -2.5rem;
    bottom: 1.25rem;
    font-size: 1.5rem;
  }
}

/* Petits téléphones (320 px) : « climatisation » tient sur la ligne, les
   boutons longs passent à la ligne plutôt que d'élargir la page. */
@media (max-width: 359.98px) {
  .t-h1 {
    font-size: 2rem;
  }

  .btn {
    white-space: normal;
    text-align: center;
    text-wrap: balance;
  }
}

.page-hero-grid > *,
.cta-grid > *,
.contact-grid > *,
.split > * {
  min-width: 0;
}

/* Le titre de l'accueil garde l'accroche ; la ligne qui suit dit le métier */
.h1-sub {
  display: block;
  margin-top: 1.125rem;
  font-stretch: 100%;
  font-weight: 700;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.hero-h1 .t-display {
  display: block;
}

@media (min-width: 1024px) {
  /* La ligne du métier reste dans la colonne du texte, à gauche de la photo */
  .hero-h1 .h1-sub {
    max-width: 55%;
  }
}

/* Les trois cases de l'en-tête de l'accueil mènent chacune à sa page */
.sheet-nature a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}

.sheet-nature a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

@media (max-width: 639px) {
  .sheet-nature a {
    gap: 0.5rem;
  }
}

/* iPhone : les trois cases tiennent seules sur la ligne ; la zone est dite
   dans le chapô, le bouton de devis reste dans le premier écran. */
@media (max-width: 479.98px) {
  .hero .sheet-zone {
    display: none;
  }

  .hero .sheet-head {
    padding-bottom: 0.25rem;
  }

  /* 16,5 px au lieu de 17,4 : le chapô de l'accueil tient en 3 lignes de 375 à
     430 px au lieu de 4, et « Demander un devis » finit à 651 px dans l'écran
     de 390 × 664 (681 px avant, bouton coupé : E0928-82). */
  .hero .t-lead {
    font-size: 1.03125rem;
  }
}

/* Le tampon se pose sur le filet des lignes de devis, jamais sur le chapô */
@media (max-width: 639.98px) {
  .hero .devis-wrap {
    margin-top: 2.875rem;
  }
}

/* Les marques, sous la maison DRAY sur l'accueil */
.home-brands {
  margin-top: 4.5rem;
  padding-top: 1.75rem;
  border-top: 1.5px solid var(--ink);
}

.home-brands .brand-list {
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .home-brands {
    margin-top: 6rem;
  }
}

/* Une section étroite : titre et texte à la largeur de lecture */
.sec-head--center {
  margin-inline: auto;
  text-align: left;
}

.sec-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  margin-top: 2.25rem;
}

/* Deux colonnes : le titre à gauche, collé au défilement, le texte à droite.
   Empilé, le même écart titre → contenu que les autres sections (2,75rem). */
.split {
  display: grid;
  gap: 2.75rem;
}

.split > .sec-head {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 5rem;
    align-items: start;
  }

  /* Le titre suit la largeur de sa colonne (5/12) : 12,5 % d'elle au plus,
     sinon la taille de .t-h2. De 1024 à 1250 px, « climatisation ? » (7,7 fois
     la taille du texte, insécable) sortait de 44 px dans la marge entre les
     colonnes ; dès 1350 px, rien ne change (E0928-118, même règle que l'aparté
     des questions, E0927-31). Sans unités de conteneur, la taille de .t-h2 reste. */
  .split > .sec-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    container-type: inline-size;
  }

  .split > .sec-head .t-h2 {
    font-size: min(clamp(2rem, 1.3rem + 2.9vw, 3.75rem), 12.5cqi);
  }
}

/* Texte courant : questions en titre, réponse d'abord, sources au bout */
.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1rem;
}

/* Un croquis en tête de page, posé comme un tirage, avec sa légende en texte */
.attach--croquis .store-cap {
  margin-top: 0.75rem;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Téléphone : la photo de tête des pages intérieures en 16/10, le contenu arrive plus tôt */
@media (max-width: 639.98px) {
  .page-hero .attach:not(.attach--croquis):not(.store) .attach-print img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 35%;
  }
}

/* Légende d'honnêteté sous une scène de technicien */
.photo-cap {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Page introuvable : le croquis en grand, à côté du texte */
.croquis-404 .croquis {
  width: 9rem;
  margin: 2rem 0 0;
}

@media (min-width: 1024px) {
  .croquis-404 {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .croquis-404 .croquis {
    width: 20rem;
    margin: 0;
  }
}

/* Croquis sous le chapô de « Ce qui fait varier le devis » */
.sec-head > .devis-croquis {
  margin-top: 2rem;
  max-width: 30rem;
}

/* Croquis sous « Comment ça marche ? » : posé sur la feuille, sans cadre */
.prose > .how-croquis {
  margin-top: 2rem;
}

.how-croquis img {
  display: block;
  width: 100%;
  height: auto;
  /* Le papier du croquis se fond dans la section, même grise */
  mix-blend-mode: multiply;
}

.prose p,
.prose li {
  font-size: var(--read);
  color: var(--ink-2);
  line-height: 1.65;
  text-wrap: pretty;
}

.prose strong {
  font-weight: 700;
  color: var(--ink);
}

.prose a:not(.btn):not(.link-act):not(.tel) {
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s ease;
}

.prose a:not(.btn):not(.link-act):not(.tel):hover {
  text-decoration-color: var(--red);
}

/* Questions posées en clair, chacune suivie de sa réponse, toujours visibles */
.qa {
  border-top: 1.5px solid var(--ink);
}

.qa-item {
  padding: 1.5rem 0 1.625rem;
  border-bottom: 1px solid var(--rule);
}

.qa-item h3,
.symptom h3 {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
}

@media (min-width: 640px) {
  .qa-item h3,
  .symptom h3 {
    font-size: 1.1875rem;
  }
}

.qa-item > * + * {
  margin-top: 0.625rem;
}

.qa-item p,
.qa-item li {
  font-size: var(--read);
  color: var(--ink-2);
  line-height: 1.65;
  text-wrap: pretty;
}

.qa-item > p,
.qa-item > ul,
.qa-item > ol {
  max-width: var(--measure);
}

/* Liste cochée : serrée dans l'item, espacée entre les items */
.qa-item .checklist {
  gap: 0.75rem;
  margin-top: 0.875rem;
}

.qa-item .checklist li {
  line-height: 1.5;
  color: var(--ink-2);
}

.qa-item a:not(.btn):not(.link-act) {
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.qa-item a:not(.btn):not(.link-act):hover {
  text-decoration-color: var(--red);
}

/* Les trois services de l'accueil : le déroulé de l'intervention, à trois colonnes */
@media (min-width: 1024px) {
  .steps--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps--three .step {
    padding: 2rem 2.25rem 2.25rem;
  }

  .steps--three .step:first-child {
    padding-left: 0;
  }

  .steps--three .step:last-child {
    padding-right: 0;
  }

  .steps--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   PRÉSENTATIONS VARIÉES des étapes et des suites d'informations (2026-09-30,
   demande du propriétaire) : une par page, pour que la lecture ne se répète
   pas. Tout le texte reste dans le HTML ; sans JS, tout est visible et ouvert.
   -------------------------------------------------------------------------- */

/* 1. Cartes à faire défiler sur le côté (téléphone et tablette) : une étape par
      carte, la suivante dépasse à droite pour inviter au geste. */
.slide-nav {
  display: none;
}

@media (max-width: 1023.98px) {
  .steps--slide {
    display: flex;
    gap: 0.75rem;
    margin-right: calc(-1 * var(--gutter-r));
    padding: 0 var(--gutter-r) 0.25rem 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-top: 0;
  }

  .steps--slide::-webkit-scrollbar {
    display: none;
  }

  .steps--slide .step {
    flex: 0 0 min(82%, 21rem);
    display: block;
    padding: 1.25rem 1.125rem 1.5rem;
    background-color: #fff;
    border: 1px solid var(--rule);
    border-top: 1.5px solid var(--ink);
    scroll-snap-align: start;
  }

  .steps--slide .step-num {
    display: block;
    margin-bottom: 0.875rem;
    padding-top: 0;
  }

  .steps--slide:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
  }

  /* Le repère posé par le script : étape en cours, et deux boutons */
  .slide-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .slide-count {
    margin-right: auto;
    white-space: nowrap;
    font-stretch: 75%;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
  }

  .slide-dots {
    display: flex;
    gap: 0.25rem;
  }

  .slide-dots span {
    width: 1.125rem;
    height: 3px;
    background-color: var(--rule);
    transition: background-color 0.2s ease;
  }

  .slide-dots span.is-on {
    background-color: var(--ink);
  }

  @media (max-width: 359.98px) {
    .slide-dots span {
      width: 0.625rem;
    }
  }

  .slide-btn {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: inset 0 0 0 1.5px var(--ink);
    border-radius: 2px;
    color: var(--ink);
    cursor: pointer;
    touch-action: manipulation;
  }

  .slide-btn svg {
    width: 0.625rem;
    height: 0.75rem;
    fill: currentColor;
  }

  .slide-btn--prev svg {
    transform: rotate(180deg);
  }

  .slide-btn:disabled {
    box-shadow: inset 0 0 0 1.5px var(--rule);
    color: var(--slash);
    cursor: default;
  }

  .slide-btn:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
  }
}

/* 2. Cartes encadrées : chaque étape est une fiche posée sur la feuille */
.steps--cards {
  display: grid;
  gap: 0.875rem;
  border-top: 0;
}

.steps--cards .step {
  padding: 1.25rem 1.125rem 1.5rem;
  background-color: #fff;
  border: 1px solid var(--rule);
  border-top: 1.5px solid var(--ink);
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .steps--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .steps--cards {
    gap: 1.25rem;
    border-bottom: 0;
  }

  .steps--cards .step,
  .steps--cards .step:first-child,
  .steps--cards .step:last-child {
    padding: 1.5rem 1.375rem 1.75rem;
    border: 1px solid var(--rule);
    border-top: 1.5px solid var(--ink);
  }
}

/* 3. Ligne du temps (téléphone et tablette) : des cases numérotées reliées par
      un filet d'encre, qui se trace quand l'étape arrive à l'écran. */
@media (max-width: 1023.98px) {
  .steps--line {
    border-top: 0;
  }

  .steps--line .step {
    position: relative;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    padding: 0 0 2rem;
    border-bottom: 0;
  }

  .steps--line .step:last-child {
    padding-bottom: 0;
  }

  .steps--line .step-num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    background-color: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    color: var(--ink);
  }

  .steps--line .step::before {
    content: "";
    position: absolute;
    top: 2.25rem;
    bottom: 0;
    left: calc(1.125rem - 0.75px);
    width: 1.5px;
    background-color: var(--ink);
  }

  .steps--line .step:last-child::before {
    display: none;
  }

  .steps--line .step-body {
    padding-top: 0.25rem;
  }

  /* La case numérotée tient lieu de case cochée */
  .steps--line .step-title-row .tickbox {
    display: none;
  }

  .steps--line .reveal::before {
    clip-path: inset(0 0 100% 0);
  }

  .steps--line .reveal.is-in::before {
    clip-path: inset(0);
    transition: clip-path 0.5s var(--ease-out) 0.25s;
  }
}

/* 4. Plus / moins : un titre qui ouvre son détail (pannes, sur téléphone).
      Replié seulement quand le script est prêt (.is-ready). */
.fold-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.fold-q:disabled {
  min-height: 0;
  color: inherit;
  cursor: default;
}

/* Pas de signe plus/moins tant que le détail ne se replie pas (grand écran, sans JS) */
.fold-q:disabled .faq-sign,
[data-fold]:not(.is-ready) .fold-q .faq-sign {
  display: none;
}

[data-fold]:not(.is-ready) .fold-q {
  cursor: default;
}

.fold-q:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.fold-q[aria-expanded="true"] .faq-sign {
  border-color: var(--red);
}

.fold-q[aria-expanded="true"] .faq-sign::before,
.fold-q[aria-expanded="true"] .faq-sign::after {
  background-color: var(--red);
}

.fold-q[aria-expanded="true"] .faq-sign::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.fold-a {
  display: grid;
  grid-template-rows: 1fr;
}

.fold-a > div {
  min-height: 0;
  overflow: hidden;
}

[data-fold].is-ready .fold-a {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out);
}

[data-fold].is-ready.is-open .fold-a {
  grid-template-rows: 1fr;
}

[data-fold].is-ready {
  position: relative;
}

/* Toute la ligne ouvre le détail ; le détail ouvert repasse au-dessus */
[data-fold].is-ready .fold-q::after {
  content: "";
  position: absolute;
  inset: 0;
}

[data-fold].is-ready .fold-a {
  position: relative;
  z-index: 1;
}

/* 5. Apparition à l'entrée à l'écran : par la gauche (étapes, pannes) ou par le
      bas (fiches). Posée par le script, seulement sous le premier écran : sans
      JS, en mouvement réduit et à l'impression, rien n'est caché. */
.reveal {
  opacity: 0;
  transform: translate3d(-1rem, 0, 0);
}

.reveal--up {
  transform: translate3d(0, 0.875rem, 0);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.32s ease-out var(--reveal-delay, 0s),
    transform 0.32s var(--ease-out) var(--reveal-delay, 0s);
}

@media print {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.step .t-h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin: -0.6875rem 0;
  text-decoration: none;
}

.step .t-h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

/* Lien d'une carte d'étape : en bloc en ligne pour que sa marge compte (un lien
   .link-act reste « inline » ailleurs), et un peu d'air sous la phrase. */
.step-more {
  display: inline-block;
  margin-top: 0.75rem;
}

.steps--big .t-h3 {
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* Les trois métiers de l'accueil : des cartes sobres (symbole, titre, une
   phrase) qui s'ouvrent au clic sur leurs coches et leur lien. Toute la carte
   est cliquable ; le détail ouvert passe au-dessus pour que son lien réponde. */
.svc-cards {
  display: grid;
  border-top: 1.5px solid var(--ink);
}

.svc {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 1.125rem;
  align-items: start;
  /* Une carte voisine qui s'ouvre ne doit pas étirer les rangées des autres */
  align-content: start;
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--rule);
}

.svc > .croquis {
  grid-row: 1 / span 2;
  width: 4.5rem;
  margin-top: 0.25rem;
}

.svc-name,
.svc-lead,
.svc-a {
  grid-column: 2;
}

@media (max-width: 399.98px) {
  .svc > .croquis {
    grid-row: 1;
    width: 3.75rem;
  }

  .svc-lead,
  .svc-a {
    grid-column: 1 / -1;
  }

  .svc-lead {
    margin-top: 0.5rem;
  }
}

.svc-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

/* Toute la carte ouvre le détail */
.svc-q::after {
  content: "";
  position: absolute;
  inset: 0;
}

.svc-q:focus-visible {
  outline: none;
}

.svc:has(.svc-q:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.svc-lead {
  margin-top: 0.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.svc-a {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr;
}

.svc.is-ready .svc-a {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out);
}

.svc.is-ready.is-open .svc-a {
  grid-template-rows: 1fr;
}

.svc-a > div {
  min-height: 0;
  overflow: hidden;
}

.svc-a .checklist {
  margin-top: 1rem;
}

.svc-a .link-act {
  margin-top: 0.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .svc:hover .svc-label {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
  }
}

@media (min-width: 1024px) {
  .svc-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--rule);
  }

  .svc {
    grid-template-columns: minmax(0, 1fr);
    padding: 2rem 1.75rem 2.25rem;
    border-bottom: 0;
    border-left: 1px solid var(--rule);
  }

  .svc:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .svc:last-child {
    padding-right: 0;
  }

  .svc > .croquis {
    grid-row: auto;
    width: 6.5rem;
    margin: 0 0 1.25rem;
  }

  .svc-name,
  .svc-lead,
  .svc-a {
    grid-column: 1;
  }

  .svc-q {
    font-size: 1.5rem;
  }
}

/* Fiches solutions en liens : photo, nom, une ligne, pour qui */
.sol-cards {
  display: grid;
  border-top: 1.5px solid var(--ink);
}

.sol-card {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.sol-card-media {
  grid-row: 1 / span 3;
  margin: 0;
  overflow: hidden;
  background-color: var(--media);
  aspect-ratio: 4 / 3;
  align-self: start;
}

/* Visuel produit détouré : posé sur la feuille, sans le fond gris d'attente */
.sol-card-media:has(.produit-img),
.sol-media:has(.produit-img) {
  background-color: transparent;
}

.sol-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.sol-card-name {
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.sol-card-link {
  text-decoration: none;
}

/* Toute la fiche est cliquable, le lien reste le nom */
.sol-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sol-card-link:focus-visible {
  outline: none;
}

.sol-card:has(.sol-card-link:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.sol-card-desc {
  margin-top: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.sol-card-for {
  margin-top: 0.5rem;
  color: var(--ink-2);
}

@media (hover: hover) and (pointer: fine) {
  .sol-card:hover .sol-card-media img {
    transform: scale(1.05);
  }

  .sol-card:hover .sol-card-name {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
  }
}

/* Téléphone : les quatre fiches en 2 × 2 (demande du propriétaire, 2026-09-29).
   Le visuel, le nom et « pour qui » ; la description, trop étroite sur une
   demi-largeur d'iPhone, se lit sur la page de chaque solution. */
@media (max-width: 639.98px) {
  .sol-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.875rem;
  }

  .sol-card {
    display: flex;
    flex-direction: column;
    padding: 1rem 0 1.25rem;
  }

  .sol-card-media {
    width: 100%;
    margin-bottom: 0.625rem;
  }

  .sol-card-name {
    min-height: 2.4em;
    font-size: 1.0625rem;
  }

  .sol-card-desc {
    display: none;
  }

  .sol-card-for {
    margin-top: 0.375rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 640px) {
  .sol-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .sol-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1.75rem;
    padding-top: 1.75rem;
  }

  /* Trois fiches (« Les autres solutions ») : trois colonnes, pas de case vide */
  .sol-cards:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sol-card {
    display: flex;
    flex-direction: column;
    padding: 0 0 1.75rem;
    border-bottom: 0;
  }

  .sol-card-media {
    width: 100%;
    margin-bottom: 1.125rem;
  }
}

/* Le comparatif : un tableau sur grand écran, des lignes de devis sur téléphone */
.compare-wrap {
  border-top: 1.5px solid var(--ink);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.compare th,
.compare td {
  padding: 1rem 1.25rem 1rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.compare thead th {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  font-stretch: 75%;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}

.compare tbody th {
  font-weight: 700;
  color: var(--ink);
}

/* La vignette de l'appareil devant le nom de la solution */
.compare-media {
  display: inline-block;
  width: 3.5rem;
  margin-right: 0.625rem;
  vertical-align: middle;
}

@media (min-width: 1024px) {
  .compare-media {
    display: none;
  }
}

.compare-media img {
  display: block;
  width: 100%;
  height: auto;
}

.compare tbody th a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin: -0.6875rem 0;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.compare tbody th a:hover {
  text-decoration-color: var(--red);
}

.compare td {
  color: var(--ink-2);
}

@media (max-width: 767.98px) {
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
  }

  .compare tr {
    padding: 1.25rem 0 1rem;
    border-bottom: 1px solid var(--rule);
  }

  .compare tbody th {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 0 0.5rem;
    border: 0;
    font-size: 1.1875rem;
  }

  .compare-media {
    flex: none;
    width: 4.5rem;
    margin: 0;
  }

  .compare td {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.4375rem 0;
    border-bottom: 1px solid var(--rule-soft);
    text-align: right;
    font-weight: 600;
    color: var(--ink);
  }

  .compare td:last-child {
    border-bottom: 0;
  }

  /* La désignation de la ligne, avec ses points de conduite */
  .compare td::before {
    content: attr(data-label);
    display: flex;
    flex: 1 1 auto;
    align-items: baseline;
    min-width: 0;
    font-weight: 500;
    text-align: left;
    color: var(--ink-2);
    background-image: radial-gradient(circle, var(--leader) 1px, transparent 1.2px);
    background-size: 6px 4px;
    background-repeat: repeat-x;
    background-position: 0 calc(100% - 0.28em);
  }
}

/* Les plus, et ce qu'il faut prévoir : deux colonnes honnêtes */
.pros-cons {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 768px) {
  .pros-cons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
  }
}

.pros-cons h3 {
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--ink);
}

.pros-cons .checklist {
  margin-top: 1.125rem;
  gap: 0.75rem;
}

.pros-cons .checklist li {
  font-size: 1rem;
  color: var(--ink-2);
}

/* Ce qu'il faut prévoir : un tiret d'encre, pas la coche rouge */
.dash {
  flex: none;
  width: 0.75rem;
  height: 1.5px;
  margin-top: 0.72em;
  background-color: var(--ink);
}

/* Les pannes : le symptôme, la cause probable, ce que l'on peut vérifier soi-même */
.symptoms {
  border-top: 1.5px solid var(--ink);
}

.symptom {
  display: grid;
  gap: 0.5rem;
  padding: 1.375rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .symptom {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2.5rem;
  }
}

.symptom p {
  color: var(--ink-2);
  line-height: 1.6;
}

.symptom p + p {
  margin-top: 0.5rem;
}

.symptom-check {
  font-size: 0.9375rem;
}

.symptom-check strong {
  font-stretch: 75%;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Note à la main, dans la marge d'une section */
.note-hand {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--ink);
}

/* Sources et date : ce qui est écrit se vérifie */
.sources {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Des lignes de bon : pas d'espace, un filet fin entre deux sources ; chaque
   ligne garde ses 44 px (le lien). Petit texte : ligne courte. */
.sources ol {
  display: grid;
  max-width: var(--measure);
  margin-top: 0.625rem;
  padding-left: 1.25rem;
  list-style: decimal;
}

.sources li + li {
  border-top: 1px solid var(--rule-soft);
}

/* Un lien par ligne, pas dans une phrase : 44 px de haut (DESIGN.md) */
.sources a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.sources a:hover {
  text-decoration-color: var(--red);
}

.page-updated {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Lignes de devis qui mènent ailleurs : sommaire, index des questions, page 404 */
.devis-row dt a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin: -0.6875rem 0;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.devis-row dt a:hover {
  text-decoration-color: var(--red);
}

/* Fiche à texte : le libellé à gauche, une phrase à droite */
.fiche--text div {
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  padding: 1.125rem 0;
}

.fiche--text dd {
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 479.98px) {
  .fiche--text div {
    grid-template-columns: minmax(0, 1fr);
  }

  .fiche--text dt {
    padding-top: 0;
  }
}

.symptoms-note {
  max-width: 36rem;
  margin-top: 2.25rem;
}

.link-inline {
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.link-inline:hover {
  text-decoration-color: var(--red);
}

/* Les tirages des fiches solutions : un produit, pas une pièce */
.sol-print img {
  aspect-ratio: 4 / 3;
}

/* La liste des marques, en plus petit quand elle n'est pas le sujet de la page */
.brand-list--sm {
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.625rem);
}

/* --------------------------------------------------------------------------
   GUIDES (2026-09-27) : un bon plus long, qu'on lit, qu'on vérifie, qu'on
   cite. Une seule colonne jusqu'à 1279 px ; dès 1280 px, la tête passe en 7/5
   et le corps en 4/8 (sommaire collé à gauche). Ni fond gris ni réglure
   pleine largeur entre les parties. DESIGN.md, Pages intérieures, Guides.
   -------------------------------------------------------------------------- */

/* Tête : le titre sur toute la largeur, puis la réponse et L'essentiel */
.page-hero--guide {
  padding-bottom: 3.5rem;
}

.guide-title {
  max-width: 18em;
  margin-top: 2rem;
  font-size: clamp(2.375rem, 1.5rem + 3vw, 4rem);
}

@media (min-width: 640px) {
  .guide-title {
    margin-top: 2.75rem;
  }
}

/* 320 px : même règle que les autres titres de page */
@media (max-width: 359.98px) {
  .guide-title {
    font-size: 2rem;
  }
}

.guide-hero-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.guide-hero-grid > * {
  min-width: 0;
}

.page-hero .guide-hero-copy > .t-lead:first-child {
  margin-top: 0;
}

@media (min-width: 640px) {
  .guide-hero-grid {
    margin-top: 2rem;
  }
}

@media (min-width: 1280px) {
  .page-hero--guide {
    padding-bottom: 6rem;
  }

  .guide-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4.5rem;
    align-items: start;
  }
}

/* L'essentiel : l'encadré en pointillés du verdict, posé sur la feuille */
.essentiel {
  max-width: 36rem;
  padding: 1.5rem 1.75rem 1.75rem;
  border: 1px dashed var(--dash);
  background-color: var(--paper);
}

.essentiel .devis,
.essentiel .checklist {
  max-width: none;
  margin-top: 0.875rem;
}

/* Une valeur trop longue passe dessous, à droite, comme sur les fiches. Aussi
   dans le corps d'un guide : à 320 px, « d'intervention » sortait de 19 px de
   sa désignation, sous la valeur, sans points de conduite (E0928-119). */
.essentiel .devis-row,
.guide-object .devis-row {
  flex-wrap: wrap;
  gap: 0 0.75rem;
}

.essentiel .devis-row dd,
.guide-object .devis-row dd {
  margin-left: auto;
}

.essentiel .checklist {
  gap: 0.625rem;
}

.essentiel .checklist li {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.essentiel .source-note {
  margin-top: 0.875rem;
  font-size: 0.875rem;
}

/* Téléphone : pointillés dessus et dessous seulement, toute la largeur aux lignes */
@media (max-width: 479.98px) {
  .essentiel {
    padding: 1.25rem 0 1.375rem;
    border-width: 1px 0;
  }
}

/* Note de source : nomme les textes, sans lien (les liens sont au pied) */
.source-note {
  max-width: var(--measure);
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Corps : le sommaire, puis les parties */
.guide {
  padding-bottom: 5rem;
}

/* Empilé : la première partie arrive avec l'air des suivantes (--part) */
.guide-grid {
  display: grid;
  row-gap: var(--part);
}

.guide-grid > * {
  min-width: 0;
}

.guide-side {
  max-width: 36rem;
}

/* L'aide et le téléphone ne servent que collés à côté du texte ; plus
   étroit, la barre mobile et l'en-tête les portent déjà. */
.guide-help {
  display: none;
}

@media (min-width: 1024px) {
  .guide {
    padding-bottom: 7.5rem;
  }
}

@media (min-width: 1280px) {
  .guide-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 5rem;
    align-items: start;
  }

  /* Collé au défilement ; plus haut que l'écran, il défile seul */
  .guide-side {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    max-width: none;
    max-height: calc(100vh - var(--header-h) - 4rem);
    max-height: calc(100dvh - var(--header-h) - 4rem);
    margin: -0.25rem;
    padding: 0.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .guide-help {
    display: block;
  }
}

/* Sommaire : des lignes de devis qui mènent aux parties */
.toc-label {
  padding-bottom: 0.75rem;
}

.toc-list {
  border-top: 1.5px solid var(--ink);
}

.toc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.75rem;
  padding: 0.6875rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .toc-row {
    padding: 0.8125rem 0;
  }
}

.toc-name {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  min-width: 0;
}

.toc-name::after {
  content: "";
  flex: 1 1 auto;
  min-width: 1rem;
  margin-left: 0.75rem;
  border-bottom: 2px dotted var(--leader);
  transform: translateY(-0.28em);
}

/* Sans réponse courte, ni points ni valeur */
.toc-name:last-child::after {
  display: none;
}

.toc-val {
  flex: none;
  margin-left: auto;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}

.toc-name a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin: -0.6875rem 0;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s ease;
}

/* La partie en cours porte le soulignement rouge du survol */
.toc-name a:hover,
.toc-name a[aria-current] {
  text-decoration-color: var(--red);
}

/* La coche de lecture : sans case, une case vide se lirait comme à cocher */
.toc-tick {
  flex: none;
  align-self: center;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.toc-tick svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.toc-tick .pen {
  stroke-width: 2.1;
  stroke-dashoffset: 1.02;
}

.toc-row.is-read .toc-tick .pen {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s var(--ease-pen);
}

/* Téléphone : replié en une ligne dès le premier affichage (classe .js posée
   dans <head>, aucun décalage). Sans JS, la liste reste ouverte. */
.toc-toggle {
  display: none;
}

@media (max-width: 767.98px) {
  .js .toc-label {
    display: none;
  }

  .js .toc-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3rem;
    border-top: 1.5px solid var(--ink);
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
  }

  .toc-toggle > .t-label {
    display: flex;
    flex: 1 1 auto;
    align-items: baseline;
    min-width: 0;
  }

  .toc-toggle > .t-label::after {
    content: "";
    flex: 1 1 auto;
    min-width: 1rem;
    margin-left: 0.75rem;
    border-bottom: 2px dotted var(--leader);
    transform: translateY(-0.2em);
  }

  .toc-count {
    flex: none;
    font-weight: 700;
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums lining-nums;
  }

  .toc-toggle[aria-expanded="true"] .faq-sign {
    border-color: var(--red);
  }

  .toc-toggle[aria-expanded="true"] .faq-sign::before,
  .toc-toggle[aria-expanded="true"] .faq-sign::after {
    background-color: var(--red);
  }

  .toc-toggle[aria-expanded="true"] .faq-sign::after {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  .js .guide-toc:not(.is-open) .toc-list {
    display: none;
  }

  .js .guide-toc .toc-list {
    border-top: 0;
  }
}

/* Parties : une question, la réponse d'abord, le texte à la largeur de lecture */
.guide-part + .guide-part {
  margin-top: var(--part);
}

.part-title {
  max-width: 20em;
  font-family: var(--font-sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}

.part-body {
  margin-top: 1.25rem;
}

.part-body > * + * {
  margin-top: 1rem;
}

.part-body > p,
.part-body > ul,
.part-body > ol,
.part-body > h3 {
  max-width: var(--measure);
}

.part-body > p,
.part-body > .checklist li {
  font-size: var(--read);
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Le premier paragraphe répond : même taille, à l'encre pleine */
.part-body > p:first-child,
.part-body > .part-answer {
  color: var(--ink);
}

/* Liste cochée : serrée dans l'item, espacée entre les items */
.part-body > .checklist {
  gap: 0.75rem;
}

.part-body > .checklist li {
  line-height: 1.5;
}

.part-body > h3 {
  margin-top: 2.25rem;
}

.part-body > h3 + * {
  margin-top: 0.625rem;
}

.part-body > p strong {
  font-weight: 700;
  color: var(--ink);
}

.part-body > p a:not(.link-act),
.part-body > .checklist a {
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s ease;
}

.part-body > p a:not(.link-act):hover,
.part-body > .checklist a:hover {
  text-decoration-color: var(--red);
}

@media (min-width: 1024px) {
  .part-body {
    margin-top: 1.5rem;
  }
}

/* Objets posés dans une partie : tableau, fiche, étapes, questions, photo */
.part-body > .guide-object,
.part-body > .guide-object + * {
  margin-top: 2.5rem;
}

.guide-object {
  max-width: 46rem;
}

.guide-object .source-note {
  font-size: 0.75rem;
}

.guide-object .note-hand {
  max-width: 30rem;
}

/* Le tableau : légende visible au-dessus du filet d'encre ; jamais de
   défilement de côté */
.guide-object .compare-wrap {
  border-top: 0;
}

.guide-object .compare caption {
  caption-side: top;
  padding-bottom: 0.75rem;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}

.guide-object .compare thead th {
  border-top: 1.5px solid var(--ink);
}

@media (max-width: 767.98px) {
  .guide-object .compare caption {
    display: block;
  }

  .guide-object .compare tbody {
    border-top: 1.5px solid var(--ink);
  }

  /* Une cellule longue : la désignation dessus, la valeur dessous, à gauche */
  .guide-object .compare td.is-long {
    display: block;
    text-align: left;
  }

  .guide-object .compare td.is-long::before {
    display: block;
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
    background: none;
  }
}

/* Les étapes restent verticales dans un guide, à toutes les largeurs */
@media (min-width: 1024px) {
  .guide-object .steps {
    display: block;
    border-bottom: 0;
  }

  .guide-object .step {
    display: grid;
    padding: 1.5rem 0 1.75rem;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .guide-object .step:first-child {
    padding-left: 0;
  }

  .guide-object .step-num {
    padding-top: 0.2rem;
    margin-bottom: 0;
  }
}

/* Relance : un lien d'action vers le devis, une fois, jamais un bouton jaune */
.guide-relance {
  margin-top: 2.25rem;
}

/* Pied du guide : les sources, puis la date et le tampon sur une ligne */
.guide-foot {
  max-width: 46rem;
  margin-top: 4.5rem;
}

.guide-foot .sources {
  margin-top: 0;
}

.guide-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.guide-foot > .guide-date:first-child {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.guide-date .page-updated {
  margin-top: 0;
}

.guide-stamp {
  flex: none;
  width: 6.25rem;
  --stamp-rot: -6deg;
}

@media (min-width: 640px) {
  .guide-stamp {
    width: 7.5rem;
  }
}

/* Fiches guides : les fiches solutions sans photo (hub et guides voisins).
   Dans les guides voisins, la grille s'adapte seule (1, 2 puis 3 colonnes) ;
   sur le hub, deux colonnes fixes dès 768 px (plus bas), pour que les thèmes
   de 2, 3 et 4 guides partagent les mêmes verticales. */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  column-gap: 2.5rem;
  border-top: 1.5px solid var(--ink);
}

.guide-card {
  position: relative;
  padding: 1.25rem 0 1.375rem;
  border-bottom: 1px solid var(--rule);
}

.guide-card-title {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}

.guide-card-link {
  text-decoration: none;
}

/* Toute la fiche est cliquable, le lien reste le titre */
.guide-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.guide-card-link:focus-visible {
  outline: none;
}

.guide-card:has(.guide-card-link:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.guide-card-desc {
  max-width: var(--measure-sm);
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.guide-card-meta {
  margin-top: 0.75rem;
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .guide-card:hover .guide-card-title {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
  }
}

@media (min-width: 640px) {
  .guide-card-title {
    font-size: 1.1875rem;
  }
}

@media (min-width: 1024px) {
  .guide-card {
    padding: 1.5rem 0 1.75rem;
  }
}

/* Tête du hub dès 1024 px : le titre sur toute la largeur, la réponse à
   gauche et le sommaire des thèmes à droite (7/5, comme le hero), alignés en
   haut. Sans cela, la moitié droite restait vide et aucune fiche n'entrait dans
   le premier écran. CSS seul : le balisage de <main> ne change pas. */
@media (min-width: 1024px) {
  .page-guides .page-hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 4.5rem;
    align-items: start;
  }

  .page-guides .page-hero-copy > .t-h1 {
    grid-column: 1 / -1;
  }

  .page-guides .page-hero-copy > .devis {
    margin-top: 1.5rem;
  }
}

/* Le hub : chaque thème a le titre et l'air d'une partie de guide. La tête se
   sépare des thèmes comme une section : réglure pleine largeur, puis --section
   (plus que les --part entre deux thèmes). */
.guide-themes {
  padding-bottom: var(--section);
}

.page-hero:has(+ .guide-themes) {
  border-bottom: 1px solid var(--rule);
}

.page-hero + .guide-themes {
  padding-top: var(--section);
}

.guide-theme-lead {
  max-width: 36rem;
  margin-top: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.guide-themes .guide-cards {
  margin-top: 1.75rem;
}

/* Hub : deux colonnes fixes dès 768 px. Avec auto-fit, la largeur suivait le
   nombre de fiches (2 colonnes de 560 px pour un thème, 3 de 360 px pour le
   suivant, Pannes en 3 + 1) ; ici les cinq thèmes s'alignent. */
@media (min-width: 768px) {
  .guide-themes .guide-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.guide-themes-empty {
  max-width: 36rem;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .guide-themes .guide-cards {
    margin-top: 2rem;
  }
}

/* Dernier appel : le titre à gauche, la copie jaune à droite */
.section--cta {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .section--cta {
    padding-top: 6.5rem;
    padding-bottom: 7rem;
  }
}

.cta-grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 1024px) {
  .cta-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 5rem;
    align-items: center;
  }
}

.cta-grid .t-lead {
  margin-top: 1.25rem;
}

.cta-card {
  position: relative;
  padding: 1.5rem 1.25rem 1.5rem;
  background-color: var(--yellow);
  border: 1px solid rgba(17, 24, 39, 0.18);
  box-shadow: 0 30px 50px -34px rgba(17, 24, 39, 0.45);
}

@media (min-width: 640px) {
  .cta-card {
    padding: 2rem 2.25rem 2.125rem;
  }
}

.cta-card .band-list {
  margin-top: 0;
}

.on-yellow .tickbox {
  background-color: rgba(255, 255, 255, 0.62);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--ink);
}

.cta-actions .btn {
  flex: 1 1 auto;
}

@media (min-width: 640px) {
  .cta-actions .btn {
    flex: none;
  }
}

/* Consentement au rappel : jamais pré-coché, coché au stylo (repris de la landing) */
.consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-top: 1.5rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgba(17, 24, 39, 0.24);
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.55);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.consent input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.consent .tickbox {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.05rem;
}

.consent .tickbox > svg {
  left: -2px;
  top: -9px;
  width: 1.75rem;
  height: 1.75rem;
}

.consent .pen {
  stroke-dashoffset: 1.02;
}

.consent input:checked + .tickbox .pen {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s var(--ease-pen);
}

.consent:has(input:checked) {
  background-color: #fff;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.consent:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.consent:has(input[aria-invalid="true"]) {
  border-color: var(--error-on-yellow);
  box-shadow: inset 0 0 0 1px var(--error-on-yellow);
}

.consent + .field-error {
  color: var(--error-on-yellow);
}

/* Les choix de la demande sont des boutons radio : la copie se remplit et
   s'envoie même sans JS, et le clavier les parcourt aux flèches. */
.devis-option {
  position: relative;
}

.devis-option input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.devis-option:has(input:checked) {
  border-color: var(--ink);
  background-color: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.devis-option:has(input:checked) .pen {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s var(--ease-pen);
}

.devis-option:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.form-summary-list:empty {
  display: none;
}

/* Page contact : l'intro, la copie jaune, puis les autres moyens de joindre DRAY.
   Sur téléphone, la copie passe avant le téléphone et les horaires. */
.contact-grid {
  display: grid;
  grid-template-areas:
    "intro"
    "form"
    "lines";
  gap: 2.5rem;
  margin-top: 2rem;
}

.contact-intro { grid-area: intro; }
.contact-grid .form-sheet { grid-area: form; }
.contact-lines { grid-area: lines; }

.contact-intro .t-lead {
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .contact-grid {
    margin-top: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas:
      "intro form"
      "lines form";
    grid-template-rows: auto 1fr;
    column-gap: 5rem;
    row-gap: 2.5rem;
    align-items: start;
  }
}

.contact-lines .tel {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-stretch: 112%;
  font-weight: 800;
}

.contact-lines .devis {
  max-width: 28rem;
  margin-top: 1.25rem;
}

.field-help {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.form-legal a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Pages légales : du texte, lisible, rien d'autre */
.legal {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2.75rem;
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  margin-top: 0.875rem;
  color: var(--ink-2);
  line-height: 1.65;
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal a {
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.legal a:hover {
  text-decoration-color: var(--red);
}

/* À compléter par DRAY : visible, pour ne jamais passer pour une vraie donnée */
.todo {
  padding: 0 0.25rem;
  background-color: var(--paper-2);
  border-bottom: 1.5px dashed var(--dash);
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   LA FEUILLE QUI SE DÉTACHE (N1) : en changeant de page, la feuille lue pâlit
   et monte de 12 px en 200 ms ; la suivante est déjà dessous, tout entière.
   L'en-tête, pince du porte-bloc, ne bouge pas. Aucun script : opacity et
   transform restent sur le compositeur. Dès 1024 px seulement : sur mobile,
   environ +70 ms de LCP mesurés (E0927-37), et le retour par balayage de
   l'iPhone a déjà son geste. Mouvement réduit : aucune transition. Sans prise
   en charge (Firefox avant 147) : la page change d'un coup, comme avant.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
  @view-transition {
    navigation: auto;
  }

  .site-header {
    view-transition-name: dray-en-tete;
  }

  ::view-transition-group(dray-en-tete),
  ::view-transition-new(dray-en-tete) {
    animation: none;
  }

  ::view-transition-old(dray-en-tete) {
    display: none;
  }

  ::view-transition-new(root) {
    animation: none;
  }

  ::view-transition-old(root) {
    z-index: 1;
    /* Départ lent, fin franche : la feuille reste lisible puis part d'un coup.
       Avec --ease-out, elle restait en fantôme pâle sur le nouveau titre (film
       à 1280 px, ralenti 10 fois). */
    animation: 200ms cubic-bezier(0.7, 0, 0.84, 0) both dray-feuille-detachee;
  }
}

@keyframes dray-feuille-detachee {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

/* --------------------------------------------------------------------------
   MOUVEMENT RÉDUIT : tout est posé, rien ne se dessine
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .inkable .pen,
  .field-tick .pen,
  .choice .pen,
  .sol-pick .pen,
  .devis-option .pen,
  .consent .pen {
    transition: none !important;
  }

  .js .inkable .pen {
    stroke-dashoffset: 0;
  }

  .js .stamp.inkable {
    opacity: 0.92;
    transform: rotate(var(--stamp-rot, -7deg));
  }

  .js .writes.inkable {
    clip-path: none;
  }

  .answer-mark .pen {
    stroke-dashoffset: 0;
    transition: none !important;
  }

  .js .page-hero-copy > .devis .devis-row dt::after,
  .js .essentiel > .devis .devis-row dt::after {
    clip-path: none;
  }

  .thermo-heat,
  .snow {
    display: none !important;
  }

  .thermo-glow {
    animation: none !important;
  }

  /* Le menu ouvert est visible avant que le script y pose le focus : la règle
     « * » ci-dessus donnerait à chaque bouton sa propre transition de
     visibility (propriété « all »), encore « hidden » à l'image suivante. */
  .mobile-menu.is-open,
  .mobile-menu.is-open * {
    transition: none !important;
  }
}

/* Impression : la page reste un devis lisible */
@media print {
  .site-header,
  .ios-bottom-bar,
  .rail,
  .snow,
  .mobile-menu {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   LA SCÈNE DU PIED DE COPIE (page Devis et contact)
   Pixel art, décoratif. Le bonhomme a très chaud ; au fil des réponses, un
   technicien DRAY arrive, pose la climatisation au mur, l'air frais souffle et
   le bonhomme se découvre. Script : js/bonhomme-devis.js (rien sans lui).
   ========================================================================== */

.devis-scene {
  display: none;
}

.devis-scene.is-ready {
  --px: 2px;
  display: block;
  position: relative;
  height: calc(34 * var(--px) + 0.5rem);
  margin: 0.5rem 0 0.75rem;
  border-bottom: 1px solid var(--sheet-rule);
  overflow-x: clip;
  pointer-events: none;
}

@media (min-width: 640px) {
  .devis-scene.is-ready {
    --px: 3px;
  }
}

/* Avec la scène, la copie se resserre pour tenir dans un écran d'ordinateur */
.devis-scene.is-ready + form .devis-step legend {
  margin-top: 0.5rem;
}

.devis-scene.is-ready + form .consent {
  margin-top: 1rem;
}

.devis-scene.is-ready + form .step-actions {
  margin-top: 1.25rem;
}

/* La climatisation, au mur au-dessus du bonhomme, et l'air frais qui en sort */
.devis-scene .scene-ac {
  position: absolute;
  top: 0;
  right: 0.5rem;
  width: calc(26 * var(--px));
  height: calc(8 * var(--px));
}

.devis-scene .scene-ac[hidden] {
  display: none;
}

.devis-scene .scene-ac-sprite {
  display: block;
  width: 100%;
  height: 100%;
}

/* L'air froid : un voile bleu glacé, des souffles qui filent et s'enroulent, des flocons */
.devis-scene .scene-breeze {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: calc(20 * var(--px));
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.devis-scene .scene-ac.is-on .scene-breeze {
  opacity: 1;
}

.devis-scene .breeze-cone {
  fill: url(#scene-cold);
  stroke: none;
}

.devis-scene .breeze-gust {
  stroke: #1e8be0;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 0.45 1;
  stroke-dashoffset: 0.45;
  animation: scene-gust 1.5s linear infinite;
}

.devis-scene .breeze-gust:nth-of-type(2) {
  animation-delay: 0.5s;
}

.devis-scene .breeze-gust:nth-of-type(3) {
  animation-delay: 1s;
}

@keyframes scene-gust {
  from { stroke-dashoffset: 0.45; }
  to { stroke-dashoffset: -1; }
}

.devis-scene .breeze-flake {
  stroke: #2f9df0;
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: scene-flake 2.4s linear infinite;
}

.devis-scene g:nth-of-type(2) .breeze-flake {
  animation-delay: 0.8s;
}

.devis-scene g:nth-of-type(3) .breeze-flake {
  animation-delay: 1.6s;
}

@keyframes scene-flake {
  0% { opacity: 0; transform: translateY(-2px) rotate(0); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px) rotate(120deg); }
}

/* Le technicien, sa caisse à outils à ses pieds */
.devis-scene .scene-tech {
  position: absolute;
  bottom: 0;
  right: calc(1.25rem + 20 * var(--px) + 0.5rem);
  width: calc(20 * var(--px));
  height: calc(25 * var(--px));
}

.devis-scene .scene-tech[hidden] {
  display: none;
}

.devis-scene .scene-tech-sprite {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.devis-scene .scene-tech-box {
  position: absolute;
  right: 100%;
  bottom: 0;
  width: calc(12 * var(--px));
  height: calc(7 * var(--px));
}

.devis-scene .scene-tech-box svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Le bonhomme : les mêmes dessins et les mêmes humeurs que sur la page de campagne */
.devis-scene .buddy {
  position: absolute;
  right: 1.25rem;
  bottom: 0;
  width: calc(20 * var(--px));
  height: calc(25 * var(--px));
}

.devis-scene .buddy-body {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 100%;
}

.devis-scene .buddy-sprite {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.devis-scene .buddy-shadow {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: calc(-1 * var(--px));
  height: calc(2 * var(--px));
  border-radius: 50%;
  background-color: rgba(17, 24, 39, 0.2);
}

.devis-scene .buddy[data-mood="hot"] .buddy-body {
  animation: buddy-pant 0.36s steps(1, end) infinite;
}

.devis-scene .buddy[data-mood="warm"] .buddy-body {
  animation: buddy-pant 0.6s steps(1, end) infinite;
}

.devis-scene .buddy[data-mood="ok"] .buddy-body,
.devis-scene .buddy[data-mood="happy"] .buddy-body {
  animation: buddy-pant 1.1s steps(1, end) infinite;
}

.devis-scene .buddy[data-mood="cool"] .buddy-body {
  animation: buddy-pant 1.6s steps(1, end) infinite;
}

@keyframes buddy-pant {
  0% { transform: translateY(0); }
  50% { transform: translateY(var(--px)); }
}

.devis-scene .buddy-heat {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 1 * var(--px));
  width: calc(12 * var(--px));
  height: calc(10 * var(--px));
  overflow: visible;
  fill: none;
  stroke: var(--thermo-warm);
  stroke-width: 2;
  stroke-linecap: round;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.devis-scene .buddy[data-mood="hot"] .buddy-heat {
  opacity: 1;
}

.devis-scene .buddy-heat path {
  opacity: 0;
  animation: thermo-steam 1.5s ease-out infinite;
}

.devis-scene .buddy-heat path:nth-child(2) {
  animation-delay: 0.5s;
}

.devis-scene .buddy-heat path:nth-child(3) {
  animation-delay: 1s;
}

.devis-scene .buddy-drops {
  position: absolute;
  left: 50%;
  top: calc(5 * var(--px));
  width: 0;
  height: 0;
  opacity: 0;
}

.devis-scene .buddy[data-mood="hot"] .buddy-drops,
.devis-scene .buddy[data-mood="warm"] .buddy-drops {
  opacity: 1;
}

.devis-scene .buddy-drops i {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(2 * var(--px));
  height: calc(3 * var(--px));
  background: linear-gradient(#d6efff 0 33%, #5fb3f0 33% 100%);
  opacity: 0;
  animation: buddy-drop 1.1s cubic-bezier(0.3, 0.5, 0.6, 1) infinite;
}

.devis-scene .buddy-drops i:nth-child(1) {
  --dx: -13;
  --dy: -6;
}

.devis-scene .buddy-drops i:nth-child(2) {
  --dx: 12;
  --dy: -8;
  animation-delay: 0.37s;
}

.devis-scene .buddy-drops i:nth-child(3) {
  --dx: -9;
  --dy: -11;
  animation-delay: 0.74s;
}

.devis-scene .buddy[data-mood="warm"] .buddy-drops i:nth-child(n + 2) {
  display: none;
}

@keyframes buddy-drop {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; }
  55% { opacity: 1; transform: translate(calc(var(--dx) * var(--px)), calc(var(--dy) * var(--px))); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.35 * var(--px)), calc(6 * var(--px))); }
}

.devis-scene .buddy-item {
  position: absolute;
  left: 50%;
  top: 22%;
  width: calc(var(--w) * var(--px));
  height: calc(var(--h) * var(--px));
}

.devis-scene .buddy-item svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.devis-scene .buddy.is-cheering .buddy-body {
  animation: buddy-cheer 0.62s cubic-bezier(0.3, 0.7, 0.4, 1) 3;
}

@keyframes buddy-cheer {
  0%, 100% { transform: translateY(0) scale(1); }
  12% { transform: translateY(0) scale(1.08, 0.9); }
  45% { transform: translateY(calc(-9 * var(--px))) scale(0.96, 1.05); }
  82% { transform: translateY(0) scale(1.06, 0.93); }
}

/* La bulle, écrite à la main, en haut à gauche du bonhomme : au-dessus du technicien */
.devis-scene .buddy-bubble {
  position: absolute;
  right: calc(100% + 0.75rem);
  bottom: calc(100% - 2 * var(--px));
  z-index: 2;
  width: max-content;
  max-width: 12rem;
  padding: 0.3125rem 0.625rem 0.375rem;
  background-color: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-size: 1.1875rem;
  line-height: 1.05;
  color: var(--ink);
  white-space: nowrap;
}

.devis-scene .buddy-bubble[hidden] {
  display: none;
}

.devis-scene .buddy-bubble::after {
  content: "";
  position: absolute;
  right: 0.375rem;
  bottom: -0.4375rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #fff;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) skew(8deg, 8deg);
}

.devis-scene .buddy-bubble.is-in {
  animation: buddy-bubble-in 0.34s cubic-bezier(0.2, 0.9, 0.25, 1);
}

@keyframes buddy-bubble-in {
  from { opacity: 0; transform: translateY(6px) scale(0.9); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .devis-scene *,
  .devis-scene *::before,
  .devis-scene *::after {
    animation: none !important;
    transition: none !important;
  }

  .devis-scene .scene-ac.is-on .breeze-flake,
  .devis-scene .buddy[data-mood="hot"] .buddy-heat path {
    opacity: 1;
  }
}

/* Vidéos d'illustration (m.video) : cadre du bon d'intervention, ratio tenu
   avant le chargement, rien ne bouge quand la vidéo démarre. */
.video-figure {
  margin: 1.5rem 0 0;
}
.video-illus {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e9ecef;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.attach-print .video-illus {
  border: 0;
}
.video-mention {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Suite de vidéos (m.video_suite) : la suivante glisse depuis la droite pendant que
   la précédente sort à gauche. Sans JS, seule la première est visible. */
.video-suite {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e9ecef;
}
.video-suite .video-illus {
  position: absolute;
  inset: 0;
  height: 100%;
  border: 0;
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.video-suite .video-illus.is-on { transform: none; }
.video-suite .video-illus.is-out { transform: translateX(-100%); }
.video-suite .video-illus.no-anim { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .video-suite .video-illus { transition: none; }
}
/* Vidéo de tête verticale (2026-10-11) : une photo de chantier tirée sur papier,
   scotchée bien droite (demande d'Aaron, 2026-10-13), la note du technicien à côté. Elle prend la place, le devis
   se resserre (demande d'Aaron) : sur téléphone elle passe juste sous le titre,
   sur ordinateur la colonne du devis rétrécit et la vidéo monte au niveau du titre.
   Hauteur bornée par l'écran : on la voit entière. */
.attach--vertical {
  display: flex;
  justify-content: center;
}
.video-print {
  position: relative;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 40px -28px rgba(17, 24, 39, 0.5);
}
.video-suite--vertical {
  width: auto;
  height: min(26rem, 52svh);
  aspect-ratio: 576 / 1030;
}
.video-tape {
  position: absolute;
  z-index: 2;
  top: -0.7rem;
  left: 50%;
  width: 4.5rem;
  height: 1.4rem;
  background: rgba(236, 228, 205, 0.82);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.12);
  transform: translateX(-50%) rotate(-4deg);
}
/* La note du technicien court sur toute la largeur du bas de la vidéo */
.video-note {
  position: absolute;
  z-index: 2;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.35rem;
  margin: 0;
  padding: 2.5rem 0.75rem 0.6rem;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0));
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.05;
  text-align: center;
  pointer-events: none;
}
@media (max-width: 1023.98px) {
  .hero-grid {
    gap: 1.75rem;
  }
  .hero .attach--vertical {
    order: -1;
  }
}
/* Ordinateur : la vidéo tient toute la hauteur de la tête, du titre aux
   boutons ; titre, chapô et devis se resserrent dans la colonne de gauche. */
@media (min-width: 1024px) {
  .hero .wrap:has(.attach--vertical) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }
  .hero .wrap:has(.attach--vertical) > .sheet-head {
    grid-column: 1 / -1;
  }
  .hero .wrap:has(.attach--vertical) > .hero-title {
    grid-column: 1;
  }
  .hero .wrap:has(.attach--vertical) > .hero-grid {
    display: contents;
  }
  .hero .wrap:has(.attach--vertical) .hero-copy {
    grid-column: 1;
    margin-top: 2rem;
  }
  .hero .wrap:has(.attach--vertical) .hero-title .t-display {
    font-size: min(5.25rem, calc(5.6vw - 4px));
  }
  .hero .wrap:has(.attach--vertical) .devis-row {
    padding: 0.55rem 0;
  }
  .hero .attach--vertical {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: start;
    margin-top: 2.25rem;
  }
  .video-suite--vertical {
    height: clamp(28rem, calc(100svh - 15rem), 46rem);
  }
  .video-print {
    padding: 0.5rem;
  }
  .video-note {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    font-size: 1.875rem;
  }
}

/* Essai (2026-10-14) : la clim sort de la vidéo de tête et se pose sous le titre
   (js/main.js). Ordinateur seulement ; rien sans JS ni pour qui réduit les animations. */
/* Juste avant la fin de la vidéo, le scotch et la note s'en vont. */
.attach--vertical .video-tape,
.attach--vertical .video-note {
  transition: opacity 0.6s ease;
}
.attach--vertical.clim-depart .video-tape,
.attach--vertical.clim-depart .video-note {
  opacity: 0;
}
/* Le plan Veo : son blanc se fond dans la page (multiply), seule la clim reste. */
.clim-calque {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: multiply;
}
/* Téléphone : la clim se pose dans le cadre de la photo, qui se resserre sur elle. */
.attach--vertical.clim-cadre {
  position: relative;
}
.clim-cadre > .clim-place {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
.clim-film {
  position: absolute;
  object-fit: cover;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
/* L'image nette, au même cadrage que la fin du plan, le remplace d'une image à l'autre. */
.clim-vol {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}
.clim-place.is-pose .clim-vol {
  opacity: 1;
}
.clim-vol img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
/* Afficheur à sept segments, blanc lumineux comme sur l'appareil */
.clim-afficheur {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  line-height: 0;
  filter: drop-shadow(0 0 1.5px rgba(120, 170, 255, 0.95)) drop-shadow(0 0 5px rgba(80, 140, 255, 0.5));
}
.clim-afficheur svg {
  display: block;
  width: auto;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: #f3f7ff;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.clim-place {
  position: relative;
}
.clim-place .clim-afficheur {
  opacity: 0;
}
.clim-place.is-on .clim-afficheur {
  animation: clim-allume 0.9s 0.3s both;
}
@keyframes clim-allume {
  0% { opacity: 0; }
  18% { opacity: 0.85; }
  30% { opacity: 0.2; }
  55%, 100% { opacity: 1; }
}
/* Ombre douce sous l'appareil, comme posé au mur */
.clim-place::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: calc(var(--clim-h, 0px) * 0.62);
  height: calc(var(--clim-h, 0px) * 0.45);
  background: radial-gradient(closest-side, rgba(17, 24, 39, 0.14), transparent);
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.8s ease;
}
.clim-place.is-on::before {
  opacity: 1;
}
/* Seconde vidéo de l'accueil : toute la largeur, tout en bas. Quel que soit
   l'écran, le titre est écrit petit à même la vidéo en haut à gauche (sur le mur
   clair) et le tampon DRAY se pose en bas à droite (demande d'Aaron). */
.clients {
  padding-top: 0;
  padding-bottom: 0;
}
.clients-scene {
  position: relative;
  margin: 0;
}
.clients-video {
  border: 0;
  aspect-ratio: 4 / 5;
  max-height: 86svh;
  object-position: 62% 50%;
}
@media (min-width: 640px) {
  .clients-video {
    aspect-ratio: 16 / 9;
  }
}
.clients-over {
  position: absolute;
  z-index: 2;
  top: clamp(1rem, 3vw, 2.5rem);
  left: calc(var(--gutter-l) + 0.75rem);
  max-width: 60%;
  color: var(--ink);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}
.clients-label {
  margin: 0 0 0.25rem;
  color: var(--ink-2);
}
.clients-title {
  margin: 0;
  font-family: var(--font-sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.clients-stamp {
  position: absolute;
  z-index: 2;
  right: clamp(0.75rem, 3vw, 2.5rem);
  bottom: clamp(0.75rem, 3vw, 2.5rem);
  width: clamp(5.5rem, 11vw, 8.5rem);
  mix-blend-mode: normal;
  --stamp-rot: -8deg;
}
/* Sur l'herbe, l'encre se perd : une étiquette claire sous le tampon */
.clients-stamp svg {
  background: rgba(252, 253, 254, 0.82);
  border-radius: 6px;
}
@media (min-width: 1024px) {
  .clients-over {
    left: max(calc(var(--gutter-l) + 2.5rem), calc((100% - var(--container)) / 2 + var(--gutter-l) + 2.5rem));
  }
}

/* Vidéo de tête sans cadre : ni marge blanche, ni filet (demande d'Aaron, 2026-10-09). */
.attach-print--nu {
  padding: 0;
  background: none;
  border: 0;
}

/* ==========================================================================
   Paiement en plusieurs fois (essai du 2026-10-13) : lien avec le logo
   d'Alma, « 10 fois » sous un trait de surligneur jaune posé de travers.
   ========================================================================== */
.surligne {
  position: relative;
  z-index: 0;
  white-space: nowrap;
  font-weight: 700;
}
.surligne::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.3em -0.25em -0.1em -0.15em;
  background: var(--yellow);
  border-radius: 0.12em 0.3em 0.18em 0.35em;
  transform: translate(0.14em, 0.06em) rotate(-2deg);
  transition: transform 0.25s ease;
}
.on-yellow .surligne::before { background: #fff; }
.pay-alma {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3em 0.55em;
  margin-top: 1rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.pay-alma-with {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9em;
}
.pay-alma-with img { height: 1.05em; width: auto; }
.pay-alma:hover .pay-alma-text,
.pay-alma:focus-visible .pay-alma-text { text-decoration: underline; text-underline-offset: 0.2em; }
.pay-alma--band { margin-top: 0; }
.pay-alma--band .pay-alma-with { color: var(--ink-2); }
.devis-row dd .pay-alma-logo { height: 1.1em; width: auto; vertical-align: -0.15em; }
/* La mention du crédit, en petit sous chaque lien Alma (2026-10-14). */
.pay-alma-bloc { display: flex; flex-direction: column; align-items: flex-start; }
.pay-alma-bloc .fine-print { max-width: 34rem; margin-top: 0.375rem; font-weight: 400; }
.on-yellow .pay-alma-bloc .fine-print { color: var(--ink-2); }
.band-list li:has(.pay-alma-bloc) { align-items: flex-start; }

/* La phrase du paiement arrive après le tampon, puis le surligneur se trace. */
@keyframes pay-in {
  from { opacity: 0; transform: translateY(0.5rem); }
  to   { opacity: 1; transform: none; }
}
@keyframes hl-draw {
  from { transform: translate(0.14em, 0.06em) rotate(-2deg) scaleX(0); }
  to   { transform: translate(0.14em, 0.06em) rotate(-2deg) scaleX(1); }
}
.surligne::before { transform-origin: 0 50%; }
.js .hero .pay-alma-bloc { animation: pay-in 0.6s cubic-bezier(0.2, 0.9, 0.25, 1) 2.1s both; }
.js .hero .surligne::before { animation: hl-draw 0.55s cubic-bezier(0.6, 0, 0.3, 1) 2.6s both; }
.js .page-hero .surligne::before { animation: hl-draw 0.55s cubic-bezier(0.6, 0, 0.3, 1) 0.7s both; }
.js .band-list .surligne::before { transform: translate(0.14em, 0.06em) rotate(-2deg) scaleX(0); }
.js .band-list.is-inked .surligne::before { animation: hl-draw 0.55s cubic-bezier(0.6, 0, 0.3, 1) 1.1s both; }
@media (prefers-reduced-motion: reduce) {
  .js .hero .pay-alma-bloc,
  .js .surligne::before { animation: none !important; transform: translate(0.14em, 0.06em) rotate(-2deg) !important; }
}

/* L'email (2026-10-13) : même ligne que le téléphone, en un peu plus discret. */
.tel--mail {
  font-weight: 600;
  font-variant-numeric: normal;
  overflow-wrap: anywhere;
}
.footer-contact .tel--mail { font-size: 1rem; }
.contact-lines .tel--mail {
  display: flex;
  margin-top: 0;
  font-size: 1.0625rem;
  font-stretch: 100%;
  font-weight: 600;
}

/* ==========================================================================
   Alerte canicule (essai du 2026-10-13, refait au skill impeccable) : la
   carte de chaleur du thermomètre. Un soleil chauffé à blanc à gauche, le
   rouge DRAY qui brûle vers le cramoisi, l'air qui vibre au-dessus (coulures
   retirées à la demande d'Aaron).
   Seulement quand la prévision dépasse le seuil ; elle part au défilement.
   ========================================================================== */
.heat-alert {
  --heat-deep: #B30B13;
  position: relative;
  z-index: 60;
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.heat-alert[hidden] { display: none; }
.heat-alert-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(10rem 6rem at 0% 50%, rgba(255, 196, 64, 0.8), rgba(242, 101, 43, 0.45) 45%, rgba(242, 101, 43, 0) 100%),
    linear-gradient(90deg, #E8461C 0%, var(--red) 24%, #D20A13 62%, #B30B13 100%);
  box-shadow: inset 0 -3px 0 var(--heat-deep);
}
/* L'air qui vibre : des nappes plus claires glissent lentement. */
.heat-alert-band::before {
  content: "";
  position: absolute;
  inset: -50% -10%;
  background: repeating-linear-gradient(100deg, rgba(255, 220, 160, 0) 0 3.5rem, rgba(255, 220, 160, 0.12) 5rem, rgba(255, 220, 160, 0) 7rem);
  filter: blur(6px);
  animation: heat-haze 9s linear infinite;
  pointer-events: none;
}
@keyframes heat-haze { to { transform: translateX(7rem); } }
.heat-alert-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-block: 0.75rem;
  min-height: 3.25rem;
}
/* Soleil de plomb : un disque chauffé à blanc, lourd, au halo qui respire. */
.heat-sun {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #FFFDF2 0%, #FFF1B0 32%, #FFC93C 62%, #FF9A1F 100%);
  box-shadow:
    0 0 0 0.35rem rgba(255, 214, 90, 0.28),
    0 0 1.4rem 0.6rem rgba(255, 190, 60, 0.6),
    0 0 3.5rem 1.4rem rgba(255, 120, 30, 0.45);
  animation: heat-sun 3.2s ease-in-out infinite;
}
@keyframes heat-sun {
  50% {
    box-shadow:
      0 0 0 0.55rem rgba(255, 214, 90, 0.2),
      0 0 1.9rem 0.9rem rgba(255, 190, 60, 0.7),
      0 0 4.5rem 1.8rem rgba(255, 120, 30, 0.5);
  }
}
.heat-alert-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.1rem;
  padding-right: 2.75rem;
}
.heat-alert-text {
  margin: 0;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(110, 6, 10, 0.35);
}
/* La température, comme l'étiquette du thermomètre dans la marge. */
.heat-alert-temp {
  display: inline-block;
  padding: 0.1em 0.4em;
  margin-right: 0.2em;
  background: #fff;
  color: var(--red);
  border-radius: 0.2em;
  box-shadow: 0 2px 6px -2px rgba(90, 4, 8, 0.55);
  font-weight: 800;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}
.heat-alert-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 2.75rem;
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 236, 160, 0.9);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  white-space: nowrap;
}
.heat-alert-link svg { width: 0.6em; height: 0.6em; fill: currentColor; transition: transform 0.2s ease; }
.heat-alert-link:hover svg { transform: translateX(0.2em); }
.heat-alert-link:focus-visible,
.heat-alert-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 0.2rem; }
.heat-alert-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
}
.heat-alert-close svg { width: 1.1rem; height: 1.1rem; }
.heat-alert-close:hover { opacity: 1; }

.js .heat-alert:not([hidden]) { animation: heat-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes heat-in { from { opacity: 0; transform: translateY(-1.5rem); } to { opacity: 1; transform: none; } }
@media (max-width: 639.98px) {
  .heat-alert-more { display: none; }
  .heat-alert { font-size: 0.875rem; }
  .heat-alert-inner { gap: 0.85rem; }
  .heat-sun { width: 1.9rem; height: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .heat-alert:not([hidden]),
  .heat-alert-band::before,
  .heat-sun { animation: none; }
}

/* Accueil : de la clim au chauffage (proposition 2026-10-30). --p va de 0 (été)
   à 1 (hiver), réglé par js/main.js au défilement ; sans JS, l'hiver s'affiche. */
.season { --p: 1; --e: clamp(0, calc((0.55 - var(--p)) * 4), 1); --h: clamp(0, calc((var(--p) - 0.45) * 4), 1);
  position: relative; padding: 0; border-top: 0;
  background: linear-gradient(180deg, color-mix(in srgb, #E8F1FA calc(var(--e) * 100%), #FBF1E6) 0%, var(--paper, #FCFDFE) 100%); }
.season-pin { min-height: min(100svh, 52rem); display: grid; align-items: center; padding-block: clamp(3rem, 8vh, 6rem); }
.season-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .season-grid { grid-template-columns: 6fr 5fr; gap: 4rem; } }
.season-copy { display: grid; gap: 1.25rem; align-content: center; }
.season-kicker { display: flex; align-items: center; gap: 0.75rem; }
.season-kicker .s-ete { color: #3A7BC8; opacity: calc(0.35 + var(--e) * 0.65); }
.season-kicker .s-hiver { color: var(--red); opacity: calc(0.35 + var(--h) * 0.65); }
.season-kicker .s-sep { position: relative; width: 4.5rem; height: 2px; background: linear-gradient(90deg, #3A7BC8, var(--red)); border-radius: 2px; }
.season-kicker .s-sep::after { content: ""; position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 0.75rem; height: 0.75rem; margin: -0.375rem 0 0 -0.375rem; border-radius: 50%; background: color-mix(in srgb, #3A7BC8 calc(var(--e) * 100%), #EA0B14); box-shadow: 0 0 0 3px var(--paper, #fff); }
.season-title { display: grid; }
.season-title > span { grid-area: 1 / 1; transition: none; }
.season-title .s-ete { opacity: var(--e); transform: translateY(calc(var(--p) * -0.6em)); }
.season-title .s-hiver { opacity: var(--h); transform: translateY(calc((1 - var(--p)) * 0.6em)); }
.season-end { display: grid; gap: 1.25rem; opacity: var(--h); transform: translateY(calc((1 - var(--h)) * 1rem)); }
.season-end .hero-actions { flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.season-scene { --w: clamp(0, calc((var(--p) - 0.2) / 0.6), 1); position: relative; aspect-ratio: 5 / 4; max-height: 58vh; width: 100%; overflow: hidden; background: #EEE; box-shadow: 0 0 0 1px var(--rule), 0 30px 50px -34px rgba(17, 24, 39, 0.45); }
.s-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-photo--ete { object-position: 50% 40%; transform: scale(calc(1.06 - var(--w) * 0.06)); }
.s-photo--hiver { object-position: 50% 55%; clip-path: inset(0 0 0 calc((1 - var(--w)) * 100%)); transform: scale(calc(1 + (1 - var(--w)) * 0.06)); }
.s-wipe { position: absolute; top: 0; bottom: 0; left: calc((1 - var(--w)) * 100%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.25); opacity: calc(1 - (var(--w) - 0.92) * 12); }
.s-wipe i { position: absolute; top: 50%; left: 50%; width: 2.25rem; height: 2.25rem; margin: -1.125rem 0 0 -1.125rem; border-radius: 50%; background: color-mix(in srgb, #3A7BC8 calc((1 - var(--w)) * 100%), #EA0B14); box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(0, 0, 0, 0.3); }
.s-wipe i::before, .s-wipe i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -4px; border: 4px solid transparent; }
.s-wipe i::before { left: 6px; border-right-color: #fff; } .s-wipe i::after { right: 6px; border-left-color: #fff; }
.s-note { position: absolute; left: 0.875rem; bottom: 0.75rem; margin: 0; display: grid; font-size: 1.375rem; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.s-note > span { grid-area: 1 / 1; }
.s-note .s-ete { opacity: var(--e); }
.s-note .s-hiver { opacity: var(--h); }
/* avec JS : la section se fige le temps du passage d'une saison à l'autre */
.js .season.is-live { height: 230vh; }
.js .season.is-live .season-pin { position: sticky; top: var(--header-h, 4.5rem); height: calc(100svh - var(--header-h, 4.5rem) - var(--bar-h, 0px)); min-height: 0; padding-block: 1.5rem; overflow: hidden; }
@media (max-width: 1023.98px) {
  .season-grid { grid-template-rows: auto auto; gap: 1.25rem; }
  .season-scene { order: -1; aspect-ratio: auto; height: clamp(12rem, 34svh, 20rem); max-height: none; }
  .s-note { font-size: 1.125rem; }
  .season { --bar-h: 4.75rem; }
  .season-copy { gap: 0.875rem; } .season-end { gap: 0.875rem; }
  .season-end .t-lead { font-size: 1rem; }
}

.devis-panier { margin: 0.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.375rem; font-weight: 400; font-size: 0.875rem; overflow-wrap: anywhere; }
.devis-modele {
  margin: 0 0 1rem;
  font-weight: 600;
}
