/* Lescop Couverture — « Joint debout »
   La page est une couverture en zinc : fond zinc naturel, tôles anthracite (zinc pré-patiné),
   joints debout en filets doubles au module d'un bac, bleu marine du logo pour les actions.
   Pas d'ombres portées : la profondeur vient du recouvrement. Arêtes nettes (rayon 2 px). */

@font-face { font-family: "Big Shoulders Display"; src: url("assets/fonts/big-shoulders-display-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("assets/fonts/big-shoulders-display-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --zinc: #edf0f1;          /* zinc naturel, fond */
  --zinc-2: #e2e6e8;        /* zinc un ton plus bas */
  --filet: #c9d0d4;         /* filets et bords */
  --zinc-moyen: #98a2a8;
  --texte-2: #48535b;       /* texte secondaire sur zinc (7:1) */
  --encre: #161b1f;
  --anthracite: #252c31;    /* zinc pré-patiné */
  --anthracite-2: #30383e;
  --anthracite-3: #1b2125;
  --sur-sombre: #e9edef;
  --sur-sombre-2: #aab5bc;  /* texte secondaire sur anthracite (7:1) */
  --marine: #10305c;        /* bleu du logo, réservé aux actions */
  --marine-2: #0a2347;

  --titre: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --texte: "Onest", system-ui, sans-serif;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --marge: clamp(20px, 5vw, 64px);
  --n: 6;                                     /* bacs par rangée */
  --bac: min(220px, calc((100vw - 2 * var(--marge)) / var(--n)));
  --rayon: 2px;
  --entete: 68px;
}
@media (max-width: 900px) { :root { --n: 4; --entete: 60px; } }

/* Le joint debout : un filet sombre, un filet clair, répétés à chaque bac */
.joints {
  background-image: linear-gradient(90deg, rgba(22, 27, 31, 0.075) 0 1px, rgba(255, 255, 255, 0.8) 1px 2px, transparent 2px);
  background-size: var(--bac) 100%;
  background-position: calc(50% + var(--bac) / 2) 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 16px); }
body {
  margin: 0; background: var(--zinc); color: var(--encre);
  font: 400 1.0625rem/1.6 var(--texte); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--marine);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
h1, h2, h3 { margin: 0; font-family: var(--titre); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--marine); color: var(--zinc); }
:focus-visible { outline: 2px solid var(--marine); outline-offset: 3px; border-radius: var(--rayon); }
html { scrollbar-color: var(--zinc-moyen) var(--zinc-2); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.ic--retourne { transform: scaleX(-1); }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--anthracite); color: var(--sur-sombre); padding: 10px 14px; border-radius: var(--rayon); }
.evitement:focus { top: 12px; }

.cadre { width: 100%; max-width: calc(var(--bac) * var(--n) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }

/* Repères de maquette : ce qui manque reste visible */
.trou {
  display: inline-block; font: 600 0.78rem/1.35 var(--texte); letter-spacing: 0; text-transform: none;
  color: #6b4300; background: #fff0c4; border: 1px dashed #b98419; padding: 2px 8px; border-radius: var(--rayon); vertical-align: 0.1em;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 22px; border-radius: var(--rayon); border: 1px solid transparent;
  font: 600 1rem/1.1 var(--texte); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.bouton:active { transform: scale(0.97); }
.bouton--clair { background: var(--zinc); color: var(--encre); }
.bouton--trait { border-color: rgba(233, 237, 239, 0.45); color: var(--sur-sombre); }
.bouton--marine { background: var(--marine); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .bouton--clair:hover { background: #fff; }
  .bouton--trait:hover { border-color: var(--sur-sombre); background: rgba(233, 237, 239, 0.06); }
  .bouton--marine:hover { background: var(--marine-2); }
  .bouton .ic:last-child { transition: transform 200ms var(--ease); }
  .bouton:hover .ic:last-child { transform: translateX(3px); }
}

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 30; background: var(--zinc); border-bottom: 1px solid var(--filet); }
.entete__in { display: flex; align-items: center; gap: 32px; height: var(--entete); max-width: calc(var(--bac) * var(--n) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.marque { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--marine); margin-right: auto; }
.marque__toit { width: 34px; height: 24px; align-self: center; fill: none; stroke: var(--marine); stroke-width: 3.2; stroke-linejoin: miter; stroke-linecap: square; }
.marque__nom { font: 800 1.75rem/1 var(--titre); text-transform: uppercase; letter-spacing: 0.02em; }
.marque__metier { font: 600 0.7rem/1 var(--texte); letter-spacing: 0.24em; text-transform: uppercase; color: var(--texte-2); }
.nav { display: flex; gap: 28px; }
.nav a { font-weight: 500; font-size: 0.95rem; text-decoration: none; color: var(--texte-2); padding-block: 8px; background: linear-gradient(var(--encre), var(--encre)) 0 100% / 0 1px no-repeat; transition: background-size 220ms var(--ease), color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--encre); background-size: 100% 1px; } }
.entete__tel { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--rayon); background: var(--marine); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; font-variant-numeric: tabular-nums; transition: background-color 200ms ease, transform 160ms var(--ease); }
.entete__tel:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .entete__tel:hover { background: var(--marine-2); } }

/* ---------- Accueil ---------- */
.accueil { position: relative; }
.accueil__photo { position: relative; height: min(66svh, 620px); min-height: 360px; overflow: hidden; background: #c6cdd1; }
.accueil__img, .calque img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.accueil__photo::after { /* joints posés sur la photo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(10, 14, 17, 0.42) 0 1px, rgba(255, 255, 255, 0.55) 1px 2px, rgba(10, 14, 17, 0.22) 2px 3px, transparent 3px);
  background-size: calc(100% / var(--n)) 100%; background-position: -1px 0;
}
.accueil picture { display: block; height: 100%; }
.accueil__legende { position: absolute; right: var(--marge); top: calc(max(min(66svh, 620px), 360px) + 16px); max-width: calc(var(--bac) * 1.1); font-size: 0.8rem; line-height: 1.45; color: var(--texte-2); text-align: right; }

/* calque de pose : un bac par colonne, créé par main.js */
.calque { position: absolute; inset: 0; z-index: 1; }
.calque__bac { position: absolute; top: 0; bottom: 0; overflow: hidden; clip-path: inset(0 0 100% 0); }
.calque__bac img { position: absolute; top: 0; height: 100%; max-width: none; }
.accueil--pose .accueil__img { opacity: 0; }
.accueil--pose .calque__bac { animation: bac-pose 1150ms var(--ease) forwards; }
.accueil--pose .calque__bac img { animation: bac-glisse 1150ms var(--ease) forwards; }
@keyframes bac-pose { to { clip-path: inset(0 0 0 0); } }
@keyframes bac-glisse { from { transform: translateY(-5%); } to { transform: none; } }

.accueil__tole {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 56px;
  width: calc(var(--bac) * 5 + var(--marge)); max-width: calc(100% - var(--marge));
  margin-top: -168px; padding: 44px 48px 40px var(--marge);
  background-color: var(--anthracite); color: var(--sur-sombre);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, rgba(0, 0, 0, 0.18) 1px 2px, transparent 2px);
  background-size: var(--bac) 100%; background-position: calc(var(--marge) + var(--bac)) 0;
}
@media (min-width: 1460px) { .accueil__tole { padding-left: calc((100vw - var(--bac) * var(--n)) / 2); width: calc((100vw - var(--bac) * var(--n)) / 2 + var(--bac) * 5); background-position: calc((100vw - var(--bac) * var(--n)) / 2 + var(--bac)) 0; } }
.insecable { white-space: nowrap; }
.accueil h1 { font-size: clamp(2.6rem, 4.6vw, 4.75rem); line-height: 0.9; letter-spacing: 0.01em; }
.accueil__intro { margin-top: 18px; max-width: 46ch; color: var(--sur-sombre-2); font-size: 1.075rem; }
.accueil__actions { display: grid; gap: 10px; justify-items: stretch; }
.accueil__note { font-size: 0.85rem; color: var(--sur-sombre-2); }

.js .accueil__texte > *, .js .accueil__actions > * { animation: monte 700ms var(--ease) both; }
.js .accueil__texte > :nth-child(2) { animation-delay: 80ms; }
.js .accueil__actions > :nth-child(1) { animation-delay: 160ms; }
.js .accueil__actions > :nth-child(2) { animation-delay: 220ms; }
.js .accueil__actions > :nth-child(3) { animation-delay: 280ms; }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 10vw, 144px); }
.section + .section { border-top: 1px solid var(--filet); }
.realisations, .prestations, .entreprise { background-image: linear-gradient(90deg, rgba(22, 27, 31, 0.042) 0 1px, rgba(255, 255, 255, 0.7) 1px 2px, transparent 2px); background-size: var(--bac) 100%; background-position: calc(50% + var(--bac) / 2) 0; }
.tete { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: 24px 0; margin-bottom: clamp(40px, 5vw, 64px); }
.tete h2 { grid-column: 1 / span 4; font-size: clamp(2.5rem, 4.8vw, 4.6rem); line-height: 0.92; }
.tete__texte { grid-column: 5 / span 2; color: var(--texte-2); max-width: 36ch; }
.tete--serie { grid-template-rows: auto auto; }
.tete--serie .tete__texte { grid-row: 1; }
.defile { grid-column: 5 / span 2; display: flex; gap: 8px; }
.defile__bouton { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--zinc); color: var(--encre); cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease), opacity 200ms ease; }
.defile__bouton:active { transform: scale(0.95); }
.defile__bouton:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .defile__bouton:not(:disabled):hover { border-color: var(--encre); background: #fff; } }

/* ---------- Avant / après ---------- */
.onglets { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--filet); margin-bottom: 32px; }
.onglet {
  appearance: none; border: 0; background: none; cursor: pointer; font: 600 0.98rem/1.2 var(--texte); color: var(--texte-2);
  padding: 16px 22px; margin-bottom: -1px; border-bottom: 2px solid transparent; transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}
.onglet[aria-selected="true"] { color: var(--encre); border-bottom-color: var(--marine); background: rgba(255, 255, 255, 0.6); }
@media (hover: hover) and (pointer: fine) { .onglet:hover { color: var(--encre); } }

.chantier { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0; align-items: start; }
.chantier[hidden] { display: none; }
.compare { grid-column: 1 / span 4; position: relative; overflow: hidden; background: var(--zinc-2); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; aspect-ratio: 1100 / 1093; max-height: 78svh; }
.compare--large { aspect-ratio: 680 / 595; }
.compare img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.compare__apres { position: absolute; inset: 0; }
.compare__avant { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); will-change: clip-path; }
.compare__etiquette { position: absolute; top: 16px; z-index: 2; padding: 7px 12px; border-radius: var(--rayon); background: var(--anthracite); color: var(--sur-sombre); font: 600 0.75rem/1 var(--texte); letter-spacing: 0.16em; text-transform: uppercase; transition: opacity 200ms ease; }
.compare__etiquette--avant { left: 16px; }
.compare__etiquette--apres { right: 16px; background: var(--marine); }
.joint { position: absolute; top: 0; bottom: 0; left: 50%; width: 8px; margin-left: -4px; z-index: 3; will-change: transform;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0 1px, #c9d0d4 1px 2px, #fbfcfc 2px 4px, #a3adb3 4px 6px, rgba(0, 0, 0, 0.32) 6px 7px, transparent 7px); }
.joint__tete { position: absolute; top: 50%; left: 50%; width: 40px; height: 64px; margin: -32px 0 0 -20px; display: grid; place-items: center; border-radius: var(--rayon); background: var(--anthracite); color: var(--sur-sombre); border: 1px solid rgba(255, 255, 255, 0.18); transition: transform 160ms var(--ease); }
.compare.est-tenu .joint__tete { transform: scale(1.06); }
.compare:has(.compare__range:focus-visible) .joint__tete { outline: 2px solid #fff; outline-offset: 3px; }
.compare__range { position: absolute; inset: auto 0 0 0; width: 100%; height: 1px; opacity: 0; margin: 0; pointer-events: none; }

.fiche { grid-column: 5 / span 2; padding: 4px 0 0 clamp(24px, 3vw, 40px); }
.fiche h3 { font-size: clamp(1.7rem, 2.3vw, 2.15rem); line-height: 0.98; }
.fiche__lieu { margin-top: 10px; font-size: 0.9rem; color: var(--texte-2); }
.fiche dl { margin: 24px 0 0; }
.fiche dt { padding-top: 16px; border-top: 1px solid var(--filet); font: 600 0.72rem/1 var(--texte); letter-spacing: 0.18em; text-transform: uppercase; color: var(--texte-2); }
.fiche dd { margin: 8px 0 18px; font-size: 0.98rem; }
.fiche ul { margin: 0; padding-left: 1.1em; }
.fiche li::marker { color: var(--zinc-moyen); }

.diptyque { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--filet); }
.diptyque__photo { position: relative; margin: 0; grid-column: span 2; }
.diptyque__photo + .diptyque__photo { margin-left: 2px; }
.diptyque__photo img { width: 100%; aspect-ratio: 680 / 900; object-fit: cover; }
.diptyque__photo figcaption { position: absolute; top: 16px; left: 16px; padding: 7px 12px; border-radius: var(--rayon); background: var(--anthracite); color: var(--sur-sombre); font: 600 0.75rem/1 var(--texte); letter-spacing: 0.16em; text-transform: uppercase; }
.diptyque__photo + .diptyque__photo figcaption { background: var(--marine); }
.autres { margin-top: clamp(48px, 6vw, 80px); max-width: 68ch; color: var(--texte-2); }
.autres a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--marine); font-weight: 600; }

/* ---------- Série du chantier ---------- */
.serie { padding-bottom: clamp(64px, 8vw, 112px); }
.bande {
  list-style: none; margin: 0; display: flex; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--marge), calc((100vw - var(--bac) * var(--n)) / 2));
  padding: 0 max(var(--marge), calc((100vw - var(--bac) * var(--n)) / 2)) 20px;
  scrollbar-width: thin; scrollbar-color: var(--zinc-moyen) transparent;
}
.bande li { flex: none; scroll-snap-align: start; }
.bande figure { margin: 0; }
.bande img { height: clamp(300px, 46svh, 500px); width: auto; aspect-ratio: auto; object-fit: cover; }
.bande figcaption { margin-top: 12px; max-width: 32ch; font-size: 0.9rem; color: var(--texte-2); }

/* ---------- Prestations ---------- */
.bacs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.bac { position: relative; padding: 28px 22px 36px 22px; min-height: 260px; border-top: 1px solid var(--filet); }
.bac::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(90deg, rgba(22, 27, 31, 0.18) 0 1px, #fff 1px 2px); }
.bac h3 { font-size: 1.75rem; line-height: 1; font-weight: 700; }
.bac p { margin-top: 14px; font-size: 0.97rem; color: var(--texte-2); }
.bac .trou { margin-top: 8px; }

/* ---------- Zone ---------- */
.zone { background: var(--zinc-2); }
.zone__grille { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: center; }
.zone__texte { grid-column: 1 / span 2; }
.zone h2 { font-size: clamp(2.4rem, 4.2vw, 4rem); line-height: 0.92; }
.zone__texte > p { margin-top: 20px; color: var(--texte-2); }
.zone__liste { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--filet); }
.zone__liste li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--filet); font-weight: 500; }
.zone__liste b { font: 800 1.6rem/1 var(--titre); color: var(--marine); width: 2ch; font-variant-numeric: tabular-nums; }
.zone__note { font-size: 0.92rem; }
.carte { grid-column: 3 / span 4; margin: 0 0 0 clamp(16px, 3vw, 48px); }
.carte svg { display: block; width: 100%; height: auto; }
.dep { fill: #d3d9dc; stroke: var(--zinc-2); stroke-width: 2.5; stroke-linejoin: round; }
.dep--zone { fill: var(--marine); stroke: #e9edef; }
.carte__num text { font: 800 62px/1 var(--titre); fill: rgba(233, 237, 239, 0.92); text-anchor: middle; }
.carte__point { fill: #fff; stroke: var(--anthracite); stroke-width: 5; }
.carte__onde { fill: none; stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: onde 2.6s var(--ease) infinite; }
@keyframes onde { from { transform: scale(1); opacity: 0.9; } to { transform: scale(4); opacity: 0; } }
.carte__base text { font: 600 28px/1 var(--texte); fill: #fff; stroke: var(--marine); stroke-width: 8px; stroke-linejoin: round; paint-order: stroke; }
@media (max-width: 900px) { .carte__base text { font-size: 36px; } .carte__num text { font-size: 72px; } }
.carte figcaption { margin-top: 10px; font-size: 0.75rem; color: var(--texte-2); text-align: right; }

/* ---------- L'entreprise ---------- */
.entreprise__grille { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: start; }
.entreprise__grille > div { grid-column: 1 / span 3; padding-right: clamp(24px, 4vw, 64px); }
.entreprise h2 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: 0.92; }
.entreprise__intro { margin-top: 22px; max-width: 46ch; color: var(--texte-2); }
.avis { margin: 44px 0 0; padding: 0; }
.avis p { font: 700 clamp(2rem, 3.2vw, 2.9rem)/1 var(--titre); color: var(--marine); }
.avis footer { margin-top: 12px; font-size: 0.88rem; color: var(--texte-2); }
.avis__trou { margin-top: 16px; }
.registre { grid-column: 4 / span 3; margin: 0; border-top: 1px solid var(--encre); }
.registre div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--filet); }
.registre dt { font: 600 0.72rem/1.6 var(--texte); letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-2); padding-top: 2px; }
.registre dd { margin: 0; font-weight: 500; }
.chiffres { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---------- Devis ---------- */
.devis { padding-block: clamp(80px, 10vw, 144px); background-color: var(--anthracite); color: var(--sur-sombre);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, rgba(0, 0, 0, 0.2) 1px 2px, transparent 2px); background-size: var(--bac) 100%; background-position: calc(50% + var(--bac) / 2) 0; }
.devis :focus-visible { outline-color: #fff; }
.devis__grille { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: start; }
.devis__direct { grid-column: 1 / span 3; padding-right: clamp(24px, 4vw, 64px); }
.devis h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 0.9; }
.devis__direct > p { margin-top: 22px; max-width: 42ch; color: var(--sur-sombre-2); }
.canaux { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid rgba(233, 237, 239, 0.16); }
.canal { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(233, 237, 239, 0.16); text-decoration: none; transition: color 200ms ease; }
.canal .ic { width: 28px; height: 28px; color: var(--sur-sombre-2); transition: color 200ms ease, transform 200ms var(--ease); }
.canal b { display: block; font: 700 clamp(1.4rem, 2.2vw, 1.9rem)/1.05 var(--titre); letter-spacing: 0.01em; overflow-wrap: anywhere; }
.canal small { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--sur-sombre-2); }
@media (hover: hover) and (pointer: fine) { .canal:hover .ic { color: #fff; transform: translateX(2px); } }

.formulaire { grid-column: 4 / span 3; background: var(--zinc); color: var(--encre); padding: clamp(24px, 3vw, 40px); border-radius: var(--rayon); }
.formulaire h3 { font-size: 1.9rem; line-height: 1; }
.formulaire :focus-visible { outline-color: var(--marine); }
.travaux { border: 0; margin: 22px 0 0; padding: 0; }
.travaux legend { padding: 0; font: 600 0.72rem/1 var(--texte); letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-2); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.puces label { position: relative; }
.puces input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.puces span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; font-size: 0.92rem; font-weight: 500; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease); }
.puces input:checked + span { background: var(--anthracite); border-color: var(--anthracite); color: var(--sur-sombre); }
.puces input:focus-visible + span { outline: 2px solid var(--marine); outline-offset: 2px; }
.puces input:active + span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .puces input:not(:checked):hover + span { border-color: var(--encre); } }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.champ { display: grid; gap: 6px; }
.champ--large { grid-column: 1 / -1; }
.champ > span { font-size: 0.88rem; font-weight: 600; }
.champ i { font-style: normal; font-weight: 400; color: var(--texte-2); }
.champ input, .champ textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #b4bec4; border-radius: var(--rayon); background: #fff; color: var(--encre); font: 400 1rem/1.4 var(--texte); transition: border-color 160ms ease; }
.champ textarea { resize: vertical; min-height: 104px; }
.champ input::placeholder, .champ textarea::placeholder { color: #67727a; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--marine); outline-offset: 1px; border-color: var(--marine); }
.champ [aria-invalid="true"] { border-color: #a3261b; }
.formulaire__erreur { margin-top: 16px; padding: 10px 14px; border-radius: var(--rayon); background: #fbe9e7; color: #8a1f14; font-size: 0.92rem; font-weight: 500; }
.formulaire .bouton { margin-top: 22px; width: 100%; }
.formulaire__note { margin-top: 12px; font-size: 0.84rem; color: var(--texte-2); }

/* ---------- Pied ---------- */
.pied { background: var(--anthracite-3); color: var(--sur-sombre-2); padding-block: 48px 56px; font-size: 0.9rem; }
.pied :focus-visible { outline-color: #fff; }
.pied__grille { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; align-items: start; }
.pied__marque { font: 800 2rem/1 var(--titre); text-transform: uppercase; color: var(--sur-sombre); letter-spacing: 0.02em; }
.pied__marque span { font: 600 0.7rem/1 var(--texte); letter-spacing: 0.24em; margin-left: 6px; color: var(--sur-sombre-2); vertical-align: 0.4em; }
.pied__devise { margin-top: 10px; }
.pied__infos { display: grid; gap: 10px; }
.pied a { color: var(--sur-sombre); }

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

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .tete h2 { grid-column: 1 / -1; }
  .tete__texte, .defile { grid-column: 1 / -1; }
  .tete--serie .tete__texte { grid-row: auto; }
  .bacs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zone__texte { grid-column: 1 / span 3; }
  .carte { grid-column: 4 / span 3; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .marque__nom { font-size: 1.55rem; }
  .entete__tel span { display: none; }
  .entete__tel { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .entete__tel .ic { width: 22px; height: 22px; }

  .accueil__photo { height: 44svh; min-height: 280px; }
  .accueil__img, .calque img { object-position: 50% 40%; }
  .accueil__legende { display: none; }
  .accueil__tole { grid-template-columns: 1fr; width: calc(100% - 16px); max-width: none; margin-top: -56px; padding: 28px var(--marge) 28px; background-position: calc(var(--marge) + var(--bac)) 0; }
  .accueil h1 { font-size: min(9.1vw, 3.4rem); }
  .accueil__intro { font-size: 1rem; margin-top: 14px; }
  .accueil__actions { gap: 10px; }

  .chantier, .diptyque, .zone__grille, .entreprise__grille, .devis__grille { grid-template-columns: 1fr; }
  .tete { grid-template-columns: 1fr; }
  .compare, .fiche, .zone__texte, .carte, .registre, .devis__direct, .formulaire, .entreprise__grille > div { grid-column: 1 / -1; }
  .compare { max-height: none; margin-inline: calc(var(--marge) * -1); }
  .fiche { padding: 28px 0 0; }
  .onglets { margin-inline: calc(var(--marge) * -1); padding-inline: var(--marge); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .onglet { white-space: nowrap; padding: 14px 16px; font-size: 0.92rem; }
  .diptyque { grid-template-columns: 1fr 1fr; }
  .diptyque__photo { grid-column: span 1; }
  .fiche--diptyque { grid-column: 1 / -1; }
  .bacs { grid-template-columns: 1fr; }
  .bac { min-height: 0; display: grid; grid-template-columns: 8.5rem 1fr; gap: 0 16px; padding: 18px 0 20px 16px; }
  .bac p { margin-top: 2px; }
  .bac h3 { font-size: 1.5rem; }
  .carte { margin: 40px 0 0; }
  .entreprise__grille > div, .devis__direct { padding-right: 0; }
  .registre { margin-top: 48px; }
  .registre div { grid-template-columns: 1fr; gap: 4px; }
  .formulaire { margin: 48px calc(var(--marge) * -1) 0; }
  .champs { grid-template-columns: 1fr; }
  .pied__grille { grid-template-columns: 1fr; }
  .pied { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .barre {
    display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--anthracite); border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 240ms var(--ease);
  }
  .barre.est-cachee { transform: translateY(110%); }
  .barre a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--rayon); font-weight: 600; text-decoration: none; transition: transform 160ms var(--ease); }
  .barre a:active { transform: scale(0.97); }
  .barre__appel { background: var(--zinc); color: var(--encre); }
  .barre__devis { border: 1px solid rgba(233, 237, 239, 0.4); color: var(--sur-sombre); }
}
@media (max-width: 380px) { .bac { grid-template-columns: 1fr; } .bac p { margin-top: 8px; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .accueil__texte > *, .js .accueil__actions > * { animation: apparait 300ms ease both; animation-delay: 0ms !important; }
  @keyframes apparait { from { opacity: 0; } }
  .carte__onde { animation: none; opacity: 0; }
  .bouton, .barre, .entete__tel { transition-property: background-color, border-color, color; }
}
