/* Refonte « La matière sous la lumière » : typographie éditoriale, gris chauds, sections nuit,
   bleu marine (comme le logo Ballerina Küchen) réservé à l'action principale et aux états actifs. */
/* Polices hébergées sur le site (audit du 2026-11-13) : plus de passage par Google Fonts, qui bloquait l'affichage
   ~1,5 s sur téléphone. Fichiers latin et latin-ext tirés de fonts.gstatic.com (licence SIL OFL), dans assets/fonts/. */
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/cormorant-garamond-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/cormorant-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/cormorant-garamond-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/cormorant-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/dm-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/dm-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Couleurs */
  --color-warm-canvas: #ebeadf;
  --color-paper: #f4f2ea;
  --color-pristine-surface: #fbfaf6;
  --color-sand-beige: #d5cec0;
  --color-ink-black: #2b2925;
  --color-ink-soft: #6b655c;
  --color-muted: #6f685e; /* était #8a8378 : contraste 3,1 sur crème, trop pâle (audit du 2026-11-13) ; #6f685e = 4,55 */
  --color-night: #1c1b19;
  --color-night-2: #26241f;
  --color-on-night: #ece8df;
  --color-line: rgba(43, 41, 37, .14);
  --color-navy: #1f2f5c;
  --color-navy-deep: #15204a;

  /* Typographie */
  --font-main: 'DM Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-mono: 'DM Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Espacements */
  --page-max-width: 1240px;
  --section-gap: clamp(96px, 14vh, 176px);
  --gutter: clamp(16px, 2.4vw, 40px);
  --probar-h: 34px;

  /* Rayons */
  --radius: 4px;
  --radius-full: 999px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-slow: cubic-bezier(.16, .84, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--color-warm-canvas);
  color: var(--color-ink-black);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Grain argentique fixe sur toute la page */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.03em; text-wrap: balance; }
p { text-wrap: pretty; }
h1 em, h2 em, h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.1em;
  line-height: .9;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; letter-spacing: inherit; color: inherit; }

.wrap {
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--gutter);
}
section { margin-top: var(--section-gap); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--color-pristine-surface); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Petits libellés en capitales espacées */
.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-muted);
  margin-bottom: 18px;
}
.label--light { color: rgba(236, 232, 223, .72); }

.section-head { max-width: 66ch; margin-bottom: clamp(36px, 4.4vw, 64px); }
.section-head h2 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; max-width: 18ch; }
.section-head h3 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; max-width: 20ch; }
.section-head p { margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--color-ink-soft); max-width: 52ch; }

/* Apparitions au défilement (seulement si le script tourne) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Titres révélés mot à mot, depuis un masque */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .12em; margin: -.06em 0 -.12em; }
.js .split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-slow); transition-delay: var(--d, 0s); }
.js .split.is-visible .w > span { transform: none; }

/* Images dévoilées comme un store qui s'ouvre */
.js .reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-slow); }
.js .reveal-img img { transform: scale(1.18); transition: transform 1.8s var(--ease-slow); }
.js .reveal-img.is-visible { clip-path: inset(0); }
.js .reveal-img.is-visible img { transform: none; }

/* Boutons et liens */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--color-ink-black); border-color: var(--color-ink-black); color: var(--color-pristine-surface); }
.btn--primary { background: var(--color-navy); border-color: var(--color-navy); color: #fff; border-radius: var(--radius-full); padding: 15px 28px; }
.btn--primary:hover { background: var(--color-navy-deep); border-color: var(--color-navy-deep); color: #fff; }
.btn--ghost-light { color: var(--color-on-night); border-color: rgba(236, 232, 223, .4); border-radius: var(--radius-full); }
.btn--ghost-light:hover { background: var(--color-on-night); color: var(--color-night); border-color: var(--color-on-night); }

/* Lien souligné : le trait s'allonge au survol */
.link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 36% 1px no-repeat;
  transition: background-size .6s var(--ease);
  cursor: pointer;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link--light { color: var(--color-on-night); }

.magnetic { transform: translate(var(--mx, 0), var(--my, 0)); transition: transform .4s var(--ease), background .3s, border-color .3s; }

.icon-btn {
  width: 46px; height: 46px;
  border-radius: var(--radius-full);
  border: 1px solid currentColor;
  background: transparent;
  display: grid; place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.icon-btn:hover { background: var(--color-ink-black); color: var(--color-pristine-surface); border-color: var(--color-ink-black); }

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--color-pristine-surface);
  color: var(--color-ink-black);
}

:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 3px; }

/* Bandeau professionnels */
.probar {
  height: var(--probar-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-night);
  color: rgba(236, 232, 223, .78);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-align: center;
  padding: 0 16px;
}
.probar a { color: var(--color-on-night); text-underline-offset: 4px; }

/* Navigation : transparente sur la photo d'ouverture, verre dépoli après défilement */
.nav {
  position: fixed;
  top: var(--probar-h); left: 0; right: 0;
  z-index: 50;
  padding: 0 calc(var(--gutter) + 12px);
  color: var(--color-on-night);
  transition: top .5s var(--ease), background .5s, color .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  top: 0;
  color: var(--color-ink-black);
  background: rgba(235, 234, 223, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--color-line);
}
.nav__bar { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: grid; text-decoration: none; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; white-space: nowrap; line-height: 1.2; }
.brand small { font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .16em; opacity: .7; margin-top: 3px; }
/* Logo (n° 25 D) : « Fabre » italique, « Dubus » droit, iris bleu au bout d'une tige peinte. Le nom suit la couleur du texte */
.brand { justify-items: center; text-transform: none;
  --logo-s1: #6f86d6; --logo-s2: #a9b8ef; --logo-f1: #1d2f7a; --logo-f2: #3550b0; --logo-stem: #3f5a3a; }
.brand__logo { display: block; height: 34px; width: auto; overflow: visible; }
.brand__logo text { fill: currentColor; letter-spacing: 0; }
.brand small { text-transform: uppercase; }
/* Sur fond sombre (photo d'ouverture, menu mobile, pied de page) : bleus et vert plus clairs */
.nav:not(.is-scrolled) .brand, .nav.is-open .brand, .footer__inner .brand {
  --logo-s1: #c3cef4; --logo-s2: #e4e9fb; --logo-f1: #8ea1e0; --logo-f2: #a9b8ef; --logo-stem: #8fae7c; }
.footer__inner .brand { justify-items: start; }
.footer__inner .brand__logo { height: 42px; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.nav__links a:hover { background-size: 100% 1px; }
.nav__cta { padding: 11px 20px; font-size: 11px; }
.nav__toggle { display: none; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: var(--radius-full); background: transparent; cursor: pointer; position: relative; z-index: 2; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 26px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Ouverture */
.hero { margin-top: 0; padding: 10px clamp(10px, 1.2vw, 18px) 0; }
.hero__frame {
  position: relative;
  height: calc(100svh - var(--probar-h) - 20px);
  min-height: 600px;
  max-height: 1000px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-night);
  color: var(--color-on-night);
}
.hero__slides { position: absolute; inset: -8% 0; will-change: transform; }
.hero__slides img, .hero__slides video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.8s ease, transform 9s linear;
}
.hero__slides .is-active { opacity: 1; transform: scale(1); }
.hero__frame::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20, 18, 15, .82) 0%, rgba(20, 18, 15, .25) 52%, rgba(20, 18, 15, .45) 100%),
    radial-gradient(120% 80% at 80% 20%, rgba(255, 220, 180, .12), transparent 60%);
  pointer-events: none;
}
.hero__content {
  position: absolute; z-index: 2;
  left: clamp(24px, 5vw, 80px); right: clamp(24px, 5vw, 80px); bottom: clamp(88px, 12vh, 132px);
  max-width: 1080px;
}
.hero h1 { font-size: clamp(46px, 7.4vw, 116px); line-height: .98; letter-spacing: -0.04em; max-width: 13ch; color: #fff; }
/* Pages marque : le logo officiel de l'usine à la place du nom, passé en blanc sur la photo */
.hero__logo { display: block; height: clamp(56px, 8vw, 120px); width: min(560px, 78vw); object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.hero__lead { margin-top: 26px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; max-width: 52ch; color: rgba(236, 232, 223, .82); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.hero__foot {
  position: absolute; z-index: 2;
  left: clamp(24px, 5vw, 80px); right: clamp(24px, 5vw, 80px); bottom: 26px;
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(236, 232, 223, .22);
}
.hero__foot .label { margin: 0; }
.hero__caption { transition: opacity .6s; }

/* Notre rôle */
.manifesto { position: relative; }
.manifesto .display { font-size: clamp(34px, 4.6vw, 66px); line-height: 1.06; max-width: 22ch; }
/* Le point après « Nord » devient une balle qui rebondit sur le trait des colonnes (script.js) */
.manifesto__ball { position: absolute; left: 0; top: 0; border-radius: 50%; background: var(--color-ink-black); pointer-events: none; opacity: 0; z-index: 1; }
.manifesto__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(80px, 13vw, 200px); } /* hauteur de chute de la balle */
.manifesto__cols article { border-top: 1px solid var(--color-line); padding-top: 24px; }
.manifesto__cols article:nth-child(2) { transition-delay: .1s; }
.manifesto__cols article:nth-child(3) { transition-delay: .2s; }
.manifesto__cols h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 12px; }
.manifesto__cols p { color: var(--color-ink-soft); }

/* Méthode : trois étapes numérotées */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 4vw, 64px); }
.steps li { position: relative; display: flex; flex-direction: column; padding-top: 20px; transition-delay: var(--d, 0s); }
.steps__photo { margin: 0 0 24px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--color-sand-beige); }
.steps__photo img { width: 100%; height: 100%; object-fit: cover; }
.steps__body { flex: 1; display: flex; flex-direction: column; }
.steps__cta { align-self: flex-start; margin-top: auto; } /* boutons alignés en bas des trois colonnes */
.wheel__photos, .wheel__rail { display: none; }
/* Grand écran : roulette verticale (script.js). La scène reste fixe, l'étape en cours est nette au centre,
   les autres floutées au-dessus et en dessous ; à droite la photo de l'étape monte en rideau */
@media (min-width: 761px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .wheel { height: 300vh; }
  .wheel__stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 64px; }
  .wheel__grid { width: 100%; display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
  .wheel .section-head { margin-bottom: 0; }
  .wheel__drum { position: relative; margin-top: clamp(8px, 3vh, 32px); height: min(48vh, 440px); perspective: 900px; -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); }
  .wheel__rail { display: block; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px; background: var(--color-line); }
  .wheel__rail::after { content: ''; position: absolute; inset: 0; background: var(--color-navy); transform-origin: top; transform: scaleY(var(--p, 0)); }
  .wheel__list { display: block; position: absolute; inset: 0; }
  .wheel .wheel__list li { position: absolute; left: clamp(28px, 3vw, 48px); right: 0; top: 50%; padding: 0; transition: none; will-change: transform, filter, opacity; }
  .wheel__list li::before, .wheel .steps__photo, .wheel .steps__ico { display: none; }
  .wheel .steps__body { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(20px, 2.4vw, 40px); align-items: start; }
  .wheel .steps__top { grid-row: span 3; margin: 0; }
  .wheel .steps__n { font-size: clamp(80px, 7.5vw, 120px); }
  .wheel .steps h3 { font-size: clamp(26px, 2.4vw, 38px); margin: .3em 0 12px; }
  .wheel .steps p, .wheel .steps__cta { opacity: var(--o, 1); }
  .wheel .steps p { margin-bottom: 22px; max-width: 36ch; font-size: 17px; }
  .wheel .steps__cta { margin-top: 0; justify-self: start; }
  .wheel__photos { display: block; position: relative; width: 100%; aspect-ratio: 3 / 2; max-height: 72vh; border-radius: var(--radius); overflow: hidden; background: var(--color-sand-beige); }
  .wheel__shot { position: absolute; inset: 0; margin: 0; clip-path: inset(var(--clip, 0%) 0 0 0); }
  .wheel__shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); }
  .wheel__shot figcaption, .wheel__count { position: absolute; bottom: 22px; color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
  .wheel__shot figcaption { left: 26px; font: 400 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
  .wheel__count { right: 26px; margin: 0; display: flex; align-items: baseline; gap: 10px; }
  .wheel__digits { display: block; height: 1.05em; overflow: hidden; font: italic 300 60px/1.05 var(--font-serif); }
  .wheel__digits span { display: block; transform: translateY(calc(var(--f, 0) * -100%)); } /* compteur qui roule */
  .wheel__count small { font: 400 11px var(--font-mono); letter-spacing: .16em; }
}
.steps p { margin-bottom: 28px; }
.steps__cta span { transition: transform .3s var(--ease); }
.steps__cta:hover span { transform: translateX(4px); }
/* le trait du haut se dessine de gauche à droite, puis le chiffre monte de dessous et le picto se trace */
.steps li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--color-line); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) var(--d, 0s); }
.steps li.is-visible::before { transform: none; }
.steps__top { display: flex; align-items: flex-end; justify-content: space-between; overflow: hidden; padding-right: .12em; margin-bottom: 16px; }
.steps__n { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: clamp(64px, 7vw, 104px); line-height: 1; transform: translateY(105%); transition: transform 1s var(--ease) calc(var(--d, 0s) + .35s); }
.steps li.is-visible .steps__n { transform: none; }
.steps__ico { width: 34px; height: 34px; margin-bottom: 12px; overflow: visible; fill: none; stroke: var(--color-ink-black); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.steps__ico path, .steps__ico circle { stroke-dasharray: 1 2; stroke-dashoffset: 1.1; /* pas de point rond avant le tracé */ transition: stroke-dashoffset 1.4s var(--ease) calc(var(--d, 0s) + .7s); }
.steps li.is-visible .steps__ico path, .steps li.is-visible .steps__ico circle { stroke-dashoffset: 0; }
/* ensuite, chaque picto vit doucement : le téléphone sonne, l'épingle flotte, les maillons se rapprochent */
.steps li.is-visible .steps__wave { animation: steps-wave 2.6s ease-in-out 2.4s infinite; }
.steps li.is-visible .steps__wave + .steps__wave { animation-delay: 2.65s; }
.steps li.is-visible .steps__bob { animation: steps-bob 3.2s ease-in-out 2.4s infinite; }
.steps li.is-visible .steps__shadow { transform-box: fill-box; transform-origin: center; animation: steps-shadow 3.2s ease-in-out 2.4s infinite; }
.steps li.is-visible .steps__half--a { animation: steps-link-a 3.6s ease-in-out 2.6s infinite; }
.steps li.is-visible .steps__half--b { animation: steps-link-b 3.6s ease-in-out 2.6s infinite; }
@keyframes steps-wave { 0%, 60%, 100% { opacity: 1; } 30% { opacity: .15; } }
@keyframes steps-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }
@keyframes steps-shadow { 0%, 100% { transform: none; } 50% { transform: scaleX(.6); } }
@keyframes steps-link-a { 0%, 70%, 100% { transform: none; } 35% { transform: translate(1.2px, -1.2px); } }
@keyframes steps-link-b { 0%, 70%, 100% { transform: none; } 35% { transform: translate(-1.2px, 1.2px); } }
.steps h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 12px; }
.steps p { color: var(--color-ink-soft); }

/* Showroom 3D */
.showroom {
  position: relative;
  height: clamp(420px, 62vw, 680px);
  border-radius: var(--radius);
  overflow: hidden;
  /* Studio photo : papier clair au centre, plus soutenu vers les bords */
  background: radial-gradient(ellipse 75% 70% at 50% 55%, #f4f2ea 0%, #e8e3d7 55%, #d9d1c2 100%);
}
.showroom canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.showroom__pins { position: absolute; inset: 0; pointer-events: none; }
.pin {
  position: absolute; top: 0; left: 0;
  display: flex; align-items: center; gap: 6px;
  margin: -14px 0 0 -14px;
  padding: 0;
  border: 0; background: none;
  pointer-events: auto;
  cursor: pointer;
}
.pin b {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  display: grid; place-items: center;
  background: var(--color-pristine-surface);
  color: var(--color-ink-black);
  font-size: 13px;
  position: relative;
  transition: background .2s, color .2s;
}
/* Halo qui s'élargit : animé en transform et opacity (pas de repeinture à chaque image) */
.pin b::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: rgba(31,47,92,.55);
  animation: pulse 2.4s infinite;
}
.pin span {
  background: var(--color-pristine-surface);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .2s, transform .2s;
}
.pin:hover b, .pin.is-active b { background: var(--color-navy); color: #fff; }
.pin:hover span, .pin.is-active span { opacity: 1; transform: none; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(1.86); opacity: 0; }
}
.showroom__tip {
  position: absolute; top: 0; left: 0;
  pointer-events: none;
  background: var(--color-night);
  color: var(--color-on-night);
  border-radius: var(--radius);
  padding: 10px 14px;
  max-width: 240px;
  font-size: 13px;
  display: grid; gap: 2px;
}
.showroom__tip b { font-size: 15px; font-weight: 500; }
.showroom__tip span { opacity: .8; }
.showroom__tip[hidden] { display: none; }
.showroom__hint {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--color-pristine-surface);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  pointer-events: none;
  transition: opacity .4s;
}
.showroom__hint.is-hidden { opacity: 0; }
.showroom__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.showroom__fallback[hidden] { display: none; }
.showroom__legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.showroom__legend button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-line);
  background: transparent;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.showroom__legend b {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-ink-black); color: var(--color-pristine-surface);
  font-size: 11px; font-weight: 500;
}
.showroom__legend button:hover, .showroom__legend button.is-active { background: var(--color-ink-black); border-color: var(--color-ink-black); color: var(--color-pristine-surface); }
.showroom__legend button:hover b, .showroom__legend button.is-active b { background: var(--color-navy); color: #fff; }

/* Sections nuit */
.night {
  background: var(--color-night);
  color: var(--color-on-night);
  padding: clamp(96px, 14vh, 168px) 0;
}
.night, .atelier__stage.is-night { --color-navy: #5a74b8; --color-navy-deep: #6c86c9; } /* le marine ne se voit pas sur fond nuit */
.night h2 { color: #fff; }
.night .section-head p { color: rgba(236, 232, 223, .68); }

/* La matière : deux suspensions Masiero (matiere.js) s'allument et éclairent les échantillons via --light */
.matter { --light: 0; position: relative; overflow: hidden; }
.matter__lamps {
  position: absolute; top: 0; right: max(16px, 4vw);
  width: min(44vw, 620px); height: clamp(420px, 44vw, 640px);
  pointer-events: none;
}
.matter .wrap { position: relative; }
/* Titre-néon : --neon (matiere.js) va de 0,12 (grésille) à 1 (allumé avec halo chaud) */
.matter h2 {
  --neon: 1;
  color: rgb(255 246 234 / calc(.22 + var(--neon) * .78));
  text-shadow: 0 0 calc(var(--neon) * 14px) rgb(255 196 140 / calc(var(--neon) * .55)), 0 0 calc(var(--neon) * 42px) rgb(255 160 90 / calc(var(--neon) * .3));
}
.books { position: relative; height: clamp(580px, 46vw, 800px); margin-top: 24px; }
.books canvas { position: absolute; inset: 0; width: 100%; height: 100%; 
  /* bords en fondu : le halo ne forme jamais de barre là où la zone 3D s'arrête */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
/* Pendant l'ouverture d'un livre, le canvas est déplacé dans <body> et couvre tout l'écran */
.books-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1000; }
.books__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; padding: 0; list-style: none; }
/* Mention sous l'introduction : clic droit à la souris, appui long sur écran tactile */
.section-head .books-hint { max-width: none; margin-top: 12px; font: 400 12px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(236, 232, 223, .7); } /* .reveal gère déjà l’opacité */
.books-hint__touch { display: none; }
@media (hover: none) { .books-hint__mouse { display: none; } .books-hint__touch { display: inline; } }
.books canvas { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } /* appui long : pas de loupe ni de menu iOS */
/* Clic droit sur un catalogue 3D : menu « Télécharger », puis fenêtre après le scan du code-barres (catalogues.js) */
.books-menu { position: fixed; z-index: 1100; min-width: 230px; padding: 6px; background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(20, 18, 15, .35); animation: rise .25s var(--ease); }
.books-menu__title { margin: 0; padding: 8px 10px 6px; font: 400 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--color-ink-soft); }
.books-menu__item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: 100%; padding: 10px; border: 0; border-radius: 3px; background: none; font: 400 15px/1.2 var(--font-main); color: var(--color-ink-black); text-align: left; cursor: pointer; }
.books-menu__item span { font: 400 11px/1 var(--font-mono); color: var(--color-ink-soft); }
.books-menu__item:hover, .books-menu__item:focus-visible { background: var(--color-navy); color: #fff; outline: none; }
.books-menu__item:hover span, .books-menu__item:focus-visible span { color: rgba(255, 255, 255, .75); }
.dl-modal { width: min(480px, calc(100% - 32px)); margin: auto auto 5vh; padding: 28px 30px 26px; border-radius: var(--radius); background: var(--color-paper); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.dl-modal[open] { animation: rise .45s var(--ease); }
.dl-modal::backdrop { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; } /* le voile vient déjà du canvas : le livre reste net */
.dl-modal h3 { margin: 10px 0 6px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.dl-modal__meta { margin: 0; color: var(--color-ink-soft); font-size: 15px; }
.dl-modal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 22px; }
.dl-modal button.link { border: 0; font-family: inherit; color: var(--color-ink-black); background-color: transparent; }


/* Inclinaison 3D avec reflet sur l'image */
.tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
  position: relative;
}
.tilt.is-tilting { transition: transform .1s linear; }
.tilt::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 246, 232, .42), transparent 50%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .4s;
}
.tilt.is-tilting::after { opacity: 1; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Secteur */
.sector {
  display: grid;
  grid-template-columns: .9fr 1.3fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.sector .section-head h2 { font-size: clamp(38px, 4vw, 58px); }
.dept-info {
  display: flex; align-items: center; gap: 20px;
  border-top: 1px solid var(--color-line);
  padding-top: 24px;
  max-width: 440px;
}
.dept-info__num { font-family: var(--font-serif); font-style: italic; font-size: 72px; line-height: .9; color: var(--color-navy); min-width: 80px; }
.dept-info b { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.dept-info small { color: var(--color-ink-soft); font-size: 14px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; padding: 0; }

/* Carte 3D du secteur (carte3d.js) : inclinée au repos, vue de dessus au survol */
.sector-map { position: relative; width: 100%; aspect-ratio: 1.12; }
.sector-map canvas, .sector-map__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.sector-map canvas { cursor: pointer; }
.sector-map__lines { pointer-events: none; overflow: visible; }
.sector-map__lines line { stroke: var(--color-ink-black); stroke-opacity: .45; stroke-width: 1; }
.sector-map__labels { position: absolute; inset: 0; pointer-events: none; }
.sector-label {
  position: absolute; transform: translate(-50%, -50%);
  background: none; border: 0; padding: 4px 8px; cursor: pointer; pointer-events: auto;
  font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(24px, 2.6vw, 38px); line-height: 1;
  color: var(--color-ink-black);
  transition: color .3s, font-size .3s;
}
.sector-label.is-active { color: var(--color-navy); font-size: clamp(30px, 3.4vw, 48px); }
.sector-map__hint { position: absolute; left: 0; bottom: 0; margin: 0; opacity: .7; }
/* Étiquette de l'épingle de l'agence (Lille, épingle 3D dans carte3d.js), à gauche de la tête : le trait du « 59 » passe à droite */
.sector-pin {
  position: absolute; transform: translate(calc(-100% - 14px), -50%); pointer-events: none;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; white-space: nowrap; color: var(--color-ink-black);
  text-shadow: 0 0 2px var(--color-paper), 0 0 6px var(--color-paper), 0 0 10px var(--color-paper); /* lisible aussi sur le Nord en bleu marine */
}

.tilemap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 480px;
  width: 100%;
  justify-self: center;
}
.tile {
  aspect-ratio: 1;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .3s, color .3s, transform .4s var(--ease), border-color .3s;
}
button.tile:hover { transform: translateY(-3px); border-color: var(--color-ink-black); }
.tile b { font-size: 30px; font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.tile span { font-size: 11px; color: var(--color-ink-soft); line-height: 1.2; }
.tile.is-active { background: var(--color-night); border-color: var(--color-night); color: var(--color-on-night); }
.tile.is-active span { color: rgba(236, 232, 223, .7); }
.tile--empty { background: transparent; border-color: transparent; cursor: default; }

/* Équipe */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.person { display: flex; gap: 28px; align-items: flex-start; border-top: 1px solid var(--color-line); padding-top: 28px; }
.person:nth-child(2) { transition-delay: .1s; }
.person__initials {
  flex: none;
  width: 104px; height: 104px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-style: italic; font-size: 40px;
}
.person h3 { font-size: 26px; font-weight: 400; }
.person__role { color: var(--color-ink-soft); margin: 4px 0 18px; }
.person__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* Contact */
.contact-wrap { margin-bottom: 0; }
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); }
.contact h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; }
.contact__intro > p:not(.label) { margin-top: 24px; font-size: 18px; max-width: 42ch; color: rgba(236, 232, 223, .72); }
.contact__phone {
  display: inline-block; margin-top: 40px;
  font-size: clamp(30px, 3vw, 44px); font-weight: 300; letter-spacing: -0.02em;
  text-decoration: none;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}

.contact__form { display: grid; gap: 26px; align-content: start; }
.contact__form fieldset { border: 0; padding: 0; margin: 0; }
.contact__form legend, .field > span {
  display: block; padding: 0; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(236, 232, 223, .62);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field input, .field select {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(236, 232, 223, .28);
  border-radius: 0;
  background: transparent;
  color: var(--color-on-night);
  transition: border-color .3s;
}
.field select option { color: var(--color-ink-black); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--color-on-night); }
.field input.is-invalid { border-bottom-color: var(--color-navy); }

.choice, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend, .chips legend { width: 100%; }
.choice label, .chips label { position: relative; cursor: pointer; }
.choice input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.choice span, .chips span {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(236, 232, 223, .3);
  font-size: 14px;
  transition: background .25s, color .25s, border-color .25s;
}
.chips span { font-size: 13px; padding: 7px 14px; }
.choice input:checked + span { background: var(--color-on-night); border-color: var(--color-on-night); color: var(--color-night); }
.chips input:checked + span { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.choice input:focus-visible + span, .chips input:focus-visible + span { outline: 2px solid var(--color-navy); outline-offset: 2px; }
.contact__form .btn { justify-self: start; }
.form-note { font-size: 13px; color: rgba(236, 232, 223, .55); }
.field textarea { width: 100%; font: inherit; font-size: 17px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(236, 232, 223, .28); border-radius: 0; background: transparent; color: var(--color-on-night); resize: vertical; }
.field textarea:focus { outline: none; border-bottom-color: var(--color-on-night); }

/* Section particuliers, sous le contact des professionnels (même mise en page, titre plus petit) */
.perso-wrap { margin-top: 0; border-top: 1px solid rgba(236, 232, 223, .12); }
.perso-wrap h2 { font-size: clamp(34px, 4vw, 56px); }
.perso__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(236, 232, 223, .8); cursor: pointer; }
.perso__consent input { margin-top: 3px; accent-color: var(--color-navy); }

/* Pied de page (prolonge la section contact) */
.footer { padding: 0 0 48px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid rgba(236, 232, 223, .14);
  font-size: 14px;
}
.footer__inner p, .footer__inner li { color: rgba(236, 232, 223, .62); }
.footer__inner .brand { color: var(--color-on-night); margin-bottom: 14px; }
.footer__inner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__inner a { text-decoration: none; }
.footer__legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(236, 232, 223, .1); font-size: 12px; }

/* Page dédiée à une usine (<marque>.html, marque.js) */
.nav__back { margin-left: auto; white-space: nowrap; }
@media (max-width: 640px) {
  .brand-page .nav { padding: 0 var(--gutter); }
  .brand-page .nav__bar { gap: 16px; }
  .nav__back { font-size: 10px; letter-spacing: .04em; }
}
.brand-page .manifesto__cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 0; }
.manifesto__cols .brand-point { font-size: 21px; font-weight: 300; line-height: 1.45; color: var(--color-ink-black); }
.brand-gallery { columns: 3 280px; column-gap: 14px; }
.brand-gallery figure { break-inside: avoid; margin-bottom: 22px; }
.brand-gallery img { width: 100%; height: auto; border-radius: var(--radius); background: var(--color-sand-beige); }
.brand-gallery figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--color-muted); }
.brand-cta h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; max-width: 16ch; }
.brand-cta p:not(.label) { margin-top: 24px; font-size: 18px; max-width: 46ch; color: rgba(236, 232, 223, .72); }
.brand-cta .hero__actions { gap: 36px; }
.brand-cta .contact__phone { margin-top: 0; }
.brand-page .footer__inner { padding-top: 0; border-top: 0; }

/* Pages marque, les trois raisons racontées par une fabrication en trois étapes (atelier.js) : section fixe pendant le défilement,
   dessin à droite, étapes à gauche. Fond nuit pendant le soudage MIDJ (.is-night), papier sinon */
.atelier { position: relative; height: calc(100vh + 1100px); } /* 875 px de défilement (~2,5 tours de molette) pour l'animation, puis 225 px sur le carton fermé */
.atelier__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(280px, 1fr) 1.2fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  width: 100vw; margin-left: calc(50% - 50vw); padding: 90px max(var(--gutter), calc((100vw - var(--page-max-width)) / 2 + var(--gutter))) 40px;
  background: var(--color-paper); color: var(--color-ink-black);
  transition: background 1s var(--ease), color 1s var(--ease);
}
.atelier__stage.is-night { background: var(--color-night); color: var(--color-on-night); }
.atelier__stage.is-night .label, .atelier__stage.is-night .atelier__steps p { color: rgba(236, 232, 223, .62); }
.atelier__text h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; }
.atelier__steps { list-style: none; margin: clamp(28px, 5vh, 48px) 0 0; padding: 0; display: grid; gap: 22px; }
.atelier__steps li { display: grid; gap: 6px; opacity: .45; transition: opacity .5s, transform .5s var(--ease); }
.atelier__steps li.is-active { opacity: 1; transform: translateX(10px); }
.atelier__steps h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; }
.atelier__steps li.is-active h3 { font-weight: 500; }
.atelier__steps p { color: var(--color-ink-soft); transition: color 1s; }
.atelier__bar { height: 2px; margin-top: 6px; background: currentColor; opacity: .25; position: relative; }
.atelier__steps li.is-active .atelier__bar { opacity: 1; background: rgba(128, 122, 112, .3); }
.atelier__bar i { position: absolute; inset: 0; background: var(--color-navy); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
.atelier__svg { width: 100%; max-height: calc(100vh - 140px); overflow: visible; }
/* Le dessin */
.at-floor { fill: rgba(43, 41, 37, .12); transition: fill 1s; }
.is-night .at-floor { fill: rgba(125, 255, 158, .05); }
[data-brand="masiero"] .is-night .at-floor { fill: rgba(255, 210, 122, .06); }
[data-brand="kuizi"] .atelier__stage.is-night { background: #45484c; } /* gris anthracite : le tabouret blanc ressort (demandé par Adrian) */
[data-brand="kuizi"] .is-night .at-floor { fill: rgba(0, 0, 0, .22); }
.at-frame { fill: none; stroke: #6b655c; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 1s; }
.at-photo { clip-path: inset(100% 0 0 0); }
.is-night .at-frame { stroke: #d8d2c6; }
.at-spark { opacity: 0; mix-blend-mode: screen; }
.at-spark__bits line { stroke: #c9ffd5; stroke-width: 1.4; stroke-linecap: round; }
.at-spark__halo { animation: at-flicker .09s steps(2) infinite; }
@keyframes at-flicker { 50% { opacity: .75; } }
.at-box-back rect { fill: #a98149; }
.at-box-back { opacity: 0; }
.at-panel { fill: url(#at-flute); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, .15)); }
.at-print { opacity: 0; }
.at-print text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em; fill: #3a2e20; }
.at-print .at-print__name { font-family: var(--font-main); font-weight: 500; letter-spacing: .16em; }
.at-print path { fill: none; stroke: #3a2e20; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.at-print .at-print__logo { fill: #3a2e20; }
.at-flap { fill: #bd935c; stroke: #a98149; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.at-tape { fill: rgba(232, 214, 178, .92); transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
/* Téléphone et tablette en hauteur : dessin en haut, qui prend toute la place laissée par le texte
   (atelier.js le recadre sur l'objet avec la même requête) */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .atelier__stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; gap: 12px; padding-top: 84px; padding-bottom: 24px; }
  .atelier__svg { order: -1; width: 100%; height: 100%; min-height: 0; max-height: none; overflow: hidden; }
  .atelier__steps li.is-active { transform: none; }
}
/* Téléphone : seule l'étape en cours, les trois dans la même case pour que le dessin ne change pas de taille d'une étape à l'autre */
@media (max-width: 760px) {
  .atelier__text h2 { font-size: 28px; }
  .atelier__steps { margin-top: 12px; gap: 0; }
  .atelier__steps li { grid-area: 1 / 1; visibility: hidden; }
  .atelier__steps li.is-active { visibility: visible; }
  .atelier__steps h3 { font-size: 24px; }
  .atelier__text > .label { margin-bottom: 8px; }
}
/* Téléphone couché : deux colonnes basses, seule l'étape en cours */
@media (orientation: landscape) and (max-height: 520px) {
  .atelier__stage { grid-template-columns: 1fr 1fr; padding-top: 64px; padding-bottom: 12px; gap: 24px; }
  .atelier__svg { height: 100%; max-height: calc(100svh - 76px); overflow: hidden; }
  .atelier__text h2 { font-size: 24px; }
  .atelier__text > .label { margin-bottom: 4px; }
  .atelier__steps { margin-top: 10px; gap: 0; }
  .atelier__steps li { grid-area: 1 / 1; visibility: hidden; }
  .atelier__steps li.is-active { visibility: visible; transform: none; }
  .atelier__steps h3 { font-size: 20px; }
}

/* Bouton de rendez-vous fixe (mobile) */
.mobile-cta { display: none; }

/* Fiche usine et visionneuse */
dialog { border: 0; padding: 0; color: var(--color-ink-black); }
dialog::backdrop { background: rgba(20, 18, 15, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal {
  width: min(960px, calc(100% - 32px));
  border-radius: var(--radius);
  background: var(--color-paper);
}
.modal[open] { animation: rise .5s var(--ease); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 1; background: var(--color-pristine-surface); border-color: var(--color-line); }
.modal__close:hover, .lightbox .icon-btn:hover { background: var(--color-ink-black); color: var(--color-pristine-surface); }
.modal__grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.modal__visual { position: relative; background: var(--color-warm-canvas); min-height: 460px; overflow: hidden; }
/* La photo s'affiche en entier au-dessus de la rangée de vignettes (68 px), sans être recadrée */
.modal__stage { position: absolute; inset: 0 0 68px; display: grid; place-items: center; cursor: zoom-in; }
.modal__stage img, .modal__stage svg { width: 100%; height: 100%; object-fit: contain; }
.modal__stage.is-swapping { animation: fade .5s var(--ease); }
.modal__visual .badge { position: absolute; top: 16px; left: 16px; }
.modal__thumbs { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.modal__thumbs::-webkit-scrollbar { display: none; }
.thumb {
  flex: none;
  width: 58px; height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  background: var(--color-pristine-surface);
  cursor: pointer;
  opacity: .6;
  transition: opacity .3s, border-color .3s, transform .3s;
}
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.is-active { border-color: var(--color-ink-black); opacity: 1; }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__body { padding: 56px 40px 40px; display: flex; flex-direction: column; gap: 14px; }
.modal__body h3 { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.05; }
.modal__products { color: var(--color-ink-soft); font-size: 17px; }
.modal__body ul { margin: 10px 0; padding: 0; list-style: none; display: grid; gap: 0; }
.modal__body li { padding: 12px 0 12px 22px; position: relative; border-top: 1px solid var(--color-line); }
.modal__body li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-navy); }
.modal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: auto; padding-top: 12px; }
.factory__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.factory__meta span {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--color-muted);
  padding: 4px 9px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.lightbox { background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox figure { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 72px; }
.lightbox img { max-height: calc(100vh - 200px); width: auto; border-radius: var(--radius); }
.lightbox figcaption {
  background: var(--color-pristine-surface); border-radius: var(--radius); padding: 8px 14px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
}
.lightbox .icon-btn { position: absolute; background: var(--color-pristine-surface); border-color: var(--color-pristine-surface); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; }
.lightbox__next { right: 16px; top: 50%; }

/* Responsive */
@media (max-width: 1080px) {
  .books { height: 720px; }
  /* la taille des lampes suit la hauteur du canvas : on la garde proche de celle du grand écran */
  .matter__lamps { position: relative; right: auto; display: block; width: 100%; height: clamp(380px, 62vw, 580px); margin: calc(-1 * clamp(96px, 14vh, 168px)) 0 8px; }
  .nav__links { gap: 20px; }
}
@media (max-width: 980px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav nav { margin: 0; }
  .nav__links {
    display: flex;
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 22px;
    padding: 0 32px;
    background: var(--color-night);
    color: var(--color-on-night);
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav__links a { font-family: var(--font-main); font-size: 34px; font-weight: 300; text-transform: none; letter-spacing: -0.03em; }
  .nav.is-open { color: var(--color-on-night); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open .brand { position: relative; z-index: 2; }

  .manifesto__cols, .team, .steps { grid-template-columns: 1fr; }
  .sector, .contact { grid-template-columns: 1fr; }
  .sector-map { aspect-ratio: 1; }
  .modal__grid { grid-template-columns: 1fr; }
  .modal__visual { min-height: 0; aspect-ratio: 4 / 3; }
  .modal__body { padding: 32px 24px 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer { padding-bottom: 110px; }

  .mobile-cta {
    display: flex; gap: 8px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    padding: 6px;
    border-radius: var(--radius-full);
    background: rgba(28, 27, 25, .9);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transition: transform .5s var(--ease), opacity .5s;
  }
  .mobile-cta .btn { flex: 1; padding: 13px 12px; }
  .mobile-cta.is-hidden { transform: translateY(140%); opacity: 0; }
}
@media (max-width: 640px) {
  .probar { font-size: 10px; letter-spacing: .08em; }
  .probar__more { display: none; }
  .mobile-cta .btn { font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
  .hero__frame { min-height: 560px; }
  .hero__content { bottom: 96px; }
  .hero__actions { gap: 20px; }
  .hero__foot .hero__caption { display: none; }
  .books { height: 145vw; } /* la largeur limite déjà la taille des livres : moins de vide au-dessus */
  .field-row { grid-template-columns: 1fr; }
  .person { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; }
  .tile { padding: 8px; }
  .tile b { font-size: 22px; }
  .tile span { display: none; }
  .lightbox figure { padding: 64px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .split .w > span { transform: none; }
  .js .reveal-img { clip-path: none; }
  .js .reveal-img img { transform: none; }
  .hero__slides img { transform: none; }
  .steps li::before, .steps__n { transform: none; }
  .steps__ico path, .steps__ico circle { stroke-dashoffset: 0; }
}

/* Page Mentions légales : texte simple sur fond papier, sous la navigation fixe */
.legal { max-width: 760px; padding-top: 150px; padding-bottom: 96px; }
.legal h1 { font-weight: 300; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; margin: 14px 0 48px; }
.legal section { margin-top: 0; padding: 28px 0; border-top: 1px solid rgba(43, 41, 37, .12); }
.legal h2 { font-weight: 400; font-size: 20px; margin: 0 0 12px; }
.legal p { color: var(--color-ink-soft); line-height: 1.7; margin: 0 0 12px; }
.legal a { color: inherit; text-underline-offset: 3px; }
