/* VMC Service — feuille de style
   Monde : le plan technique de ventilation. Papier chaud, encre bleu nuit, orange pour l'air
   extrait et pour l'action, bleu glacier pour l'air neuf. Titres Archivo étroit.
   La monospace est réservée aux données (horaires, numéros de département, étiquettes du plan). */

:root {
  --paper: #EDEEEA;
  --paper-2: #E2E4DF;
  --white: #FAFAF8;
  --ink: #0F1E28;
  --ink-2: #1A2D3A;
  --steel: #3E4C55;          /* texte secondaire : 7,7:1 sur papier */
  --line: #D2D5CF;
  --signal: #E4572E;         /* air extrait, traits du plan (décor uniquement) */
  --action: #B53D17;         /* boutons et accents de texte : 5,4:1 avec le blanc, 4,6:1 sur papier foncé */
  --action-ink: #96310F;
  --air: #A9D8E0;
  --air-strong: #2F8197;
  --grime: #8A6E4B;
  --on-ink-2: rgba(251, 250, 246, .78);

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 80px);
  --r: 8px;
  --r-card: 14px;
  --shadow-1: 0 1px 2px rgba(15, 30, 40, .06), 0 4px 12px rgba(15, 30, 40, .06);
  --shadow-2: 0 2px 4px rgba(15, 30, 40, .06), 0 16px 40px rgba(15, 30, 40, .12);

  /* Courbes d'Emil Kowalski : sortie franche, pas d'ease-in sur l'interface */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scrollbar-color: var(--steel) var(--paper); }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--action);
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a, button, input, select, textarea, label { touch-action: manipulation; }
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.3rem; line-height: 1.15; font-variation-settings: "wdth" 80; }
p { margin: 0 0 1em; text-wrap: pretty; max-width: 65ch; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--action); color: var(--white); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 3px; }
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.18em; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: max(var(--gutter), (100% - var(--wrap)) / 2); top: 10px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--r);
  transform: translateY(-160%); transition: transform 160ms var(--ease-out);
}
.skip:focus { transform: none; }

.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }

/* ---------- Boutons : un seul couple, primaire (appeler) et secondaire ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.15 var(--f-sans);
  text-decoration: none; border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 56px; padding: 15px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--action); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--action-ink); transform: translateY(-1px); box-shadow: var(--shadow-1); }
  .btn-secondary:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); }
  .btn:active { transform: scale(0.97); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--action);
}
.link-arrow .i { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .i { transform: translateX(4px); } }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 238, 234, .94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 200ms ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-fan { transform-origin: 20px 20px; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand-fan { transform: rotate(120deg); } }
.brand-text { display: flex; line-height: 1; white-space: nowrap; }
.brand-name { font-weight: 800; font-size: 1.3rem; font-variation-settings: "wdth" 80; }

.nav-main ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-main a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; font-size: .95rem;
  border-radius: var(--r); position: relative;
}
.nav-main a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px;
  background: var(--action); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out);
}
.nav-main a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav-main a:hover::after { transform: scaleX(1); } }
.menu-call { display: none; }
.header-call { min-height: 44px; padding: 10px 16px; font-size: .95rem; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 11px 10px;
  flex-direction: column; justify-content: center; gap: 7px; cursor: pointer; border-radius: var(--r);
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 220ms var(--ease-out); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: flex; }
  .header-call span { display: none; }
  .header-call { padding: 10px 12px; }
  .nav-main ul {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); box-shadow: 0 12px 24px rgba(15, 30, 40, .08);
    padding: 8px var(--gutter) 24px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
    max-height: calc(100dvh - 76px); overflow: auto; overscroll-behavior: contain;
  }
  .nav-main ul.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s; }
  .nav-main a { min-height: 56px; padding: 0; font-size: 1.15rem; border-radius: 0; }
  .nav-main li + li a { box-shadow: 0 -1px 0 var(--line); }
  .nav-main a::after { display: none; }
  .nav-main a[aria-current="page"] { color: var(--action); }
  .menu-call { display: block; margin-top: 12px; }
  .nav-main .menu-call a { justify-content: center; background: var(--action); color: var(--white); border-radius: var(--r); box-shadow: none; font-weight: 600; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 136px) 0; }
.ground-white { background: var(--white); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head.split, .signs-head, .hero-grid, .artisan-grid, .devis-grid {
  max-width: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px;
}
.section-head.split > :first-child, .signs-head > :first-child { grid-column: 1 / span 6; padding-right: 32px; }
.section-head.split > :last-child, .signs-head > :last-child { grid-column: 7 / -1; justify-self: start; }
.section-head.split, .signs-head { align-items: end; }
.section-intro { color: var(--steel); font-size: 1.08rem; max-width: 52ch; }
.dark { background: var(--ink); color: var(--white); }
.dark h2, .dark h3 { color: var(--white); }


/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
@media (min-width: 768px) and (min-height: 600px) {
  .hero { min-height: calc(100svh - 76px); display: flex; align-items: center; }
}
.hero-grid { align-items: start; }
.hero-copy { grid-column: 1 / span 6; padding-right: 24px; }
.plan { grid-column: 7 / -1; }
.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  font-variation-settings: "wdth" 66;
  line-height: .98;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title .accent { display: block; color: var(--action); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .i { color: var(--air-strong); }

/* Entrée du hero, une fois au chargement */
@media (prefers-reduced-motion: no-preference) {
  .m-enter [data-enter] .hero-copy > *, .m-enter [data-enter] .plan { animation: enter 640ms var(--ease-out) both; }
  .m-enter [data-enter] .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .m-enter [data-enter] .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .m-enter [data-enter] .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .m-enter [data-enter] .plan { animation-delay: 140ms; animation-duration: 800ms; }
}
@keyframes enter { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* Plan / schéma : le seul endroit qui porte une trame, parce que c'est un plan */
.plan {
  margin: 0;
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.plan-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; box-shadow: 0 1px 0 var(--line);
}
.plan-ref { flex: 1 1 auto; min-width: 0; font-size: .9rem; font-weight: 600; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toggle { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 3px; flex: none; position: relative; }
.toggle button {
  font: 600 .88rem/1 var(--f-sans); border: 0; background: transparent; color: var(--ink);
  padding: 0 16px; min-height: 40px; border-radius: 999px; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.toggle button:active { transform: scale(0.97); }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.plan-sheet {
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(47, 129, 151, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 129, 151, .09) 1px, transparent 1px);
  background-size: 20px 20px;
}

.sch { display: block; width: 100%; height: auto; }
.sch-wall { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: square; }
.sch-wall.thin { stroke-width: 1.5; stroke: var(--steel); }
.sch-window { fill: var(--air); stroke: var(--ink); stroke-width: 1.5; }
.sch-room { font: 500 12px var(--f-mono); fill: var(--steel); letter-spacing: .04em; }
.sch-label { font: 500 13px var(--f-mono); fill: var(--ink); letter-spacing: .03em; }
.sch-label.out { fill: var(--action-ink); }
.sch-label.in { fill: var(--air-strong); }
.sch-ducts path { fill: none; stroke: var(--ink); stroke-width: 11; stroke-linejoin: round; }
.sch-ducts-inner path { fill: none; stroke: var(--paper); stroke-width: 6; stroke-linejoin: round; transition: stroke 600ms ease; }
.sch-flow-out path, .sch-flow-in path {
  fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 7 9;
  transition: opacity 600ms ease, stroke 600ms ease;
}
.sch-flow-out path { stroke: var(--signal); }
.sch-flow-in path { stroke: var(--air-strong); stroke-dasharray: 3 10; }
.sch-vent rect { fill: var(--ink); transition: fill 600ms ease; }
.sch-box rect { fill: var(--ink); }
.sch-fan { fill: none; stroke: var(--white); stroke-width: 1.5; }
.sch-fan-blades { stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; transform-origin: 260px 120px; }
.sch-grime circle { fill: var(--grime); opacity: 0; transition: opacity 600ms ease; }
/* Le flux ne tourne que pendant la démonstration (moins de 5 s), puis se pose */
.plan.is-running .sch-flow-out path { animation: flow 1s linear infinite; }
.plan.is-running .sch-flow-in path { animation: flow 1.6s linear infinite; }
.plan.is-running .sch-fan-blades { animation: spin 1.1s linear infinite; }

.plan.is-dirty .sch-ducts-inner path { stroke: #CDB894; }
.plan.is-dirty .sch-grime circle { opacity: .9; }
.plan.is-dirty .sch-flow-out path { opacity: .35; stroke: var(--grime); }
.plan.is-dirty .sch-flow-in path { opacity: .25; }
.plan.is-dirty.is-running .sch-flow-out path { animation-duration: 5s; }
.plan.is-dirty.is-running .sch-flow-in path { animation-duration: 7s; }
.plan.is-dirty.is-running .sch-fan-blades { animation-duration: 4s; }
.plan.is-dirty .sch-fan-blades { stroke: var(--grime); }
.plan.is-dirty .sch-vent rect { fill: var(--grime); }

@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Signes ---------- */
.signs-head { margin-bottom: 32px; }
.signs-photo { border-radius: var(--r-card); overflow: hidden; margin-bottom: clamp(40px, 5vw, 56px); aspect-ratio: 960 / 300; background: var(--paper-2); }
.signs-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.signs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.sign h3 { margin: 16px 0 8px; }
.sign p { color: var(--steel); }
.pict { width: 36px; height: 36px; color: var(--ink); }
.sign-test .pict { color: var(--action); }
.sign-test h3 { color: var(--action); }

/* ---------- Prestations (accueil) ---------- */
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service, .aud {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 28px 28px 64px; text-decoration: none; background: var(--white);
  border-radius: var(--r-card); box-shadow: var(--shadow-1);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.service p, .aud p { color: var(--steel); margin: 0; }
.go { position: absolute; left: 28px; bottom: 26px; width: 22px; height: 22px; color: var(--action); transition: transform 200ms var(--ease-out); }
.service:focus-visible, .aud:focus-visible { outline: 3px solid var(--action); outline-offset: 4px; border-radius: var(--r-card); }
.service:active, .aud:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .service:hover, .aud:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .service:hover .go, .aud:hover .go { transform: translateX(4px); }
}

/* ---------- Méthode ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: none; }
.step { position: relative; }
.step-n {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--signal); color: var(--white);
  font-weight: 700; font-size: 1.1rem; margin-bottom: 22px;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 24px; left: 60px; right: -28px; height: 0;
  border-top: 2px dashed rgba(228, 87, 46, .55);
}
.step h3 { margin-bottom: 10px; font-size: 1.5rem; }
.step p { color: var(--on-ink-2); }

/* ---------- Pour qui ---------- */
.aud-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aud h3 { font-size: 1.45rem; font-variation-settings: "wdth" 72; }

/* ---------- Artisan ---------- */
.artisan-grid { align-items: center; }
.artisan-copy { grid-column: 1 / span 6; padding-right: 32px; }
.values { grid-column: 7 / -1; }
.artisan h2 { margin-bottom: 20px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.values h3 { font-size: 1.45rem; margin-bottom: 6px; color: var(--action); }
.values p { color: var(--ink-2); }

/* ---------- Zones ---------- */
.zones-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.zone-col { background: var(--white); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-1); }
.zone-col h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.6rem; }
.dept { font-family: var(--f-mono); font-size: .9rem; font-weight: 500; background: var(--ink); color: var(--white); border-radius: 6px; padding: 4px 9px; letter-spacing: 0; }
.town-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.town-list li { background: var(--paper); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }

/* ---------- Devis / formulaire ---------- */
.devis { background: var(--paper-2); }
.devis-grid { align-items: start; }
.devis-side { grid-column: 1 / span 6; padding-right: 32px; }
.devis-form { grid-column: 7 / -1; }
.devis-side h2 { margin-bottom: 16px; }
.devis-side > p { color: var(--ink-2); }
.big-phone {
  display: inline-flex; align-items: center; gap: 14px; min-height: 56px; margin: 20px 0 12px; text-decoration: none;
  font-weight: 900; font-variation-settings: "wdth" 66; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1;
  color: var(--action);
}
.big-phone .i { width: .7em; height: .7em; }
@media (hover: hover) and (pointer: fine) { .big-phone:hover { color: var(--action-ink); } }
.devis-note { font-size: .95rem; color: var(--steel); }
.mini-h { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }

.hours { border-collapse: collapse; width: 100%; max-width: 340px; font-size: .95rem; }
.hours th, .hours td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-family: var(--f-mono); font-size: .88rem; font-variant-numeric: tabular-nums; }
.hours .is-closed { color: var(--steel); }

.quote-form {
  background: var(--white); border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-2);
  display: grid; gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; align-content: start; }
.field > label, .field legend, .file-label { font-weight: 600; font-size: .95rem; padding: 0; }
.req, .opt { font-weight: 400; font-size: .82rem; color: var(--steel); margin-left: 4px; }
.field input:not([type="radio"]):not([type="file"]), .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-sans); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; min-height: 50px;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230F1E28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field textarea { resize: vertical; min-height: 110px; }
.field ::placeholder { color: var(--steel); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field.has-error input, .field.has-error select, .field.has-error .file-drop { border-color: var(--action); background: #FDF1EC; }
.field-error { margin: 0; font-size: .9rem; color: var(--action-ink); font-weight: 500; }
.field-error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: .95rem; background: var(--paper); font-weight: 500;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--action); outline-offset: 2px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; cursor: pointer;
  border: 1.5px dashed var(--steel); border-radius: var(--r); background: var(--paper); font-weight: 500;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.file-drop .i { width: 22px; height: 22px; color: var(--air-strong); }
.file-input:focus-visible + .file-drop, .file-drop:has(+ .file-input:focus-visible) { outline: 3px solid var(--action); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .file-drop:hover { background: var(--white); border-color: var(--ink); } }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.form-note { font-size: .88rem; color: var(--steel); margin: 0; }

/* ---------- Avis ---------- */
.reviews-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 0 0 32px; }
.review { margin: 0; background: var(--white); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-1); }
.review blockquote { margin: 0; font-size: 1.05rem; }
.review figcaption { margin-top: auto; font-size: .95rem; }
.review figcaption span { color: var(--steel); }
.stars { display: inline-flex; gap: 2px; color: var(--action); }
.stars .i { width: 18px; height: 18px; }
.stars-off { display: inline-flex; gap: 2px; color: var(--line); }

/* ---------- Réalisations ---------- */
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 32px; }
.work { margin: 0; }
.work > img, .ba { border-radius: var(--r-card); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.work figcaption { padding-top: 12px; display: grid; gap: 4px; }
.work figcaption span { color: var(--steel); font-size: .95rem; }
.ba { position: relative; overflow: hidden; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--white); transform: translateX(-50%); pointer-events: none; }
.ba-handle .i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: var(--shadow-1); }
.ba-tag { position: absolute; top: 12px; font-size: .8rem; font-weight: 600; background: var(--ink); color: var(--white); padding: 4px 10px; border-radius: 6px; pointer-events: none; }
.ba-tag-l { left: 12px; }
.ba-tag-r { right: 12px; background: var(--action); }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--ink); color: var(--white); padding: clamp(72px, 10vw, 120px) 0; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.cta-band h2 { color: var(--white); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band .btn-secondary { color: var(--white); border-color: rgba(251, 250, 246, .6); }
@media (hover: hover) and (pointer: fine) { .cta-band .btn-secondary:hover { background: var(--white); color: var(--ink); border-color: var(--white); } }

/* ---------- En-tête de page intérieure ---------- */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); background: var(--paper); }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); font-variation-settings: "wdth" 66; line-height: .98; letter-spacing: -0.02em; max-width: 18em; margin-bottom: 24px; }
.page-hero h1 em { font-style: normal; color: var(--action); }
.crumbs { font-size: .9rem; color: var(--steel); margin-bottom: 18px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .95rem; font-weight: 500; text-decoration: none; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white);
  transition: background-color 180ms ease, color 180ms ease;
}
@media (hover: hover) and (pointer: fine) { .jump a:hover { background: var(--ink); color: var(--white); } }

/* Bloc prestation détaillé */
.svc { display: grid; grid-template-columns: 1fr 340px; gap: clamp(24px, 5vw, 72px); padding: clamp(56px, 8vw, 96px) 0; }
.svc + .svc { box-shadow: 0 -1px 0 var(--line); }
.svc h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.svc-body p { color: var(--ink-2); }
.svc-box { background: var(--white); border-radius: var(--r-card); padding: 24px 26px; align-self: start; box-shadow: var(--shadow-1); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 9px 0 9px 30px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; background: var(--air-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Texte long (conseils, mentions) */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--action); }
.prose a { text-decoration-color: var(--action); }
.layout-aside { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.aside-card { position: sticky; top: 100px; background: var(--ink); color: var(--white); border-radius: var(--r-card); padding: 28px; }
.aside-card h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 12px; }
.aside-card p { color: var(--on-ink-2); }
.aside-card .btn { width: 100%; margin-top: 10px; }
.aside-card .btn-secondary { color: var(--white); border-color: rgba(251, 250, 246, .6); }
.callout { background: var(--white); padding: 22px 24px; border-radius: var(--r-card); margin: 28px 0; box-shadow: var(--shadow-1); }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq-item { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; position: relative; min-height: 64px; display: flex; align-items: center;
  font-weight: 700; font-size: 1.1rem; font-variation-settings: "wdth" 88;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 220ms var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover { color: var(--action); } }
.faq-a { padding: 0 24px 24px; color: var(--ink-2); }

/* Zones page */
.towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; list-style: none; margin: 0 0 24px; padding: 0; }
.towns li { background: var(--white); border-radius: var(--r-card); padding: 18px 20px; box-shadow: var(--shadow-1); }
.towns b { display: block; font-size: 1.15rem; font-variation-settings: "wdth" 80; margin-bottom: 4px; }
.towns span { color: var(--steel); font-size: .95rem; }
.dept-title { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; }
.dept-title b { font-family: var(--f-mono); font-weight: 500; font-size: 1rem; background: var(--ink); color: var(--white); padding: 4px 10px; border-radius: 6px; }

/* Pour qui */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); padding: clamp(56px, 8vw, 96px) 0; align-items: start; }
.who + .who { box-shadow: 0 -1px 0 var(--line); }
.who h2 { margin-bottom: 20px; }
.who p { color: var(--ink-2); }

/* Contact */
.contact-cards { display: grid; gap: 0; margin: 0 0 32px; }
.c-card { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; align-items: baseline; }
.c-card + .c-card { box-shadow: 0 -1px 0 var(--line); }
.c-card dt { font-size: .9rem; font-weight: 600; color: var(--steel); }
.c-card dd { margin: 0; font-weight: 500; }
.c-card a { text-decoration-color: var(--action); display: inline-flex; min-height: 44px; align-items: center; }
.map-wrap { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); box-shadow: var(--shadow-1); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Merci / 404 */
.center-block { min-height: 70svh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.center-block h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-variation-settings: "wdth" 66; margin-bottom: 20px; }
.center-block p { max-width: 32em; margin: 0 auto 28px; color: var(--ink-2); }
.center-block .hero-actions { justify-content: center; margin: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-2); padding: 88px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.3fr 1.1fr 1.1fr; gap: 32px; }
.footer-big { font-weight: 900; font-variation-settings: "wdth" 66; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; color: var(--white); margin-bottom: 18px; }
.footer-h { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-list .plain { padding-top: 8px; }
@media (hover: hover) and (pointer: fine) { .footer-list a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--signal); } }
.site-footer .hours th, .site-footer .hours td { border-color: rgba(251, 250, 246, .12); }
.site-footer .hours .is-closed { color: rgba(251, 250, 246, .62); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; box-shadow: 0 -1px 0 rgba(251, 250, 246, .12); font-size: .85rem; }
.footer-bottom a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom .credits { flex: 1 1 280px; }
.footer-bottom .credits a { text-decoration: underline; min-height: 0; display: inline; }
@media (hover: hover) and (pointer: fine) { .footer-bottom a:hover { color: var(--white); } }

/* Barre d'action mobile : appeler en orange, comme partout */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) { .plan-ref { display: none; } .plan-bar { justify-content: flex-end; } }
@media (max-width: 1000px) {
  .layout-aside, .who { grid-template-columns: 1fr; }
  .devis-side, .devis-form, .artisan-copy, .values { grid-column: 1 / -1; padding-right: 0; }
  .section-head.split > *, .signs-head > * { grid-column: 1 / -1 !important; padding-right: 0; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .aud-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .signs-grid { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}
@media (max-width: 767px) {
  .hero-copy, .plan { grid-column: 1 / -1; padding-right: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; gap: 8px; }
  .nav-main ul { inset: 64px 0 auto 0; max-height: calc(100dvh - 64px); }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 34px; height: 34px; }
  .header-call { display: none; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-facts { flex-direction: column; gap: 8px; }
  .plan-ref { display: none; }
  .plan-bar { justify-content: center; padding: 10px; }
  .toggle button { min-height: 44px; }
  .sch-room, .sch-box-label { display: none; }
  .sch-label { font-size: 17px; }
  .signs-photo { aspect-ratio: 16 / 9; }
  .signs-grid, .service-grid, .steps, .aud-grid, .zones-cols, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .signs-grid { gap: 32px; }
  .service, .aud { padding: 24px 24px 60px; }
  .go { left: 24px; bottom: 22px; }
  .c-card { grid-template-columns: 1fr; gap: 0; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white); box-shadow: 0 -6px 24px rgba(15, 30, 40, .14);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
    transition: transform 240ms var(--ease-out);
  }
  .callbar.is-hidden { transform: translateY(110%); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 700; text-decoration: none; border-radius: var(--r); transition: transform 160ms var(--ease-out); }
  .callbar a:active { transform: scale(0.97); }
  .callbar-call { background: var(--action); color: var(--white); }
  .callbar-quote { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.form-title { font-size: 1.5rem; margin-bottom: 16px; }

/* Moment « la phrase s'allume » (Taste Skill, word-highlight) */
.statement {
  --ink: #0F1E28; --bg: #FAFAF8; --accent: #B53D17;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif; --display-weight: 800;
  --t-h2: clamp(2rem, 4.2vw, 3.6rem); --display-tracking: -0.015em;
}
.statement .mo-wh__text { font-variation-settings: "wdth" 72; max-width: 22ch; max-width: 960px; margin: 0; }

/* Liens vers les pages par ville */
.town-list li:has(a) { padding: 0; background: var(--ink); color: var(--white); }
.town-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: none; font-weight: 600; }
.towns b a { text-decoration-color: var(--action); display: inline-flex; min-height: 44px; align-items: center; }
.page-hero .hero-actions { margin-bottom: 0; }

/* Améliorations : bouton sous les étapes, carte au clic, liens de devis */
.method-cta { margin-top: 48px; }
.dark .btn-secondary { color: var(--white); border-color: rgba(250, 250, 248, .6); }
@media (hover: hover) and (pointer: fine) { .dark .btn-secondary:hover { background: var(--white); color: var(--ink); border-color: var(--white); } }
.map-wrap { aspect-ratio: auto; min-height: 320px; display: grid; background: var(--white); }
.map-wrap.is-loaded { aspect-ratio: 16 / 9; }
.map-ask { padding: clamp(24px, 4vw, 48px); align-self: center; }
.map-ask h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.map-ask .hero-actions { margin: 20px 0 16px; align-items: center; }
.svc-box .link-arrow, .who .link-arrow { margin-top: 12px; }
@media (max-width: 720px) { .method-cta { width: 100%; } }

.related { list-style: none; padding: 0; display: grid; gap: 4px; }
.related a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration-color: var(--action); }
.prose .ticks li::marker { content: none; }
.svc-body .link-arrow { margin-top: 8px; }

/* Note Google */
.g-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 20px; text-decoration: none; color: var(--ink); font-size: .98rem; }
.g-badge strong { font-weight: 800; }
.g-stars { display: inline-flex; gap: 1px; color: #E8A317; }
.g-stars .i { width: 18px; height: 18px; }
.g-badge span:last-child { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; }
@media (hover: hover) and (pointer: fine) { .g-badge:hover span:last-child { text-decoration-color: var(--action); } }
.g-badge--light { color: var(--white); margin: 16px 0 0; }
.g-badge--light span:last-child { text-decoration-color: rgba(250, 250, 248, .4); }
.artisan .g-badge { margin-top: 12px; }
.aside-card .g-badge { margin: 4px 0 8px; font-size: .92rem; }

/* Test en ligne */
.diag { display: grid; gap: 20px; }
.diag-help { color: var(--steel); margin: 0; }
.diag-list { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.diag-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; min-height: 56px; background: var(--paper); border-radius: var(--r-card); cursor: pointer; transition: background-color 160ms ease, box-shadow 160ms ease; }
.diag-item input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--action); }
.diag-item:has(input:checked) { background: #FBEDE7; box-shadow: inset 0 0 0 2px var(--action); }
.diag-item:has(input:focus-visible) { outline: 3px solid var(--action); outline-offset: 2px; }
.diag-result { background: var(--ink); color: var(--white); border-radius: var(--r-card); padding: clamp(22px, 3vw, 32px); }
.diag-result h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; outline: none; }
.diag-result p { color: var(--on-ink-2); }
.diag-result .btn-secondary { color: var(--white); border-color: rgba(250, 250, 248, .6); }
.diag-result .hero-actions { margin: 20px 0 0; }
.signs-cta { margin-top: 48px; }
/* Rappel d'entretien */
.rappel-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-items: center; }
.rappel-copy { grid-column: 1 / span 6; padding-right: 32px; }
.rappel-form { grid-column: 7 / -1; }
.menu-sms a { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--ink) !important; }
@media (max-width: 1000px) { .rappel-copy, .rappel-form { grid-column: 1 / -1; padding-right: 0; } }
@media (max-width: 720px) { .signs-cta { width: 100%; } }

/* Réservation en ligne */
.resa { display: grid; gap: 40px; }
.resa h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-dot { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 1rem; flex: none; }
.resa-status { color: var(--steel); }
.resa-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.resa-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.resa-days button, .resa-times button {
  min-height: 56px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper);
  font: 600 .95rem/1.2 var(--f-sans); color: var(--ink); cursor: pointer; text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.resa-days button small { display: block; font-weight: 400; color: var(--steel); font-size: .82rem; margin-top: 2px; }
.resa-days button:active, .resa-times button:active { transform: scale(0.97); }
.resa-days button[aria-pressed="true"], .resa-times button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.resa-days button[aria-pressed="true"] small { color: var(--on-ink-2); }
@media (hover: hover) and (pointer: fine) { .resa-days button:hover, .resa-times button:hover { border-color: var(--ink); } }
.resa-chosen { font-weight: 700; color: var(--action); margin: -6px 0 4px; }
.resa-done { background: var(--ink); color: var(--white); border-radius: var(--r-card); padding: clamp(24px, 4vw, 40px); outline: none; }
.resa-done h2 { color: var(--white); }
.resa-done p { color: var(--on-ink-2); }
.resa-done a { color: var(--white); }
