/* Nom entreprise · démo 1 « Essentiel » : menuiserie à Corte.
   Direction : éditorial minimal, typographie forte, bois en SVG et cotes de dessin technique au bleu de travail.
   Sans JS, tout fonctionne ; les animations n'existent que si html[data-motion="full"] (posé par le script en tête). */

/* ---------- Polices (OFL, sous-ensembles latin) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Jetons ---------- */
:root {
  --papier: #F1EDE4;
  --papier-2: #E9E3D7;
  --carte: #FBF9F4;
  --encre: #16140F;
  --doux: #5A544B;
  --ligne: #D8D1C3;
  --ligne-f: #BDB4A3;
  --bleu: #2A3FD4;          /* bleu de travail */
  --bleu-f: #1F31AE;
  --bleu-clair: #A9B6FF;
  --miel: #E0A458;
  --sur-sombre: #C9C2B5;

  --f-titre: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-texte: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --entete-h: 4.25rem;
  --r: 1.25rem;
  --cadre: 84rem;
  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  /* mouvement : courbes fortes et personnalisées, jamais ease-in ; 300 ms maximum pour l'interface */
  --ease-out: cubic-bezier(.23, 1, .32, 1);      /* entrées, sorties, survols, pression */
  --barre-h: 3.8rem;                             /* barre de contact mobile : 3rem + 2 × .4rem */
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-motion="full"] { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 400 1.0625rem/1.6 var(--f-texte);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
strong { font-weight: 650; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: .25rem; }
.sec--sombre :focus-visible, .pied :focus-visible, .sec--contact :focus-visible, .bandeau-haut :focus-visible, .barre-contact :focus-visible { outline-color: var(--carte); }
::selection { background: var(--bleu); color: #fff; }

.cadre { width: min(100% - 2 * var(--gouttiere), var(--cadre)); margin-inline: auto; }

.lien-evitement {
  position: absolute; left: 1rem; top: -10rem; z-index: 1001;
  padding: .75rem 1.1rem; border-radius: .6rem; background: var(--encre); color: var(--carte); font-weight: 600;
}
.lien-evitement:focus { top: 1rem; }

/* ---------- Bandeau de démonstration (structure : ../_commun/bandeau.css) ---------- */
.bandeau-haut { background: var(--encre); color: var(--carte); font-size: .875rem; text-align: center; }
.bandeau-haut a { color: var(--carte); font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; max-width: 100%; padding: .55rem 1.45rem; border-radius: 99rem; border: 1.5px solid transparent;
  font: 600 1rem/1.1 var(--f-texte); text-decoration: none; text-align: center; overflow-wrap: anywhere; cursor: pointer;
}
.btn--plein { background: var(--bleu); color: #fff; }
.btn--trait { border-color: var(--encre); color: var(--encre); }
.btn--clair { background: var(--carte); color: var(--encre); }
.btn--petit { min-height: 2.75rem; padding: .4rem 1.15rem; white-space: nowrap; font-size: .9375rem; }
/* pression : tout ce qui se presse s'enfonce un peu (état, pas animation : reste vrai en mouvement réduit) */
.btn:active, .barre-contact a:active, .interrupteur:active { transform: scale(.97); }
html[data-motion="full"] :is(.btn, .barre-contact a, .interrupteur) {
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
html[data-motion="full"] .btn .ico { transition: transform 200ms var(--ease-out); }
/* survols : seulement avec une vraie souris (au doigt, le survol « colle » après le toucher) */
@media (hover: hover) and (pointer: fine) {
  .btn--plein:hover { background: var(--bleu-f); }
  .btn--trait:hover { background: var(--encre); color: var(--carte); }
  .btn--clair:hover { background: #fff; }
  html[data-motion="full"] .btn:hover .ico { transform: translateX(3px); }
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgb(241 237 228 / .88); border-bottom: 1px solid var(--ligne);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.entete__inner { display: flex; align-items: center; gap: 2rem; height: var(--entete-h); }
.marque { display: inline-flex; align-items: center; gap: .75rem; color: var(--encre); text-decoration: none; }
.marque__logo { width: 2.5rem; height: 2.5rem; color: var(--encre); }
.marque__texte { display: flex; flex-direction: column; line-height: 1.1; }
.marque__nom { font: 700 1.125rem/1.1 var(--f-titre); letter-spacing: -.01em; }
.marque__activite { font: 500 .6875rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--doux); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .25rem; }
.nav a {
  display: block; padding: .5rem .8rem; border-radius: 99rem;
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--encre);
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--papier-2); } }
.entete__cta { margin-left: auto; }
@media (min-width: 60rem) { .nav + .entete__cta { margin-left: 0; } }
@media (max-width: 59.99rem) { .nav { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: clamp(2rem, 4.5vw, 4rem); overflow: hidden; }
/* papier de dessinateur : quadrillage bleu très pâle, qui s'efface vers le bas */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgb(42 63 212 / .07) 1px, transparent 1px), linear-gradient(to bottom, rgb(42 63 212 / .07) 1px, transparent 1px);
  background-size: 2rem 2rem; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%); mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
}
.hero__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 64rem) { .hero__grille { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }

.etiquette {
  display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; margin-bottom: 1.5rem;
  padding: .4rem .85rem .4rem .7rem; overflow-wrap: anywhere; border: 1px solid var(--ligne-f); border-radius: 99rem; background: var(--carte);
  font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
}
.etiquette__point { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--bleu); box-shadow: 0 0 0 3px rgb(42 63 212 / .18); }

.hero__titre { font-size: clamp(3.1rem, 1.5rem + 5.4vw, 6.25rem); font-weight: 760; line-height: .94; letter-spacing: -.045em; }
.hero__titre .ligne { display: block; }
.hero__titre { overflow-wrap: break-word; }
.hero__titre .ligne > span { display: inline-block; max-width: 100%; }
.hero__accent { position: relative; color: var(--bleu); padding-bottom: .16em; }
/* la cote sous « au millimètre » : un trait et deux attaches, comme sur un plan */
.hero__accent::after {
  content: ""; position: absolute; left: .02em; right: .12em; bottom: 0; height: .14em;
  border-inline: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  transform-origin: left center;
}
.hero__chapo { max-width: 34rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--doux); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__visuel { position: relative; }
.planches {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end;
  gap: clamp(.6rem, 1.2vw, 1rem); height: clamp(17rem, 34vw, 33rem);
  padding: 0 0 2.75rem 2.75rem;
}
.planche { position: relative; height: 100%; border-radius: .35rem; overflow: hidden; box-shadow: 0 1px 0 rgb(22 20 15 / .12), 0 1.75rem 2.5rem -1.5rem rgb(80 42 12 / .55); }
.planche--2 { height: 80%; }
.planche--3 { height: 62%; }
.planche img { width: 100%; height: 100%; object-fit: cover; }
.planche__code {
  position: absolute; left: .5rem; bottom: .5rem; padding: .2rem .45rem; border-radius: .25rem;
  background: var(--carte); color: var(--encre); font: 500 .6875rem/1.3 var(--f-mono); letter-spacing: .04em; white-space: nowrap;
}
.cote { position: absolute; color: var(--bleu); }
.cote::before, .cote::after { content: ""; position: absolute; background: currentColor; }
.cote__val { position: absolute; padding: 0 .4rem; background: var(--papier); font: 500 .75rem/1.2 var(--f-mono); white-space: nowrap; }
.cote--v { left: .9rem; top: 0; bottom: 2.75rem; border-left: 1.5px solid; }
.cote--v::before, .cote--v::after { left: -.45rem; width: .9rem; height: 1.5px; transform: rotate(-45deg); }
.cote--v::before { top: 0; } .cote--v::after { bottom: 0; }
.cote--v .cote__val { left: 0; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.cote--h { left: 2.75rem; right: 0; bottom: .9rem; border-top: 1.5px solid; }
.cote--h::before, .cote--h::after { top: -.45rem; width: 1.5px; height: .9rem; transform: rotate(45deg); }
.cote--h::before { left: 0; } .cote--h::after { right: 0; }
.cote--h .cote__val { left: 50%; top: 0; transform: translate(-50%, -50%); }
.hero__fiche { margin: 1.25rem 0 0 2.75rem; max-width: 26rem; font-size: .875rem; color: var(--doux); }
.hero__fiche span { display: block; margin-bottom: .2rem; font: 500 .6875rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--bleu); }

.chiffres {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--encre);
}
/* le hero n'a pas de marge basse : l'écart avec « 01 Prestations » est le padding de section, comme partout */
.chiffres li { padding: 1.25rem 1.25rem 0 0; }
.chiffres li:nth-child(n+3) { margin-top: 1.25rem; }
.chiffres strong { display: block; font: 720 clamp(2rem, 1.3rem + 2.4vw, 3.25rem)/1 var(--f-titre); letter-spacing: -.035em; }
.chiffres span { display: block; max-width: 16rem; margin-top: .5rem; font-size: .9375rem; line-height: 1.45; color: var(--doux); }
@media (min-width: 56rem) {
  .chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chiffres li { padding: 1.5rem 1.5rem 0; border-left: 1px solid var(--ligne); }
  .chiffres li:first-child { padding-left: 0; border-left: 0; }
  .chiffres li:nth-child(n+3) { margin-top: 0; }
}

/* ---------- Sections ---------- */
.sec { padding-block: clamp(5rem, 9vw, 8rem); }
.sec--bois { background: var(--papier-2); }
.sec__tete { max-width: 48rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.sec__num {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem;
  font: 500 .8125rem/1.2 var(--f-mono); color: var(--bleu); letter-spacing: .04em;
}
.sec__num span { color: var(--encre); text-transform: uppercase; letter-spacing: .1em; }
.sec__num::after { content: ""; flex: 0 0 3rem; height: 1px; background: currentColor; }
.sec h2 { font-size: clamp(2.15rem, 1.3rem + 3.3vw, 4.25rem); line-height: 1; letter-spacing: -.04em; }
.sec__chapo { max-width: 38rem; margin-top: 1.25rem; font-size: 1.125rem; color: var(--doux); }
.note { margin-top: 1.5rem; font-size: .875rem; color: var(--doux); }

/* ---------- 01 Prestations : bento ---------- */
.bento { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carte--a { grid-column: span 2; }
  .carte--b { grid-column: 3; grid-row: span 2; }
}
.carte {
  position: relative; display: flex; flex-direction: column; gap: .75rem; min-height: 17rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem); border: 1px solid var(--ligne); border-radius: var(--r);
  background: var(--carte); isolation: isolate;
}
.carte__tag { font: 500 .75rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--bleu); padding-right: 4.5rem; }
.carte h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -.03em; }
.carte > p:not([class]) { max-width: 30rem; color: var(--doux); }
.carte__ico { position: absolute; top: clamp(1.25rem, 2.4vw, 2rem); right: clamp(1.25rem, 2.4vw, 2rem); width: 3.5rem; height: 3.5rem; fill: none; stroke: var(--bleu); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.prix {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .5rem; row-gap: .15rem;
  margin-top: auto; padding-top: 1.25rem; border-top: 1px dashed var(--ligne-f);
}
.carte > p:not([class]) + .prix { margin-top: auto; }
.prix strong { font: 720 clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem)/1 var(--f-titre); letter-spacing: -.035em; }
.prix__de { font-size: .9375rem; color: var(--doux); }
.prix__detail { flex-basis: 100%; font-size: .875rem; color: var(--doux); }
@media (min-width: 64rem) {
  .carte--a { min-height: 20rem; }
  .carte--a .carte__ico { width: 9rem; height: 9rem; top: auto; bottom: 2rem; stroke-width: .55; }
  .carte--a .prix { margin-right: 11rem; }
}
.carte--b { background: var(--miel); border-color: var(--miel); }
.carte--b .carte__tag, .carte--b > p:not([class]), .carte--b .prix__de, .carte--b .prix__detail { color: var(--encre); }
.carte--b .carte__ico { stroke: var(--encre); }
.carte--b .prix { border-top-color: rgb(22 20 15 / .35); }
@media (min-width: 64rem) {
  .carte--b .carte__ico { position: static; width: 100%; height: auto; max-height: 13rem; margin: 1.5rem 0 .5rem; stroke-width: .5; order: -1; aspect-ratio: 1; }
  .carte--b .carte__tag { order: -2; }
}
.carte--d { background: var(--encre); border-color: var(--encre); color: var(--carte); }
.carte--d .carte__tag { color: var(--bleu-clair); }
.carte--d > p:not([class]), .carte--d .prix__detail { color: var(--sur-sombre); }
.carte--d .carte__ico { stroke: var(--bleu-clair); }
.carte--d .prix { border-top-color: rgb(255 255 255 / .25); }

/* ---------- 02 Bois ---------- */
.essences { display: grid; gap: 2rem 1.25rem; }
@media (min-width: 48rem) { .essences { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.essence__bois { aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden; box-shadow: 0 1.5rem 2.5rem -1.75rem rgb(80 42 12 / .6); }
.essence__bois img { width: 100%; height: 100%; object-fit: cover; }
.essence__code { margin-top: 1.25rem; font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .06em; color: var(--bleu); }
.essence h3 { margin-top: .35rem; font-size: 1.75rem; letter-spacing: -.03em; }
.essence p:not([class]) { margin-top: .5rem; color: var(--doux); }
.essence__usage { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--ligne-f); font-size: .9375rem; font-weight: 600; }
@media (max-width: 47.99rem) {
  .essence { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 1.1rem; overflow-wrap: anywhere; }
  .essence__bois { grid-row: span 5; aspect-ratio: auto; height: 100%; min-height: 9rem; border-radius: .9rem; }
  .essence__code { margin-top: 0; }
}

/* ---------- 03 Réalisations : croquis cotés ---------- */
.defile { margin-inline: calc(-1 * var(--gouttiere)); padding: .25rem var(--gouttiere) 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); scrollbar-width: thin; }
.defile:focus-visible { outline-offset: -3px; }
.croquis-liste { display: flex; gap: 1rem; }
.croquis { flex: 0 0 min(84%, 22rem); scroll-snap-align: start; }
@media (min-width: 48rem) {
  .defile { margin: 0; padding: 0; overflow: visible; }
  .croquis-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (min-width: 64rem) { .croquis-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.croquis figure {
  height: 100%; display: flex; flex-direction: column;
  border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; color: var(--encre);
  background-color: var(--carte);
  background-image: linear-gradient(to right, rgb(22 20 15 / .045) 1px, transparent 1px), linear-gradient(to bottom, rgb(22 20 15 / .045) 1px, transparent 1px);
  background-size: 1rem 1rem;
}
.croquis__ill { width: 100%; height: auto; padding: .75rem .5rem .25rem; }
.croquis figcaption {
  display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: baseline;
  margin-top: auto; padding: 1rem 1.25rem 1.1rem; border-top: 1px solid var(--ligne); background: var(--carte);
}
.croquis__num { grid-row: span 2; font: 500 .75rem/1.3 var(--f-mono); color: var(--bleu); }
.croquis__titre { font: 700 1.2rem/1.2 var(--f-titre); letter-spacing: -.02em; }
.croquis__lieu { font-size: .875rem; color: var(--doux); }
@media (max-width: 47.99rem) { .croquis__ill .cotes g { font-size: 17px; } }
/* sous 40rem, cotes plus grandes ; détourées couleur papier, comme sur un plan, là où elles touchent un trait */
@media (max-width: 40rem) { .croquis__ill .cotes g { font-size: 19.5px; stroke: var(--carte); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; } }

/* ---------- 04 Méthode ---------- */
.sec--sombre { background: var(--encre); color: var(--carte); }
.sec--sombre .sec__num { color: var(--bleu-clair); }
.sec--sombre .sec__num span { color: var(--carte); }
.duree { position: relative; display: flex; justify-content: center; margin-bottom: 2.5rem; color: var(--bleu-clair); }
.duree::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid; transform-origin: left; }
.duree__ligne { position: absolute; left: 0; right: 0; top: 50%; height: 1rem; transform: translateY(-50%); border-inline: 1.5px solid; }
.duree__val { position: relative; padding: 0 1rem; background: var(--encre); font: 500 .8125rem/1.4 var(--f-mono); text-align: center; }
.etapes { display: grid; gap: 2.25rem 1.5rem; counter-reset: etape; }
@media (min-width: 40rem) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .etapes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.etape { padding-top: .25rem; }
.etape__num { display: block; font: 760 clamp(3.25rem, 2.5rem + 2.5vw, 4.75rem)/1 var(--f-titre); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.25px var(--bleu-clair); }
.etape h3 { margin-top: 1.25rem; font-size: 1.375rem; letter-spacing: -.02em; }
.etape p { margin-top: .6rem; color: var(--sur-sombre); font-size: 1rem; }

/* ---------- 05 Avis ---------- */
.avis { display: grid; gap: 2.25rem 2rem; }
@media (min-width: 56rem) { .avis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.avis figure { display: flex; flex-direction: column; height: 100%; padding-top: 1.5rem; border-top: 1px solid var(--encre); }
.avis blockquote p { font: 500 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.32 var(--f-titre); letter-spacing: -.015em; }
.avis figcaption { margin-top: auto; padding-top: 1.5rem; font-size: .875rem; color: var(--doux); }
.avis figcaption strong { display: block; color: var(--encre); font-size: 1rem; }

/* ---------- 06 Zone et questions ---------- */
.sec--zone { padding-top: 0; }
.zone { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 64rem) { .zone { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.carte-corse { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r); background: var(--papier-2); }
@media (min-width: 64rem) { .zone__carte { position: sticky; top: calc(var(--h-bandeau, 0px) + var(--entete-h) + 1.5rem); } }
.carte__ill { width: 100%; max-height: min(30rem, 60vh); height: auto; margin-inline: auto; }
.carte__ill .zone__point { fill: var(--bleu); }
.carte-corse figcaption { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.25rem; font: 500 .75rem/1.4 var(--f-mono); color: var(--doux); text-align: center; }
.carte-corse__leg { flex: none; width: .9rem; height: .9rem; border: 1.5px dashed var(--bleu); border-radius: 50%; background: rgb(42 63 212 / .1); }
.puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.puces li { padding: .35rem .85rem; border: 1px solid var(--ligne-f); border-radius: 99rem; background: var(--carte); font-size: .9375rem; }
.faq__titre { margin: clamp(2.5rem, 5vw, 3.5rem) 0 .5rem; font-size: 1.75rem; letter-spacing: -.03em; scroll-margin-top: calc(var(--h-bandeau, 0px) + var(--entete-h) + 1rem); }
.faq details { border-bottom: 1px solid var(--ligne-f); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font: 600 1.125rem/1.35 var(--f-titre); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--ligne-f);
  background: linear-gradient(var(--encre), var(--encre)) center / .75rem 1.5px no-repeat, linear-gradient(var(--encre), var(--encre)) center / 1.5px .75rem no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(#fff, #fff) center / .75rem 1.5px no-repeat, var(--bleu); border-color: var(--bleu); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover::after { border-color: var(--encre); } }
.faq details p { max-width: 40rem; padding-bottom: 1.25rem; color: var(--doux); }

/* ---------- 07 Contact ---------- */
.sec--contact { background: var(--bleu); color: #fff; }
.sec--contact .sec__num, .sec--contact .sec__num span { color: #fff; }
.sec--contact .sec__chapo { color: #DDE2FF; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: end; }
@media (min-width: 64rem) { .contact { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 5rem; } }
.tel-geant {
  position: relative; display: inline-block; margin-top: clamp(2rem, 4vw, 3rem); color: #fff; text-decoration: none;
  font: 760 clamp(2.4rem, .9rem + 6vw, 6.25rem)/1 var(--f-titre); letter-spacing: -.045em;
  max-width: 100%; overflow-wrap: anywhere; padding-bottom: .12em;
}
/* soulignement au survol : un trait qui s'étire (transform seulement) */
.tel-geant::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; transform: scaleX(.001); transform-origin: left; opacity: 0; }
@media (hover: hover) and (pointer: fine) { .tel-geant:hover::after { transform: none; opacity: 1; } }
.tel-geant__lib { display: block; margin-bottom: .6rem; font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #DDE2FF; }
.contact__portable { margin-top: 1.25rem; color: #DDE2FF; }
.contact__portable a { color: #fff; font-weight: 600; white-space: nowrap; }
.contact__fiche { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid rgb(255 255 255 / .3); border-radius: var(--r); background: rgb(255 255 255 / .06); }
.contact__fiche .btn { width: 100%; white-space: normal; text-align: center; }
.fiche { margin-top: 1.75rem; }
.fiche div { padding-block: 1rem; border-top: 1px solid rgb(255 255 255 / .22); }
.fiche dt { font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #DDE2FF; }
.fiche dd { margin-top: .3rem; }
.fiche a { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
html[data-motion="full"] .tel-geant::after { transition: transform 260ms var(--ease-out), opacity 120ms var(--ease-out); }

/* ---------- Pied ---------- */
.pied { padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; background: var(--encre); color: var(--carte); font-size: .9375rem; }
.pied__grille { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied__logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.pied .marque__logo { color: var(--carte); }
.pied .marque__activite { color: var(--sur-sombre); }
.pied__marque > p:not(.pied__logo) { max-width: 22rem; color: var(--sur-sombre); }
.pied__titre { margin-bottom: .9rem; font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bleu-clair); }
.pied ul li + li { margin-top: .45rem; }
.pied a { color: var(--carte); text-decoration-color: rgb(255 255 255 / .4); }
@media (hover: hover) and (pointer: fine) { .pied a:hover { text-decoration-color: currentColor; } }
.pied__liens { columns: 2; column-gap: 1.5rem; }
.pied__liens li { break-inside: avoid; }
.pied__bas { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.25rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .16); }
.mentions { flex: 1 1 28rem; max-width: 46rem; }
.mentions summary { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; cursor: pointer; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .4); text-underline-offset: .2em; }
.mentions__corps { padding: .75rem 0 1rem; color: var(--sur-sombre); }
.mentions__corps p { margin-bottom: 1rem; }
.mentions__corps dt { margin-top: .9rem; color: var(--carte); font-weight: 600; }
.mentions__corps dd { margin-top: .15rem; }
.interrupteur {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: .35rem 1rem .35rem .45rem;
  border: 1px solid rgb(255 255 255 / .3); border-radius: 99rem; background: transparent; color: var(--carte);
  font: 500 .9375rem/1 var(--f-texte); cursor: pointer;
}
.interrupteur[hidden] { display: none; }
.interrupteur::before {
  content: ""; width: 2.4rem; height: 1.4rem; border-radius: 99rem;
  background: radial-gradient(circle at calc(100% - .7rem) 50%, var(--encre) .45rem, transparent .5rem), var(--bleu-clair);
}
.interrupteur[aria-pressed="false"]::before { background: radial-gradient(circle at .7rem 50%, var(--carte) .45rem, transparent .5rem), #4A463F; }
@media (hover: hover) and (pointer: fine) { .interrupteur:hover { border-color: var(--carte); } }
.pied__demo { margin-top: 2rem; font-size: .8125rem; color: var(--sur-sombre); }

/* ---------- Barre de contact (mobile) ----------
   Sans JS : toujours visible. Avec JS (html.barre-auto) : elle n'arrive que quand les deux boutons du haut
   de page sont sortis de l'écran (IntersectionObserver, js/essentiel.js). */
.barre-contact { display: none; }
@media (max-width: 47.99rem) {
  /* WCAG 2.4.11 : l'élément qui reçoit le focus n'est jamais caché sous la barre (marge constante, barre visible ou non) */
  html { scroll-padding-bottom: calc(var(--barre-h) + max(.75rem, env(safe-area-inset-bottom)) + 1rem); }
  .pied { padding-bottom: 6.5rem; }
  .barre-contact {
    position: fixed; z-index: 60; left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .4rem; border-radius: 99rem;
    background: var(--encre); box-shadow: 0 .75rem 2rem -.5rem rgb(22 20 15 / .5);
  }
  /* cachée : glissée sous le bord, et retirée de l'ordre de tabulation (visibility) une fois sortie */
  html.barre-auto .barre-contact:not(.est-visible) { transform: translateY(120%); visibility: hidden; }
  html.barre-auto[data-motion="full"] .barre-contact { transition: transform 200ms var(--ease-out), visibility 0s 200ms; }
  html.barre-auto[data-motion="full"] .barre-contact.est-visible { transition: transform 240ms var(--ease-out), visibility 0s; }
  /* mouvement réduit : un simple fondu, sans déplacement */
  html.barre-auto[data-motion="reduce"] .barre-contact:not(.est-visible) { transform: none; opacity: 0; }
  html.barre-auto[data-motion="reduce"] .barre-contact { transition: opacity 200ms var(--ease-out), visibility 0s 200ms; }
  html.barre-auto[data-motion="reduce"] .barre-contact.est-visible { transition: opacity 200ms var(--ease-out), visibility 0s; }
  .barre-contact a {
    display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; border-radius: 99rem;
    color: var(--carte); font-weight: 600; text-decoration: none;
  }
  .barre-contact__principal { background: var(--bleu); color: #fff !important; }
  .entete__cta { display: none; }
}

/* ---------- Écrans très bas (zoom 400 %, téléphone à l'horizontale) : rien ne reste collé ---------- */
@media (max-height: 30rem) {
  html .bandeau-haut, .entete { position: static; }
  html:root:root { scroll-padding-top: 1rem; scroll-padding-bottom: 1rem; }
  .faq__titre { scroll-margin-top: 1rem; }
  .zone__carte { position: static; }
  .pied { padding-bottom: 2rem; }
  html .barre-contact, html.barre-auto .barre-contact:not(.est-visible) {
    position: static; margin: 0 .75rem .75rem; transform: none; opacity: 1; visibility: visible; box-shadow: none; transition: none;
  }
}

/* ---------- Mentions légales (page) ---------- */
.legal { max-width: 46rem; padding-block: clamp(3.5rem, 8vw, 6rem); }
.legal h1 { font-size: clamp(2.4rem, 1.5rem + 3.5vw, 4rem); letter-spacing: -.04em; margin-bottom: 1.5rem; }
.legal p { margin-bottom: 1rem; }
.legal dt { margin-top: 1.25rem; font-weight: 650; }
.legal dd { margin-top: .2rem; color: var(--doux); }
.legal .btn { margin-top: 2.5rem; }

/* ================= Animations (seulement si html[data-motion="full"]) =================
   Entrée du haut de page : 300 ms au plus par élément, ease-out fort, décalages non uniformes (35 à 75 ms).
   Rien ne part de scale(0) ; seuls transform et opacity bougent. */
@keyframes monte { from { opacity: 0; transform: translateY(.3em); } }
@keyframes fondu { from { opacity: 0; transform: translateY(.5rem); } }
@keyframes trace { from { opacity: 0; transform: scaleX(.08); } }
@keyframes pousse { from { opacity: 0; transform: translateY(6%); } }
@keyframes dessin { from { stroke-dashoffset: 1; } }
@keyframes redessin { from { stroke-dashoffset: 1; } } /* nom distinct : relance à chaque survol */
@keyframes revele { from { opacity: 0; transform: translateY(1.5rem); } }

/* ordre : étiquette 0 · titre 45 / 95 / 165 · chapo 215 · boutons 285 · planches 120 / 170 / 235 · cotes 300 ms */
html[data-motion="full"] .entree { animation: fondu 280ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
html[data-motion="full"] .hero__titre .ligne > span { animation: monte 300ms var(--ease-out) 45ms both; }
html[data-motion="full"] .hero__titre .ligne:nth-child(2) > span { animation-delay: 95ms; }
html[data-motion="full"] .hero__titre .ligne:nth-child(3) > span { animation-delay: 165ms; }
html[data-motion="full"] .hero__accent::after { animation: trace 300ms var(--ease-out) 330ms both; }
html[data-motion="full"] .planche { animation: pousse 300ms var(--ease-out) 120ms both; }
html[data-motion="full"] .planche--2 { animation-delay: 170ms; }
html[data-motion="full"] .planche--3 { animation-delay: 235ms; }
html[data-motion="full"] .cote, html[data-motion="full"] .hero__fiche { animation: fondu 260ms var(--ease-out) 300ms both; }

/* révélations liées au défilement (Chrome, Edge, Safari 26+) ; ailleurs, le contenu est simplement là.
   Liées au défilement, donc linéaires ; dans une même rangée, chaque élément démarre un peu plus tard (écarts inégaux). */
@supports (animation-timeline: view()) {
  html[data-motion="full"] .revele { animation: revele linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  html[data-motion="full"] li.revele:nth-child(2) { animation-range: entry 5% entry 75%; }
  html[data-motion="full"] li.revele:nth-child(3) { animation-range: entry 12% entry 82%; }
  html[data-motion="full"] li.revele:nth-child(n+4) { animation-range: entry 16% entry 86%; }
  html[data-motion="full"] .duree::before { animation: trace linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  html[data-motion="full"] .croquis .trace { stroke-dasharray: 1; animation: dessin linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  html[data-motion="full"] .chiffres strong { animation: monte linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  @media (max-width: 47.99rem) {
    /* dans le carrousel horizontal, le croquis se dessine quand on le fait glisser */
    html[data-motion="full"] .defile .revele { animation: none; }
    html[data-motion="full"] .croquis .trace { animation-timeline: view(inline); animation-range: entry 10% cover 50%; }
  }
}

/* ---------- Survols : cartes de prestation et croquis cotés ----------
   L'ombre est portée par un pseudo-élément dont seule l'opacité change ; le soulèvement passe par la propriété
   « translate », qui se compose avec le « transform » des révélations au défilement sans l'écraser. */
.carte::after, .croquis::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: var(--r); pointer-events: none;
  box-shadow: 0 1.25rem 2rem -1.25rem rgb(80 42 12 / .45), 0 .25rem .75rem -.25rem rgb(22 20 15 / .12); opacity: 0;
}
.croquis { position: relative; isolation: isolate; }
@media (hover: hover) and (pointer: fine) {
  .carte:hover::after, .croquis:hover::after { opacity: 1; }
  html[data-motion="full"] .carte:hover, html[data-motion="full"] .croquis:hover { translate: 0 -4px; }
  html[data-motion="full"] :is(.carte, .croquis) { transition: translate 220ms var(--ease-out); }
  html[data-motion="full"] :is(.carte, .croquis)::after { transition: opacity 220ms var(--ease-out); }
  /* la petite touche : le croquis se retrace sous la souris, d'un trait rapide */
  html[data-motion="full"] .croquis:hover .trace { stroke-dasharray: 1; animation: redessin 300ms var(--ease-out) both; animation-timeline: auto; }
  html[data-motion="full"] .croquis:hover .trace + .trace { animation-delay: 60ms; }
}

/* ---------- Contraste forcé ---------- */
@media (forced-colors: active) {
  .btn, .carte, .croquis figure, .contact__fiche, .interrupteur, .barre-contact, .etiquette, .puces li, .planche__code { border: 1px solid CanvasText; }
  .etape__num { color: CanvasText; -webkit-text-stroke: 0; }
  .cote, .duree { color: CanvasText; }
  .cote__val, .duree__val { background: Canvas; }
  .hero::before { display: none; }
  .hero__accent::after { forced-color-adjust: none; background: linear-gradient(CanvasText, CanvasText) center / 100% 2px no-repeat; border-color: CanvasText; }
  .faq summary::after { content: "+"; display: grid; place-items: center; background: none; }
  .faq details[open] summary::after { content: "−"; }
  .interrupteur::before { forced-color-adjust: none; background: GrayText; }
  .interrupteur[aria-pressed="true"]::before { background: Highlight; }
  .carte__ico, .croquis__ill { forced-color-adjust: auto; }
}

/* ---------- Impression ---------- */
@media print {
  .entete, .barre-contact, .interrupteur, .lien-evitement, .hero::before { display: none !important; }
  .sec--sombre, .sec--contact, .pied, .carte--d { background: #fff !important; color: #000 !important; }
  .defile { overflow: visible; }
  .croquis-liste { flex-wrap: wrap; }
}
.entete__retour { margin-left: auto; }
.ico--retour { transform: scaleX(-1); }
@media (max-width: 47.99rem) { .entete__retour { display: inline-flex; } }
@media (hover: hover) and (pointer: fine) { html[data-motion="full"] .btn:hover .ico--retour { transform: scaleX(-1) translateX(3px); } }
