/* G-PREFAB · site vitrine · GlowBright Africa
   Suit la charte graphique G-PREFAB (Identite/GP_Charte-graphique.pdf) : bleu marine #133A63, orange #F57A12,
   encre #1B2530, ardoise #5A6570, béton clair #F3F5F7, Montserrat. Aplats, pas de dégradés, angles droits.
   Mouvement : transform et opacity uniquement ; avec prefers-reduced-motion, rien ne glisse, ne tourne ni ne zoome : tout apparaît en fondu. */

/* Montserrat, hébergée avec le site (licence OFL, fonts/OFL.txt) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-regular.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-medium.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-bold.woff2') format('woff2'); }

:root {
  --navy: #133A63;
  --navy-press: #0E2D4E;
  --orange: #F57A12;
  --orange-press: #E06A04;
  --orange-text: #A84F08;   /* web-only accessibility variant: small orange text on light grounds (5.1–5.6:1) */
  --dark: #0E1318;
  --ink: #1B2530;
  --slate: #5A6570;
  --white: #FFFFFF;
  --concrete: #F3F5F7;
  --concrete-2: #E2E6EA;
  --line: #E1E5EA;
  --field: #858F99;         /* control borders, 3:1 on white (WCAG 1.4.11) */
  --mist: #AEB6BE;
  --placeholder: #6B747E;   /* 4.75:1 on the white fields */
  --tbc-bg: #FDEBD9;
  --tbc-ink: #8A4A0B;
  --error: #B3261E;

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-display: clamp(3rem, 1.5rem + 6.2vw, 7rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.17rem + .3vw, 1.4375rem);
  --fs-lead: clamp(1.0625rem, 1.02rem + .18vw, 1.1875rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --m: clamp(20px, 4.4vw, 64px);
  --g: clamp(16px, 2.2vw, 32px);
  --sp: clamp(56px, 7vw, 104px);
  --content: 1080px;     /* content width of every section below the hero, cards ≈ 340 px at 1440 */
  --header-h: 92px;      /* layout height of the fixed header */
  --header-c: 72px;      /* visible height once condensed */
  --screen: 100vh;       /* screen height with the browser bars shown: 100svh where supported (below), 100vh on older phones */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  /* critically-damped spring, damping ratio 0.75 (2.8 % overshoot, then settles) */
  --spring: linear(0, 0.039, 0.132, 0.255, 0.386, 0.514, 0.631, 0.732, 0.815, 0.882, 0.933, 0.97, 0.996, 1.013, 1.023, 1.027, 1.028, 1.027, 1.024, 1.021, 1.017, 1.013, 1.01, 1.007, 1.005, 1.003, 1.002, 1.001, 1, 1, 1);
}

@supports (height: 100svh) {
  :root { --screen: 100svh; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; --header-c: 64px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-c); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--navy); }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
button, a, [role="radio"] { touch-action: manipulation; }
button, .btn, [role="radio"] { -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hero :focus-visible, .section--navy :focus-visible, .footer :focus-visible { outline-color: var(--orange); }
::selection { background: var(--navy); color: var(--white); }
.hero ::selection, .section--navy ::selection, .footer ::selection { background: var(--orange); color: var(--dark); }
html { accent-color: var(--navy); caret-color: var(--navy); }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--m); }
/* below the hero the content column is narrower; the header and the hero keep the full width */
main .section > .wrap, .story .wrap, .footer .wrap { max-width: calc(var(--content) + 2 * var(--m)); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 12px 16px; background: var(--dark); color: var(--white); font-weight: 600; }
.skip:focus { left: 12px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 0;
  font-size: 1rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--orange); color: var(--dark); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--orange-press); }
  .btn--navy:hover { background: var(--navy-press); }
  .btn--light:hover { background: var(--concrete-2); }
  .btn--outline:hover { background: var(--navy); color: var(--white); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--white); }
}

/* ---------- header : transparent on the hero, white and condensed once the page scrolls ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); pointer-events: none; }
.header::before, .header::after { content: ''; position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.header::before { height: var(--header-h); background: var(--white); transform-origin: top; transition: transform .45s var(--ease-out), opacity .3s ease; }
.header::after { height: var(--header-c); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(14, 19, 24, .07); opacity: 0; transition: opacity .3s ease; }
.header__inner { position: relative; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; transition: transform .45s var(--ease-out); }
.header__inner > * { pointer-events: auto; }
.header__logo { position: relative; display: block; flex: none; transform-origin: left center; }
.header__logo-img { height: 56px; width: auto; transition: opacity .3s ease; }
.header__logo-img--light { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; gap: 36px; }
.nav__links a { font-size: .9375rem; font-weight: 600; text-decoration: none; padding: 8px 0; transition: color .3s ease; }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 8px; }
}
.nav__cta { min-height: 48px; }
@media (min-width: 900px) and (max-width: 1199px) {
  .nav { gap: 24px; }
  .nav__links { gap: 22px; }
  .nav__links a { font-size: .875rem; }
  .header__logo-img { height: 46px; }
  .nav__cta { padding: 0 18px; font-size: .9375rem; }
}
/* current page: the same underline as the hover state, kept */
.nav__links a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.footer__nav a[aria-current="page"] { color: var(--orange); }
.nav__direct { display: none; }
.header__mobile { display: none; }

.header.is-over::before { opacity: 0; }
.header.is-over .header__logo-img--light { opacity: 1; }
.header.is-over .header__logo:not(:focus-visible) { opacity: 0; }
.header__logo { transition: transform .45s var(--ease-out), opacity .3s ease; }
.header.is-over .header__logo-img--dark { opacity: 0; }
.header.is-over .nav__links a, .header.is-over .menu-toggle { color: var(--white); }
.header.is-condensed::after { opacity: 1; }

@media (min-width: 900px) {
  .header.is-condensed::before { transform: scaleY(calc(72 / 92)); }
  .header.is-condensed .header__inner { transform: translateY(-10px); }
  .header.is-condensed .header__logo { transform: scale(.86); }
}

@media (max-width: 899px) {
  .header__logo-img { height: 42px; }
  .header__mobile { display: flex; align-items: center; gap: 8px; }
  .menu-toggle {
    display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px 0 12px;
    background: none; border: 0; color: var(--ink); font-size: .9375rem; font-weight: 600; cursor: pointer; transition: color .3s ease;
  }
  .menu-toggle__label { min-width: 3.6em; text-align: left; }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s var(--ease-out), background-color .2s ease;
  }
  .menu-toggle__bars { position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ''; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }
  .menu-toggle[aria-expanded='true'] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded='true'] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 60; pointer-events: auto;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--m) calc(32px + env(safe-area-inset-bottom, 0px));
    background: var(--white); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 20px 0; font-size: var(--fs-h3); font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 32px; min-height: 56px; }
  .nav__direct { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
  .nav__direct a { font-weight: 600; text-decoration: none; padding: 8px 0; }
  body.menu-open { overflow: hidden; }
  body.menu-open .header::before { opacity: 1; }
  body.menu-open .header .header__logo-img--light { opacity: 0; }
  body.menu-open .header .header__logo-img--dark { opacity: 1; }
  body.menu-open .header .header__logo { opacity: 1; }
  body.menu-open .header .menu-toggle { color: var(--ink); }
}

/* ---------- titles ---------- */
.kicker { margin-bottom: 16px; font-size: var(--fs-small); font-weight: 600; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; color: var(--orange-text); }
.hero .kicker, .section--navy .kicker { color: var(--orange); }
.title { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -.025em; max-width: 14em; text-wrap: balance; }
.section--navy .title { color: var(--white); }
.statement { max-width: 26em; font-size: clamp(1.375rem, 1.05rem + 1.2vw, 2rem); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.group {
  margin: clamp(44px, 4.6vw, 64px) 0 20px; padding-top: 16px; border-top: 2px solid var(--navy);
  font-size: var(--fs-small); font-weight: 600; letter-spacing: .18em; line-height: 1.4; text-transform: uppercase; color: var(--slate);
}
.group--flush { margin-top: 0; }
.tbc {
  display: inline; padding: 1px 6px; background: var(--tbc-bg); color: var(--tbc-ink);
  font-size: .875em; font-weight: 600; white-space: nowrap; letter-spacing: 0; text-transform: none; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.tbc--long { white-space: normal; }

/* ---------- sections ---------- */
.section { padding-block: var(--sp); }
.section--concrete { background: var(--concrete); }
.section--navy { background: var(--navy); color: var(--white); }
.section__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 24px; align-items: start; }
.section__head .section__title { grid-column: 1 / 7; }
/* first line of the intro sits level with the title, under the kicker */
.section__intro { grid-column: 7 / 13; padding-top: calc(var(--fs-small) * 1.4 + 22px); font-size: var(--fs-lead); line-height: 1.55; }
.section--navy .section__intro { color: var(--mist); }
.section__intro p + p { margin-top: 16px; }
.page-top { padding-top: calc(var(--header-h) + var(--sp)); }

/* short label / value list (key figures, delivery) styled like the product spec rows */
.keyfacts { margin-top: 28px; font-size: 1rem; line-height: 1.5; }
.keyfacts > div { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; padding: 10px 0; border-top: 1px solid var(--line); }
.keyfacts > div:last-child { border-bottom: 1px solid var(--line); }
.keyfacts dt { font-size: var(--fs-small); font-weight: 500; color: var(--slate); }
.keyfacts dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- reveal on scroll (only once JS runs, so nothing hides without it) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- hero : the symbol assembles, then the signature appears (CSS, runs off the main thread) ---------- */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(640px, var(--screen), 960px);
  padding: calc(var(--header-h) + 32px) 0 clamp(56px, 7vw, 96px);
  background: var(--navy); color: var(--white);
}
.hero__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: center; }
.hero__text { grid-column: 1 / 8; grid-row: 1; }
.hero__mark { grid-column: 8 / 13; grid-row: 1; justify-self: end; width: min(100%, 470px); }
.hero__symbol { display: block; width: 100%; height: auto; overflow: visible; }
.hero__title { font-size: var(--fs-display); line-height: .98; letter-spacing: -.035em; color: var(--white); }
.hero__line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__line > span { display: block; }
.hero__lead { max-width: 30em; margin: clamp(20px, 2.4vw, 32px) 0 clamp(28px, 3vw, 40px); font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); font-weight: 500; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.hero__kicker { margin-bottom: clamp(16px, 2vw, 24px); }

.sym { transform-box: view-box; }
.sym--ring { transform-origin: 548px 430px; animation: sym-ring .7s var(--ease-out) both; }
.ring-1 { --r: -26deg; }
.ring-2 { --r: 22deg; animation-delay: .06s; }
.ring-3 { --r: 34deg; animation-delay: .12s; }
.sym--bar { animation: sym-bar .5s var(--ease-out) .34s both; }
.sym--p { animation: sym-p .7s var(--ease-out) .52s both; animation-timing-function: var(--spring); }
.hero__kicker { animation: fade .5s ease .62s both; }
.hero__line > span { animation: line-up .7s var(--ease-out) .7s both; }
.hero__line + .hero__line > span { animation-delay: .78s; }
.hero__lead { animation: fade-up .6s var(--ease-out) .92s both; }
.hero__actions { animation: fade-up .6s var(--ease-out) .98s both; }

@keyframes sym-ring { from { opacity: 0; transform: rotate(var(--r)) scale(1.12); } 45% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes sym-bar { from { opacity: 0; transform: translateX(-150px); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes sym-p { from { opacity: 0; transform: translateY(-190px); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- experience band ---------- */
.intro .statement { margin-top: 4px; }
.intro--compact { padding-block: clamp(48px, 5.4vw, 80px); }
.intro--compact .statement { max-width: 30em; font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); }
.intro--compact .stats { margin-top: clamp(28px, 3.4vw, 44px); }
.intro--compact .stat { padding-top: 18px; }
.intro--compact .stat__num { font-size: clamp(2.25rem, 1.7rem + 2vw, 3.25rem); }
.intro--compact .stat__plus { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem); }
.intro--compact .stat__unit { font-size: 1.125rem; }
.intro--compact .stat__label { margin-top: 8px; font-size: .9375rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); margin-top: clamp(40px, 4.6vw, 64px); }
.stat { padding-top: 24px; border-top: 2px solid var(--navy); }
.stat__value { display: flex; align-items: baseline; gap: 10px; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat__num { font-size: clamp(2.75rem, 2rem + 2.6vw, 4.25rem); font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.stat__plus { margin-left: -4px; font-size: clamp(2rem, 1.5rem + 1.9vw, 3.25rem); font-weight: 700; line-height: 1; color: var(--orange); }
.stat__unit { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; }
.stat__label { max-width: 22em; margin-top: 14px; color: var(--slate); font-weight: 500; line-height: 1.5; }

/* ---------- story : « De l'acier au chantier » ----------
   Static by default (no JS): the drawing in its final state and the six steps as a list.
   With JS, .is-scrub pins the section and the scroll position builds the drawing step by step (with reduced motion too, see js/main.js). */
.story { padding-block: var(--sp); background: var(--white); }
.story__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 40px; align-items: center; }
.story__text { grid-column: 1 / 6; }
.story__figure { grid-column: 6 / 13; position: relative; aspect-ratio: 1000 / 700; width: 100%; }
.story__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.story__intro { max-width: 32em; margin-top: 18px; color: var(--slate); line-height: 1.55; }
.story__steps { margin-top: 32px; }
.story__step { padding: 18px 0; border-top: 1px solid var(--line); }
.story__step:last-child { border-bottom: 1px solid var(--line); }
.story__step h3 { font-size: clamp(1.125rem, 1.06rem + .25vw, 1.3125rem); letter-spacing: -.015em; }
.story__step p { margin-top: 8px; line-height: 1.55; }
.story__n { display: block; margin-bottom: 6px; font-size: var(--fs-small); font-weight: 600; letter-spacing: .18em; color: var(--orange-text); font-variant-numeric: tabular-nums; }
.story__counter, .story__progress { display: none; }

.story__labels { position: absolute; inset: 0; pointer-events: none; }
.story__label {
  position: absolute; transform: translate(-50%, -100%);
  padding: 4px 0; background: none;
  font-size: .8125rem; font-weight: 600; line-height: 1.3; color: var(--navy); white-space: nowrap;
}
.story__label.is-dim { padding: 0; background: none; transform: translate(-50%, -50%); font-size: 1rem; font-weight: 700; font-style: italic; color: var(--orange-text); }
.story__label.is-note.is-right { transform: translate(8px, -50%); }
/* element numbers (M1, P1, F1…): a small framed tag on the element */
.story__label.is-tag {
  transform: translate(-50%, -50%); padding: 1px 6px; background: var(--white); box-shadow: inset 0 0 0 1px var(--navy);
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; line-height: 1.5; font-variant-numeric: tabular-nums;
}
.story__label.is-tag.is-accent { color: var(--orange-text); box-shadow: inset 0 0 0 1.5px var(--orange); }
.story--mod .story__label.is-note { padding: 2px 6px; background: var(--white); }
.story--mod .story__label.is-note.is-right { transform: translate(2px, -50%); }
.story--mod .story__label.is-note.is-left { transform: translate(calc(-100% - 2px), -50%); }
.story--mod .story__label.is-dim { padding: 0 3px; background: var(--white); }
.story__label.is-note.is-left { transform: translate(calc(-100% - 8px), -50%); }

.story.is-scrub { padding-block: 0; }
.story.is-scrub .story__track { height: calc(6 * .4 * var(--screen) + var(--screen)); }
.story.is-scrub .story__pin {
  position: sticky; top: 0; height: var(--screen); display: flex; align-items: center;
  padding: calc(var(--header-c) + 24px) 0 24px;
}
.story.is-scrub .story__grid { width: 100%; }
.story.is-scrub .story__steps { display: grid; margin-top: 20px; }
.story.is-scrub .story__step { grid-area: 1 / 1; padding: 0; border: 0; opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .5s var(--ease-out); }
.story.is-scrub .story__step.is-active { opacity: 1; transform: none; }
.story.is-scrub .story__n { display: none; }
.story.is-scrub .story__counter { display: flex; align-items: baseline; gap: 8px; margin-top: clamp(20px, 2.4vw, 32px); font-variant-numeric: tabular-nums; }
.story__count { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.story__total { font-size: var(--fs-small); font-weight: 600; letter-spacing: .18em; color: var(--slate); }
.story__skip { display: none; }
.story.is-scrub .story__skip { display: inline-block; margin-top: 18px; font-size: var(--fs-small); font-weight: 600; color: var(--navy); text-underline-offset: 4px; }
.story.is-scrub .story__progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 28px; max-width: 360px; }
.story__progress span { position: relative; height: 3px; overflow: hidden; background: var(--line); }
.story__progress i { position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }

/* ---------- construction modulaire (modulaire.html) ----------
   Same story mechanics, two drawings: the Maison / Entrepôt control swaps the drawing and the texts that differ,
   at the current scroll position. */
.mod-intro { padding-bottom: clamp(36px, 4vw, 56px); }
.story--mod .story__figure { isolation: isolate; }
.story--mod .segmented { margin-top: 4px; }
.story__variant { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.story__variant.is-active { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.story--mod[data-type="maison"] [data-for="entrepot"], .story--mod[data-type="entrepot"] [data-for="maison"] { display: none; }
.segmented {
  position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr;
  margin-top: 22px; padding: 4px; background: var(--concrete); box-shadow: inset 0 0 0 1px var(--line);
}
.segmented::before {
  content: ''; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--navy); transition: transform .25s var(--ease-out);
}
.story--mod[data-type="entrepot"] .segmented::before { transform: translateX(100%); }
.segmented button {
  min-width: 7.5rem; min-height: 44px; padding: 0 18px; border: 0; background: none; color: var(--ink);
  font-size: .9375rem; font-weight: 600; cursor: pointer; transition: color .25s ease, transform .16s var(--ease-out);
}
.segmented button:active { transform: scale(.97); }
.segmented button[aria-pressed="true"] { color: var(--white); cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .segmented button[aria-pressed="false"]:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
}
html:not(.js) .segmented { display: none; }

.mod-benefits { padding-block: clamp(48px, 5.4vw, 80px); }
.mod-benefits .statement { max-width: 30em; font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); margin-top: clamp(24px, 3vw, 40px); }
.card { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; background: var(--white); }
.card__title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--navy); }
.card__title::before { content: ''; display: block; width: 32px; height: 4px; margin-bottom: 14px; background: var(--orange); }
.card__text { line-height: 1.55; }

/* produits.html: the band towards modulaire.html */
.mod-band { padding-block: clamp(40px, 4.4vw, 64px); }
.mod-band__link {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: var(--g);
  background: var(--white); color: var(--ink); text-decoration: none; transition: transform .45s var(--ease-out);
}
.mod-band__link::after { content: ''; position: absolute; inset: 0; z-index: -1; box-shadow: 0 26px 50px -30px rgba(19, 58, 99, .45); opacity: 0; transition: opacity .45s var(--ease-out); }
.mod-band__link:active { transform: scale(.985); }
.mod-band__art { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.mod-band__art .d-caption { display: none; }
.mod-band__body { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 28px 24px 0; }
.mod-band__body .kicker { margin-bottom: 10px; }
.mod-band__title { max-width: 22em; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; color: var(--navy); text-wrap: balance; }
.mod-band__more { margin-top: 16px; font-size: .9375rem; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (hover: hover) and (pointer: fine) {
  .mod-band__link:not([data-reveal]):hover { transform: translateY(-4px); }
  .mod-band__link:not([data-reveal]):hover::after { opacity: 1; }
}

/* ---------- le préfabriqué ---------- */
.benefits__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); margin-top: clamp(40px, 4.6vw, 64px); }
.benefits__list li { color: var(--mist); line-height: 1.55; }
.benefits__list strong { display: block; margin-bottom: 8px; color: var(--white); font-size: 1.125rem; font-weight: 700; }
.benefits__list strong::before { content: ''; display: block; width: 40px; height: 4px; margin-bottom: 18px; background: var(--orange); }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.product { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; background: var(--white); transition: transform .45s var(--ease-out); }
.product::after { content: ''; position: absolute; inset: 0; z-index: -1; box-shadow: 0 30px 60px -32px rgba(19, 58, 99, .45); opacity: 0; transition: opacity .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .product:not([data-reveal]):hover { transform: translateY(-4px); }
  .product:not([data-reveal]):hover::after { opacity: 1; }
  .product:hover .drawing { transform: scale(1.025); }
}
.product__body { flex: 1; display: flex; flex-direction: column; padding: clamp(18px, 1.8vw, 24px); }
.product__title { font-size: var(--fs-h3); letter-spacing: -.015em; }
.product__text { margin-top: 10px; line-height: 1.55; }
.product__foot { margin-top: auto; padding-top: 24px; }
/* prefab group: the dalot card lists more specs, so the specs follow the text and only the button sits at the bottom */
.products--specs-top .product__foot { flex: 1; display: flex; flex-direction: column; }
.products--specs-top .product__foot .btn { margin-top: auto; }
.specs { margin-bottom: 20px; }
.specs > div { padding: 12px 0; border-top: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { font-size: var(--fs-small); font-weight: 500; color: var(--slate); }
.specs dd { display: flex; align-items: center; min-height: 40px; margin: 4px 0 0; font-weight: 600; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
.sizes button {
  height: 40px; padding: 0 6px; border: 1px solid var(--field); background: var(--white); color: var(--ink);
  font-size: .9375rem; font-weight: 600; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .16s var(--ease-out);
}
.sizes button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .sizes button:hover { border-color: var(--navy); } }
.sizes button[aria-checked='true'] { background: var(--navy); border-color: var(--navy); color: var(--white); }
/* dalot sections: a plain list, flat grey so it never reads as buttons */
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(5.9em, 22%), 1fr)); gap: 4px; width: 100%; margin: 0; padding: 0; font-size: .9375rem; list-style: none; }
.sections li { padding: 7px 4px; background: var(--concrete); line-height: 1.3; text-align: center; white-space: nowrap; }   /* 5.9em fits « 3,50 × 3,50 »; 22% caps the list at four columns: rows of 2, 3 or 4 */

/* image slots: the client photo covers the drawing or the placeholder as soon as the file exists in img/ */
.slot { position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin: 0; background: var(--concrete-2); }
.slot img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.slot--drawing { background-color: var(--white); background-image: radial-gradient(rgba(19, 58, 99, .13) 1px, transparent 1.2px); background-size: 16px 16px; }
.slot--plan {
  --c: var(--orange);
  background:
    linear-gradient(var(--c) 0 0) left 16px top 16px / 24px 3px no-repeat,
    linear-gradient(var(--c) 0 0) left 16px top 16px / 3px 24px no-repeat,
    linear-gradient(var(--c) 0 0) right 16px top 16px / 24px 3px no-repeat,
    linear-gradient(var(--c) 0 0) right 16px top 16px / 3px 24px no-repeat,
    linear-gradient(var(--c) 0 0) left 16px bottom 16px / 24px 3px no-repeat,
    linear-gradient(var(--c) 0 0) left 16px bottom 16px / 3px 24px no-repeat,
    linear-gradient(var(--c) 0 0) right 16px bottom 16px / 24px 3px no-repeat,
    linear-gradient(var(--c) 0 0) right 16px bottom 16px / 3px 24px no-repeat,
    var(--concrete-2);
}
.slot--plan img { object-fit: contain; background: var(--white); }
.slot__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 32px; text-align: center; }
.slot__ph b { font-size: .9375rem; font-weight: 700; color: var(--navy); }
.slot__ph span { font-size: var(--fs-small); line-height: 1.4; color: var(--slate); }
/* caption on a client photo (« Usine de Samayakouri »); hidden if the photo is missing and the drawing shows */
.slot__caption { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 6px 12px; background: rgba(19, 58, 99, .88); font-size: .6875rem; font-weight: 600; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: var(--white); }
.slot--empty .slot__caption { display: none; }
#p-dalots .slot img { object-position: 78% 50%; }   /* dalot pour photo: keep the pump boom and the green moulds in the card */
.slot__ph code { margin-top: 6px; padding: 3px 8px; background: rgba(255, 255, 255, .7); font: 500 .8125rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--slate); }

/* technical drawings (navy line work, orange dimensions) */
.drawing { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s var(--ease-out); }
.drawing text { font-family: var(--font); }
.d-outline, .can__line { fill: none; stroke: var(--navy); stroke-width: 1.4; stroke-linejoin: miter; }
.d-face { stroke: var(--navy); stroke-width: 1.2; stroke-linejoin: miter; }
.d-ground { fill: none; stroke: var(--navy); stroke-width: 1; stroke-dasharray: 2 4; }
.d-absent { fill: none; stroke: var(--orange); stroke-width: 1.4; stroke-dasharray: 6 5; }
.d-line { fill: none; stroke: var(--orange); stroke-width: 1.2; }
.d-text { font-size: 13px; font-weight: 600; fill: var(--navy); }
.d-text--strong { font-size: 16px; font-weight: 700; fill: var(--orange-text); }
.d-text--light { fill: var(--white); }
.d-caption { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; fill: var(--slate); }
.d-leader { fill: none; stroke: var(--navy); stroke-width: 1; }
.d-bar { fill: none; stroke: var(--navy); stroke-width: 2; }
.d-stirrup { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linejoin: miter; }
.d-flow { fill: none; stroke: var(--orange); stroke-width: 2; }
.d-mark { fill: none; stroke: var(--white); stroke-width: 3; }
.can { opacity: .38; transition: opacity .3s ease; }
.can .can__line { stroke: var(--slate); stroke-width: 1.1; stroke-dasharray: 4 4; }
.can__fill, .can__bg, .can__dims { opacity: 0; transition: opacity .3s ease; }
.can__bg { fill: var(--concrete); }
.can.is-active { opacity: 1; }
.can.is-active .can__line { stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: none; }
.can.is-active .can__fill, .can.is-active .can__dims { opacity: 1; }
.can__slab { opacity: 0; transition: opacity .3s ease; }   /* covered caniveau: only the selected section shows its cover slab */
.can.is-active .can__slab { opacity: 1; }

/* ---------- home: products summary ---------- */
.summary__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.summary__head .title { max-width: none; }
@media (max-width: 899px) {
  /* the title and its button keep one row on tablets, one line on phones */
  .summary__all { min-height: 44px; padding: 0 16px; font-size: .875rem; }
}
@media (max-width: 639px) {
  .summary__head .title { font-size: 1.625rem; }
}
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); margin-top: clamp(28px, 3.4vw, 44px); }
.tile { min-width: 0; }
.tile__link { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; background: var(--white); color: var(--ink); text-decoration: none; transition: transform .45s var(--ease-out); }
.tile__link::after { content: ''; position: absolute; inset: 0; z-index: -1; box-shadow: 0 26px 50px -30px rgba(19, 58, 99, .45); opacity: 0; transition: opacity .45s var(--ease-out); }
.tile__link:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .tile:not([data-reveal]) .tile__link:hover { transform: translateY(-4px); }
  .tile:not([data-reveal]) .tile__link:hover::after { opacity: 1; }
  .tile__link:hover .tile__title { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
}
.tile__art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.tile__art .d-caption { display: none; }
.tile__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.tile__title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--navy); }
.tile__text { font-size: .9375rem; line-height: 1.5; color: var(--ink); }

/* ---------- home: the site teaser ---------- */
.teaser__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 28px; align-items: center; }
.teaser__text { grid-column: 1 / 6; }
.teaser__photo { grid-column: 6 / 13; margin-top: 0; }
.teaser__photo .wide-photo__frame { aspect-ratio: 16 / 10; }
.teaser__lead { margin-top: 18px; font-size: var(--fs-lead); line-height: 1.55; }
.teaser__note { margin-top: 12px; font-size: .9375rem; line-height: 1.5; color: var(--slate); text-wrap: pretty; }
.teaser__more { display: inline-block; margin-top: 20px; font-size: .9375rem; font-weight: 600; color: var(--navy); text-underline-offset: 4px; }

/* ---------- installations ---------- */
.wide-photo { margin-top: clamp(40px, 4.6vw, 64px); }
.wide-photo__frame { aspect-ratio: 21 / 9; overflow: hidden; background: var(--concrete-2); }
/* artist's view: the sign and the silos stay in frame at every crop */
.wide-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
/* same voice as the captions of the technical drawings */
.caption { margin-top: 14px; font-size: .75rem; font-weight: 600; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }
.equipment { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 40px; align-items: start; margin-top: clamp(40px, 4.6vw, 64px); }
.equipment__table { grid-column: 1 / 8; }
.slot--plan { grid-column: 8 / 13; }
.equip { width: 100%; border-collapse: collapse; font-size: 1rem; }
.equip th, .equip td { padding: 16px 20px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.equip thead th { padding-top: 4px; font-size: var(--fs-small); font-weight: 500; color: var(--slate); }
.equip tbody th { font-weight: 700; color: var(--navy); }
.equip td:last-child, .equip th:last-child { padding-right: 0; }


.form { grid-column: 6 / 13; justify-self: end; align-self: start; width: 100%; max-width: 640px; padding: clamp(22px, 2.8vw, 40px); background: var(--white); }
.field__optional { font-weight: 500; color: var(--slate); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: var(--fs-small); font-weight: 600; }
abbr[title] { color: var(--tbc-ink); text-decoration: none; border: 0; }
.field input, .field select, .field textarea {
  display: block; width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--field); border-radius: 0; background-color: var(--white); color: var(--ink);
  font: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: auto; min-height: 176px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field select {
  padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230E1318' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field ::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.field.is-prefilled select { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.field__note { margin-top: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--navy); }
.field__note:empty { display: none; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field__error { margin-top: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.form__note { margin-top: 18px; font-size: var(--fs-small); line-height: 1.5; color: var(--slate); }
.form__status { margin-top: 18px; padding: 14px 18px; background: #E8EEF5; color: var(--navy); font-size: .9375rem; font-weight: 500; line-height: 1.5; }
.form__status:empty { display: none; }
.form__status.is-error { background: #FBEAEA; color: var(--error); }

/* ---------- contact ---------- */
.contact-band { padding-block: clamp(36px, 4vw, 52px); }
.contact-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.contact-band__title { color: var(--white); font-size: clamp(1.375rem, 1.15rem + .8vw, 1.875rem); font-weight: 700; letter-spacing: -.015em; }
.contact-band__sub { margin-top: 6px; color: var(--mist); }
.contact-band__sub a { color: var(--white); font-weight: 600; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .contact-band__sub a:hover { color: var(--orange); } }

.contact-page__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 40px; align-items: start; margin-top: clamp(40px, 4.6vw, 64px); }
.contact-page__info { grid-column: 1 / 6; }
.contact-page__mail { display: inline-block; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); font-weight: 700; letter-spacing: -.02em; color: var(--navy); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .contact-page__mail:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; } }
.contact-page__list { margin-top: 28px; }
.contact-page__list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-page__list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-page__list dt { margin-bottom: 4px; font-size: var(--fs-small); font-weight: 500; color: var(--slate); }
.contact-page__list dd { margin: 0; font-weight: 600; line-height: 1.55; }
.contact-page .form { grid-column: 6 / 13; }
.contact-page__list a { color: var(--navy); font-weight: 600; text-underline-offset: 4px; }
.hours { display: flex; justify-content: space-between; gap: 24px; max-width: 340px; }

/* ---------- mentions légales ---------- */
.legal__list { margin-top: clamp(48px, 6vw, 80px); }
.legal__list > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: 28px 0; border-top: 1px solid var(--line); }
.legal__list > div:last-child { border-bottom: 1px solid var(--line); }
.legal__list dt { grid-column: 1 / 6; font-weight: 700; color: var(--navy); }
.legal__list dd { grid-column: 7 / 13; margin: 0; line-height: 1.6; }
.legal__list dd p { max-width: 62ch; }
.legal__list dd p + p { margin-top: 14px; }
.legal__list a { color: var(--navy); font-weight: 600; text-decoration: none; }
.legal__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- footer : one compact row, one hairline, one discreet line ---------- */
.footer { background: var(--dark); color: var(--white); padding-top: clamp(28px, 3vw, 44px); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding-bottom: clamp(24px, 2.6vw, 36px); }
.footer__brand { display: block; flex: none; }
.footer__logo { width: 190px; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__nav a { font-size: .875rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; padding: 18px 0 clamp(22px, 2.4vw, 32px); border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem; line-height: 1.5; color: var(--mist); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; }
.footer__legal a { color: var(--white); text-decoration: none; }
.footer__sep { margin: 0 10px; color: rgba(255, 255, 255, .35); }
@media (hover: hover) and (pointer: fine) {
  .footer__nav a:hover, .footer__legal a:hover { color: var(--orange); }
}

/* ---------- mobile contact bar ---------- */

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .form, .contact-page__info, .contact-page .form { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 899px) {
  /* cards stay about as wide as on desktop: one horizontal card per row */
  .products { grid-template-columns: minmax(0, 1fr); }
  .product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .product .slot { align-self: start; }
}

@media (max-width: 1023px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment__table, .slot--plan { grid-column: 1 / -1; }
  .slot--plan { max-width: 640px; }
  .hero__text { grid-column: 1 / 9; }
  .hero__mark { grid-column: 9 / 13; }
}

@media (max-width: 899px) {
  .section__head .section__title, .section__intro { grid-column: 1 / -1; }
  .section__intro { padding-top: 0; }
  .form, .contact-page__info { grid-column: 1 / -1; justify-self: stretch; max-width: none; }
  .legal__list dt, .legal__list dd { grid-column: 1 / -1; }
  .legal__list dd { margin-top: 10px; }

  .hero { align-items: flex-start; min-height: clamp(560px, var(--screen), 860px); padding-top: calc(var(--header-h) + 28px); }
  .hero__inner { row-gap: 28px; }
  .hero__mark { grid-column: 1 / -1; grid-row: 1; justify-self: start; width: min(46vw, 210px); }
  .hero__text { grid-column: 1 / -1; grid-row: 2; }

  .stats { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stat { padding: 22px 0 26px; }
  .intro--compact .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .intro--compact .stat { padding: 14px 0 0; }
  .tile__body { padding: 14px 16px 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .teaser__text, .teaser__photo { grid-column: 1 / -1; }
  .teaser__photo.wide-photo { margin-top: 0; } /* stacked: the grid row-gap is the only space above the photo */
  .benefits__list { grid-template-columns: minmax(0, 1fr); gap: 36px; }

  .story__text, .story__figure { grid-column: 1 / -1; }
  .story.is-scrub .story__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; align-content: center; height: 100%; }
  .story.is-scrub .story__pin { padding-top: calc(var(--header-c) + 12px); padding-bottom: 12px; }
  .story.is-scrub .story__text { display: contents; }
  .story.is-scrub .story__text > .kicker { grid-row: 1; margin-bottom: 8px; }
  .story.is-scrub .story__title { grid-row: 2; font-size: 1.75rem; }
  .story.is-scrub .story__intro { grid-row: 3; margin-top: 10px; font-size: .9375rem; line-height: 1.5; }
  .story.is-scrub .story__kicker { grid-row: 1; margin-bottom: 8px; }
  .story.is-scrub .segmented { grid-row: 3; justify-self: start; margin-top: 0; }
  .story.is-scrub .story__figure { grid-row: 4; margin-top: 16px; }
  .story.is-scrub .story__counter { grid-row: 5; margin-top: 16px; }
  .story.is-scrub .story__count { font-size: 1.75rem; }
  .story.is-scrub .story__steps { grid-row: 6; margin-top: 8px; min-height: 7.5em; }
  .story.is-scrub .story__progress { grid-row: 7; margin-top: 16px; max-width: none; }
  .story.is-scrub .story__skip { grid-row: 8; justify-self: start; margin-top: 12px; }
  .story__label { padding: 3px 6px 3px 7px; font-size: .6875rem; }
  .story__label.is-dim { font-size: .875rem; }
  .story.is-scrub .story__track { height: calc(6 * .4 * var(--screen) + var(--screen)); }
}

@media (max-width: 639px) {
  /* on a phone the caption carries the step; margin notes would not fit beside a 350 px drawing */
  .story__label.is-note, .st-note { display: none; }
  .story.is-scrub .story__figure { overflow: hidden; margin-inline: calc(-1 * var(--m)); width: calc(100% + 2 * var(--m)); }
  /* the road scene spans 14–95 % of the drawing: 1.16 fills a 390 px screen without cutting it */
  .story.is-scrub:not(.story--mod) .story__svg, .story.is-scrub:not(.story--mod) .story__labels { transform: translateX(-2.5%) scale(1.16); }
  .story__label.is-tag { padding: 0 4px; font-size: .625rem; }
  .story--mod .story__label.is-dim { font-size: .75rem; line-height: 1.1; }
  .tile__art { aspect-ratio: 4 / 3; }
  .tile__text { display: none; }
  .mod-band__link { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mod-band__body { padding: 16px 20px 22px; }
}

@media (max-width: 639px) {
  .kicker { font-size: .8125rem; }
  .hero__inner { padding-top: 0; }
  .actions .btn, .form__actions .btn { flex: 1 1 100%; }
  .hero__actions .btn--ghost { display: none; }
  .product { display: flex; }
  .product .slot { align-self: stretch; aspect-ratio: 4 / 3; min-height: 0; }   /* stretch: the tablet's align-self: start left the drawing 0 px wide here */
  .wide-photo__frame { aspect-ratio: 4 / 3; }
  .wide-photo img { object-position: 42% 40%; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .specs > div:not(:has(.sizes, .sections)) { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
  .specs > div:not(:has(.sizes, .sections)) dd { min-height: 0; margin: 0; text-align: right; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__logo { width: 170px; }
  .footer__nav { gap: 10px 22px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
  .footer__legal { flex-direction: column; gap: 6px; }
  .footer__legal .footer__sep { display: none; }
  .equip thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .equip, .equip tbody, .equip tr, .equip th, .equip td { display: block; }
  .equip tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .equip th, .equip td { padding: 0; border: 0; }
  .equip tbody th { margin-bottom: 8px; }
  .equip td { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 4px 0; }
  .equip td::before { content: attr(data-label); padding-top: 2px; color: var(--slate); font-size: var(--fs-small); font-weight: 500; }
  .footer__bottom { padding-bottom: 24px; }
}

/* ---------- reduced motion: fewer and gentler, not frozen ----------
   Phones with Reduce Motion (iPhone) or Remove animations (Android) still see the page build itself,
   but nothing slides, spins or zooms: the symbol, the titles and the sections fade in, the story crossfades. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sym, .hero__kicker, .hero__line > span, .hero__lead, .hero__actions { animation-name: fade; animation-timing-function: ease; }
  html.js [data-reveal], .story.is-scrub .story__step { transform: none; }
}

@media (max-width: 639px) {
  /* experience band on a phone: one row per figure, the number beside its label */
  .intro--compact .stats { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .intro--compact .stat { display: grid; grid-template-columns: 10.25rem minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 14px 0; }
  .intro--compact .stat__label { margin-top: 0; }
}

@media (min-width: 900px) {
  /* the pinned story starts just under the header instead of floating in the middle of the screen */
  .story.is-scrub .story__pin { align-items: flex-start; padding-top: calc(var(--header-c) + clamp(40px, 7vh, 88px)); }
}

/* modulaire.html: the pinned block is only as tall as its content (--pin-h, measured by js/main.js). It starts right
   under the introduction, then stays centred in the screen below the header while the story plays. */
.story.story--mod.is-scrub .story__pin {
  height: auto; padding: 16px 0;
  top: max(calc(var(--header-c) + 8px), calc((var(--screen) + var(--header-c) - var(--pin-h, var(--screen))) / 2));
}
.story.story--mod.is-scrub .story__track { height: calc(6 * .3 * var(--screen) + var(--pin-h, var(--screen))); }
.story.story--mod.is-scrub .story__grid { align-items: start; }
@media (min-width: 1200px) {
  .story--mod .story__text { grid-column: 1 / 5; }
  .story--mod .story__figure { grid-column: 5 / 13; }
}
