/* ==========================================================================
   RZ Contrôles et réparations Sàrl — feuille de style
   Concept : « La ligne de vie » — la corde turquoise du logo relie les sections.
   Couleurs reprises du logo : ambre #F9B233 et turquoise #14A39B.
   ========================================================================== */

/* ---------- Police (auto-hébergée, aucune requête vers Google) ---------- */
/* Police latin : voir police.css (intégrée). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons de design ---------- */
:root {
  --ambre: #F9B233;
  --ambre-fonce: #E39A0F;
  --ambre-pale: #FDE9C2;
  --turquoise: #14A39B;
  --turquoise-texte: #0A6E68;
  --turquoise-pale: #DDF1EF;
  --petrole: #0F2E31;
  --petrole-2: #17403F;
  --acier: #E8EDEC;
  --acier-2: #D3DBDA;
  --blanc: #FFFFFF;
  --texte: #0F2E31;
  --texte-doux: #4A6462;
  --erreur: #B42318;
  --erreur-pale: #FDECEA;

  /* codes couleur des élingues textiles (EN 1492) */
  --c-violet: #7A3E9D;
  --c-vert: #2F9E4A;
  --c-jaune: #F2C500;
  --c-gris: #8C9496;
  --c-rouge: #D52B1E;
  --c-brun: #7B4A2A;
  --c-bleu: #1F5FAF;
  --c-orange: #F07C12;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 125%;
  --semi: 112%;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
  --step-5: clamp(2.5rem, 1.2rem + 5.6vw, 5.4rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --header-h: 76px;
  --rope-w: 4px;
  --radius-s: 6px;
  --radius-m: 14px;
  --ombre: 0 1px 0 rgba(15, 46, 49, .06), 0 10px 30px -12px rgba(15, 46, 49, .28);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 900px) {
  :root { --step-0: 1.125rem; --header-h: 92px; }
}
@media (max-width: 599px) {
  :root { --rope-w: 3px; }
  .pv__entete { flex-direction: column; gap: 2px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.sans-animation) { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--turquoise-texte); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--encre :focus-visible, .site-footer :focus-visible { outline-color: var(--ambre); }
::selection { background: var(--ambre); color: var(--petrole); }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--petrole); color: var(--blanc); padding: 10px 16px; border-radius: var(--radius-s);
  text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typographie ---------- */
.titre-xl, .titre-l, .titre-m { font-stretch: var(--wide); letter-spacing: -0.012em; }
.titre-xl { font-size: var(--step-5); line-height: .98; }
.titre-l { font-size: var(--step-4); line-height: 1; }
.titre-m { font-size: var(--step-3); line-height: 1.04; }
.titre-s { font-size: var(--step-2); font-stretch: var(--semi); font-weight: 750; line-height: 1.15; }
.chapo { font-size: var(--step-1); line-height: 1.5; color: var(--texte-doux); max-width: 38em; }
.section--encre .chapo { color: #B9CCCA; }
.texte { max-width: 36em; }
.petit { font-size: var(--step--1); }
.doux { color: var(--texte-doux); }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--petrole); --fg: var(--blanc); --bd: var(--petrole);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.25em;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--bd); border-radius: var(--radius-s);
  font-weight: 700; font-stretch: var(--semi); font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s var(--ease-out), box-shadow .18s;
}
.btn:hover { --bg: var(--petrole-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--ambre { --bg: var(--ambre); --fg: var(--petrole); --bd: var(--ambre); box-shadow: inset 0 -3px 0 rgba(15,46,49,.18); }
.btn--ambre:hover { --bg: #FFC24F; --bd: #FFC24F; }
.btn--contour { --bg: transparent; --fg: var(--petrole); --bd: var(--petrole); }
.btn--contour:hover { --bg: var(--petrole); --fg: var(--blanc); }
.section--encre .btn--contour, .site-footer .btn--contour, .video-tete .btn--contour { --fg: var(--blanc); --bd: rgba(255,255,255,.6); }
.section--encre .btn--contour:hover, .video-tete .btn--contour:hover { --bg: var(--blanc); --fg: var(--petrole); --bd: var(--blanc); }
.btn--petit { min-height: 40px; padding: .45em .9em; font-size: .9375rem; }
.btn--plein { width: 100%; }
.btn[aria-pressed="true"] { --bg: var(--turquoise-pale); --fg: var(--turquoise-texte); --bd: var(--turquoise); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.lien-fort {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 700; color: var(--petrole); text-decoration: underline; text-decoration-color: var(--turquoise);
  text-decoration-thickness: 2px; text-underline-offset: .25em;
}
.lien-fort:hover { color: var(--turquoise-texte); text-decoration-thickness: 3px; }
.section--encre .lien-fort { color: var(--blanc); text-decoration-color: var(--ambre); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--acier-2); box-shadow: 0 6px 20px -16px rgba(15,46,49,.5); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { height: calc(var(--header-h) - 18px); width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative; display: block; padding: 10px 14px;
  color: var(--petrole); text-decoration: none; font-weight: 600; font-stretch: var(--semi);
  border-radius: var(--radius-s);
}
.nav__list a:hover { background: var(--acier); }
.nav__list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  background: var(--turquoise); border-radius: 3px;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.tel-btn { white-space: nowrap; }
.devis-btn { position: relative; }
.devis-btn__nb {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .35em;
  background: var(--ambre); color: var(--petrole); border-radius: 99px; font-size: .8125rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.devis-btn__nb[data-vide="true"] { background: var(--acier); color: var(--texte-doux); }
.devis-btn.pulse .devis-btn__nb { animation: pulse .5s var(--ease-out); }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.burger { display: none; }
@media (max-width: 1080px) {
  .tel-btn__num { display: none; }
}
@media (max-width: 899px) {
  .nav { display: none; }
  .burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-left: 2px;
    background: var(--petrole); color: var(--blanc); border: 0; border-radius: var(--radius-s);
  }
  .burger svg { width: 24px; height: 24px; }
  .header-actions { margin-left: auto; }
  .devis-btn__label { display: none; }
}
@media (max-width: 380px) {
  .tel-btn { display: none; }
}

/* Menu mobile */
.menu-mobile {
  position: fixed; inset: 0; z-index: 90; margin: 0; padding: 0; max-width: none; max-height: none;
  width: 100%; height: 100%; border: 0;
  background: var(--petrole); color: var(--blanc);
}
.menu-mobile::backdrop { background: rgba(15,46,49,.5); }
.menu-mobile__inner { display: flex; flex-direction: column; min-height: 100%; padding: 16px var(--gutter) 32px; }
.menu-mobile__top { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.menu-mobile__top .titre { font-stretch: var(--wide); font-weight: 800; }
.btn-fermer {
  display: inline-flex; align-items: center; gap: .4em; min-height: 48px; padding: 0 14px;
  background: transparent; color: inherit; border: 2px solid rgba(255,255,255,.4); border-radius: var(--radius-s); font-weight: 700;
}
.btn-fermer svg { width: 20px; height: 20px; }
.menu-mobile nav ul { list-style: none; margin: 24px 0; padding: 0; }
.menu-mobile nav a {
  display: block; padding: 14px 0; color: var(--blanc); text-decoration: none;
  font-size: 2rem; font-weight: 800; font-stretch: var(--wide); border-bottom: 1px solid rgba(255,255,255,.12);
}
.menu-mobile nav a[aria-current="page"] { color: var(--ambre); }
.menu-mobile__contact { margin-top: auto; display: grid; gap: 10px; }
.menu-mobile__contact .btn--contour { --fg: var(--blanc); --bd: rgba(255,255,255,.5); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 136px); }
.section--acier { background: var(--acier); }
.section--encre { background: var(--petrole); color: var(--blanc); }
.section--ambre { background: var(--ambre); color: var(--petrole); }
.section__tete { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 52rem; }
.section > .wrap, .hero > .wrap { position: relative; z-index: 2; }

/* ---------- Ligne de vie (corde au scroll) ---------- */
.page-corde { position: relative; }
.ligne-vie {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 3; overflow: visible;
}
.ligne-vie__ombre { fill: none; stroke: rgba(15,46,49,.12); stroke-width: calc(var(--rope-w) + 3px); stroke-linecap: round; stroke-linejoin: round; }
.ligne-vie__corde { fill: none; stroke: var(--turquoise); stroke-width: var(--rope-w); stroke-linecap: round; stroke-linejoin: round; }
.ligne-vie__torsade { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; }
.ancre { transition: transform .35s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.ancre__anneau { fill: var(--blanc); stroke: var(--petrole); stroke-width: 3; }
.ancre__doigt { fill: none; stroke: var(--petrole); stroke-width: 3; stroke-linecap: round; transform-box: fill-box; transform-origin: 0% 100%; transition: transform .35s var(--ease-out); }
.ancre.is-accrochee .ancre__anneau { fill: var(--ambre); }
.ancre.is-accrochee { transform: scale(1.12); }
.ancre:not(.is-accrochee) .ancre__doigt { transform: rotate(-28deg); }
.section--encre ~ * .ancre__anneau, .ancre--sombre .ancre__anneau { stroke: var(--petrole); }

/* ---------- Héros ---------- */
.hero {
  position: relative; overflow: clip;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 96px);
  background:
    linear-gradient(var(--blanc), var(--blanc)) padding-box;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__texte { position: relative; z-index: 4; padding-top: 24px; }
.hero__titre { margin-bottom: 28px; font-size: clamp(2.3rem, 0.6rem + 4.3vw, 4.3rem); }
.hero__titre .ligne { display: block; }
.hero .chapo { margin-bottom: 32px; color: var(--texte-doux); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.statut {
  display: inline-flex; align-items: center; gap: .6em; padding: 8px 14px 8px 12px;
  background: var(--acier); border-radius: 99px; font-size: .9375rem; font-weight: 600;
}
.statut__point { width: 10px; height: 10px; border-radius: 50%; background: var(--texte-doux); flex: none; }
.statut[data-etat="ouvert"] .statut__point { background: #1E9E5A; box-shadow: 0 0 0 4px rgba(30,158,90,.18); }
.statut[data-etat="pause"] .statut__point { background: var(--ambre-fonce); }
.statut[data-etat="ferme"] .statut__point { background: var(--erreur); }

.hero__visuel { position: relative; align-self: stretch; min-height: 520px; }
.hero__photo {
  position: absolute; right: 0; top: 6%; bottom: 0; width: 82%;
  border-radius: var(--radius-m); overflow: hidden; background: var(--acier);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-size: .8125rem; color: var(--blanc); text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* Pendule : corde + mousqueton + étiquette de contrôle */
.pendule {
  position: absolute; z-index: 5; top: calc(-1 * clamp(40px, 6vw, 72px)); left: 18%;
  width: 0; height: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.pendule__corde {
  position: absolute; left: -2px; top: 0; width: 4px; height: var(--corde-h, 210px);
  background: var(--turquoise); border-radius: 2px;
  box-shadow: 1px 0 0 rgba(15,46,49,.15);
}
.pendule__corde::after { /* torsade */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(160deg, transparent 0 5px, rgba(255,255,255,.45) 5px 6.5px);
  border-radius: 2px;
}
.pendule__bras { position: absolute; left: 0; top: var(--corde-h, 210px); width: 0; height: 0; transform-origin: 0 0; will-change: transform; }
.mousqueton { position: absolute; z-index: 2; left: -15px; top: -4px; width: 30px; height: 54px; filter: drop-shadow(0 2px 2px rgba(15,46,49,.3)); }
.etiquette {
  position: absolute; left: calc(-1 * var(--etq-w, 220px) / 2); top: 32px;
  width: var(--etq-w, 220px);
  padding: 34px 18px 18px;
  background: var(--ambre);
  color: var(--petrole);
  border-radius: 16px 16px 18px 18px;
  box-shadow: 0 2px 0 rgba(15,46,49,.12), 0 24px 40px -18px rgba(15,46,49,.55);
  text-align: center;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.etiquette:active { cursor: grabbing; }
.etiquette::before { /* œillet */
  content: ""; position: absolute; left: 50%; top: 10px; width: 20px; height: 20px; margin-left: -10px;
  border-radius: 50%; background: var(--blanc);
  box-shadow: 0 0 0 4px #C9D2D1, inset 0 2px 3px rgba(0,0,0,.25);
}
.etiquette__titre { display: block; font-size: 1.375rem; font-weight: 800; font-stretch: var(--wide); line-height: 1; margin-bottom: 10px; }
.etiquette__cadran { width: 132px; height: 132px; margin: 0 auto 10px; }
.etiquette__prochain { display: block; font-size: .78rem; line-height: 1.3; font-weight: 600; }
.etiquette__prochain strong { display: block; font-size: 1rem; font-weight: 800; }
.etiquette__nom { display: block; margin-top: 10px; padding-top: 8px; border-top: 1.5px dashed rgba(15,46,49,.35); font-size: .72rem; font-weight: 700; letter-spacing: .01em; }
.cadran__fond { fill: var(--blanc); }
.cadran__mois { fill: var(--petrole); font-size: 9px; font-weight: 700; font-family: var(--font); }
.cadran__case { fill: transparent; stroke: rgba(15,46,49,.2); stroke-width: .8; }
.cadran__case.is-courant { fill: var(--petrole); }
.cadran__mois.is-courant { fill: var(--ambre); }
.cadran__annee { fill: var(--petrole); font-size: 30px; font-weight: 800; font-family: var(--font); font-stretch: 125%; }
.cadran__ok { fill: var(--turquoise-texte); font-size: 8px; font-weight: 700; font-family: var(--font); }

.hero__indice {
  position: absolute; z-index: 6; right: 0; bottom: -34px; font-size: .8125rem; color: var(--texte-doux);
  display: flex; align-items: center; gap: .4em;
}

@media (max-width: 899px) {
  .hero { min-height: 0; align-items: flex-start; padding-top: 0; padding-bottom: 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero__texte { padding-top: 0; }
  .hero__visuel {
    order: -1; position: relative; min-height: 0;
    height: clamp(330px, 92vw, 460px);
    margin-inline: calc(-1 * var(--gutter));
  }
  .hero__photo { position: absolute; top: 28px; left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; }
  .hero__photo img { object-position: 50% 70%; }
  .pendule { top: 0; left: 30%; --corde-h: 38px; }
  .hero__indice { display: none; }
  .etiquette { --etq-w: 172px; padding: 30px 12px 12px; }
  .etiquette__cadran { width: 100px; height: 100px; }
  .etiquette__titre { font-size: 1.15rem; }
  .hero__titre { font-size: clamp(2.1rem, 9.3vw, 3.6rem); margin-bottom: 20px; }
  .hero .chapo { font-size: 1.0625rem; margin-bottom: 24px; }
}

/* ---------- Procès-verbal (pourquoi contrôler) ---------- */
.pourquoi { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pourquoi__texte .titre-l { margin-bottom: 28px; }
.pourquoi__texte .texte p { font-size: var(--step-1); line-height: 1.55; }
.pv {
  position: relative; background: var(--blanc); border-radius: var(--radius-m);
  box-shadow: var(--ombre); padding: 28px clamp(20px, 3vw, 32px) 24px;
  border-top: 10px solid var(--ambre);
}
.pv__entete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 2px solid var(--petrole); }
.pv__entete h3 { font-size: 1.125rem; font-stretch: var(--wide); }
.pv__entete span { font-size: .8125rem; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.pv ul { list-style: none; margin: 0; padding: 0; }
.pv li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--acier-2); }
.pv li:last-child { border-bottom: 0; }
.pv__case {
  width: 24px; height: 24px; margin-top: 2px; border: 2px solid var(--petrole); border-radius: 4px;
  display: grid; place-items: center; background: var(--blanc);
}
.pv__case svg { width: 16px; height: 16px; color: var(--turquoise-texte); }
.pv strong { display: block; font-stretch: var(--semi); }
.pv small { display: block; color: var(--texte-doux); font-size: .9375rem; line-height: 1.4; }
.pv__pied { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--petrole); font-size: .875rem; color: var(--texte-doux); }
@media (max-width: 899px) { .pourquoi { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; gap: clamp(56px, 8vw, 112px); }
.service { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.service:nth-child(even) .service__media { order: 2; }
.service__media { position: relative; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 5 / 4; background: var(--acier); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__nom { font-size: var(--step-4); font-stretch: var(--wide); font-weight: 800; line-height: 1; margin-bottom: 20px; }
.service__texte p { max-width: 32em; }
.service__lien { margin-top: 18px; }
@media (max-width: 799px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__media { order: 0; }
}

/* ---------- Catégories ---------- */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cat {
  position: relative; display: flex; flex-direction: column;
  background: var(--blanc); border-radius: var(--radius-m); overflow: hidden;
  text-decoration: none; color: var(--petrole);
  border: 1px solid var(--acier-2);
  transition: border-color .2s, transform .25s var(--ease-out), box-shadow .25s;
}
.cat:hover { border-color: var(--petrole); transform: translateY(-3px); box-shadow: var(--ombre); }
.cat:nth-child(1), .cat:nth-child(2) { grid-column: span 3; }
.cat:nth-child(n+3) { grid-column: span 2; }
.cat__img { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 14px; background: var(--blanc); }
.cat:nth-child(n+3) .cat__img { aspect-ratio: 1 / 1; }
.cat__img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.cat__corps { padding: 16px 18px 18px; border-top: 1px solid var(--acier); display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.cat__nom { font-size: 1.25rem; font-weight: 800; font-stretch: var(--semi); line-height: 1.1; }
.cat__nb { font-size: .875rem; color: var(--texte-doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat__badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 99px;
  background: var(--petrole); color: var(--ambre); font-size: .8125rem; font-weight: 800;
}
@media (max-width: 899px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat:nth-child(n) { grid-column: span 1; }
  .cat:nth-child(1) { grid-column: span 2; }
  .cat .cat__img, .cat:nth-child(n+3) .cat__img { aspect-ratio: 1 / 1; }
  .cat:nth-child(1) .cat__img { aspect-ratio: 16 / 10; }
}

/* ---------- Sur le terrain (galerie) ---------- */
.terrain { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 15vw, 210px); gap: 14px; }
.terrain figure { position: relative; margin: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--petrole-2); }
.terrain img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.terrain figure:hover img { transform: scale(1.04); }
.terrain figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgba(15,46,49,.85));
  color: var(--blanc); font-size: .9375rem; font-weight: 600; line-height: 1.3;
}
.t1 { grid-column: 1 / span 5; grid-row: 1 / span 3; }
.t2 { grid-column: 6 / span 4; grid-row: 1 / span 2; }
.t3 { grid-column: 10 / span 3; grid-row: 1 / span 2; }
.t4 { grid-column: 6 / span 3; grid-row: 3 / span 1; }
.t5 { grid-column: 9 / span 4; grid-row: 3 / span 1; }
@media (max-width: 799px) {
  .terrain { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .terrain figure { grid-column: auto / span 1 !important; grid-row: auto / span 1 !important; }
  .terrain .t1 { grid-column: 1 / -1 !important; grid-row: auto / span 2 !important; }
}

/* ---------- Équipe ---------- */
.equipe { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.equipe__photo { margin: 0; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 1 / 1; background: var(--acier); }
.equipe__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.equipe__qui { display: grid; gap: 18px; margin: 28px 0; padding: 0; list-style: none; }
.equipe__qui li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.equipe__qui .pastille { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--ambre); display: grid; place-items: center; }
.equipe__qui .pastille img { width: 100%; height: 100%; object-fit: cover; }
.equipe__qui strong { display: block; font-size: 1.25rem; font-stretch: var(--semi); line-height: 1.2; }
.equipe__qui span { color: var(--texte-doux); }
.citation { margin: 0; padding: 22px 0 0; border-top: 2px solid var(--petrole); font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 899px) { .equipe { grid-template-columns: 1fr; } }

/* ---------- Bande d'appel (ambre) ---------- */
.appel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; }
.appel__tel {
  display: inline-block; font-size: clamp(2.2rem, 1rem + 5vw, 4.6rem); font-weight: 800; font-stretch: var(--wide);
  line-height: 1; color: var(--petrole); text-decoration: none; letter-spacing: -0.01em; margin: 18px 0 14px;
  font-variant-numeric: tabular-nums;
}
.appel__tel:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.appel__infos { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; }
.appel__infos a { color: var(--petrole); }
.appel__cta { display: grid; gap: 12px; min-width: 260px; }
@media (max-width: 799px) { .appel { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--petrole); color: #C8D6D5; padding: 64px 0 28px; font-size: .9375rem; }
.site-footer a { color: var(--blanc); }
.lien-icone { display: inline-flex; align-items: center; gap: 8px; }
.lien-icone svg { width: 20px; height: 20px; flex: none; }
.footer__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__logo { background: var(--blanc); display: inline-block; padding: 10px 14px; border-radius: var(--radius-m); margin-bottom: 18px; }
.footer__logo img { height: 64px; width: auto; }
.site-footer h2 { font-size: 1rem; color: var(--blanc); font-stretch: var(--semi); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.horaires { border-collapse: collapse; width: 100%; max-width: 280px; }
.horaires th, .horaires td { text-align: left; padding: 3px 0; font-weight: 400; vertical-align: top; }
.horaires th { padding-right: 12px; color: var(--blanc); font-weight: 600; }
.horaires tr.is-aujourdhui th, .horaires tr.is-aujourdhui td { color: var(--ambre); font-weight: 700; }
.footer__bas { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: .8125rem; }
.interrupteur {
  display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: var(--blanc); border-radius: 99px; padding: 6px 12px 6px 6px; font-size: .8125rem; font-weight: 600; min-height: 36px;
}
.interrupteur__piste { width: 34px; height: 20px; border-radius: 99px; background: rgba(255,255,255,.25); position: relative; transition: background .2s; }
.interrupteur__piste::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--blanc); transition: transform .2s; }
.interrupteur[aria-checked="true"] .interrupteur__piste { background: var(--turquoise); }
.interrupteur[aria-checked="true"] .interrupteur__piste::after { transform: translateX(14px); }
@media (max-width: 899px) { .footer__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grille { grid-template-columns: 1fr; } }

/* ---------- En-tête de page intérieure ---------- */
.page-tete { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); background: var(--blanc); position: relative; }
.fil { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .875rem; color: var(--texte-doux); }
.fil li + li::before { content: "/"; margin-right: 6px; color: var(--acier-2); }
.fil a { color: var(--texte-doux); }
.page-tete .titre-xl { margin-bottom: 20px; }

/* ---------- Catalogue ---------- */
.outils {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--acier-2);
  padding: 14px 0;
}
.outils__ligne { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.recherche { position: relative; flex: 1 1 280px; max-width: 420px; }
.recherche svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--texte-doux); pointer-events: none; }
.recherche input {
  width: 100%; min-height: 48px; padding: 10px 44px 10px 44px;
  border: 2px solid var(--acier-2); border-radius: var(--radius-s); background: var(--blanc);
}
.recherche input:hover { border-color: var(--texte-doux); }
.recherche input:focus { border-color: var(--turquoise); outline: none; box-shadow: 0 0 0 3px rgba(20,163,155,.25); }
.recherche__effacer {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border: 0; background: transparent; border-radius: 50%; display: none; place-items: center; color: var(--texte-doux);
}
.recherche__effacer:hover { background: var(--acier); color: var(--petrole); }
.recherche__effacer svg { position: static; margin: 0; width: 18px; height: 18px; }
.recherche.has-valeur .recherche__effacer { display: grid; }
.tri { display: flex; align-items: center; gap: 8px; font-size: .9375rem; margin-left: auto; }
@media (max-width: 699px) {
  .outils { padding: 10px 0; }
  .outils__ligne { flex-wrap: nowrap; gap: 8px; }
  .recherche { flex: 1 1 auto; min-width: 0; }
  .tri label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tri select { max-width: 118px; min-height: 48px; padding-left: 10px; }
  .outils .puces { margin-top: 10px !important; }
}
.tri select { min-height: 44px; padding: 8px 36px 8px 12px; border: 2px solid var(--acier-2); border-radius: var(--radius-s); background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2E31' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; appearance: none; }
.puces { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.puces::-webkit-scrollbar { display: none; }
.puce {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--acier-2); background: var(--blanc); border-radius: 99px; font-weight: 650; font-size: .9375rem; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.puce:hover { border-color: var(--petrole); }
.puce[aria-pressed="true"] { background: var(--petrole); border-color: var(--petrole); color: var(--blanc); }
.puce__nb { font-size: .8125rem; font-variant-numeric: tabular-nums; opacity: .75; }
.resultats-info { margin: 28px 0 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.resultats-info p { margin: 0; color: var(--texte-doux); }
.resultats-info strong { color: var(--petrole); }

.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.produit {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--blanc); border: 1px solid var(--acier-2); border-radius: var(--radius-m); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.produit:hover { border-color: var(--petrole); box-shadow: var(--ombre); }
.produit__img { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 16px; background: var(--blanc); }
.produit__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .35s var(--ease-out); }
.produit:hover .produit__img img { transform: scale(1.04); }
.produit__corps { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; border-top: 1px solid var(--acier); }
.produit__nom { font-size: 1.0625rem; font-weight: 750; font-stretch: var(--semi); line-height: 1.2; }
.produit__ouvrir { color: var(--petrole); text-decoration: none; }
.produit__ouvrir::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.produit__ouvrir:focus-visible { outline: none; }
.produit:has(.produit__ouvrir:focus-visible) { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.produit__sous { font-size: .875rem; color: var(--texte-doux); line-height: 1.35; }
.produit__pied { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prix { font-weight: 750; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.prix--demande { color: var(--texte-doux); font-weight: 600; }
.produit__ajout { position: relative; z-index: 2; }
.badge-nouveau {
  position: absolute; z-index: 2; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px;
  background: var(--ambre); color: var(--petrole); font-size: .75rem; font-weight: 800;
}
.code-couleur { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--petrole); }
.code-couleur__pastille { width: 22px; height: 10px; border-radius: 5px; background: var(--cc, var(--c-gris)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
@media (max-width: 559px) {
  .grille-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .produit__img { padding: 10px; }
  .produit__corps { padding: 10px 10px 12px; }
  .produit__nom { font-size: .95rem; }
  .produit__sous { font-size: .8125rem; }
  .produit__pied { flex-direction: column; align-items: stretch; gap: 8px; }
  .produit__ajout { width: 100%; }
  .prix { font-size: .875rem; }
}
.vide { text-align: center; padding: 64px 16px; border: 2px dashed var(--acier-2); border-radius: var(--radius-m); }
.vide h2 { font-size: 1.5rem; font-stretch: var(--semi); margin-bottom: 10px; }
.vide p { color: var(--texte-doux); margin-bottom: 18px; }

/* Légende code couleur */
.legende-couleurs { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 16px 18px; background: var(--acier); border-radius: var(--radius-m); margin-top: 18px; font-size: .875rem; }
.legende-couleurs strong { width: 100%; font-stretch: var(--semi); }

/* ---------- Fenêtres (dialog) ---------- */
dialog { color: inherit; }
.fiche {
  width: min(1040px, calc(100% - 24px)); max-height: calc(100% - 24px);
  padding: 0; border: 0; border-radius: var(--radius-m); background: var(--blanc);
  box-shadow: 0 40px 80px -30px rgba(15,46,49,.6);
  overflow: hidden;
}
.fiche::backdrop { background: rgba(15,46,49,.62); backdrop-filter: blur(2px); }
.fiche[open] { animation: monte .3s var(--ease-out); }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fiche__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: min(760px, calc(100vh - 24px)); }
.fiche__galerie { background: var(--blanc); padding: 24px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--acier); min-height: 0; }
.fiche__titre:focus { outline: none; }
.fiche__principale { flex: 1; min-height: 260px; display: grid; place-items: center; }
.fiche__principale img { max-height: min(56vh, 520px); width: auto; object-fit: contain; }
.fiche__vignettes { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.fiche__vignettes button { width: 64px; height: 64px; padding: 4px; border: 2px solid var(--acier-2); border-radius: var(--radius-s); background: var(--blanc); }
.fiche__vignettes button[aria-current="true"] { border-color: var(--petrole); }
.fiche__vignettes img { width: 100%; height: 100%; object-fit: contain; }
.fiche__infos { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.fiche__barre { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--acier); }
.fiche__nav { display: flex; gap: 6px; }
.btn-icone {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-s);
  border: 2px solid var(--acier-2); background: var(--blanc); color: var(--petrole);
}
.btn-icone:hover { border-color: var(--petrole); }
.btn-icone svg { width: 20px; height: 20px; }
.fiche__contenu { padding: 22px 24px 28px; }
.fiche__cat { font-size: .875rem; color: var(--texte-doux); margin-bottom: 8px; }
.fiche__titre { font-size: var(--step-3); font-stretch: var(--wide); margin-bottom: 8px; }
.fiche__sous { color: var(--texte-doux); margin-bottom: 14px; }
.fiche__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 18px; }
.fiche__ref { font-size: .875rem; padding: 3px 10px; border: 1.5px solid var(--acier-2); border-radius: 99px; font-variant-numeric: tabular-nums; }
.fiche__prix { font-size: 1.25rem; font-weight: 800; }
.fiche__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.prose { font-size: 1rem; line-height: 1.6; }
.prose p { margin: 0 0 .7em; }
.prose ul { margin: 0 0 1em; padding-left: 1.1em; }
.prose li { margin-bottom: .25em; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--acier); vertical-align: top; }
.prose th { font-weight: 650; width: 52%; color: var(--texte-doux); }
.prose__note { font-size: .875rem; color: var(--texte-doux); }
@media (max-width: 799px) {
  .fiche { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .fiche__grille { display: flex; flex-direction: column; grid-template-rows: none; max-height: 100vh; height: 100%; overflow-y: auto; }
  .fiche__galerie { border-right: 0; border-bottom: 1px solid var(--acier); padding: 16px; order: 2; }
  .fiche__infos { overflow: visible; display: contents; }
  .fiche__barre { order: 1; }
  .fiche__contenu { order: 3; }
  .fiche__principale { min-height: 0; }
  .fiche__principale img { max-height: 42vh; }
}

/* Tiroir « Ma demande » */
.tiroir {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(440px, 100%); max-width: 100%;
  padding: 0; border: 0; background: var(--blanc); box-shadow: -20px 0 60px -20px rgba(15,46,49,.5);
}
.tiroir::backdrop { background: rgba(15,46,49,.5); }
.tiroir[open] { animation: glisse .3s var(--ease-out); }
@keyframes glisse { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.tiroir__inner { display: flex; flex-direction: column; height: 100%; }
.tiroir__tete { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--acier); }
.tiroir__tete h2 { font-size: 1.375rem; font-stretch: var(--wide); }
.tiroir__liste { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 8px 20px; }
.ligne-devis { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--acier); }
.ligne-devis img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--acier); border-radius: var(--radius-s); background: var(--blanc); }
.ligne-devis__nom { font-weight: 700; line-height: 1.25; display: block; margin-bottom: 8px; }
.ligne-devis__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quantite { display: inline-flex; align-items: center; border: 2px solid var(--acier-2); border-radius: var(--radius-s); }
.quantite button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 1.25rem; font-weight: 700; color: var(--petrole); }
.quantite button:hover { background: var(--acier); }
.quantite input { width: 44px; height: 38px; border: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.quantite input::-webkit-inner-spin-button, .quantite input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.lien-retirer { background: none; border: 0; padding: 8px 4px; color: var(--erreur); font-weight: 600; text-decoration: underline; font-size: .9375rem; }
.tiroir__vide { padding: 40px 0; text-align: center; color: var(--texte-doux); }
.tiroir__vide svg { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--acier-2); }
.tiroir__pied { padding: 16px 20px 20px; border-top: 1px solid var(--acier); display: grid; gap: 10px; }
.tiroir__pied .petit { color: var(--texte-doux); }

/* Toast */
.toast-zone { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(520px, calc(100% - 24px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--petrole); color: var(--blanc); padding: 12px 12px 12px 18px; border-radius: var(--radius-m);
  box-shadow: 0 20px 40px -16px rgba(15,46,49,.6); font-weight: 600;
  animation: monte .25s var(--ease-out);
}
.toast button { background: var(--ambre); color: var(--petrole); border: 0; border-radius: var(--radius-s); padding: 8px 12px; font-weight: 800; min-height: 40px; white-space: nowrap; }
.toast a { color: var(--ambre); font-weight: 800; white-space: nowrap; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 22px; }
.form__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 599px) { .form__ligne { grid-template-columns: 1fr; } }
.champ { display: grid; gap: 6px; align-content: start; }
.champ label, .champ legend { font-weight: 700; font-stretch: var(--semi); }
.champ .obligatoire { color: var(--erreur); }
.champ .aide { font-size: .875rem; color: var(--texte-doux); }
.champ input, .champ textarea, .champ select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--acier-2); border-radius: var(--radius-s); background: var(--blanc);
  transition: border-color .15s, box-shadow .15s;
}
.champ textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.champ input:hover, .champ textarea:hover { border-color: var(--texte-doux); }
.champ input:focus, .champ textarea:focus { border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(20,163,155,.25); outline: none; }
.champ [aria-invalid="true"] { border-color: var(--erreur); background: var(--erreur-pale); }
.champ.is-valide input, .champ.is-valide textarea { border-color: var(--turquoise); }
.erreur-msg { display: none; align-items: flex-start; gap: 6px; color: var(--erreur); font-size: .9375rem; font-weight: 600; }
.erreur-msg svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.champ.has-erreur .erreur-msg { display: flex; }
.compteur { justify-self: end; font-size: .8125rem; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.compteur.is-limite { color: var(--erreur); font-weight: 700; }
fieldset.champ { border: 0; padding: 0; margin: 0; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 2px solid var(--acier-2); border-radius: 99px;
  font-weight: 650; font-stretch: 100%; cursor: pointer; background: var(--blanc);
}
.choix label:hover { border-color: var(--petrole); }
.choix input:checked + label { background: var(--petrole); border-color: var(--petrole); color: var(--blanc); }
.choix input:focus-visible + label { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.resume-erreurs { padding: 16px 18px; border: 2px solid var(--erreur); background: var(--erreur-pale); border-radius: var(--radius-m); }
.resume-erreurs h2 { font-size: 1.0625rem; color: var(--erreur); margin-bottom: 8px; font-stretch: var(--semi); }
.resume-erreurs ul { margin: 0; }
.resume-erreurs a { color: var(--erreur); font-weight: 600; }
.recap-devis { padding: 16px 18px; background: var(--ambre-pale); border-radius: var(--radius-m); }
.recap-devis h3 { font-size: 1.0625rem; font-stretch: var(--semi); margin-bottom: 8px; }
.recap-devis ul { margin: 0 0 8px; }
.succes { padding: 22px 22px; border-radius: var(--radius-m); background: var(--turquoise-pale); border-left: 6px solid var(--turquoise); }
.succes h2 { font-size: 1.375rem; font-stretch: var(--semi); margin-bottom: 8px; }
.succes__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mention-form { font-size: .875rem; color: var(--texte-doux); }

/* ---------- Page contact ---------- */
.contact-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.coordonnees { display: grid; gap: 26px; position: sticky; top: calc(var(--header-h) + 24px); }
.coordonnees__bloc h2 { font-size: 1rem; font-stretch: var(--semi); color: var(--texte-doux); font-weight: 650; margin-bottom: 6px; }
.coordonnees__grand { font-size: clamp(1.6rem, 1rem + 2vw, 2.25rem); font-weight: 800; font-stretch: var(--wide); line-height: 1.1; color: var(--petrole); text-decoration: none; font-variant-numeric: tabular-nums; word-break: break-word; }
.coordonnees__grand:hover { text-decoration: underline; }
.carte { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--acier-2); aspect-ratio: 4 / 3; background: var(--acier); }
.carte iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-form-carte { background: var(--blanc); border-radius: var(--radius-m); padding: clamp(20px, 4vw, 40px); box-shadow: var(--ombre); border-top: 10px solid var(--ambre); }
.section--acier .horaires th, .contact-grille .horaires th { color: var(--petrole); }
.contact-grille .horaires tr.is-aujourdhui th, .contact-grille .horaires tr.is-aujourdhui td { color: var(--turquoise-texte); }
html.sans-animation .hero__indice { display: none; }
@media (max-width: 899px) {
  .carte { aspect-ratio: 16 / 9; }
  .contact-grille { grid-template-columns: 1fr; }
  .coordonnees { position: static; }
}

/* ---------- Page formation ---------- */
.video-tete { position: relative; color: var(--blanc); background: var(--petrole); overflow: hidden; }
.video-tete video, .video-tete .video-tete__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-tete::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,46,49,.94) 0%, rgba(15,46,49,.78) 45%, rgba(15,46,49,.35) 100%); }
.video-tete .wrap { position: relative; z-index: 2; padding-block: clamp(56px, 9vw, 140px); }
.video-tete .fil, .video-tete .fil a { color: #B9CCCA; }
.video-tete .chapo { color: #D5E2E1; }
.video-tete .titre-xl { margin-bottom: 22px; max-width: 12ch; }
.btn-video {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px;
  background: rgba(15,46,49,.7); color: var(--blanc); border: 1px solid rgba(255,255,255,.4); border-radius: 99px; font-size: .875rem; font-weight: 600;
}
.btn-video svg { width: 18px; height: 18px; }
.faits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--petrole); border-bottom: 2px solid var(--petrole); }
.fait { padding: 26px 24px 26px 0; }
.fait + .fait { border-left: 1px solid var(--acier-2); padding-left: 24px; }
.fait dt { font-size: .9375rem; color: var(--texte-doux); font-weight: 600; margin-bottom: 6px; }
.fait dd { margin: 0; font-size: var(--step-2); font-weight: 800; font-stretch: var(--semi); line-height: 1.15; }
@media (max-width: 699px) {
  .faits { grid-template-columns: 1fr; }
  .fait + .fait { border-left: 0; border-top: 1px solid var(--acier-2); padding-left: 0; }
}
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: etape; }
.etape { position: relative; padding: 26px 22px 24px; background: var(--blanc); border-radius: var(--radius-m); border: 1px solid var(--acier-2); counter-increment: etape; }
.etape::before {
  content: counter(etape); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%; background: var(--ambre); color: var(--petrole); font-weight: 800; font-stretch: var(--wide); font-size: 1.25rem;
}
.etape h3 { font-size: 1.3rem; font-stretch: var(--semi); margin-bottom: 8px; }
.etape p { color: var(--texte-doux); }
@media (max-width: 799px) { .etapes { grid-template-columns: 1fr; } }

.elingues { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.nuancier { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.nuancier button {
  width: 100%; display: grid; gap: 8px; justify-items: start; padding: 12px 12px 14px; text-align: left;
  background: var(--blanc); border: 2px solid var(--acier-2); border-radius: var(--radius-m); transition: border-color .15s, transform .15s;
}
.nuancier button:hover { border-color: var(--petrole); }
.nuancier button[aria-pressed="true"] { border-color: var(--petrole); box-shadow: inset 0 0 0 1px var(--petrole); }
.nuancier__sangle { width: 100%; height: 26px; border-radius: 13px; background: var(--cc); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), inset 0 0 0 1px rgba(0,0,0,.1);
  background-image: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255,255,255,.18) 9px 10px); background-color: var(--cc); }
.nuancier__cmu { font-size: 1.25rem; font-weight: 800; font-stretch: var(--semi); line-height: 1; }
.nuancier__nom { font-size: .875rem; color: var(--texte-doux); }
.nuancier-detail { margin-top: 16px; min-height: 3.2em; padding: 14px 16px; background: var(--acier); border-radius: var(--radius-m); }
@media (max-width: 899px) { .elingues { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .nuancier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Mentions ---------- */
.mentions { max-width: 46rem; }
.mentions h2 { font-size: var(--step-2); font-stretch: var(--semi); margin: 40px 0 12px; }
.mentions dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.mentions dt { font-weight: 700; }
.mentions dd { margin: 0; }

/* ---------- Apparition discrète au chargement (une seule fois, héros) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html:not(.sans-animation) .hero__titre .ligne { opacity: 0; transform: translateY(.35em); animation: titre .8s var(--ease-out) forwards; }
  html:not(.sans-animation) .hero__titre .ligne:nth-child(2) { animation-delay: .08s; }
  html:not(.sans-animation) .hero__titre .ligne:nth-child(3) { animation-delay: .16s; }
  html:not(.sans-animation) .hero__titre .ligne:nth-child(4) { animation-delay: .24s; }
  html:not(.sans-animation) .hero__photo { clip-path: inset(0 0 100% 0 round 14px); animation: rideau 1.1s .25s var(--ease-out) forwards; }
}
@keyframes titre { to { opacity: 1; transform: none; } }
@keyframes rideau { to { clip-path: inset(0 0 0 0 round 14px); } }

/* ---------- Mouvement réduit / animations coupées ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
html.sans-animation *, html.sans-animation *::before, html.sans-animation *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important;
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .site-footer, .ligne-vie, .pendule, .outils, .btn, .toast-zone, .menu-mobile, .btn-video { display: none !important; }
  body { font-size: 11pt; }
  .section { padding-block: 24px; }
  a { color: inherit; }
}
