/* ==========================================================================
   MRF — Industrial Architecture Premium
   Direction artistique : voir README.md
   ========================================================================== */

:root {
  /* Palette (le rouge est la seule couleur d'accent) */
  --noir: #08090B;
  --anthracite: #24272C;
  --blanc: #FFFFFF;
  --rouge: #FF0000;
  --gris: #A5A8AD;

  /* Lignes et voiles dérivés de la palette */
  --ligne-sombre: rgb(255 255 255 / 0.12);
  --ligne-claire: rgb(8 9 11 / 0.12);

  /* Typographie */
  --font-titre: "Manrope", "Inter", system-ui, sans-serif;
  --font-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Mise en page */
  --gouttiere: clamp(1.25rem, 4vw, 4rem);
  --header-h: 5rem;

  /* Géométrie du Hero, dans le repère des images 1672 × 941 */
  --ratio: 1.776833;          /* 1672 / 941 */
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--font-texte);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* L'enveloppe d'épinglage de ScrollTrigger arrondit sa largeur au pixel supérieur :
     sur une largeur fractionnaire, cela créait un défilement horizontal d'un demi-pixel */
  overflow-x: clip;
}

img { display: block; max-width: 100%; }

/* Les ancres ne passent pas sous l'en-tête fixe */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--blanc); color: var(--noir);
  font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.75rem;
  font: 600 0.875rem/1 var(--font-texte);
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn--sm { min-height: 2.75rem; padding: 0 1.25rem; font-size: 0.8125rem; }

.btn--primary { background: var(--rouge); color: var(--blanc); }
.btn--primary:hover { background: var(--blanc); color: var(--noir); }

.btn--ghost { border-color: rgb(255 255 255 / 0.32); color: var(--blanc); }
.btn--ghost:hover { border-color: var(--blanc); background: rgb(255 255 255 / 0.06); }

/* ---------- En-tête ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid var(--ligne-sombre);
  background: linear-gradient(to bottom, rgb(8 9 11 / 0.72), rgb(8 9 11 / 0));
  transition: background-color .3s ease;
}
/* Hors du Hero (sections claires), l'en-tête devient noir plein pour rester lisible */
.site-header.is-solid { background: var(--noir); }
.site-header__inner {
  display: flex; align-items: center; gap: 2rem;
  height: var(--header-h); padding: 0 var(--gouttiere);
}
.site-header__logo { flex: none; }  /* le logo garde sa taille même quand le menu est long */
.site-header__logo img { width: auto; height: 2.75rem; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.site-nav li { white-space: nowrap; }
.site-nav a {
  position: relative; display: block; padding: 0.5rem 0;
  font-weight: 500; font-size: 0.875rem; letter-spacing: 0.01em;
  color: rgb(255 255 255 / 0.78); text-decoration: none;
  transition: color .2s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rouge); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--blanc); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; margin-left: auto;
  width: 2.75rem; height: 2.75rem; padding: 0;
  background: none; border: 1px solid var(--ligne-sombre); border-radius: 2px; color: var(--blanc);
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block; width: 1.125rem; height: 1.5px; margin: 0 auto;
  background: currentColor; transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; gap: 2rem;
  padding: calc(var(--header-h) + 2rem) var(--gouttiere) 2rem;
  background: var(--noir); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ligne-sombre); }
.mobile-menu li { border-bottom: 1px solid var(--ligne-sombre); }
.mobile-menu nav a {
  display: block; padding: 1rem 0;
  font: 700 1.5rem/1.2 var(--font-titre); text-decoration: none;
}
.mobile-menu nav a[aria-current="page"] { color: var(--rouge); }
.mobile-menu__tel { color: var(--gris); font-size: 0.9375rem; text-decoration: none; }

@media (max-width: 1080px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: block; }
}
body.menu-ouvert { overflow: hidden; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 20rem;
  overflow: hidden;
  background: var(--noir);
}

/* La scène couvre la zone comme object-fit: cover, en gardant le repère des images */
.hero__scene {
  position: absolute; inset: 0;
  container-type: size;
  overflow: hidden;
  --fx: 0.25;   /* point d'ancrage horizontal du recadrage (0 = bord gauche conservé) */
  --fy: 0.5;
}
.stage {
  --sw: max(100cqw, calc(100cqh * var(--ratio)));
  --sh: calc(var(--sw) / var(--ratio));
  position: absolute;
  width: var(--sw);
  height: var(--sh);
  left: calc((100cqw - var(--sw)) * var(--fx));
  top: calc((100cqh - var(--sh)) * var(--fy));
}
.stage__layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* Lumière du magasin hors de l'ouverture : suit l'ouverture du rideau */
.stage__ambiance { opacity: 0; }

/* Magasin visible uniquement dans l'ouverture : masque = silhouette exacte du tablier */
.stage__magasin {
  -webkit-mask: url("../img/hero/mrf-tablier.webp") 67.857% 0 / 58.134% 100% no-repeat;
          mask: url("../img/hero/mrf-tablier.webp") 67.857% 0 / 58.134% 100% no-repeat;
}

/* Le tablier disparaît au-dessus de la ligne du coffre (bord haut du calque 02) */
.stage__coffre {
  position: absolute; inset: 0;
  clip-path: polygon(0 65.486%, 100% -31.950%, 100% 100%, 0 100%);
}
.stage__tablier {
  position: absolute; top: 0;
  left: 28.409%;            /* 475 / 1672 */
  width: 58.134%;           /* 972 / 1672 */
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

/* Voile de lisibilité à gauche, dans le prolongement du fondu noir des images */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(8 9 11 / 0.82) 0%, rgb(8 9 11 / 0.55) 26%, rgb(8 9 11 / 0) 46%),
    linear-gradient(to top, rgb(8 9 11 / 0.55), rgb(8 9 11 / 0) 22%);
}

.hero__content {
  position: absolute; z-index: 2;
  left: var(--gouttiere);
  top: 50%;
  transform: translateY(-46%);
  width: min(34rem, 40vw);   /* reste dans la zone sombre, à gauche de la vitrine */
}

.hero__kicker {
  display: flex; align-items: center; gap: 0.875rem;
  margin: 0 0 1.75rem;
  font-weight: 500; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gris);
}
.hero__kicker::before { content: ""; width: 2.5rem; height: 2px; background: var(--rouge); flex: none; }

.hero__title {
  margin: 0;
  font: 800 clamp(2.5rem, 4.2vw, 4.5rem)/1.02 var(--font-titre);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__title span + span { color: rgb(255 255 255 / 0.62); }

.hero__lead {
  max-width: 27rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.65;
  color: var(--gris);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

.hero__urgence {
  display: flex; align-items: center; gap: 0.625rem;
  margin: 2rem 0 0;
  font-size: 0.875rem; color: var(--gris);
}
.hero__urgence a { color: var(--blanc); font-weight: 600; text-decoration: none; }
.hero__urgence a:hover { text-decoration: underline; text-decoration-color: var(--rouge); text-underline-offset: 4px; }
.hero__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--rouge); flex: none; }

/* Indicateur d'ouverture : rappelle que le défilement pilote le rideau */
.hero__progress {
  position: absolute; z-index: 2;
  right: var(--gouttiere); bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gris);
}
.hero__progress-track { position: relative; width: 6rem; height: 1px; background: rgb(255 255 255 / 0.2); overflow: hidden; }
.hero__progress-bar { position: absolute; inset: 0; background: var(--rouge); transform: scaleX(0); transform-origin: left; }

/* Tablette en largeur et petits écrans d'ordinateur */
@media (max-width: 1180px) and (orientation: landscape) {
  .hero__content { width: min(31rem, 46vw); }
  .hero__title { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
}

/* Écrans en hauteur (téléphones, tablettes en portrait) :
   la scène et le texte se partagent l'écran sans se chevaucher.
   La scène prend la place que le texte laisse libre, jamais moins de 30 %. */
@media (orientation: portrait) {
  .hero { display: flex; flex-direction: column; }
  .hero::after { display: none; }
  .hero__scene {
    position: relative; inset: auto;
    flex: 1 1 0; min-height: 30%;
    --fx: 0.6;
  }
  .hero__scene::after {               /* assombrit le haut (sous l'en-tête) et fond le bas dans le noir */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgb(8 9 11 / 0.6), rgb(8 9 11 / 0) 25%, rgb(8 9 11 / 0) 72%, var(--noir));
  }
  .hero__content {
    position: relative; inset: auto; transform: none; width: auto;
    flex: none;
    padding: 0.5rem var(--gouttiere) 1.5rem;
  }
  .hero__kicker { margin-bottom: 0.875rem; font-size: 0.625rem; letter-spacing: 0.12em; }
  .hero__kicker::before { width: 1.5rem; }
  .hero__title { font-size: clamp(1.75rem, 8vw, 3.25rem); }
  .hero__lead { margin-top: 0.875rem; font-size: 0.9375rem; line-height: 1.55; }
  .hero__actions { margin-top: 1.25rem; gap: 0.625rem; }
  /* Deux boutons côte à côte dès 360 px, l'un sous l'autre en dessous */
  .hero__actions .btn { flex: 1 1 9.5rem; min-width: 0; padding: 0 0.75rem; letter-spacing: 0.04em; }
  .hero__urgence { margin-top: 1rem; }
  .hero__progress { display: none; }
}
@media (orientation: portrait) and (max-width: 400px) {
  .hero__actions .btn { min-height: 2.875rem; font-size: 0.75rem; }
}
/* Petits téléphones (hauteur ≤ 680 px) : texte resserré pour laisser voir le rideau */
@media (orientation: portrait) and (max-height: 680px) {
  .hero__content { padding-bottom: 1rem; }
  .hero__kicker { margin-bottom: 0.625rem; letter-spacing: 0.06em; }
  .hero__title { font-size: clamp(1.5rem, 7.4vw, 2.25rem); }
  .hero__lead { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.45; }
  .hero__actions { margin-top: 0.875rem; gap: 0.5rem; }
  .hero__actions .btn { min-height: 2.75rem; }
  .hero__urgence { margin-top: 0.75rem; font-size: 0.75rem; }
}
@media (orientation: portrait) and (min-width: 600px) {
  .hero__content { padding-bottom: 2.5rem; }
  .hero__lead { max-width: 34rem; font-size: 1rem; }
  .hero__actions .btn { flex: 0 1 auto; padding: 0 1.75rem; letter-spacing: 0.08em; }
}

@media (max-width: 767px) {
  :root { --header-h: 4.25rem; }
  .site-header__logo img { height: 2.25rem; }
}

/* Écrans peu hauts (ordinateur portable avec barre d'outils) */
@media (max-height: 640px) and (orientation: landscape) {
  .hero__kicker { margin-bottom: 1rem; }
  .hero__title { font-size: clamp(2rem, 6.5vh, 3rem); }
  .hero__lead { margin-top: 1rem; }
  .hero__actions { margin-top: 1.5rem; }
  .hero__urgence { margin-top: 1rem; }
}

/* Téléphones à l'horizontale : tout le texte tient sous l'en-tête, dans la zone sombre de gauche */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-h: 3.75rem; }
  .site-header__logo img { height: 2rem; }
  .hero__content {
    top: calc(var(--header-h) + 0.75rem); bottom: 0.75rem; transform: none;
    display: flex; flex-direction: column; justify-content: center;
    width: min(26rem, 50vw);
  }
  .hero::after {
    background: linear-gradient(90deg, rgb(8 9 11 / 0.9) 0%, rgb(8 9 11 / 0.7) 38%, rgb(8 9 11 / 0) 62%);
  }
  .hero__kicker { margin-bottom: 0.5rem; font-size: 0.625rem; letter-spacing: 0.12em; }
  .hero__kicker::before { width: 1.25rem; }
  .hero__title { font-size: clamp(1.375rem, 7.2vh, 2rem); }
  .hero__lead { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.45; }
  .hero__actions { margin-top: 0.75rem; gap: 0.5rem; }
  .hero__actions .btn { min-height: 2.5rem; padding: 0 0.875rem; font-size: 0.6875rem; letter-spacing: 0.05em; }
  .hero__urgence { margin-top: 0.625rem; font-size: 0.75rem; }
  .hero__progress { display: none; }
}

/* ==========================================================================
   Sections sous le Hero : reproduction de la maquette fournie le 19/11/2026
   Polices de la maquette : Montserrat (titres, textes) et Barlow Condensed
   (grands chiffres, téléphone, bandeau d'appel).
   ========================================================================== */

:root {
  --font-maquette: "Montserrat", "Inter", system-ui, sans-serif;
  --font-condense: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fond-maquette: #0B0C0F;
  --carte: #0E1013;
  --bord-carte: rgb(255 255 255 / 0.16);
  --texte-doux: #B4B7BD;
  --peche: color-mix(in srgb, var(--rouge) 38%, var(--blanc)); /* point entre 24H/24 et 7J/7 */
}

.wrap { max-width: 84rem; margin: 0 auto; padding: 0 var(--gouttiere); }

.ico { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

/* Sur-titre : double filet rouge + capitales espacées */
.tag {
  display: flex; align-items: center; gap: 0.875rem;
  margin: 0 0 0.5rem;
  font: 600 0.75rem/1 var(--font-maquette); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blanc);
}
.tag::before {
  content: ""; width: 1.75rem; height: 7px; flex: none;
  border-top: 2px solid var(--rouge); border-bottom: 2px solid var(--rouge);
}

/* ---------- Dépannage 24/24 ---------- */

.urgence {
  background: var(--fond-maquette);
  border-top: 1px solid rgb(255 255 255 / 0.08);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  font-family: var(--font-maquette);
}
.urgence__grid {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 4rem; padding-top: 2.75rem; padding-bottom: 2.75rem;
}
.urgence__main { position: relative; padding-right: 4rem; }
.urgence__main::after {               /* filet vertical entre les deux colonnes */
  content: ""; position: absolute; right: 0; top: 0.5rem; height: 72%;
  width: 1px; background: rgb(255 255 255 / 0.25);
}
.urgence__title { margin: 0.5rem 0 0; line-height: 0.95; }
.urgence__l1 {
  display: block;
  font: 900 clamp(2.5rem, 4.75vw, 4.4rem)/1 var(--font-maquette);
  text-transform: uppercase; letter-spacing: -0.01em; color: var(--blanc);
}
.urgence__l2 {
  display: flex; align-items: center; gap: 0.18em;
  margin-top: 0.1em;
  font: 800 clamp(3.4rem, 7.6vw, 7rem)/1 var(--font-condense);
  text-transform: uppercase; color: var(--rouge); white-space: nowrap;
}
.urgence__dot { width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--peche); flex: none; margin: 0 0.08em; }

.hazard {                              /* bande de tirets obliques rouges */
  display: block; width: min(100%, 38.5rem); height: 9px; margin-top: 1.25rem;
  background: repeating-linear-gradient(-62deg, var(--rouge) 0 15px, transparent 15px 22px);
}
.urgence__text { margin: 1.5rem 0 0; max-width: 36rem; font-size: 1.1875rem; line-height: 1.4; color: var(--blanc); }

.urgence__side { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.urgence__list { margin: 0; padding: 0; list-style: none; max-width: 28rem; }
.urgence__list li {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.6rem 0;
  font-size: 1.125rem; font-weight: 500; color: var(--blanc);
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.urgence__list li:last-child { border-bottom: 0; }
.urgence__list .ico { width: 1.75rem; height: 1.75rem; color: var(--rouge); }

.urgence__phone {
  display: flex; align-items: stretch; gap: 0.5rem;
  margin-left: -4.5rem;               /* déborde sur le filet, comme sur la maquette */
  text-decoration: none;
}
.urgence__phone-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem;
  flex: 1; min-height: 5.25rem; padding: 0 3rem;
  background: var(--rouge); color: var(--blanc);
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  font: 700 clamp(2.5rem, 3.9vw, 3.75rem)/1 var(--font-condense); letter-spacing: 0.01em;
  transition: background-color .2s ease;
}
.urgence__phone-btn .ico { width: 2.75rem; height: 2.75rem; }
.urgence__phone:hover .urgence__phone-btn { background: #d90000; }
.urgence__slashes { display: flex; gap: 0.4rem; }
.urgence__slashes i { width: 0.65rem; background: var(--rouge); transform: skewX(-24deg); }

/* ---------- Blocs à en-tête (prestations, atouts, produits, réalisations) ---------- */

.bloc {
  background: var(--fond-maquette);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  padding: 2.25rem 0 2.5rem;
  font-family: var(--font-maquette);
}
.bloc--last { border-bottom: 0; padding-bottom: 1.25rem; }
.bloc__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem);
  gap: 2rem; align-items: start; margin-bottom: 1.75rem;
}
.bloc__title { margin: 0; font: 700 clamp(2rem, 3vw, 2.75rem)/1.1 var(--font-maquette); letter-spacing: -0.01em; color: var(--blanc); }
.bloc__intro { margin: 0.75rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--texte-doux); }

/* ---------- Présentation de l'entreprise (sous le Hero) ---------- */

.presentation { padding: clamp(3rem, 6vw, 5rem) 0; }
.presentation__tete { max-width: 64rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.presentation__titre { margin: 0.5rem 0 0; }
.presentation__titre .urgence__l1 { line-height: 1.02; text-wrap: balance; }
.presentation .hazard { transform-origin: left center; }
.presentation__sous {
  margin: 1.25rem 0 0; max-width: 44rem;
  font: 600 0.875rem/1.5 var(--font-maquette); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rouge);
}
.presentation__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch;
}
/* Image : remplit la hauteur de la colonne de texte ; 12 % de marge pour l'effet de profondeur */
.presentation__media { position: relative; margin: 0; min-height: 26rem; overflow: hidden; border: 1px solid var(--bord-carte); }
.presentation__media img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }
.presentation__badge {
  position: absolute; left: 0; bottom: 1.75rem; margin: 0;
  padding: 1rem 3rem 1.1rem 1.5rem; background: var(--rouge); color: var(--blanc);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.presentation__nombre { display: block; font: 800 clamp(2.25rem, 4vw, 3.25rem)/1 var(--font-condense); text-transform: uppercase; }
.presentation__badge-texte { display: block; margin-top: 0.3rem; font-size: 0.9375rem; font-weight: 600; }
.presentation__texte p { margin: 1.25rem 0 0; font-size: 1rem; line-height: 1.75; color: var(--texte-doux); }
.presentation__texte p:first-child { margin-top: 0; }
.presentation__urgence { margin-top: 2rem; padding: 2rem; background: var(--carte); border: 1px solid var(--bord-carte); border-top: 3px solid var(--rouge); }
.presentation__question { margin: 0; font: 700 clamp(1.375rem, 2vw, 1.75rem)/1.25 var(--font-maquette); color: var(--blanc); }
.presentation__dispo { margin: 0.875rem 0 0; line-height: 1.6; color: var(--texte-doux); }
.presentation__label { margin: 1.75rem 0 0.625rem; font: 600 0.75rem/1 var(--font-maquette); letter-spacing: 0.22em; text-transform: uppercase; color: var(--texte-doux); }
.presentation__urgence .bouton { width: 100%; }
.presentation__devise {
  margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.12);
  font-weight: 600; font-style: italic; line-height: 1.5; color: var(--blanc);
}
@media (max-width: 1023px) {
  .presentation__grid { grid-template-columns: minmax(0, 1fr); }
  .presentation__media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 559px) {
  .presentation__urgence { padding: 1.5rem 1.25rem; }
  .presentation__badge { bottom: 1rem; padding: 0.6rem 2rem 0.65rem 0.875rem; }
  .presentation__nombre { font-size: 1.75rem; }
  .presentation__badge-texte { font-size: 0.8125rem; }
}

/* Cartes prestations */
.cards, .produits, .realisations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.cards { gap: 1.125rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--carte); border: 1px solid var(--bord-carte); transition: border-color .25s ease; }
.card:hover { border-color: rgb(255 255 255 / 0.4); }
.card__img { width: 100%; height: auto; aspect-ratio: 2.4 / 1; object-fit: cover; }
.card__body { position: relative; flex: 1; padding: 1.5rem 1.625rem 3rem; }
.card__title { margin: 0; font: 700 1.25rem/1.25 var(--font-maquette); color: var(--blanc); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }   /* toute la carte est cliquable */
.card__body p { margin: 0.875rem 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--texte-doux); }
.card__arrow { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--rouge); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.card__body .card__arrow { position: absolute; right: 1.25rem; bottom: 1rem; }
.card:hover .card__arrow, .produit:hover .card__arrow { transform: translateX(4px); }

/* Atouts : cinq colonnes séparées par des filets verticaux */
.atouts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0.5rem 0 0; list-style: none; }
.atouts li { padding: 0.25rem 0.5rem 0.5rem; text-align: center; border-left: 1px solid rgb(255 255 255 / 0.18); }
.atouts li:first-child { border-left: 0; }
.atouts__ico { width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--rouge); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.atouts__ico--ce { width: 3.1rem; stroke-width: 2.4; }
.atouts h3 { margin: 1rem 0 0; font: 700 1rem/1.3 var(--font-maquette); text-wrap: balance; color: var(--blanc); }
.atouts p { max-width: 13.5rem; margin: 0.75rem auto 0; font-size: 0.9375rem; line-height: 1.5; color: var(--texte-doux); text-align: left; }

/* Produits : image + barre de titre en surimpression */
.produits { gap: 1.125rem; }
.produit { position: relative; display: block; overflow: hidden; border: 1px solid var(--bord-carte); text-decoration: none; background: var(--carte); }
.produit img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .6s ease; }
.produit img.produit__img--detour { object-fit: cover; object-position: 60% 40%; background: var(--blanc); }
.produit:hover img { transform: scale(1.04); }
.produit__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem 0.75rem 1.75rem;
  background: rgb(8 9 11 / 0.78);
  font: 700 1.25rem/1.2 var(--font-maquette); color: var(--blanc);
}

/* Réalisations */
.realisations { gap: 0.75rem; }
.realisations img { width: 100%; height: auto; aspect-ratio: 1.82 / 1; object-fit: cover; border: 1px solid var(--bord-carte); }

/* ---------- Bandeau d'appel rouge ---------- */

.cta { background: var(--rouge); color: var(--blanc); font-family: var(--font-maquette); }
.cta__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2.25rem;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
}
.cta__grid > div:first-child { padding-right: 2.5rem; border-right: 1px solid rgb(255 255 255 / 0.35); }
.cta__title { margin: 0; font: 700 clamp(2.25rem, 4vw, 3.6rem)/1 var(--font-condense); text-wrap: balance; text-transform: uppercase; letter-spacing: -0.005em; }
.cta__text { margin: 0.5rem 0 0; font-size: 0.8125rem; font-weight: 600; text-wrap: balance; }
.cta__actions { display: flex; align-items: center; gap: 1.5rem; }
.cta__phone, .cta__devis {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  min-height: 4rem; padding: 0 1.5rem; text-decoration: none;
  font-family: var(--font-condense); font-weight: 700;
}
.cta__phone { background: var(--blanc); color: var(--noir); font-size: 1.95rem; transition: background-color .2s ease; }
.cta__phone .ico { width: 1.9rem; height: 1.9rem; color: var(--rouge); }
.cta__phone:hover { background: #f1f1f1; }
.cta__devis { border: 2px solid var(--blanc); color: var(--blanc); font-size: 1.375rem; letter-spacing: 0.04em; text-transform: uppercase; transition: background-color .2s ease, color .2s ease; }
.cta__devis { font-size: 1.25rem; }
.cta__devis:hover { background: var(--blanc); color: var(--rouge); }

/* ---------- Pied de page ---------- */

.footer { background: var(--fond-maquette); color: var(--blanc); font-family: var(--font-maquette); }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 2rem; padding-top: 2.75rem; padding-bottom: 2.25rem;
}
.footer__brand { display: flex; align-items: center; gap: 2rem; align-self: start; padding-top: 1.75rem; }
.footer__logo { display: flex; flex-direction: column; gap: 0.5rem; text-decoration: none; flex: none; }
.footer__logo img { width: 9rem; height: auto; }
.footer__logo span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
/* Deuxième colonne : texte de présentation, icônes des réseaux en dessous */
.footer__texte { max-width: 25rem; padding-left: 2rem; border-left: 1px solid rgb(255 255 255 / 0.22); }
.footer__about { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--texte-doux); }
.footer__col h2 { margin: 0 0 1rem; font: 600 1.0625rem/1.3 var(--font-maquette); }
.footer__col ul { margin: 0; padding: 0; list-style: none; }
.footer__col li { font-size: 0.9375rem; line-height: 1.85; color: var(--texte-doux); }
.footer__col a { color: inherit; text-decoration: none; transition: color .2s ease; }
.footer__col a:hover { color: var(--blanc); }
.footer__contact li { display: flex; align-items: center; gap: 1rem; color: var(--blanc); font-size: 1rem; line-height: 2.05; }
.footer__contact .ico { width: 1.25rem; height: 1.25rem; }
.footer__devis {
  display: inline-flex; align-items: center; gap: 1.25rem; margin-top: 1rem;
  min-height: 3.25rem; padding: 0 1.75rem; white-space: nowrap;
  background: var(--rouge); color: var(--blanc); text-decoration: none;
  font: 700 1.25rem/1 var(--font-condense); letter-spacing: 0.04em; text-transform: uppercase;
  transition: background-color .2s ease;
}
.footer__devis:hover { background: #d90000; }
.footer__social { display: flex; gap: 0.75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
/* Couleurs officielles : Facebook (bleu #1877F2), PagesJaunes (logo fourni), Google (G quatre couleurs) */
.footer__social a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.footer__social a:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px rgb(255 255 255 / 0.85); }
.footer__social .ico { width: 1.25rem; height: 1.25rem; }
.footer__social--facebook { background: #1877F2; color: #FFFFFF; }
.footer__social--facebook .ico { width: 1.75rem; height: 1.75rem; }
.footer__social--pagesjaunes { background: #FFDE07; }
.footer__social--pagesjaunes img { display: block; width: 100%; height: 100%; object-fit: cover; }
.footer__social--google { background: #FFFFFF; }
.footer__social--google .ico { width: 1.375rem; height: 1.375rem; }
@media (prefers-reduced-motion: reduce) { .footer__social a, .footer__social a:hover { transition: none; transform: none; } }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.25rem; padding-bottom: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.8125rem; color: var(--texte-doux);
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 1rem; }
.footer__legal a { color: inherit; text-decoration: none; }
.footer__legal a:hover { color: var(--blanc); }

/* ---------- Adaptations ---------- */

@media (max-width: 1180px) {
  .urgence__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .urgence__main { padding-right: 0; }
  .urgence__main::after { display: none; }
  .urgence__phone { margin-left: 0; }
  .urgence__list { max-width: none; }
  .cards, .produits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atouts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
  .atouts li:nth-child(4) { border-left: 0; }
  .realisations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta__grid > div:first-child { padding-right: 0; border-right: 0; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; padding-top: 0; }
}

@media (max-width: 1023px) {
  .bloc__head { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 767px) {
  .urgence__list li { font-size: 1rem; gap: 1rem; }
  .urgence__phone-btn { padding: 0 1.5rem; gap: 1rem; min-height: 4.25rem; }
  .urgence__phone-btn .ico { width: 2rem; height: 2rem; }
  .urgence__text { font-size: 1.0625rem; }
  .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atouts li:nth-child(4) { border-left: 1px solid rgb(255 255 255 / 0.18); }
  .atouts li:nth-child(odd) { border-left: 0; }
  .atouts li:last-child { grid-column: 1 / -1; }
  .cta__actions { flex-direction: column; align-items: stretch; gap: 0.875rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer__texte { padding-left: 0; border-left: 0; }
}

@media (max-width: 559px) {
  .cards, .produits { grid-template-columns: 1fr; }
  .atouts { grid-template-columns: 1fr; }
  .atouts li { border-left: 0; border-top: 1px solid rgb(255 255 255 / 0.12); padding-top: 1.5rem; }
  .atouts li:first-child { border-top: 0; }
  .atouts li:nth-child(4) { border-left: 0; }
  .atouts p { text-align: center; }
  .urgence__slashes { display: none; }
  /* Le titre Dépannage suit la largeur d'écran : il tient sur une ligne même à 320 px */
  .urgence__l1 { font-size: 11.5vw; }
  .urgence__l2 { font-size: 13.5vw; }
  .urgence__phone-btn { clip-path: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ==========================================================================
   Pages intérieures (Installation, Dépannage, Produits, Motorisation,
   Actualités, Devis, mentions légales, confidentialité, 404)
   Même vocabulaire que la maquette de l'accueil.
   ========================================================================== */

/* Boutons des pages intérieures (style des boutons du bas de la maquette) */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.875rem;
  min-height: 3.25rem; padding: 0 1.75rem;
  font: 700 1.25rem/1 var(--font-condense); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bouton .ico { width: 1.25rem; height: 1.25rem; }
.bouton--rouge { background: var(--rouge); color: var(--blanc); }
.bouton--rouge:hover { background: #d90000; }
.bouton--contour { border-color: rgb(255 255 255 / 0.7); color: var(--blanc); }
.bouton--contour:hover { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }
.bouton--contour .ico--fill { color: var(--rouge); }

/* ---------- En-tête de page ---------- */

.page-hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: min(70svh, 38rem);
  padding: calc(var(--header-h) + 3rem) 0 3.25rem;
  background: var(--fond-maquette);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  overflow: hidden;
  font-family: var(--font-maquette);
}
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgb(11 12 15 / 0.96) 0%, rgb(11 12 15 / 0.86) 40%, rgb(11 12 15 / 0.4) 78%, rgb(11 12 15 / 0.25)),
    linear-gradient(to top, var(--fond-maquette), rgb(11 12 15 / 0) 45%);
}
.page-hero--simple { min-height: 0; padding-bottom: 2.75rem; }
.page-hero .wrap { position: relative; z-index: 2; width: 100%; }

.fil { margin: 0 0 1.5rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8125rem; color: var(--texte-doux); }
.fil li + li::before { content: "/"; margin-right: 0.5rem; color: rgb(255 255 255 / 0.35); }
.fil a { color: inherit; text-decoration: none; }
.fil a:hover { color: var(--blanc); }
.fil [aria-current] { color: var(--blanc); }

.page-hero__title {
  max-width: 21ch; margin: 0.25rem 0 0;
  font: 800 clamp(2.125rem, 4.4vw, 4rem)/1.06 var(--font-maquette);
  letter-spacing: -0.015em; color: var(--blanc); text-wrap: balance;
}
.page-hero__lead { max-width: 38rem; margin: 1.25rem 0 0; font-size: 1.125rem; line-height: 1.6; color: var(--texte-doux); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }
.page-hero__lead a { color: var(--blanc); font-weight: 600; white-space: nowrap; }
.texte-seul { max-width: 46rem; }

/* ---------- Texte + image ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--inverse .split__media { order: -1; }
.split__media { margin: 0; }
.split__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--bord-carte); }
.split__media--blanc img { object-fit: contain; background: var(--blanc); }
/* Diaporama des produits : flèches et points générés par main.js */
.diapo__fenetre { position: relative; overflow: hidden; border: 1px solid var(--bord-carte); }
.diapo__piste { display: flex; margin: 0; padding: 0; list-style: none; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); touch-action: pan-y; }
.diapo__slide { flex: 0 0 100%; }
.diapo .diapo__slide img { display: block; border: 0; }
.diapo__fleche { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: rgb(8 9 11 / 0.7); color: var(--blanc); cursor: pointer; transform: translateY(-50%); transition: background-color 0.2s; }
.diapo__fleche:hover { background: var(--rouge); }
.diapo__fleche .ico { width: 1.25rem; height: 1.25rem; }
.diapo__fleche--prec { left: 0; }
.diapo__fleche--prec .ico { transform: scaleX(-1); }
.diapo__fleche--suiv { right: 0; }
.diapo__points { display: flex; justify-content: center; gap: 0.25rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.diapo__point { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 0; background: none; cursor: pointer; }
.diapo__point::before { content: ""; width: 0.625rem; height: 0.625rem; border: 2px solid var(--gris); border-radius: 50%; transition: background-color 0.2s, border-color 0.2s, transform 0.2s; }
.diapo__point:hover::before { border-color: var(--rouge); }
.diapo__point[aria-current="true"]::before { background: var(--rouge); border-color: var(--rouge); transform: scale(1.2); }
@media (prefers-reduced-motion: reduce) { .diapo__piste { transition: none; } }
.split__text .bloc__title { text-wrap: balance; }
.split__text p { margin: 1rem 0 0; font-size: 1rem; line-height: 1.7; color: var(--texte-doux); }
.split__text .bouton { margin-top: 1.75rem; }
.split__sous { margin: 0.5rem 0 0; font: 600 0.8125rem/1.4 var(--font-maquette); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rouge); }
.bloc--espace { padding: clamp(3rem, 6vw, 4.5rem) 0; }

/* Fiche technique */
/* Page Entretien annuel : liste des prestations (style des puces de Dépannage) */
.entretien__liste-titre { margin: 1.75rem 0 0.25rem; font: 700 1.0625rem/1.3 var(--font-maquette); color: var(--blanc); }
.entretien__liste { max-width: none; }
.entretien__liste li { gap: 1rem; font-size: 1rem; }
.entretien__liste .ico { width: 1.375rem; height: 1.375rem; }
.specs { margin: 1.5rem 0 0; border-top: 1px solid rgb(255 255 255 / 0.12); }
.specs div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.specs dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texte-doux); padding-top: 0.15rem; }
.specs dd { margin: 0; color: var(--blanc); font-weight: 500; }

/* Liste de liens (prestations de la page Installation) */
.liste-liens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; margin: 0; padding: 0; list-style: none; }
.liste-liens a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.12);
  font: 600 1.0625rem/1.35 var(--font-maquette); color: var(--blanc); text-decoration: none;
  transition: color .2s ease;
}
.liste-liens a:hover { color: var(--rouge); }
.liste-liens a:hover .card__arrow { transform: translateX(4px); }

/* Galerie de réalisations */
.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.galerie img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--bord-carte); }

/* Interventions de dépannage : liste à pictogrammes sur deux colonnes */
.interventions .urgence__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; max-width: none; }
.interventions .urgence__list li:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.1); }

/* Cartes sur fond blanc (moteurs, visuels détourés) */
.card__img--blanc { object-fit: contain; background: var(--blanc); aspect-ratio: 16 / 10; }
.card__specs { margin: 1rem 0 0; padding: 0; list-style: none; }
.card__specs li { position: relative; padding-left: 1.25rem; font-size: 0.875rem; line-height: 1.6; color: var(--blanc); }
.card__specs li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 2px; background: var(--rouge); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card--statique .card__body { padding-bottom: 1.75rem; }

/* Atouts sur trois colonnes (accessoires) */
.atouts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Demande de devis ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.coord { padding: 2rem; background: var(--carte); border: 1px solid var(--bord-carte); }
.coord h2 { margin: 0; font: 700 1.375rem/1.25 var(--font-maquette); }
.coord address { margin-top: 1.25rem; font-style: normal; }
.coord ul { margin: 0; padding: 0; list-style: none; }
.coord li { display: flex; align-items: flex-start; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.1); font-size: 1rem; line-height: 1.5; }
.coord li:last-child { border-bottom: 0; }
.coord .ico { margin-top: 0.1rem; color: var(--rouge); }
.coord a { color: var(--blanc); text-decoration: none; }
.coord a:hover { text-decoration: underline; text-decoration-color: var(--rouge); text-underline-offset: 4px; }
.coord h3 { margin: 1.75rem 0 0.5rem; font: 600 0.75rem/1.3 var(--font-maquette); letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-doux); }
.coord__villes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.coord__villes li { padding: 0.35rem 0.75rem; border: 1px solid rgb(255 255 255 / 0.18); font-size: 0.875rem; }

.form h2 { margin: 0 0 0.5rem; font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--font-maquette); }
.form__aide { margin: 0 0 1.75rem; font-size: 0.9375rem; color: var(--texte-doux); }
.form__ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.champ { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.champ label { font-size: 0.875rem; font-weight: 600; }
.champ label span { color: var(--texte-doux); font-weight: 400; }
.champ input, .champ textarea {
  width: 100%; padding: 0.875rem 1rem;
  font: 400 1rem/1.5 var(--font-maquette); color: var(--blanc);
  background: var(--carte); border: 1px solid rgb(255 255 255 / 0.22); border-radius: 0;
  transition: border-color .2s ease;
}
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); }
.champ [aria-invalid="true"] { border-color: var(--rouge); }
.champ__erreur { min-height: 0; margin: 0; font-size: 0.8125rem; color: #ff5a5a; }
.champ__erreur:empty { display: none; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__mention { margin: 1.25rem 0 0; font-size: 0.8125rem; line-height: 1.6; color: var(--texte-doux); }
.form__mention a { color: var(--blanc); }
.form__mention + .form__mention { margin-top: 0.5rem; }
/* Badge reCAPTCHA masqué : la mention exigée par Google figure sous le formulaire */
.grecaptcha-badge { visibility: hidden; }

/* Fenêtre de confirmation après l'envoi du formulaire */
.popup {
  width: min(26rem, calc(100% - 2rem)); padding: 0; border: 0; border-top: 3px solid var(--rouge);
  background: var(--carte); color: var(--blanc); font-family: var(--font-maquette);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55);
}
.popup::backdrop { background: rgb(0 0 0 / 0.65); }
.popup[open] { animation: popup-entree .25s ease-out; }
@keyframes popup-entree { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.popup__corps { padding: 2.25rem 2rem 2rem; text-align: center; }
.popup__ico { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--rouge); }
.popup__ico .ico { width: 1.75rem; height: 1.75rem; stroke-width: 2.5; }
.popup__titre { margin: 0 0 0.75rem; font: 700 1.875rem/1.1 var(--font-condense); letter-spacing: 0.03em; text-transform: uppercase; }
.popup__texte { margin: 0 0 1.75rem; color: var(--texte-doux); line-height: 1.6; }
.popup__signature { display: block; margin-top: 0.75rem; color: var(--blanc); font-weight: 600; }
.popup form { margin: 0; }
.popup__fermer { width: 100%; }
@media (prefers-reduced-motion: reduce) { .popup[open] { animation: none; } }
.form__statut { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-left: 3px solid var(--rouge); background: var(--carte); line-height: 1.55; }
.form__statut:empty { display: none; }
.form__statut--ok { border-left-color: #2fbf71; }
.form button[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Pages juridiques ---------- */

.prose { max-width: 48rem; font-family: var(--font-maquette); }
.prose h2 { margin: 2.75rem 0 0.75rem; font: 700 1.5rem/1.25 var(--font-maquette); color: var(--blanc); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.75rem 0 0.5rem; font: 600 1.0625rem/1.3 var(--font-maquette); color: var(--blanc); }
.prose p, .prose li { color: var(--texte-doux); font-size: 1rem; line-height: 1.75; }
.prose p { margin: 0.75rem 0 0; }
.prose ul { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.prose a { color: var(--blanc); text-decoration-color: var(--rouge); text-underline-offset: 3px; }
.prose strong { color: var(--blanc); font-weight: 600; }
.a-completer { padding: 0.05em 0.35em; background: rgb(255 0 0 / 0.18); color: var(--blanc); border-radius: 2px; }
.prose__maj { margin-top: 2.5rem !important; font-size: 0.875rem !important; }

/* ---------- Page 404 ---------- */

.erreur { padding: calc(var(--header-h) + 5rem) 0 6rem; background: var(--fond-maquette); font-family: var(--font-maquette); text-align: center; }
.erreur__code { margin: 0; font: 800 clamp(5rem, 16vw, 10rem)/1 var(--font-condense); color: var(--rouge); }
.erreur h1 { margin: 0.5rem 0 0; font: 700 clamp(1.75rem, 3vw, 2.5rem)/1.2 var(--font-maquette); }
.erreur p { margin: 1rem auto 0; max-width: 32rem; color: var(--texte-doux); }
.erreur .page-hero__actions { justify-content: center; }

/* ---------- Adaptations des pages intérieures ---------- */

@media (max-width: 1023px) {
  .split { grid-template-columns: 1fr; }
  .split--inverse .split__media { order: 0; }
  .split__media { max-width: 40rem; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .liste-liens, .interventions .urgence__list { grid-template-columns: 1fr; }
  .interventions .urgence__list li:last-child { border-bottom: 0; }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atouts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 0; padding-top: calc(var(--header-h) + 2.5rem); }
}
@media (max-width: 767px) {
  .atouts--3 { grid-template-columns: 1fr; }
  .atouts--3 li { border-left: 0; border-top: 1px solid rgb(255 255 255 / 0.12); padding-top: 1.5rem; }
  .atouts--3 li:first-child { border-top: 0; }
  .atouts--3 p { text-align: center; }
  .form__ligne { grid-template-columns: 1fr; gap: 0; }
  .page-hero__lead { font-size: 1rem; }
}
@media (max-width: 559px) {
  .cards--3 { grid-template-columns: 1fr; }
  .page-hero__actions .bouton, .split__text .bouton { width: 100%; }
  .specs div { grid-template-columns: 7.5rem 1fr; }
  .coord { padding: 1.5rem; }
  .galerie { gap: 0.5rem; }
}

/* ---------- Mouvement réduit : version statique, rideau ouvert ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .hero__progress { display: none; }
}
