/* Rivenord Construction : concept de démonstration juicecraft
   Direction « chantier net » : béton clair, anthracite, un seul accent jaune chantier. */

:root {
  --beton: #E9E7E2;
  --beton-2: #DEDBD4;
  --beton-3: #CFCBC2;
  --blanc: #F7F6F3;
  --anthra: #22262B;
  --anthra-2: #2D3238;
  --anthra-3: #3A4047;
  --gris: #555A60;
  --gris-clair: #B9BCC0;
  --acier: #2F4A63;
  --accent: #F2A007;
  --accent-2: #D98E00;
  --ok: #2E6B3F;
  --err: #A3261B;
  --rule: rgba(34, 38, 43, .16);
  --rule-strong: rgba(34, 38, 43, .32);
  --rule-light: rgba(233, 231, 226, .18);
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--beton);
  color: var(--anthra);
  font-family: var(--f-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--acier); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--anthra); text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1, h2 { font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5.4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem); }
h3 { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--anthra); outline-offset: 3px; box-shadow: 0 0 0 6px var(--accent); }
.section-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .door-b :focus-visible, .lightbox :focus-visible, .demo-bar :focus-visible { outline-color: var(--accent); box-shadow: 0 0 0 6px var(--anthra); }
main:focus { outline: none; box-shadow: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.ico { width: 24px; height: 24px; flex: none; }
.ico-lg { width: 36px; height: 36px; }
.flip { transform: scaleX(-1); }

/* Lien d'évitement */
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--anthra); padding: 12px 18px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Bandeau démo */
.demo-bar { background: var(--anthra); color: var(--beton); font-size: .82rem; line-height: 1.45; border-bottom: 1px solid var(--rule-light); }
.demo-bar p { margin: 0 auto; max-width: var(--maxw); padding: 8px var(--gutter); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.demo-bar a { color: var(--accent); font-weight: 600; min-height: 24px; display: inline-flex; align-items: center; }
.demo-bar a:hover { color: #fff; }
.demo-tag { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; background: var(--accent); color: var(--anthra); padding: 1px 7px; font-weight: 500; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 246, 243, .94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--anthra); min-height: 44px; flex: none; }
.logo:hover { color: var(--anthra); }
.logo-mark { width: 40px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-size: 1.32rem; font-weight: 800; font-variation-settings: "wdth" 80; text-transform: uppercase; letter-spacing: .01em; }
.logo-text span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; margin-top: 4px; color: var(--gris); }
.logo-light { color: var(--beton); }
.logo-light .logo-text span { color: var(--gris-clair); }
.logo-light:hover { color: #fff; }
.logo-light .logo-mark rect:first-child { fill: #2D3238; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; }
.main-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--anthra); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-contact { display: none; }
.header-cta { flex: none; }
.cta-short { display: none; }
.burger { display: none; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 2px solid transparent; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); line-height: 1.15; text-align: center; border-radius: 0; }
.btn .ico { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:hover .ico.flip { transform: scaleX(-1) translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.04rem; }
.btn-accent { background: var(--accent); color: var(--anthra); border-color: var(--accent); }
.btn-accent:hover { background: #FFB21F; border-color: #FFB21F; color: var(--anthra); }
.btn-dark { background: var(--anthra); color: var(--beton); border-color: var(--anthra); }
.btn-dark:hover { background: var(--anthra-3); color: #fff; border-color: var(--anthra-3); }
.btn-line { border-color: var(--anthra); color: var(--anthra); background: transparent; }
.btn-line:hover { background: var(--anthra); color: var(--beton); }
.btn-line-light { border-color: rgba(233, 231, 226, .7); color: var(--beton); background: transparent; }
.btn-line-light:hover { background: var(--beton); color: var(--anthra); border-color: var(--beton); }
.btn-line-dark { border-color: var(--anthra); color: var(--anthra); }
.btn-line-dark:hover { background: var(--anthra); color: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--anthra); }
.link-arrow-light { color: var(--beton); }
.link-arrow-light:hover { color: var(--accent); }

/* Repères typographiques */
.kicker { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.kicker .ref { background: var(--anthra); color: var(--accent); padding: 3px 8px; }
.kicker-light { color: var(--beton); }
.kicker-light .ref { background: var(--accent); color: var(--anthra); }
.kicker-dark { color: var(--anthra); }
.lead { font-size: clamp(1.06rem, 1rem + .4vw, 1.3rem); max-width: 60ch; }

/* Bande de signalisation, discrète */
.tape { height: 8px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--anthra) 14px 28px); }

/* HERO accueil */
.hero { position: relative; background: var(--anthra); color: var(--beton); overflow: hidden; isolation: isolate; min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.is-loaded .hero-media img { transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 23, 27, .92) 0%, rgba(20, 23, 27, .74) 45%, rgba(20, 23, 27, .25) 100%), linear-gradient(0deg, rgba(20, 23, 27, .85) 0%, rgba(20, 23, 27, 0) 45%); }
.hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(233, 231, 226, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(233, 231, 226, .07) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
.hero-inner { padding-top: clamp(64px, 12vh, 140px); padding-bottom: clamp(40px, 8vh, 96px); }
.hero-title { font-size: clamp(2.5rem, 1.1rem + 5.2vw, 6.2rem); line-height: .94; max-width: 14ch; margin-bottom: 28px; }
.ht-line { display: block; }
@media (min-width: 700px) { .ht-line { white-space: nowrap; } .hero-title { max-width: none; } }
.ht-accent { color: var(--accent); }
.js .ht-line { overflow: hidden; }
.hero-lead { max-width: 52ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: #DCDAD4; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-spec { position: relative; margin: 0 var(--gutter) 0; background: var(--accent); color: var(--anthra); padding: 22px 24px; }
.spec-title { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; border-bottom: 2px solid var(--anthra); padding-bottom: 8px; }
.hero-spec dl { margin: 0; display: grid; gap: 10px; }
.hero-spec dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; }
.hero-spec dt { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.hero-spec dd { margin: 0; font-weight: 700; line-height: 1.3; }
@media (min-width: 1000px) {
  .hero-spec { position: absolute; right: var(--gutter); bottom: 0; width: 380px; margin: 0; }
  .hero-inner { padding-right: 440px; }
}
@media (min-width: 1400px) { .hero-spec { right: calc((100vw - var(--maxw)) / 2 + var(--gutter)); } }

/* Deux portes */
.doors { background: var(--beton); }
.doors-grid { display: grid; grid-template-columns: 1fr; padding-top: 0; padding-bottom: 0; }
.door { position: relative; padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px); display: flex; flex-direction: column; }
.door-a { background: var(--blanc); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.door-b { background: var(--anthra-2); color: var(--beton); }
.door-ref { position: absolute; top: clamp(20px, 3vw, 32px); right: clamp(20px, 3vw, 40px); margin: 0; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; border: 1.5px solid currentColor; width: 36px; height: 36px; display: grid; place-items: center; opacity: .7; }
.door-icon { width: 64px; height: 64px; display: grid; place-items: center; background: var(--accent); color: var(--anthra); margin-bottom: 24px; }
.door-icon .ico { width: 34px; height: 34px; }
.door h3 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); font-variation-settings: "wdth" 75; text-transform: uppercase; }
.door p { max-width: 52ch; }
.door-b p, .door-b li { color: #D8D6D0; }
.door-actions { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
@media (min-width: 860px) { .doors-grid { grid-template-columns: 1fr 1fr; } }

.ticks { list-style: none; display: grid; gap: 10px; margin: 8px 0 0; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent-2); border-bottom: 2.5px solid var(--accent-2); transform: rotate(-45deg); }
.door-b .ticks li::before, .section-dark .ticks li::before { border-color: var(--accent); }

/* Sections */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding-top: clamp(32px, 5vw, 56px); }
.section-dark { background: var(--anthra); color: var(--beton); }
.section-dark .sec-intro, .section-dark p { color: #D3D1CB; }
.section-concrete { background: var(--beton-2); background-image: radial-gradient(rgba(34, 38, 43, .06) 1px, transparent 1.2px); background-size: 7px 7px; }
.sec-head { max-width: 860px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-ref { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; }
.sec-ref span { border: 1.5px solid currentColor; padding: 2px 8px; }
.sec-ref::after { content: ""; flex: 1; max-width: 120px; height: 1.5px; background: currentColor; opacity: .35; }
.sec-intro { font-size: clamp(1.02rem, 1rem + .25vw, 1.18rem); color: var(--gris); max-width: 64ch; margin: 0; }
.sec-more { margin: clamp(28px, 4vw, 48px) 0 0; }
.note { font-size: .92rem; color: var(--gris); margin-top: 24px; max-width: 70ch; }
.note-light { color: var(--gris-clair) !important; }
.small { font-size: .9rem; color: var(--gris); }

/* Services (accueil) */
.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-top: 1.5px solid var(--anthra); border-left: 1px solid var(--rule); }
.svc { position: relative; padding: 28px 24px 30px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: transparent; transition: background-color .25s; }
.svc::before { content: ""; position: absolute; left: 0; top: -1.5px; height: 4px; width: 0; background: var(--accent); transition: width .4s var(--ease); }
.svc:hover { background: var(--blanc); }
.svc:hover::before { width: 100%; }
.svc .ico { color: var(--anthra); margin-bottom: 18px; }
.svc-num { position: absolute; right: 20px; top: 22px; font-family: var(--f-mono); font-size: .76rem; color: var(--gris); }
.svc p { color: var(--gris); margin: 0; }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

/* Ligne de progression (accueil) */
.track { list-style: none; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; padding-top: 8px; counter-reset: s; }
.track::before, .track::after { content: ""; position: absolute; left: 0; right: 0; top: 35px; height: 3px; background: var(--anthra-3); }
.track::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform 1.6s var(--ease); }
.js .track:not(.is-in)::after { --p: 0; }
.track-step { position: relative; z-index: 1; padding-right: 12px; display: flex; flex-direction: column; }
.track-dot { width: 56px; height: 56px; display: grid; place-items: center; background: var(--anthra); border: 2px solid var(--anthra-3); color: var(--beton); transition: background-color .4s, color .4s, border-color .4s; transition-delay: calc(var(--i) * .2s); }
.track.is-in .track-dot, .no-js .track-dot { background: var(--accent); border-color: var(--accent); color: var(--anthra); }
.track-num { font-family: var(--f-mono); font-size: .76rem; color: var(--accent); margin-top: 16px; }
.track-title { font-weight: 800; font-size: 1.1rem; text-transform: uppercase; font-variation-settings: "wdth" 80; margin-top: 2px; }
.track-doc { font-size: .9rem; color: var(--gris-clair); margin-top: 6px; line-height: 1.4; }
@media (max-width: 960px) {
  .track { grid-template-columns: 1fr; gap: 18px; padding-left: 0; }
  .track::before, .track::after { left: 27px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform-origin: top; transform: scaleY(var(--p, 1)); }
  .track-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: start; }
  .track-dot { grid-row: 1 / span 3; }
  .track-num { margin-top: 4px; }
}

/* Cartes chantier */
.proj-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.proj[hidden] { display: none; }
.proj-btn { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; background: var(--blanc); border: 1px solid var(--rule); padding: 0; cursor: pointer; color: var(--anthra); text-decoration: none; transition: border-color .25s, box-shadow .3s; }
.proj-btn:hover { border-color: var(--anthra); box-shadow: 6px 6px 0 var(--accent); color: var(--anthra); }
.proj-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--beton-3); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj-btn:hover .proj-media img { transform: scale(1.04); }
.proj-flag { position: absolute; left: 0; top: 0; background: var(--anthra); color: var(--beton); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; }
.proj-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.proj-cat { font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--acier); }
.proj-title { margin: 0; font-size: 1.22rem; }
.proj-meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--gris); }
.proj-meta span { display: inline-flex; align-items: center; gap: 6px; }
.proj-meta .ico { width: 18px; height: 18px; }
@media (min-width: 1100px) { .proj-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Compteurs */
.facts { display: grid; gap: 40px; }
.counters { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1.5px solid var(--anthra); }
.counters li { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.count { font-size: clamp(3rem, 2rem + 4vw, 5.2rem); font-weight: 800; line-height: .9; font-variation-settings: "wdth" 70; font-variant-numeric: tabular-nums; }
.count-label { color: var(--gris); max-width: 24ch; }
@media (min-width: 640px) { .counters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .facts { grid-template-columns: 1fr 2fr; align-items: start; } .counters li { padding-left: 20px; border-left: 1px solid var(--rule); } }

/* Zone / carte */
.zone-teaser { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .zone-teaser { grid-template-columns: 5fr 7fr; } }
.zone-map { background: var(--blanc); border: 1px solid var(--rule); padding: clamp(10px, 2vw, 24px); }
.map-svg { width: 100%; height: auto; overflow: visible; font-family: var(--f-mono); }
.m-dep { stroke: var(--anthra); stroke-width: .5; stroke-linejoin: round; }
.m-pdc { fill: var(--beton-2); }
.m-nord { fill: #E2E0DA; }
.m-dep-lab { font-size: 4px; letter-spacing: .12em; fill: var(--gris); }
.m-ring { fill: none; stroke: var(--anthra); stroke-width: .5; stroke-dasharray: 1.6 1.4; }
.m-ring1 { fill: rgba(242, 160, 7, .22); stroke: var(--accent-2); stroke-dasharray: none; stroke-width: .7; }
.m-ring2 { fill: rgba(242, 160, 7, .08); }
.js .m-ring { transform-box: fill-box; transform-origin: center; transform: scale(.4); opacity: 0; transition: transform 1.2s var(--ease), opacity .8s; }
.js .m-ring2 { transition-delay: .3s; }
.js .is-in .m-ring { transform: scale(1); opacity: 1; }
.m-ring-lab { font-size: 3.4px; fill: var(--anthra); font-weight: 500; }
.m-town circle { fill: var(--anthra); }
.m-town.z0 circle { fill: var(--accent); stroke: var(--anthra); stroke-width: .8; }
.m-town.z3 circle { fill: var(--blanc); stroke: var(--anthra); stroke-width: .5; }
.m-lab { font-size: 3.6px; fill: var(--anthra); font-family: var(--f-sans); font-weight: 600; paint-order: stroke; stroke: var(--blanc); stroke-width: 1px; stroke-linejoin: round; }
.m-lab-main { font-size: 5px; font-weight: 800; }
.m-hatch { stroke: var(--anthra); stroke-width: .3; }
.m-scale path, .m-north path { stroke: var(--anthra); stroke-width: .6; fill: none; }
.m-scale text, .m-north text { font-size: 3.4px; fill: var(--anthra); }
.m-town.is-hl circle { fill: var(--accent); r: 2.4px; }
.map-note { font-size: .82rem; color: var(--gris); margin: 10px 0 0; }

.zone { display: grid; gap: 32px; }
@media (min-width: 1000px) { .zone { grid-template-columns: 7fr 5fr; align-items: start; } .zone-map-lg { position: sticky; top: calc(var(--header-h) + 20px); } }
.zone-lists { display: grid; gap: 20px; }
.zone-list { border-top: 1.5px solid var(--anthra); padding-top: 16px; }
.zone-list h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.zone-list > p { color: var(--gris); margin-bottom: 12px; font-size: .95rem; }
.zone-key { width: 16px; height: 16px; border: 1.5px solid var(--anthra); flex: none; }
.z1 .zone-key { background: rgba(242, 160, 7, .55); border-color: var(--accent-2); }
.z2 .zone-key { background: rgba(242, 160, 7, .16); border-style: dashed; }
.z3 .zone-key { background: var(--blanc); }
.zone-list ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.zone-list li { background: var(--blanc); border: 1px solid var(--rule); padding: 4px 10px; font-size: .9rem; cursor: default; transition: background-color .2s, border-color .2s; }
.zone-list li:hover, .zone-list li.is-hl { background: var(--accent); border-color: var(--accent); }

/* Bande d'appel */
.cta-band { background: var(--accent); color: var(--anthra); position: relative; }
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: repeating-linear-gradient(-45deg, var(--anthra) 0 14px, transparent 14px 28px); opacity: .9; }
.cta-inner { display: grid; gap: 28px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(48px, 6vw, 80px); align-items: end; }
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner p { max-width: 56ch; margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } .cta-actions { justify-content: flex-end; } }

/* Pied de page */
.site-footer { background: var(--anthra); color: #CFCDC7; }
.footer-grid { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr; } }
.footer-brand p { margin-top: 18px; max-width: 42ch; font-size: .95rem; }
.footer-title { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 14px; font-stretch: 100%; font-variation-settings: normal; }
.footer-nav ul, .footer-contact ul { list-style: none; display: grid; gap: 2px; }
.footer-nav a { color: var(--beton); display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: .95rem; }
.footer-contact .ico { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.footer-contact a { color: var(--beton); }
.footer-contact a:hover { color: var(--accent); }
.footer-legal { border-top: 1px solid var(--rule-light); padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .86rem; color: var(--gris-clair); }
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--accent); }

/* Hero des pages intérieures */
.page-hero { position: relative; background: var(--anthra); color: var(--beton); overflow: hidden; isolation: isolate; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.35); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(34, 38, 43, .96) 0%, rgba(34, 38, 43, .78) 55%, rgba(34, 38, 43, .35) 100%); }
.page-hero-inner { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; }
.page-hero-inner::before { content: ""; position: absolute; left: var(--gutter); top: clamp(28px, 4vw, 56px); width: 64px; height: 6px; background: var(--accent); }
.page-hero .kicker { color: var(--gris-clair); }
.page-hero .kicker .ref { background: var(--accent); color: var(--anthra); }
.page-hero h1 { max-width: 15ch; margin-bottom: 20px; }
.page-hero .lead { color: #D6D4CE; }
@media (min-width: 900px) {
  .page-hero-media { left: 54%; }
  .page-hero-media img { opacity: 1; filter: none; }
  .page-hero::after { background: linear-gradient(90deg, var(--anthra) 0%, var(--anthra) 54%, rgba(34, 38, 43, .55) 62%, rgba(34, 38, 43, 0) 80%); }
  .page-hero-inner { padding-right: 46%; }
}

/* Deux colonnes, figures */
.two-col { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 7fr 5fr; gap: 64px; } .two-col-rev { grid-template-columns: 6fr 6fr; align-items: center; } }
.prose p { max-width: 64ch; font-size: 1.06rem; }
.fig-tall, .fig-wide { margin: 0; }
.fig-tall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.fig-wide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figcaption { font-size: .88rem; color: var(--gris); padding-top: 10px; border-top: 1.5px solid var(--anthra); margin-top: 12px; }

/* Valeurs */
.values { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1.5px solid var(--anthra); }
.value { position: relative; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--rule); }
.value .ico { margin-bottom: 16px; }
.value-num { position: absolute; right: 16px; top: 28px; font-family: var(--f-mono); font-size: .78rem; color: var(--gris); }
.value p { color: var(--gris); margin: 0; }
@media (min-width: 700px) { .value { padding-left: 24px; border-left: 1px solid var(--rule); } }

/* Organisation */
.org { list-style: none; display: grid; gap: 0; border-top: 1.5px solid var(--anthra); }
.org-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.org-icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--anthra); color: var(--accent); }
.org-item h3 { margin-bottom: 4px; }
.org-item p { margin: 0; color: var(--gris); max-width: 70ch; }
@media (min-width: 900px) { .org { grid-template-columns: repeat(5, 1fr); border-top: 0; gap: 16px; } .org-item { grid-template-columns: 1fr; border: 0; border-top: 1.5px solid var(--anthra); padding-top: 24px; } .org-item:nth-child(n+2) { position: relative; } }

/* Matériel */
.equip { display: grid; gap: 40px; }
@media (min-width: 900px) { .equip { grid-template-columns: 1fr 1fr; gap: 64px; } }
.equip-title { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; border-bottom: 1px solid var(--rule-light); padding-bottom: 12px; }
.equip-list { list-style: none; display: grid; }
.equip-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-light); font-weight: 600; }
.equip-list .ico { color: var(--accent); }
.callout { display: flex; gap: 16px; align-items: flex-start; margin-top: 32px; padding: 20px; border: 1.5px solid var(--accent); }
.callout .ico { color: var(--accent); }
.callout p { margin: 0; }
.callout strong { display: block; color: var(--beton); text-transform: uppercase; font-variation-settings: "wdth" 80; letter-spacing: .02em; }

/* Onglets */
.tablist { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--anthra); }
.tab { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; background: transparent; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; font-weight: 700; cursor: pointer; color: var(--gris); text-align: left; }
.tab:hover { color: var(--anthra); background: var(--beton-2); }
.tab[aria-selected="true"] { color: var(--anthra); border-bottom-color: var(--accent); background: var(--blanc); }
.tabpanel { padding-top: clamp(28px, 4vw, 48px); }
.tabpanel:focus-visible { outline-offset: 6px; }
.panel-head { display: grid; gap: 28px; margin-bottom: 36px; align-items: start; }
.panel-head p { color: var(--gris); font-size: 1.08rem; max-width: 60ch; }
.panel-head figure { margin: 0; }
.panel-head img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 900px) { .panel-head { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.presta { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); border-top: 1.5px solid var(--anthra); }
.presta li { display: grid; grid-template-columns: 36px 1fr; gap: 18px; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--rule); }
.presta h3 { margin-bottom: 4px; }
.presta p { margin: 0; color: var(--gris); }
.js .tabpanel:not([hidden]) .presta li { animation: rise .5s var(--ease) both; }
.js .tabpanel:not([hidden]) .presta li:nth-child(2) { animation-delay: .05s; }
.js .tabpanel:not([hidden]) .presta li:nth-child(3) { animation-delay: .1s; }
.js .tabpanel:not([hidden]) .presta li:nth-child(4) { animation-delay: .15s; }
.js .tabpanel:not([hidden]) .presta li:nth-child(5) { animation-delay: .2s; }
.js .tabpanel:not([hidden]) .presta li:nth-child(6) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.profiles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.profile { background: var(--blanc); border: 1px solid var(--rule); border-top: 5px solid var(--anthra); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.profile h3 { display: flex; align-items: center; gap: 12px; margin: 0; }
.profile .ticks { margin-bottom: 8px; }
.profile .btn { margin-top: auto; align-self: flex-start; }

/* Filtres galerie */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; background: transparent; border: 1.5px solid var(--anthra); font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.filter:hover { background: var(--beton-2); }
.filter[aria-pressed="true"] { background: var(--anthra); color: var(--beton); }
.filter-count { font-family: var(--f-mono); font-size: .76rem; background: var(--accent); color: var(--anthra); padding: 0 6px; }
.filter-status { font-family: var(--f-mono); font-size: .82rem; color: var(--gris); margin-bottom: 24px; }
.proj.is-entering { animation: rise .45s var(--ease) both; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(18, 20, 23, .86); }
.lb-panel { position: relative; width: min(1180px, 100%); max-height: 100%; overflow: auto; background: var(--blanc); display: grid; grid-template-columns: 1fr; animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lb-media { background: var(--anthra); }
.lb-media img { width: 100%; height: 100%; max-height: 46vh; object-fit: cover; }
.lb-body { padding: clamp(20px, 3vw, 40px); }
.lb-flag { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; background: var(--anthra); color: var(--beton); display: inline-block; padding: 4px 8px; margin-bottom: 14px; }
.lb-cat { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; color: var(--acier); margin: 0 0 6px; }
.lb-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); padding-right: 44px; }
.lb-resume { color: var(--gris); }
.lb-spec { margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--anthra); }
.lb-spec div { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); }
.lb-spec dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; color: var(--gris); }
.lb-spec dd { margin: 0; font-weight: 700; }
.lb-steps-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.lb-steps { list-style: none; counter-reset: st; display: grid; gap: 6px; margin-bottom: 24px; }
.lb-steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; align-items: baseline; }
.lb-steps li::before { content: counter(st, decimal-leading-zero); font-family: var(--f-mono); font-size: .8rem; color: var(--accent-2); font-weight: 500; }
.lb-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.lb-close { position: absolute; top: 0; right: 0; width: 52px; height: 52px; background: var(--accent); border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--anthra); z-index: 2; }
.lb-close:hover { background: var(--anthra); color: var(--accent); }
@media (min-width: 900px) {
  .lb-panel { grid-template-columns: 1.25fr 1fr; max-height: min(92vh, 760px); overflow: hidden; }
  .lb-media img { max-height: none; height: 100%; }
  .lb-body { overflow: auto; max-height: min(92vh, 760px); }
}
body.lb-open { overflow: hidden; }

/* Méthode */
.method { display: grid; gap: 40px; }
@media (min-width: 1000px) { .method { grid-template-columns: 280px 1fr; gap: 64px; } }
.method-aside { display: none; }
@media (min-width: 1000px) { .method-aside { display: block; } .method-gauge { position: sticky; top: calc(var(--header-h) + 24px); } }
.gauge-label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin: 0 0 4px; }
.gauge-value { font-size: 2.6rem; font-weight: 800; font-variation-settings: "wdth" 70; line-height: 1; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.gauge-bar { height: 6px; background: var(--beton-3); margin-bottom: 20px; overflow: hidden; }
.gauge-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--g, 0)); transition: transform .3s var(--ease); }
.gauge-list { list-style: none; display: grid; border-top: 1px solid var(--rule); }
.gauge-list a { display: flex; align-items: center; min-height: 40px; color: var(--gris); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--rule); padding-left: 0; transition: color .2s, padding-left .25s var(--ease); }
.gauge-list a:hover, .gauge-list a.is-current { color: var(--anthra); padding-left: 10px; box-shadow: inset 4px 0 0 var(--accent); }
.steps-wrap { position: relative; }
.steps { list-style: none; display: grid; gap: clamp(20px, 3vw, 36px); }
.steps-line { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; background: var(--beton-3); }
.steps-line span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--f, 0)); }
.no-js .steps-line span, html:not(.js) .steps-line span { transform: none; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: clamp(16px, 3vw, 32px); position: relative; }
.step-marker { width: 56px; height: 56px; display: grid; place-items: center; background: var(--blanc); border: 2px solid var(--anthra); color: var(--anthra); position: relative; z-index: 1; transition: background-color .3s, color .3s; }
.step.is-done .step-marker { background: var(--accent); border-color: var(--accent); }
.step.is-current .step-marker { background: var(--anthra); color: var(--accent); }
.step-card { background: var(--blanc); border: 1px solid var(--rule); padding: clamp(20px, 3vw, 32px); }
.step-num { font-family: var(--f-mono); font-size: .78rem; color: var(--acier); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.step-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.step-card > p { color: var(--gris); max-width: 62ch; }
.step-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 16px 0 0; border-top: 1.5px solid var(--anthra); }
.step-spec div { padding: 12px 12px 0 0; }
.step-spec dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; color: var(--gris); }
.step-spec dd { margin: 0; font-weight: 700; }

.guarantees { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.guarantees li { border: 1px solid var(--rule-light); border-top: 4px solid var(--accent); padding: 24px; }
.g-years { display: block; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 800; color: var(--accent); font-variation-settings: "wdth" 70; line-height: 1; margin-bottom: 12px; }
.guarantees p { margin: 0; }

.faq-wrap .faq { max-width: 980px; }
.faq { border-top: 1.5px solid var(--anthra); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer; font-weight: 700; font-size: 1.08rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sign { width: 28px; height: 28px; flex: none; position: relative; border: 1.5px solid var(--anthra); }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--anthra); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-sign { background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-sign::after { transform: translate(-50%, -50%) rotate(0); }
.faq-body p { color: var(--gris); max-width: 70ch; padding-bottom: 8px; }

/* Formulaires */
.form-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--rule); background: var(--beton); position: relative; }
.form-hero h1 { max-width: 16ch; }
.demo-note { display: inline-flex; align-items: center; gap: 10px; background: var(--anthra); color: var(--beton); padding: 10px 14px; font-size: .92rem; margin-top: 8px; }
.demo-note .ico { color: var(--accent); width: 20px; height: 20px; }
.form-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1040px) { .form-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.form { min-width: 0; }
.fs { border: 0; padding: 0; margin: 0 0 clamp(32px, 4vw, 48px); min-width: 0; }
.fs legend { display: flex; align-items: center; gap: 14px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 78; padding: 0; margin-bottom: 20px; width: 100%; border-bottom: 1.5px solid var(--anthra); padding-bottom: 12px; }
.fs-num { width: 40px; height: 40px; display: grid; place-items: center; background: var(--anthra); color: var(--accent); font-family: var(--f-mono); font-size: 1rem; font-weight: 500; flex: none; }
.fs-label { font-weight: 700; margin-bottom: 10px; }
.hint-inline { font-weight: 400; color: var(--gris); font-size: .9rem; margin-left: 6px; }
.grid-fields { display: grid; gap: 18px 20px; grid-template-columns: 1fr; margin-top: 18px; }
.grid-fields[hidden] { display: none; }
@media (min-width: 640px) { .grid-fields { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 700; margin-bottom: 6px; }
.req { color: var(--err); font-weight: 700; }
.opt { font-weight: 400; color: var(--gris); font-size: .9rem; }
.hint { font-size: .88rem; color: var(--gris); margin: 0 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--blanc); border: 1.5px solid #8A8E93; border-radius: 0; color: var(--anthra); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--anthra) 50%), linear-gradient(135deg, var(--anthra) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:hover, select:hover, textarea:hover { border-color: var(--anthra); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; box-shadow: none; border-color: var(--anthra); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err) !important; background-color: #FBF1EF !important; }
.err { color: var(--err); font-weight: 600; font-size: .9rem; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.err::before { content: "! "; font-family: var(--f-mono); }
.field.is-valid input:not([type="checkbox"]) { border-color: var(--ok); }

.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-box { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 1.5px solid #8A8E93; background: var(--blanc); font-weight: 700; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.choice input:checked + .choice-box { border-color: var(--anthra); background: var(--anthra); color: var(--beton); box-shadow: inset 0 -5px 0 var(--accent); }
.choice input:checked + .choice-box .ico { color: var(--accent); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 14px; border: 1.5px solid #8A8E93; background: var(--blanc); cursor: pointer; font-weight: 600; line-height: 1.35; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--anthra); }
.check:has(input:checked) { border-color: var(--anthra); box-shadow: inset 5px 0 0 var(--accent); }
.check-solo { border: 0; background: transparent; padding: 8px 0; font-weight: 500; }
.check-solo:has(input:checked) { box-shadow: none; }
.checks[aria-invalid="true"] .check { border-color: var(--err); }
.field-check { margin-top: 18px; }

.files { margin-top: 24px; }
.drop { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px; border: 2px dashed #8A8E93; background: var(--blanc); cursor: pointer; transition: border-color .2s, background-color .2s; }
.drop:hover, .drop.is-over { border-color: var(--anthra); background: #FFF6E2; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.thumbs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { position: relative; background: var(--blanc); border: 1px solid var(--rule); }
.thumb-media { aspect-ratio: 1; display: grid; place-items: center; background: var(--beton-2); overflow: hidden; }
.thumb-media img { width: 100%; height: 100%; object-fit: cover; }
.thumb-pdf { font-family: var(--f-mono); font-weight: 500; font-size: 1.1rem; background: var(--anthra); color: var(--accent); padding: 6px 10px; }
.thumb-name { font-size: .78rem; padding: 6px 8px 0; word-break: break-all; line-height: 1.3; margin: 0; }
.thumb-size { font-family: var(--f-mono); font-size: .7rem; color: var(--gris); padding: 0 8px 6px; margin: 0; }
.thumb-del { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: var(--anthra); color: var(--beton); cursor: pointer; font-size: 1.3rem; }
.thumb-del:hover { background: var(--err); }

.form-errors { border: 2px solid var(--err); background: #FBF1EF; padding: 14px 18px; margin-bottom: 28px; color: var(--err); font-weight: 600; }
.form-errors p { margin: 0; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; border-top: 1.5px solid var(--anthra); padding-top: 24px; }
.form-submit .hint { margin: 0; }

.form-aside { display: none; }
@media (min-width: 1040px) { .form-aside { display: block; position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { background: var(--blanc); border: 1px solid var(--rule); border-top: 5px solid var(--accent); padding: 22px; }
.aside-steps { list-style: none; display: grid; gap: 0; counter-reset: as; }
.aside-steps li { counter-increment: as; display: flex; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--rule); font-weight: 600; color: var(--gris); }
.aside-steps li::before { content: counter(as); width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px solid currentColor; font-family: var(--f-mono); font-size: .8rem; }
.aside-steps li.is-done { color: var(--anthra); }
.aside-steps li.is-done::before { content: "✓"; background: var(--accent); border-color: var(--accent); color: var(--anthra); }
.aside-card hr { border: 0; border-top: 1px solid var(--rule); margin: 16px 0; }
.aside-contact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; font-size: .95rem; }

.confirm { background: var(--blanc); border: 2px solid var(--anthra); border-top: 8px solid var(--accent); padding: clamp(22px, 4vw, 40px); grid-column: 1 / -1; }
.confirm { scroll-margin-top: calc(var(--header-h) + 24px); }
.confirm:focus { outline: none; }
.confirm:focus-visible { outline: 3px solid var(--accent); }
.confirm-head { display: flex; align-items: center; gap: 14px; }
.confirm-head h2 { margin: 0; }
.confirm-head .ico { color: var(--ok); }
.confirm-demo { background: var(--anthra); color: var(--beton); padding: 14px 18px; margin: 20px 0 24px; }
.confirm h3 { text-transform: uppercase; font-size: 1rem; letter-spacing: .04em; }
.recap { margin: 0 0 24px; display: grid; grid-template-columns: 1fr; border-top: 1.5px solid var(--anthra); }
.recap div { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.recap dt { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; color: var(--gris); padding-top: 3px; }
.recap dd { margin: 0; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 560px) { .recap div { grid-template-columns: 1fr; gap: 2px; } }

/* Contact */
.contact-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .contact-layout { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.contact-cards { list-style: none; display: grid; border-top: 1.5px solid var(--anthra); }
.contact-cards li { display: grid; grid-template-columns: 36px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.contact-cards h2 { font-size: 1.2rem; margin-bottom: 4px; }
.contact-cards p { margin: 0 0 4px; }
.contact-cards a { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.hours { margin-top: 32px; background: var(--anthra); color: var(--beton); padding: 24px; }
.hours h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; }
.hours h2 .ico { color: var(--accent); }
.hours table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--rule-light); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 12px; }
.hours td { font-family: var(--f-mono); font-size: .86rem; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent); }
.hours tr.is-today th::after { content: " · aujourd’hui"; font-weight: 400; font-size: .8rem; }
.hours .small { color: var(--gris-clair); margin: 0; }
.form-compact { background: var(--blanc); border: 1px solid var(--rule); border-top: 5px solid var(--anthra); padding: clamp(20px, 3vw, 32px); }
.form-compact h2 { font-size: 1.8rem; }
.form-compact .grid-fields { margin-top: 0; margin-bottom: 24px; }

/* Apparitions au défilement : seulement si JS */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero .ht-line > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.js.is-loaded .hero .ht-line > span { transform: none; }
.js.is-loaded .hero .ht-line:nth-child(2) > span { transition-delay: .1s; }
.js.is-loaded .hero .ht-line:nth-child(3) > span { transition-delay: .2s; }

/* Mobile : en-tête et menu */
@media (max-width: 1080px) {
  .burger { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; min-width: 48px; padding: 0 12px; border: 1.5px solid var(--anthra); background: transparent; cursor: pointer; font-weight: 700; }
  .burger-box { width: 20px; height: 14px; position: relative; display: block; }
  .burger-box span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
  .burger-box span:nth-child(1) { top: 0; }
  .burger-box span:nth-child(2) { top: 6px; }
  .burger-box span:nth-child(3) { top: 12px; }
  .burger[aria-expanded="true"] .burger-box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] .burger-box span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] .burger-box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header-cta { margin-left: auto; }
  .js .main-nav { position: fixed; left: 0; right: 0; top: var(--nav-top, 110px); bottom: 0; background: var(--anthra); padding: 16px var(--gutter) 32px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; margin: 0; }
  .js .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .js .main-nav a { color: var(--beton); font-size: 1.6rem; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 75; min-height: 60px; border-bottom: 1px solid var(--rule-light); padding: 0; }
  .js .main-nav a::after { left: 0; right: auto; width: 40px; bottom: 10px; }
  .nav-contact { display: block; margin: 24px 0 0; }
  .js .nav-contact a { font-size: 1.1rem; font-family: var(--f-mono); text-transform: none; font-weight: 500; gap: 10px; border: 0; color: var(--accent); }
  html:not(.js) .main-nav { width: 100%; order: 5; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .main-nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .burger { display: none; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .header-cta { padding: 0 14px; min-height: 46px; }
  .burger-label { display: none; }
  .logo-text strong { font-size: 1.12rem; }
  .logo-text span { font-size: .58rem; letter-spacing: .18em; }
  .logo-mark { width: 34px; height: 34px; }
  .header-inner { gap: 10px; }
  .hero { min-height: 0; }
  .hero-spec dl div { grid-template-columns: 1fr; gap: 0; }
  .lb-spec { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .logo-text span { display: none; } }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero .ht-line > span { transform: none; }
  .hero-media img { transform: none; }
}

@media print {
  .demo-bar, .site-header, .cta-band, .site-footer .tape, .burger { display: none; }
  body { background: #fff; }
}
