/* Pecoste Énergie : maquette NR Web. Direction « thermostat d'ambiance ». */

@font-face {
  font-family: "Geologica";
  src: url("assets/fonts/geologica-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Boîtier et écran */
  --boitier: #ECECE8;
  --face: #F6F6F3;
  --filet: #D2D2CB;
  --encre: #232727;
  --encre-2: #555B5A;
  --ecran: #1B1E1E;
  --ecran-2: #272B2B;
  --ecran-filet: #343939;
  --ecran-texte: #F1F1EC;
  --ecran-texte-2: #A9AFAD;

  /* Encres du logo */
  --rouge: #C1172F;
  --rouge-vif: #EE4B5F;
  --flamme: #F0B41E;
  --froid: #93BACA;
  --eau: #7FC4CC;

  /* Encre du mode sur fond clair */
  --m: var(--rouge-vif);
  --m-clair: var(--rouge);

  --texte: "Geologica", ui-sans-serif, system-ui, sans-serif;
  --rayon: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --marge: clamp(20px, 4.4vw, 72px);
  --barre: 72px;
}

[data-mode="chauffage"] { --m: var(--rouge-vif); --m-clair: var(--rouge); }
[data-mode="clim"]      { --m: var(--froid);     --m-clair: #3F6C80; }
[data-mode="eau"]       { --m: var(--eau);       --m-clair: #2F6E78; }
[data-mode="cuisine"]   { --m: var(--flamme);    --m-clair: #8A5F00; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--barre) + 12px); }
body {
  margin: 0; background: var(--boitier); color: var(--encre);
  font: 350 1.0625rem/1.6 var(--texte); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--rouge); color: #fff; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--encre); color: #fff; padding: 10px 14px; border-radius: 10px; }
.evitement:focus { top: 12px; }

.ic { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* Logo redessiné : maison en traits (filets fixes quelle que soit la taille) */
.m-r, .m-k, .m-y { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: butt; stroke-linejoin: miter; }
.m-r { stroke: var(--rouge); }
.m-k { stroke: var(--encre); }
.m-y { stroke: var(--flamme); }
.m-f { fill: var(--flamme); }
.e-inv { display: inline-block; transform: scaleX(-1); color: var(--rouge); position: relative; }
.e-inv::after { content: ""; position: absolute; width: 0.09em; height: 0.26em; background: var(--rouge); border-radius: 1px; left: 55%; top: -0.36em; transform: rotate(35deg); }

/* Trous de la maquette (convention NR Web) */
.trou {
  display: inline-block; font: 500 0.8rem/1.35 var(--texte); letter-spacing: 0; text-transform: none;
  color: #6b4300; background: #fff0c4; border: 1px dashed #b98419; padding: 3px 9px; border-radius: 8px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1.1 var(--texte); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--plein { background: var(--rouge); color: #fff; }
.btn--trait { border-color: var(--encre); color: var(--encre); }
.btn--clair { background: var(--face); color: var(--encre); border-color: var(--filet); }
.btn--grand { min-height: 64px; padding: 0 32px; font-size: 1.35rem; font-weight: 400; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.btn--trait .ic { transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn--plein:hover { background: #A8122A; }
  .btn--trait:hover { background: var(--encre); color: var(--boitier); }
  .btn--trait:hover .ic { transform: translateX(3px); }
  .btn--clair:hover { border-color: var(--encre-2); }
}

/* ---------- Barre ---------- */
.barre {
  position: sticky; top: 0; z-index: 20; height: var(--barre);
  display: flex; align-items: center; gap: 32px; padding: 0 var(--marge);
  background: var(--boitier);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
.barre.est-decollee { border-bottom-color: var(--filet); }
.marque { display: grid; justify-items: start; gap: 3px; text-decoration: none; }
.marque__maison { width: 136px; height: 34px; }
.marque__maison .m-r, .marque__maison .m-k, .marque__maison .m-y { stroke-width: 1.4px; }
.marque__mot { font-size: 0.86rem; font-weight: 400; letter-spacing: 0.17em; text-transform: uppercase; line-height: 1; }
.barre__nav { display: flex; gap: 28px; margin-left: auto; font-size: 0.95rem; }
.barre__nav a { text-decoration: none; padding: 8px 0; color: var(--encre-2); transition: color 160ms ease; }
.barre__nav a:hover, .barre__nav a.est-actif { color: var(--encre); }
.barre__nav a.est-actif { text-decoration: underline; text-decoration-color: var(--rouge); text-underline-offset: 8px; }
.barre__tel {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  padding: 10px 16px; border-radius: 999px; background: var(--encre); color: var(--boitier);
}
.barre__tel .ic { color: var(--flamme); }

/* ---------- Accueil ---------- */
.accueil {
  display: grid; align-items: center; gap: clamp(24px, 3vw, 56px);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, min(44vw, calc(100dvh - var(--barre) - 110px), 600px)) minmax(0, 0.78fr);
  min-height: calc(100dvh - var(--barre)); padding: 24px var(--marge) 56px;
}
.titre { font-size: clamp(2.3rem, 3.5vw, 3.55rem); line-height: 1.04; font-weight: 450; letter-spacing: -0.03em; text-wrap: balance; }
.accueil__lead { margin-top: 22px; max-width: 34ch; color: var(--encre-2); font-size: 1.1rem; }
.accueil__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Le cadran */
.cadran { position: relative; width: 100%; aspect-ratio: 1; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cadran__svg, .mini > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cadran__disque { fill: var(--ecran); }
.cadran__svg .cadran__disque { filter: drop-shadow(0 28px 38px rgb(35 39 39 / 0.22)) drop-shadow(0 6px 10px rgb(35 39 39 / 0.14)); }
.cadran__bord { fill: none; stroke: var(--ecran-filet); stroke-width: 1.5; }
.grad { stroke: #4A5050; stroke-width: 2; stroke-linecap: round; transition: stroke 240ms ease; }
.grad--forte { stroke-width: 3; }
.grad.est-allumee { stroke: var(--m); }
.cadran__aiguille { transform-box: view-box; transform-origin: 300px 300px; transform: rotate(var(--angle, -112.5deg)); transition: transform 720ms var(--ease); }
.cadran__aiguille line { stroke: var(--m); stroke-width: 5; stroke-linecap: round; transition: stroke 240ms ease; }
.cadran__aiguille circle { fill: var(--m); transition: fill 240ms ease; }
.cadran.est-tire .cadran__aiguille { transition: none; }

.cadran__modes { position: absolute; inset: 0; pointer-events: none; }
.mode {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto;
  min-height: 44px; padding: 0 10px; border: 0; background: none; cursor: pointer;
  color: var(--ecran-texte-2); font-size: clamp(0.72rem, 0.95vw, 0.84rem); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 200ms ease;
}
.mode[data-mode="chauffage"] { left: 22.5%; top: 61.5%; }
.mode[data-mode="clim"]      { left: 31.5%; top: 26.5%; }
.mode[data-mode="eau"]       { left: 68.5%; top: 26.5%; }
.mode[data-mode="cuisine"]   { left: 77.5%; top: 61.5%; }
.mode[aria-selected="true"] { color: var(--m); }
.mode:hover { color: var(--ecran-texte); }
.mode:focus-visible { outline-color: var(--m); }

.cadran__ecran { position: absolute; left: 50%; top: 47%; width: 48%; transform: translate(-50%, -50%); display: grid; text-align: center; color: var(--ecran-texte); pointer-events: none; }
.ecran__couche { grid-area: 1 / 1; display: grid; justify-items: center; gap: 6px; opacity: 0; transform: scale(1.06); transition: opacity 260ms ease, transform 420ms var(--ease); }
.ecran__couche.est-active { opacity: 1; transform: none; transition-delay: 80ms; }
.ecran__couche.est-sortante { opacity: 0; transform: scale(0.94); }
.ecran__ic { width: clamp(30px, 3.8vw, 50px); height: clamp(30px, 3.8vw, 50px); fill: var(--m); margin-bottom: 4px; }
.ecran__nom { font-size: clamp(1.35rem, 2.5vw, 2.25rem); font-weight: 250; letter-spacing: -0.01em; line-height: 1.05; }
.ecran__ligne { font-size: clamp(0.72rem, 0.95vw, 0.88rem); color: var(--ecran-texte-2); line-height: 1.35; max-width: 22ch; }

.cadran__appel {
  position: absolute; left: 50%; top: 79%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: var(--rouge); color: #fff;
  box-shadow: 0 6px 18px rgb(193 23 47 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.18);
  transition: transform 160ms var(--ease), background-color 200ms ease;
}
.cadran__appel .ic { width: 38%; height: 38%; }
.cadran__appel:hover { background: #D41D37; }
.cadran__appel:active { transform: translate(-50%, -50%) scale(0.95); }
.cadran__appel:focus-visible { outline-color: var(--flamme); outline-offset: 4px; border-radius: 50%; }
.cadran__aide { position: absolute; left: 0; right: 0; top: calc(100% + 14px); text-align: center; font-size: 0.8rem; color: var(--encre-2); letter-spacing: 0.04em; }

/* Réglages (colonne de droite) */
.reglages { display: grid; gap: 0; align-self: center; }
.reglage { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--filet); }
.reglage:last-child { border-bottom: 1px solid var(--filet); }
.reglage dt { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--encre-2); }
.reglage dd { display: grid; gap: 4px; font-size: 0.94rem; color: var(--encre-2); line-height: 1.45; }
.reglage__chiffres { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 400; color: var(--encre); letter-spacing: -0.01em; line-height: 1.2; }
.reglage__chiffres .ic { color: var(--encre); width: 1em; height: 1em; }
.reglage__codes { gap: 14px; font-variant-numeric: tabular-nums; }
.reglage__codes b { font-weight: 400; }
.reglage dd a { color: var(--encre); }

/* ---------- Titres de section ---------- */
.titre-section { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.04; font-weight: 450; letter-spacing: -0.03em; text-wrap: balance; max-width: 18ch; }

/* ---------- Métiers ---------- */
.metiers { padding: clamp(80px, 12vw, 160px) var(--marge) clamp(40px, 6vw, 80px); background: var(--face); }
.metiers__tete { display: grid; gap: 20px; max-width: 760px; }
.metiers__tete p { color: var(--encre-2); max-width: 52ch; font-size: 1.1rem; }
.metiers__corps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); margin-top: clamp(40px, 6vw, 80px); }
.metiers__suivi { position: relative; }
.mini { position: sticky; top: calc(var(--barre) + 6vh); width: min(100%, 420px); aspect-ratio: 1; }
.mini__ecran { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ecran-texte); }
.mini__ic { width: clamp(40px, 4.4vw, 60px); height: clamp(40px, 4.4vw, 60px); fill: var(--m); transition: fill 240ms ease; }
.mini__nom { font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 250; }

.metier { padding: clamp(40px, 7vh, 80px) 0; border-top: 1px solid var(--filet); display: grid; gap: 16px; min-height: 62vh; align-content: start; }
.metier:first-child { border-top: 0; padding-top: 0; }
.metier__ic { width: 44px; height: 44px; fill: var(--m-clair); }
.metier h3 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.08; }
.metier__lead { font-size: 1.25rem; color: var(--m-clair); font-weight: 450; }
.metier > p:not(.metier__lead) { color: var(--encre-2); max-width: 56ch; }
.metier__a-voir { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.metier__photo {
  display: grid; place-items: center; align-content: center; gap: 10px; margin-top: 14px;
  aspect-ratio: 16 / 7; width: 100%; max-width: 640px; padding: 24px; text-align: center; border-radius: var(--rayon);
  font-size: 0.9rem;
}
.metier__photo .ic { width: 28px; height: 28px; }

/* ---------- Parcours ---------- */
.parcours { padding: clamp(90px, 12vw, 170px) var(--marge); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.parcours__tete { display: grid; gap: 32px; }
.citation { max-width: 60ch; }
.citation p { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.5; font-weight: 300; }
.citation footer { margin-top: 14px; font-size: 0.9rem; color: var(--encre-2); }
.trace { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(24px, 4vw, 56px); padding-top: 36px; }
.trace::before, .trace::after { content: ""; position: absolute; left: 0; top: 7px; height: 2px; background: var(--filet); width: 100%; }
.trace::after { background: linear-gradient(90deg, var(--encre) 0 74%, var(--rouge) 74% 100%); transform-origin: left; transform: scaleX(var(--trace, 1)); }
.trace__etape { position: relative; display: grid; gap: 8px; }
.trace__etape::before { content: ""; position: absolute; top: -36px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--boitier); border: 2px solid var(--encre); z-index: 1; }
.trace__etape--fin::before { background: var(--flamme); border-color: var(--rouge); }
.trace__nom { font-size: 1.2rem; font-weight: 450; letter-spacing: -0.01em; }
.trace__etape--fin .trace__nom { color: var(--rouge); }
.trace__dit { color: var(--encre-2); font-size: 0.95rem; max-width: 28ch; }
.portrait { grid-column: 2; grid-row: 1; width: min(100%, 360px); justify-self: end; display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 4 / 5; padding: 24px; text-align: center; border-radius: var(--rayon); font-size: 0.9rem; }
.portrait .ic, .preuve .ic { width: 28px; height: 28px; }

/* ---------- Dépannage (le soir) ---------- */
.depannage {
  margin: 0 clamp(10px, 1.6vw, 24px); border-radius: 28px; background: var(--ecran); color: var(--ecran-texte);
  padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center;
}
.depannage__texte { display: grid; gap: 22px; justify-items: start; }
.depannage__lune { width: 44px; height: 44px; fill: var(--flamme); }
.depannage__texte p { color: var(--ecran-texte-2); max-width: 40ch; font-size: 1.15rem; }
.depannage .btn--plein:focus-visible { outline-color: var(--flamme); }
.programme { display: grid; gap: 0; border-top: 1px solid var(--ecran-filet); }
.programme__titre { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ecran-texte-2); padding: 16px 0 8px; }
.programme__ligne { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--ecran-filet); }
.programme__jour { font-size: 0.98rem; }
.programme__barre { height: 10px; border-radius: 99px; background: var(--ecran-2); position: relative; overflow: hidden; }
.programme__barre::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--rouge), var(--flamme)); transform-origin: left; transform: scaleX(0); transition: transform 900ms var(--ease); }
.programme__ligne.est-allumee .programme__barre::after { transform: scaleX(1); }
.js .programme:not(.est-chauffe) .programme__barre::after { transform: scaleX(0); }
.programme__ligne:nth-child(4) .programme__barre::after { transition-delay: 120ms; }
.programme__ligne:nth-child(5) .programme__barre::after { transition-delay: 240ms; }
.programme__barre--jour { background: repeating-linear-gradient(90deg, var(--ecran-2) 0 6px, transparent 6px 10px); }
.programme__etat { font-size: 0.9rem; color: var(--flamme); white-space: nowrap; }
.programme__note { margin-top: 18px; justify-self: start; }
.programme .trou { color: #6b4300; }

/* ---------- Zone ---------- */
.zone { padding: clamp(90px, 12vw, 170px) var(--marge); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.zone__texte { display: grid; gap: 22px; justify-items: start; }
.zone__texte > p { color: var(--encre-2); max-width: 44ch; }
.zone__codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; width: 100%; margin-top: 6px; }
.zone__codes li { display: grid; gap: 2px; font-size: 0.92rem; color: var(--encre-2); line-height: 1.3; }
.zone__codes b { font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 250; color: var(--encre); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; transition: color 200ms ease; }
.zone__codes li.est-survole b { color: var(--rouge); }
.carte { margin: 0; }
.carte__svg { width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 62%, transparent 100%); }
.dep { fill: transparent; stroke: #C4C4BC; stroke-width: 1.2; stroke-linejoin: round; transition: fill 240ms ease; }
.dep--zone { fill: var(--face); stroke: var(--encre); stroke-width: 1.6; }
.dep--demi { fill: url(#demi); stroke: var(--encre); stroke-width: 1.6; stroke-dasharray: 6 6; }
.dep--zone.est-survole, .dep--demi.est-survole { fill: #F7E3E5; }
.carte__point { fill: var(--rouge); }
.carte__onde { fill: none; stroke: var(--rouge); stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.carte__ville { font: 500 22px var(--texte); fill: var(--encre); paint-order: stroke; stroke: var(--boitier); stroke-width: 6px; }
.carte__code { font: 250 44px var(--texte); fill: var(--encre-2); letter-spacing: -0.02em; pointer-events: none; }
.carte__code--demi { fill: #8A8F8D; }

/* ---------- Réalisations et avis ---------- */
.preuves { padding: clamp(60px, 8vw, 120px) var(--marge); background: var(--face); display: grid; gap: 18px; }
.preuves__intro { color: var(--encre-2); max-width: 56ch; }
.preuves__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; margin-top: 28px; }
.preuve, .avis { display: grid; place-items: center; align-content: center; gap: 10px; padding: 24px; text-align: center; border-radius: var(--rayon); min-height: 200px; font-size: 0.9rem; }
.preuve:first-child { grid-row: span 2; min-height: 380px; }
.avis { grid-column: span 2; }
.avis p { font-size: 1.1rem; }
.avis footer { font-size: 0.85rem; }

/* ---------- Contact ---------- */
.contact { padding: clamp(90px, 12vw, 170px) var(--marge); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.contact__texte { display: grid; gap: 22px; position: sticky; top: calc(var(--barre) + 40px); }
.contact__texte > p { color: var(--encre-2); max-width: 42ch; }
.coord { display: grid; gap: 14px; margin-top: 8px; }
.coord li { display: flex; align-items: center; gap: 14px; font-size: 1.15rem; }
.coord .ic { color: var(--rouge); }
.coord a { text-decoration: none; }
.coord a:hover { text-decoration: underline; }

.formulaire { display: grid; gap: 20px; background: var(--face); border: 1px solid var(--filet); border-radius: 22px; padding: clamp(22px, 3vw, 40px); }
.formulaire__metiers { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.formulaire__metiers legend { font-size: 0.9rem; font-weight: 500; margin-bottom: 10px; padding: 0; }
.formulaire__metiers label { position: relative; }
.formulaire__metiers input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.formulaire__metiers span {
  display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 12px; border: 1px solid var(--filet);
  font-size: 0.86rem; color: var(--encre-2); background: var(--boitier); transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.formulaire__metiers .ic { width: 24px; height: 24px; }
.formulaire__metiers input:checked + span { border-color: var(--encre); background: var(--ecran); color: var(--ecran-texte); }
.formulaire__metiers input:checked + span .ic { color: var(--flamme); }
.formulaire__metiers input:focus-visible + span { outline: 2px solid var(--rouge); outline-offset: 2px; }
.champ { display: grid; gap: 7px; }
.champ label { font-size: 0.9rem; font-weight: 500; }
.champ input, .champ textarea {
  width: 100%; border: 1px solid #BDBDB5; border-radius: 10px; background: #fff; padding: 13px 14px; font-size: 1rem; line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.champ textarea { resize: vertical; min-height: 120px; }
.champ input::placeholder, .champ textarea::placeholder { color: #6E7372; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgb(193 23 47 / 0.18); }
.champ__erreur { display: none; font-size: 0.85rem; color: var(--rouge); }
.champ.est-erreur input { border-color: var(--rouge); }
.champ.est-erreur .champ__erreur { display: block; }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.formulaire .btn { justify-self: start; }

/* ---------- Pied ---------- */
.pied { background: var(--ecran); color: var(--ecran-texte); padding: clamp(56px, 7vw, 96px) var(--marge) 40px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px 64px; }
.pied__maison { width: 220px; height: 56px; }
.pied__maison .m-r, .pied__maison .m-k, .pied__maison .m-y { stroke-width: 1.8px; }
.pied__maison .m-k { stroke: var(--ecran-texte); }
.pied__maison .m-r { stroke: var(--rouge-vif); }
.pied__mot { margin-top: 10px; font-size: 1.35rem; font-weight: 300; letter-spacing: 0.16em; text-transform: uppercase; }
.pied__mot .e-inv, .pied__mot .e-inv::after { color: var(--rouge-vif); background-color: transparent; }
.pied__mot .e-inv::after { background: var(--rouge-vif); }
.pied__signature { margin-top: 10px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ecran-texte-2); }
.pied__bloc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; align-content: start; }
.pied__bloc dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ecran-texte-2); margin-bottom: 6px; }
.pied__bloc dd { font-size: 0.95rem; }
.pied__bloc a { text-decoration: none; }
.pied__bloc a:hover { text-decoration: underline; }
.pied__fin { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--ecran-filet); font-size: 0.82rem; color: var(--ecran-texte-2); }

/* Photos et avis absents : cadres neutres, seule l'étiquette porte la couleur des trous */
figure.trou, blockquote.trou {
  display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; text-align: center;
  border-radius: var(--rayon); border: 1px dashed #B9A16A; background: transparent; color: var(--encre-2); font-size: 0.9rem;
}
figure.trou .ic { color: #9C8448; }
figure.trou figcaption, blockquote.trou footer {
  font-weight: 500; font-size: 0.8rem; color: #6b4300; background: #fff0c4; border: 1px dashed #b98419; padding: 3px 9px; border-radius: 8px;
}
blockquote.trou p { font-size: 1.1rem; color: var(--encre-2); }

/* Barre d'appel fixe (téléphone) */
.appel-fixe { display: none; }

/* ---------- Apparitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .apparait { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 800ms var(--ease); }
  .js .apparait.est-vu { opacity: 1; transform: none; }
  .js .trace::after { transform: scaleX(var(--trace, 0)); transition: transform 1400ms var(--ease); }
  .carte__onde.est-active { animation: onde 2.8s var(--ease) infinite; }
  @keyframes onde { 0% { opacity: 0.7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(4.2); } }
}

/* ---------- Tablette ---------- */
@media (max-width: 1180px) {
  .accueil { grid-template-columns: minmax(0, 1fr) minmax(0, min(52vw, 560px)); padding-top: 32px; }
  .reglages { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  .reglage:last-child { border-bottom: 0; }
  .barre__nav { gap: 20px; }
}
@media (max-width: 980px) {
  .barre__nav { display: none; }
  .barre__tel { margin-left: auto; }
  .metiers__corps { grid-template-columns: minmax(0, 1fr); }
  .metiers__suivi { display: none; }
  .metier { min-height: 0; }
  .metier:first-child { padding-top: 0; }
  .parcours, .zone, .contact { grid-template-columns: minmax(0, 1fr); }
  .portrait { grid-column: 1; grid-row: auto; aspect-ratio: 16 / 9; max-width: 640px; }
  .trace { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .trace::before, .trace::after { display: none; }
  .depannage { grid-template-columns: minmax(0, 1fr); }
  .contact__texte { position: static; }
  .pied { grid-template-columns: 1fr; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 720px) {
  :root { --barre: 62px; }
  body { font-size: 1rem; padding-bottom: 84px; }
  .barre { gap: 12px; }
  .marque__maison { width: 84px; height: 21px; }
  .marque__mot { font-size: 0.7rem; }
  .barre__tel span { display: none; }
  .barre__tel { padding: 10px; }
  .accueil { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; padding: 20px var(--marge) 40px; }
  .titre { font-size: clamp(2.05rem, 9vw, 2.6rem); }
  .accueil__lead { font-size: 1.02rem; margin-top: 16px; }
  .accueil__actions { margin-top: 22px; }
  .accueil__actions .btn { flex: 1 1 auto; }
  .cadran { width: min(100%, 420px); justify-self: center; }
  .mode { font-size: 0.7rem; letter-spacing: 0.1em; padding: 0 4px; }
  .cadran__ecran { top: 44%; width: 52%; }
  .ecran__ligne { font-size: 0.72rem; }
  .reglages { grid-template-columns: 1fr; margin-top: 24px; }
  .reglage:last-child { border-bottom: 1px solid var(--filet); }
  .trace { grid-template-columns: 1fr; row-gap: 22px; padding-top: 0; padding-left: 34px; }
  .trace::before { display: block; left: 7px; top: 8px; width: 2px; height: calc(100% - 16px); }
  .trace__etape::before { top: 4px; left: -34px; }
  .depannage { margin: 0; border-radius: 0; }
  .programme__ligne { grid-template-columns: 1fr auto; row-gap: 8px; }
  .programme__barre { grid-column: 1 / -1; grid-row: 2; }
  .zone__codes b { font-size: 2.2rem; }
  .preuves__grille { grid-template-columns: 1fr 1fr; }
  .preuve:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 220px; }
  .preuve { min-height: 150px; }
  .avis { grid-column: 1 / -1; }
  .formulaire__metiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .champ-duo { grid-template-columns: 1fr; }
  .formulaire .btn { justify-self: stretch; }
  .pied__bloc { grid-template-columns: 1fr 1fr; }
  .appel-fixe {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--boitier) 94%, transparent); border-top: 1px solid var(--filet);
  }
  .appel-fixe .btn { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
