/* ==========================================================================
   JMP PEINTURE · Peinture & Sols Souples · La Réunion
   Charte : logo principal couleur (marine #123A6B + orange pinceau #EF8A22)
   ========================================================================== */

:root {
  /* Palette construite sur la roue chromatique
     Axe complémentaire de la marque : marine 213° / orange 30° (183° d'écart, quasi opposés).
     Côté froid, analogues du marine : lagon 194°, ardoise 214°, pandanus 160°.
     Côté chaud, analogues de l'orange : vanille 43°, terre 18°.
     Neutres teintés : chaux et sable (chauds, 38-42°) pour les fonds, encre marine (214°) pour le texte.
     Camaïeu d'orange : vif pour les aplats et les fonds sombres, brûlé pour le texte sur fond clair (contraste 4,8:1).
     Dosage 60 / 30 / 10 : 60 % neutres, 30 % marine, 10 % orange réservé à l'action. */
  --navy: #123A6B;
  --navy-deep: #0C2A50;
  --navy-ink: #071B36;
  --heading: var(--navy);      /* couleur des titres et libellés (le marine reste la couleur des fonds) */
  --orange: #EF8A22;
  --orange-deep: #D9741A;
  --orange-soft: #FBE3C8;
  --orange-text: #A8560C;
  --lagon: #2E7C93;
  --ardoise: #3D5A80;
  --pandanus: #3F7F6A;
  --vanille: #E7D3A1;
  --terre: #B5562E;
  --basalte: #33373D;
  --chaux: #F6F3EE;
  --sand: #ECE5D9;
  --paper: #FFFFFF;
  --ink: #0F2440;
  --muted: #56657A;
  --line: rgba(18, 58, 107, .14);
  --line-light: rgba(255, 255, 255, .18);

  /* Typographie : Bricolage Grotesque (titres, caractère du logo), Figtree (lecture), Instrument Serif italique (accents éditoriaux) */
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(15,36,64,.06), 0 8px 24px -10px rgba(15,36,64,.18), 0 30px 60px -30px rgba(15,36,64,.22);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--chaux);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4, .h-display, .h1, .h2, .h3, .pledge__v, .tints__name, .marquee__row, .svc__num, .trades__count,
.manifesto, .law__name, .step .h3, .trade .h3, .pillar h3, .claims__steps h4, .value h3, .org h3, .zone h3,
.work__cap h3, .pains h3, .assur strong, .method li::before, .method h3, .compare th, .logos b, .btn {
  font-family: var(--font-display);
}
h1 em, h2 em, h3 em, .h-display em, .h1 em, .h2 em, .h3 em, .manifesto em {
  font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -.005em;
}
.accent em, .hero__title em { color: inherit; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: 12.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--orange-text);
}
[data-dark] .eyebrow, .on-dark .eyebrow { color: var(--orange); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.h-display {
  font-weight: 800; font-stretch: 100%;
  font-size: clamp(42px, 7.4vw, 112px);
  line-height: .95; letter-spacing: -.032em; margin: 0; text-wrap: balance;
}
.h1 { font-weight: 800; font-size: clamp(36px, 5.4vw, 76px); line-height: 1; letter-spacing: -.028em; margin: 0; text-wrap: balance; }
.h2 { font-weight: 800; font-size: clamp(29px, 3.9vw, 52px); line-height: 1.06; letter-spacing: -.022em; margin: 0; text-wrap: balance; }
.h3 { font-weight: 650; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.lead { font-size: clamp(17.5px, 1.45vw, 20px); line-height: 1.6; color: var(--muted); max-width: 48ch; text-wrap: pretty; }
p { text-wrap: pretty; }
.on-dark .lead, .lead.on-dark { color: rgba(255,255,255,.74); }
.accent { color: var(--orange); }
.wide { font-stretch: 125%; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; }

/* Trait de pinceau sous un mot */
.stroke { position: relative; white-space: nowrap; z-index: 0; }
.stroke::after {
  content: ""; position: absolute; left: -4%; right: -6%; bottom: -.06em; height: .42em; z-index: -1;
  background: url("../img/pinceau.png") center / 100% 100% no-repeat;
  transform-origin: left; transform: scaleX(0);
  animation: brush 1.1s .5s var(--ease) forwards;
}
.stroke.in-view::after, .reveal.in-view .stroke::after { animation-play-state: running; }
@keyframes brush { to { transform: scaleX(1); } }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--orange); --fg: var(--navy-ink);
  display: inline-flex; align-items: center; gap: .75em;
  padding: 16px 26px; border: 0; border-radius: 40px;
  background: var(--bg); color: var(--fg);
  font-weight: 650; font-size: 15.5px; letter-spacing: .005em; text-decoration: none;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy-ink);
  transform: translateX(-101%); transition: transform .45s var(--ease);
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: none; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost::before { background: var(--orange); }
.btn--ghost:hover { color: var(--navy-ink); }
.btn--navy { --bg: var(--navy); --fg: #fff; }
.btn--navy::before { background: var(--orange); }
.btn--navy:hover { color: var(--navy-ink); }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, transform .4s var(--ease);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; position: relative; width: 132px; height: 52px; flex: none; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .3s; }
.brand .logo-color { opacity: 0; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; letter-spacing: .02em;
  position: relative; padding: 6px 0; transition: color .3s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 12px 20px; font-size: 14px; color: var(--navy-ink); }
.nav .btn:hover { color: #fff; }

.header.is-solid { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header.is-solid .logo-white { opacity: 0; }
.header.is-solid .logo-color { opacity: 1; }
.header.is-solid .nav a:not(.btn) { color: var(--heading); }
.header.is-dark { background: rgba(7,27,54,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-light); }

.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; position: relative; color: #fff; }
.header.is-solid .burger { color: var(--heading); }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }

@media (max-width: 900px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--navy-ink); clip-path: circle(0 at calc(100% - 40px) 38px);
    transition: clip-path .6s var(--ease); visibility: hidden;
  }
  .nav a, .header.is-solid .nav a:not(.btn) { color: #fff; font-size: 30px; font-weight: 800; }
  .nav .btn { font-size: 16px; margin-top: 12px; }
  body.menu-open .nav { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
  body.menu-open .burger { color: #fff; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Volet de transition (coup de pinceau) ---------- */
.wipe { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
html:not(.js) .wipe { display: none; }
.wipe i { position: absolute; inset: 0; display: block; }
.wipe i:nth-child(1) { background: var(--orange); }
.wipe i:nth-child(2) { background: var(--navy-ink); }
.js .wipe i { clip-path: inset(0 0 0 0); animation: wipe-out .7s var(--ease) forwards; }
.js .wipe i:nth-child(1) { animation-delay: .12s; }
.wipe.is-leaving i { animation: wipe-in .5s var(--ease) forwards !important; clip-path: inset(0 100% 0 0); }
.wipe.is-leaving i:nth-child(2) { animation-delay: .1s !important; }
@keyframes wipe-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes wipe-in  { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal .stroke::after { animation-play-state: paused; }

/* ---------- Bandeau de page intérieure ---------- */
.page-hero {
  position: relative; background: var(--navy); color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + clamp(70px, 12vw, 150px)) 0 clamp(70px, 9vw, 120px);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .12; mix-blend-mode: overlay; }
.page-hero .brush-bg {
  position: absolute; right: -8%; bottom: -10%; width: min(70vw, 900px); opacity: .95;
  transform: translateY(calc(var(--p, 0) * 120px)) rotate(-4deg);
  clip-path: inset(0 100% 0 0); animation: reveal-brush 1.4s .45s var(--ease) forwards;
}
@keyframes reveal-brush { to { clip-path: inset(0 0 0 0); } }
.page-hero .container { position: relative; }
.crumbs { display: flex; gap: 10px; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 26px; }
.crumbs a { text-decoration: none; color: rgba(255,255,255,.85); }
.crumbs a:hover { color: var(--orange); }
.page-hero .h1 { max-width: 15ch; }
.page-hero .lead { margin-top: 26px; }

/* ---------- Sections génériques ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--white { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #fff; }
.section--ink { background: var(--navy-ink); color: #fff; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 80px); max-width: 760px; }
.section-head--split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
@media (max-width: 800px) { .section-head--split { grid-template-columns: 1fr; } }

/* ==========================================================================
   ACCUEIL · immersion au défilement
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--orange); transform-origin: left; transform: scaleX(var(--sp, 0)); }

/* 1 · Ouverture */
.hero { position: relative; height: 260vh; background: var(--navy); color: #fff; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.hero__sticky::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .14; mix-blend-mode: overlay; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px); background-size: 120px 120px; opacity: calc(.35 - var(--p, 0) * .35); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.hero__content {
  position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter);
  --out: clamp(0, calc((var(--p, 0) - .12) / .25), 1);
  opacity: calc(1 - var(--out)); transform: translateY(calc(var(--out) * -80px)) scale(calc(1 - var(--out) * .08));
}
.hero__content .eyebrow { justify-content: center; }
.hero__content .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero__title { margin-top: 26px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: line-up 1s var(--ease) forwards; animation-delay: calc(.55s + var(--i) * .12s); }
@keyframes line-up { to { transform: none; } }
.hero__sub { margin: 28px auto 0; max-width: 40ch; color: rgba(255,255,255,.76); font-size: clamp(17px, 1.5vw, 20px); opacity: 0; animation: fade 1s 1.1s forwards; }
@keyframes fade { to { opacity: 1; } }
.hero__cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fade 1s 1.3s forwards; }
.hero__brush {
  position: absolute; z-index: 1; left: 50%; top: calc(100% - 15vh); width: min(118vw, 1500px);
  --grow: clamp(0, calc((var(--p, 0) - .26) / .5), 1);
  transform: translate(-50%, calc(var(--grow) * -62vh)) rotate(calc(-5deg + var(--grow) * 5deg)) scale(calc(1 + var(--grow) * var(--grow) * 8));
  transform-origin: 50% 40%;
}
.hero__orange { position: absolute; inset: 0; z-index: 2; background: var(--orange); opacity: clamp(0, calc((var(--p, 0) - .58) / .18), 1); pointer-events: none; }
.hero__brush img { clip-path: inset(0 100% 0 0); animation: reveal-brush 1.5s .25s var(--ease) forwards; }
.hero__flood { position: absolute; inset: 0; z-index: 3; background: var(--chaux); opacity: clamp(0, calc((var(--p, 0) - .82) / .14), 1); }
.hero__scroll {
  position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7);
  opacity: calc(1 - var(--p, 0) * 8);
}
.hero__scroll i { width: 1.5px; height: 46px; background: linear-gradient(var(--orange), transparent); animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* 2 · Le mur, du support brut à la finition */
.wall { position: relative; height: 460vh; background: var(--paper); }
.wall__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); }
.wall__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; width: 100%; }
.wall__steps { position: relative; }
.steps { position: relative; min-height: 210px; }
.wall__head { margin-bottom: 30px; }
.wall__head .h2 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 48px); }
.step { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(24px); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none; }
.step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.step__num { font-weight: 800; font-size: 14px; color: var(--orange-text); letter-spacing: .1em; }
.step .h3 { margin: 6px 0 12px; font-size: clamp(24px, 2.4vw, 32px); }
.step p { margin: 0; color: var(--muted); max-width: 42ch; }
.wall__meter { display: flex; gap: 8px; margin-top: 18px; }
.wall__meter span { flex: 1; height: 3px; background: var(--line); position: relative; overflow: hidden; }
.wall__meter span::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(var(--f, 0)); }
.wall__stage { position: relative; aspect-ratio: 5 / 4; max-height: 74vh; width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(7,27,54,.45); }
.layer { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--r, 0) * 100%) 0 0); }
.layer--brut { --r: 1; background-color: #8f8d88; background-image: var(--noise), radial-gradient(circle at 20% 30%, rgba(0,0,0,.18), transparent 30%), radial-gradient(circle at 75% 65%, rgba(0,0,0,.2), transparent 35%), radial-gradient(circle at 60% 15%, rgba(255,255,255,.12), transparent 25%); background-blend-mode: multiply, normal, normal, normal; }
.layer--brut svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer--prep { background-color: #cdc9c2; background-image: var(--noise), radial-gradient(ellipse 20% 11% at 28% 36%, #ecebe7 35%, transparent 75%), radial-gradient(ellipse 14% 9% at 70% 64%, #e9e7e2 35%, transparent 75%), radial-gradient(ellipse 26% 7% at 52% 22%, #e7e5df 30%, transparent 75%), repeating-radial-gradient(circle at 40% 120%, transparent 0 22px, rgba(255,255,255,.08) 22px 24px); background-blend-mode: soft-light, normal, normal, normal, normal; }
.layer--prim { background-color: #efece6; background-image: var(--noise); background-blend-mode: soft-light; }
.layer--fini { background-color: var(--finish, #2E6E8E); background-image: var(--noise), repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 38px, rgba(0,0,0,.035) 38px 76px); background-blend-mode: soft-light, normal; }
.wall__tag {
  position: absolute; left: 22px; bottom: 22px; z-index: 5; display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 10px 16px 10px 10px; border-radius: 40px; font-size: 13px; font-weight: 600; color: var(--heading);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.4);
}
.wall__tag i { width: 26px; height: 26px; background: var(--tag, #8f8d88); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: background .4s; }
.roller { position: absolute; top: 0; bottom: 0; z-index: 4; left: calc(var(--x, 0) * 100%); width: 0; opacity: var(--o, 0); transition: opacity .3s; }
.roller::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: rgba(255,255,255,.65); box-shadow: 0 0 18px rgba(255,255,255,.5); }
.roller svg { position: absolute; top: calc(50% - 90px); left: -26px; width: 92px; height: 180px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
@media (max-width: 860px) {
  .wall { height: 420vh; }
  .wall__inner { grid-template-columns: 1fr; gap: 18px; }
  .wall__stage { order: -1; aspect-ratio: 4 / 3; max-height: 42vh; }
  .wall__head { margin-bottom: 8px; }
  .wall__head .h2 { font-size: 26px; }
  .steps { min-height: 170px; }
  .step .h3 { font-size: 22px; }
  .step p { font-size: 15.5px; }
}

/* 3 · Les métiers (défilement horizontal) */
.trades { position: relative; background: var(--navy-ink); color: #fff; }
.trades__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px); }
.trades__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.trades__head .h2 { margin-top: 14px; max-width: 13ch; }
.trades__count { font-weight: 900; font-size: clamp(22px, 2.4vw, 32px); line-height: 1; color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trades__cur { font-size: clamp(60px, 8vw, 120px); color: transparent; -webkit-text-stroke: 1.5px var(--orange); letter-spacing: -.04em; }
.trades__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); will-change: transform; transform: translateX(calc(var(--tx, 0) * -1px)); }
.trade {
  flex: none; width: clamp(280px, 31vw, 420px); min-height: clamp(360px, 52vh, 480px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  padding: clamp(26px, 2.6vw, 38px); border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  text-decoration: none; color: #fff; position: relative; overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
}
.trade::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 70%; background: url("../img/pinceau.png") center / contain no-repeat; opacity: 0; transform: translateY(30px) rotate(-8deg); transition: opacity .5s, transform .6s var(--ease); }
.trade:hover { border-color: var(--orange); transform: translateY(-6px); }
.trade:hover::before { opacity: .22; transform: none; }
.trade__top { display: flex; justify-content: space-between; align-items: start; }
.trade__n { font-weight: 800; color: var(--orange); font-size: 14px; letter-spacing: .1em; }
.trade svg.ico { width: 54px; height: 54px; stroke: #fff; fill: none; stroke-width: 1.4; }
.trade .h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 12px; }
.trade p { margin: 0; color: rgba(255,255,255,.7); font-size: 15.5px; }
.trade__more { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.trade--end { background: var(--orange); color: var(--navy-ink); border-color: var(--orange); justify-content: center; }
.trade--end .h3 { font-size: clamp(30px, 3vw, 42px); }
.trade--end p { color: var(--navy-ink); opacity: .8; }
.trade--end .trade__more { color: var(--navy-ink); }

/* 4 · Les teintes */
.tints { position: relative; height: 420vh; }
.tints__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--tint, #F3EFE6); color: var(--tint-fg, var(--ink)); transition: color .5s; display: flex; flex-direction: column; justify-content: center; }
.tints__sticky::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .16; mix-blend-mode: soft-light; pointer-events: none; }
.tints__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.tints__inner .eyebrow { color: currentColor; opacity: .75; }
.tints__name { font-weight: 900; font-size: clamp(48px, 9vw, 140px); line-height: .9; letter-spacing: -.04em; margin: 18px 0 0; min-height: 1.85em; }
.tints__name span { display: block; }
.tints__code { font-stretch: 125%; letter-spacing: .3em; text-transform: uppercase; font-size: 13px; font-weight: 600; opacity: .7; margin-top: 16px; }
.tints__text p { margin: 0 0 18px; font-size: clamp(17px, 1.4vw, 19px); opacity: .85; max-width: 40ch; }
.tints__text strong { font-weight: 800; }
.swatches { position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vh, 52px); }
.swatches ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.swatches li { height: 64px; background: var(--c); border-radius: var(--radius); position: relative; transform: translateY(calc((1 - var(--on, 0)) * 18px)); transition: transform .5s var(--ease), box-shadow .4s; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.swatches li.is-on { box-shadow: 0 0 0 2px currentColor, 0 18px 40px -16px rgba(0,0,0,.4); --on: 1; }
.swatches li span { position: absolute; left: 10px; bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--lbl); }
@media (max-width: 860px) {
  .tints__inner { grid-template-columns: 1fr; gap: 10px; }
  .tints__name { min-height: 2em; font-size: clamp(44px, 14vw, 80px); }
  .tints__text p { font-size: 15.5px; margin-bottom: 10px; }
  .swatches li { height: 44px; }
  .swatches li span { display: none; }
}

/* 5 · Engagements */
.pledges { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pledge { padding: 36px 28px 10px 0; border-right: 1px solid var(--line); }
.pledge + .pledge { padding-left: 28px; }
.pledge:last-child { border-right: 0; }
.pledge__v { font-weight: 800; font-size: clamp(54px, 6vw, 88px); line-height: .9; letter-spacing: -.04em; color: var(--heading); }
.pledge__v small { font-size: .38em; letter-spacing: 0; margin-left: 4px; color: var(--orange-text); }
.pledge h3 { font-size: 17px; margin: 18px 0 8px; }
.pledge p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .pledges { grid-template-columns: 1fr 1fr; }
  .pledge, .pledge + .pledge { padding: 30px 18px 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pledge:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) { .pledges { grid-template-columns: 1fr; } .pledge:nth-child(even) { padding-left: 0; border-left: 0; } }

/* 6 · Deux publics */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aud { background: var(--paper); padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.aud--pro { background: var(--navy); color: #fff; }
.aud__tag { font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--orange-text); font-stretch: 125%; }
.aud--pro .aud__tag { color: var(--orange); }
.aud ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.aud li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; }
.aud li::before { content: ""; width: 14px; height: 2px; background: var(--orange); margin-top: 12px; }
.aud--pro li { color: rgba(255,255,255,.85); }
.aud .btn { align-self: start; margin-top: auto; }
@media (max-width: 800px) { .audiences { grid-template-columns: 1fr; } }

/* 7 · Appel final */
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; text-align: center; padding: clamp(110px, 16vw, 200px) 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .12; mix-blend-mode: overlay; }
.cta__brush { position: absolute; left: 50%; top: 58%; width: min(120vw, 1400px); transform: translate(calc(-50% + (var(--p, .5) - .5) * -240px), -50%) rotate(-5deg); opacity: .16; }
.cta .container { position: relative; }
.cta .h-display { font-size: clamp(46px, 9vw, 140px); }
.cta p { margin: 28px auto 40px; color: rgba(255,255,255,.75); max-width: 44ch; font-size: clamp(17px, 1.5vw, 20px); }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy-ink); color: rgba(255,255,255,.72); padding: 80px 0 30px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__logo { width: 190px; margin-bottom: 22px; }
.footer h4 { color: #fff; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; margin: 0 0 18px; font-stretch: 125%; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .25s; }
.footer a:hover { color: var(--orange); }
.footer__bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.5); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   PRESTATIONS
   ========================================================================== */
.svc-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.svc-nav { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 4px; }
.svc-nav a { display: grid; grid-template-columns: 30px 1fr; padding: 12px 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line); transition: color .3s, padding .3s var(--ease); }
.svc-nav a span { color: var(--orange-text); font-size: 12px; font-weight: 800; padding-top: 2px; }
.svc-nav a.is-active, .svc-nav a:hover { color: var(--heading); padding-left: 8px; }
.svc { padding: 0 0 clamp(70px, 9vw, 120px); scroll-margin-top: calc(var(--header-h) + 30px); }
.svc + .svc { padding-top: clamp(70px, 9vw, 120px); border-top: 1px solid var(--line); }
.svc__head { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; margin-bottom: 28px; }
.svc__num { font-weight: 900; font-size: clamp(60px, 7vw, 96px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--orange-text); }
.svc__head p { color: var(--muted); margin: 14px 0 0; max-width: 56ch; font-size: 18px; }
.svc__body { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.card h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--heading); font-stretch: 125%; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.card li { padding-left: 22px; position: relative; font-size: 15.5px; }
.card li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 2px; background: var(--orange); }
.card--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.card--navy h4 { color: var(--orange); }
.card--navy li { color: rgba(255,255,255,.85); }
.svc__visual { grid-column: 1 / -1; height: 220px; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--v, var(--navy)); }
.svc__visual::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .3; mix-blend-mode: soft-light; }
.svc__visual img { position: absolute; width: 70%; left: 15%; top: 50%; transform: translateY(calc(-50% + (var(--p, .5) - .5) * -60px)) rotate(-4deg); opacity: .9; }
.classes { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; grid-column: 1 / -1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.classes th, .classes td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.classes th { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.classes td:first-child { font-weight: 900; color: var(--heading); font-size: 18px; }
.classes caption { caption-side: bottom; text-align: left; padding-top: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-nav { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .svc-nav a { flex: none; grid-template-columns: auto auto; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 40px; }
  .svc-nav a.is-active, .svc-nav a:hover { padding-left: 16px; }
  .svc__body { grid-template-columns: 1fr; }
  .svc__head { grid-template-columns: 1fr; gap: 10px; }
  .classes { font-size: 14px; } .classes th, .classes td { padding: 10px; }
}

/* Méthode */
.method { counter-reset: m; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.method li { list-style: none; background: rgba(255,255,255,.05); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 32px 28px 36px; position: relative; overflow: hidden; }
.method li::before { counter-increment: m; content: "0" counter(m); display: block; font-weight: 900; font-size: 46px; line-height: 1; color: var(--orange); margin-bottom: 26px; }
.method h3 { font-size: 20px; margin: 0 0 10px; }
.method p { margin: 0; color: rgba(255,255,255,.72); font-size: 15.5px; }
.method { padding: 0; margin: 0; }
@media (max-width: 900px) { .method { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .method { grid-template-columns: 1fr; } }

/* ==========================================================================
   RÉALISATIONS
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { border: 1.5px solid var(--line); background: transparent; color: var(--heading); min-height: 44px; padding: 10px 18px; border-radius: 40px; font-weight: 600; font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.work { grid-column: span 4; position: relative; display: block; text-decoration: none; color: inherit; transition: opacity .4s, transform .5s var(--ease); }
.work:nth-child(5n+1) { grid-column: span 8; }
.work.is-hidden { display: none; }
.work__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg, #ddd); }
.work:nth-child(5n+1) .work__img { aspect-ratio: auto; height: 100%; min-height: 360px; }
.work__img svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1s var(--ease); }
.work:hover .work__img svg { transform: scale(1.05); }
.work__img::after { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .18; mix-blend-mode: soft-light; pointer-events: none; }
.work__badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,.92); color: var(--heading); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; }
.work__cap { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px 0; align-items: baseline; }
.work__cap h3 { font-size: 18px; margin: 0; }
.work__cap span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.work__note { position: absolute; bottom: 12px; right: 12px; z-index: 2; font-size: 10.5px; color: rgba(255,255,255,.85); background: rgba(7,27,54,.55); padding: 4px 8px; border-radius: 2px; letter-spacing: .04em; }
@media (max-width: 860px) { .work, .work:nth-child(5n+1) { grid-column: span 6; } .work:nth-child(5n+1) .work__img { min-height: 0; aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .work, .work:nth-child(5n+1) { grid-column: 1 / -1; } }

/* Avant / après */
.ba { position: relative; aspect-ratio: 16 / 8; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); user-select: none; touch-action: pan-y; --pos: 50%; }
.ba svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 3; }
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; }
.ba__knob { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: var(--orange); border: 0; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); cursor: ew-resize; color: var(--navy-ink); }
.ba__knob svg { position: static; width: 26px; height: 26px; }
.ba__lbl { position: absolute; top: 18px; z-index: 2; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; background: rgba(7,27,54,.7); color: #fff; padding: 7px 12px; border-radius: 2px; }
.ba__lbl--l { left: 18px; } .ba__lbl--r { right: 18px; background: var(--orange); color: var(--navy-ink); }
@media (max-width: 640px) { .ba { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   L'ENTREPRISE
   ========================================================================== */
.manifesto { font-weight: 800; font-size: clamp(28px, 3.8vw, 52px); line-height: 1.12; letter-spacing: -.02em; max-width: 22ch; margin: 0; }
.manifesto .word { opacity: calc(.15 + var(--w, 0) * .85); transition: opacity .2s; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 30px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.value:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(18,58,107,.35); }
.value svg { width: 46px; height: 46px; stroke: var(--heading); fill: none; stroke-width: 1.5; margin-bottom: 26px; }
.value h3 { font-size: 19px; margin: 0 0 10px; }
.value p { margin: 0; color: var(--muted); font-size: 15px; }
.value::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.value:hover::after { transform: scaleX(1); }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.team__org { display: grid; gap: 12px; }
.org { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line-light); border-radius: var(--radius-lg); background: rgba(255,255,255,.03); }
.org b { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: var(--navy-ink); font-size: 22px; font-weight: 900; }
.org--lead b { background: #fff; }
.org h3 { margin: 0 0 4px; font-size: 18px; }
.org p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.7); }
.org--sub { margin-left: 40px; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } .org--sub { margin-left: 18px; } }

.zones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.zone { background: var(--chaux); padding: 26px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.zone h3 { font-size: 18px; margin: 0 0 10px; color: var(--heading); }
.zone p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 900px) { .zones { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .zones { grid-template-columns: 1fr; } }

.assur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.assur .card { display: grid; gap: 8px; }
.assur strong { font-size: 30px; font-weight: 900; color: var(--heading); line-height: 1; }
@media (max-width: 800px) { .assur { grid-template-columns: 1fr; } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 50px); }
.form fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.form legend { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--heading); font-weight: 700; font-stretch: 125%; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; }
.form legend b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: var(--navy-ink); font-size: 12px; letter-spacing: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 40px; font-weight: 600; font-size: 14.5px; color: var(--heading); cursor: pointer; transition: all .25s; }
.opt span:hover { border-color: var(--navy); }
.opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--heading); }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--chaux); min-height: 50px;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 14px;
  transition: border-color .25s, background .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C2410C; }
.field .err { font-size: 13px; color: #C2410C; display: none; }
.field.has-error .err { display: block; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__foot p { margin: 0; font-size: 13px; color: var(--muted); max-width: 40ch; }
.form__ok { display: none; text-align: center; padding: 40px 10px; }
.form__ok svg { width: 74px; height: 74px; margin: 0 auto 20px; stroke: var(--orange); fill: none; stroke-width: 2; }
.form__ok svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: check .8s .2s var(--ease) forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }
.form.is-sent form { display: none; }
.form.is-sent .form__ok { display: block; }
.side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side .card--navy { padding: 32px; }
.coord { display: grid; gap: 22px; }
.coord a, .coord div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; text-decoration: none; color: #fff; }
.coord i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); }
.coord i svg { width: 19px; height: 19px; stroke: var(--orange); fill: none; stroke-width: 1.8; }
.coord small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.coord strong { font-weight: 700; font-size: 16.5px; }
.coord a:hover strong { color: var(--orange); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; color: var(--heading); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--orange); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } .side { position: static; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Ergonomie : lien d'évitement ---------- */
.skip { position: fixed; top: 10px; left: 10px; z-index: 200; background: var(--orange); color: var(--navy-ink); padding: 12px 18px; font-weight: 700; text-decoration: none; border-radius: var(--radius); transform: translateY(-150%); transition: transform .3s; }
.skip:focus { transform: none; }

/* ---------- Accueil : sommaire des chapitres ---------- */
.chapters { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 4px; mix-blend-mode: difference; }
.chapters a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 26px; text-decoration: none; color: #fff; }
.chapters a::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; transition: transform .3s var(--ease), background .3s; flex: none; }
.chapters a span { font-size: 12px; font-weight: 600; letter-spacing: .04em; opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s var(--ease); white-space: nowrap; }
.chapters a:hover span, .chapters a:focus-visible span { opacity: 1; transform: none; }
.chapters a.is-active::after { background: #fff; transform: scale(1.25); }
@media (max-width: 1100px) { .chapters { display: none; } }

/* ---------- Accueil : bandeau cinétique ---------- */
.marquee { background: var(--sand); color: var(--heading); overflow: hidden; padding: clamp(18px, 2.4vw, 30px) 0; display: grid; gap: 6px; }
.marquee__row { white-space: nowrap; font-weight: 900; font-size: clamp(34px, 6vw, 88px); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; transform: translateX(calc(-8% - var(--p, 0) * 30%)); }
.marquee__row--rev { color: transparent; -webkit-text-stroke: 1.5px rgba(18,58,107,.45); transform: translateX(calc(-38% + var(--p, 0) * 30%)); }
.marquee i { display: inline-block; width: .26em; height: .26em; margin: 0 .38em .14em; border-radius: 50%; background: var(--orange); vertical-align: middle; }
.marquee__row--rev i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--orange); }

/* ---------- Barre d'action mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px; border-radius: 10px;
    background: rgba(7, 27, 54, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
    transform: translateY(calc(100% + 30px)); transition: transform .45s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 15px; color: #fff; box-shadow: inset 0 0 0 1.5px var(--line-light); }
  .mobile-bar a:last-child { background: var(--orange); color: var(--navy-ink); box-shadow: none; }
  .mobile-bar svg { width: 18px; height: 18px; }
  body.menu-open .mobile-bar { transform: translateY(calc(100% + 30px)); }
  .footer { padding-bottom: 110px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .wipe { display: none; }
  .marquee__row, .marquee__row--rev { transform: none; }
}

/* Accroche narrative des prestations */
.svc__head p.svc__hook { font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; color: var(--heading); line-height: 1.35; margin-top: 16px; padding-left: 18px; border-left: 3px solid var(--orange); max-width: 46ch; }

/* ---------- Chapitre 3 : roue chromatique ---------- */
.tints__intro { margin: 22px 0 0; max-width: 42ch; font-size: clamp(15.5px, 1.25vw, 18px); opacity: .85; }
.tints__intro strong { font-weight: 800; }
.law { display: grid; grid-template-columns: clamp(150px, 15vw, 210px) 1fr; gap: clamp(20px, 2.6vw, 34px); align-items: center; }
.wheel {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #9a9a9a 0%, rgba(154,154,154,.6) 30%, rgba(154,154,154,0) 100%),
    conic-gradient(from -15deg, hsl(0 70% 52%) 0 30deg, hsl(30 85% 54%) 0 60deg, hsl(60 75% 52%) 0 90deg, hsl(90 55% 45%) 0 120deg, hsl(120 45% 42%) 0 150deg, hsl(160 40% 40%) 0 180deg, hsl(190 55% 40%) 0 210deg, hsl(213 70% 35%) 0 240deg, hsl(250 40% 50%) 0 270deg, hsl(280 40% 48%) 0 300deg, hsl(320 45% 50%) 0 330deg, hsl(350 60% 50%) 0 360deg);
  box-shadow: 0 0 0 6px rgba(255,255,255,.55), 0 24px 50px -24px rgba(0,0,0,.5);
}
.wheel__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wheel__lines line { stroke: #fff; stroke-width: 2; stroke-dasharray: 4 4; }
.wheel__lines circle { stroke: #fff; stroke-width: 3; }
.wheel__lines circle.main { stroke-width: 4; }
.law__kicker { font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; font-stretch: 125%; opacity: .7; }
.law__name { font-size: clamp(24px, 2.4vw, 34px); font-weight: 850; margin: 6px 0 10px; letter-spacing: -.02em; }
.law__text { margin: 0; font-size: clamp(15px, 1.15vw, 16.5px); line-height: 1.5; opacity: .88; max-width: 40ch; }
.law__pair { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.law__pair li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 30px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(127,127,127,.3); }
.law__pair li i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; }
@media (max-width: 860px) {
  .tints__sticky { justify-content: flex-start; padding-top: calc(var(--header-h) + 10px); }
  .tints__name { min-height: 0; font-size: clamp(38px, 11vw, 64px); margin-top: 10px; }
  .tints__intro { display: none; }
  .law { grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
  .law__name { font-size: 21px; margin: 2px 0 6px; }
  .law__text { font-size: 14px; }
  .law__pair { margin-top: 10px; }
  .swatches { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ---------- Contact : jauge et suite ---------- */
.form { position: relative; overflow: hidden; }
.form__progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--line); }
.form__progress span { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--f, 0)); transition: transform .5s var(--ease); }
.travaux-err { display: block; font-size: 13px; color: #C2410C; margin-top: 4px; }
.travaux-err[hidden] { display: none; }
.next { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.next li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.next li::before { display: none; }
.next b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; }
.next strong { color: var(--heading); }
.card .next li { padding-left: 0; }

/* ---------- Chapitre sinistres & assurances ---------- */
.claims { color: #fff; background: radial-gradient(ellipse 60% 70% at 85% 0%, rgba(46,124,147,.35), transparent 70%), linear-gradient(180deg, var(--navy-deep), var(--navy-ink)); overflow: hidden; }
.claims::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .08; mix-blend-mode: overlay; pointer-events: none; }
.claims .container { position: relative; }
.claims__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { background: rgba(255,255,255,.05); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 38px); display: grid; gap: 12px; align-content: start; backdrop-filter: blur(6px); }
.pillar__k { font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-stretch: 125%; color: var(--orange); }
.pillar h3 { margin: 0; font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; line-height: 1.2; }
.pillar p { margin: 0; color: rgba(255,255,255,.74); font-size: 15.5px; }
.claims__steps { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.claims__steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--orange), rgba(239,138,34,.15)); }
.claims__steps li { position: relative; }
.claims__steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-ink); box-shadow: inset 0 0 0 2px var(--orange); color: #fff; font-size: 15px; margin-bottom: 16px; position: relative; }
.claims__steps h4 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.claims__steps p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.66); }
.claims__foot { margin-top: clamp(40px, 5vw, 60px); padding-top: 30px; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.tags li { padding: 8px 14px; border-radius: 40px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px var(--line-light); }
.claims__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trade--claim { border-color: rgba(239,138,34,.45); }
@media (max-width: 900px) {
  .claims__pillars { grid-template-columns: 1fr; }
  .claims__steps { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .claims__steps::before { display: none; }
}
@media (max-width: 480px) { .claims__steps { grid-template-columns: 1fr; } }

/* Menu : cinq entrées tiennent jusqu'à 1100 px */
@media (max-width: 1100px) and (min-width: 901px) { .nav { gap: 18px; } .nav a { font-size: 13.5px; } .nav .btn { padding: 11px 14px; } }

/* ==========================================================================
   Photographie : traitement unifié (étalonnage léger, voile marine pour la lisibilité)
   ========================================================================== */
img[srcset] { background: var(--sand); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.35) contrast(1.08); mix-blend-mode: luminosity; transform: scale(calc(1.12 - var(--p, 0) * .12)); }
.hero__sticky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(18,58,107,.35), rgba(12,42,80,.92) 75%); pointer-events: none; }
.hero__content, .hero__scroll { z-index: 2; }
.page-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: grayscale(.4) contrast(1.05); mix-blend-mode: luminosity; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--navy) 30%, rgba(18,58,107,.72) 65%, rgba(18,58,107,.45)); }
.page-hero .brush-bg { z-index: 1; }
.page-hero .container { z-index: 2; }
.trade { padding-top: 0; }
.trade__img { margin: 0 calc(-1 * clamp(26px, 2.6vw, 38px)); height: clamp(150px, 20vh, 190px); overflow: hidden; position: relative; }
.trade__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,27,54,0) 40%, rgba(7,27,54,.85)); }
.trade__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .9s var(--ease); }
.trade:hover .trade__img img { transform: scale(1.06); }
.trade .trade__top { margin-top: -26px; position: relative; z-index: 1; }
.trade { min-height: clamp(420px, 60vh, 540px); }
.aud__img { margin: calc(-1 * clamp(28px, 3.4vw, 48px)) calc(-1 * clamp(28px, 3.4vw, 48px)) 8px; height: 220px; overflow: hidden; }
.aud__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.aud:hover .aud__img img { transform: scale(1.04); }
.svc__photo, .team__photo, .roots__photo { margin: 0; grid-column: 1 / -1; }
.svc__photo img, .team__photo img, .roots__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.svc__photo figcaption, .team__photo figcaption, .roots__photo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); display: flex; gap: 10px; }
.svc__photo figcaption::before, .roots__photo figcaption::before, .team__photo figcaption::before { content: ""; flex: none; width: 18px; height: 2px; background: var(--orange); margin-top: 11px; }
.team__photo { margin-top: 30px; }
.team__photo img { aspect-ratio: 3 / 2; }
.team__photo figcaption { color: rgba(255,255,255,.65); }
.cta__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; mix-blend-mode: luminosity; filter: grayscale(.3); }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(18,58,107,.55), rgba(12,42,80,.95) 80%); }
.cta__brush { z-index: 1; }
.cta .container { z-index: 2; }
.work__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work:hover .work__img img { transform: scale(1.05); }
.ba__before, .ba__after { position: absolute; inset: 0; }
.ba__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }
.ba__before .ba__img { filter: sepia(.65) saturate(.42) brightness(.72) contrast(1.15); }
.ba__grime { position: absolute; inset: 0; mix-blend-mode: multiply; background:
  linear-gradient(180deg, transparent 55%, rgba(60,70,40,.35) 100%),
  repeating-linear-gradient(90deg, transparent 0 7%, rgba(55,50,40,.32) 7.4% 8%, transparent 8.6% 19%),
  radial-gradient(ellipse 30% 18% at 70% 70%, rgba(60,55,45,.35), transparent 70%); }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }

/* ---------- Prologue : la douleur ---------- */
.pain { background: var(--chaux); }
.pain__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.pain__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pains li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 26px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; overflow: hidden; }
.pains li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--terre); }
.pains b { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--terre); line-height: 1; }
.pains h3 { margin: 0 0 6px; font-size: 19px; font-weight: 650; line-height: 1.3; }
.pains p { margin: 0; color: var(--muted); font-size: 15.5px; }
.pain__turn { grid-column: 2; margin: 10px 0 0; font-size: 18px; padding: 22px 26px; border-radius: var(--radius-lg); background: var(--navy); color: #fff; }
.pain__turn a { color: var(--orange); font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) { .pain__grid { grid-template-columns: 1fr; } .pain__intro { position: static; } .pain__turn { grid-column: 1; } .pains li { grid-template-columns: 44px 1fr; padding: 20px; } }

/* ---------- Comparatif de valeur ---------- */
.compare { margin-top: clamp(60px, 8vw, 100px); background: var(--chaux); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); }
.compare__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.compare__head .h3 { font-size: clamp(26px, 2.8vw, 36px); }
.compare__head p { margin: 0; color: var(--muted); max-width: 42ch; }
.compare__wrap { overflow-x: auto; border-radius: var(--radius); }
.compare table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 15.5px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.compare tbody th { font-weight: 650; color: var(--heading); width: 24%; }
.compare td:not(.is-jmp) { color: var(--muted); }
.compare td:not(.is-jmp)::before { content: "✕"; color: var(--terre); font-weight: 700; margin-right: 10px; }
.compare .is-jmp { background: var(--paper); color: var(--ink); font-weight: 550; }
.compare td.is-jmp::before { content: "✓"; color: var(--pandanus); font-weight: 800; margin-right: 10px; }
.compare thead .is-jmp { background: var(--navy); color: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.compare__total th, .compare__total td { font-weight: 700; border-bottom: 0; }
.compare__total .is-jmp { background: var(--orange-soft); border-radius: 0 0 var(--radius) var(--radius); }
.compare__note { margin: 22px 0 0; font-size: 16px; }

/* ---------- Ancrage Réunion et partenaires ---------- */
.roots__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.roots__photo img { aspect-ratio: 4 / 5; max-height: 600px; }
.partners { margin-top: 34px; display: grid; gap: 26px; }
.partners__t { margin: 0 0 12px; font-family: var(--font); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.logos li { padding: 18px 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--chaux); display: grid; gap: 2px; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.logos li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.logos b { font-size: 21px; font-weight: 700; color: var(--heading); letter-spacing: -.01em; line-height: 1.2; }
.logos span { font-size: 13.5px; color: var(--muted); }
.logos--inst li { background: var(--paper); }
@media (max-width: 900px) { .roots__grid { grid-template-columns: 1fr; } .roots__photo img { aspect-ratio: 16 / 10; } }
@media (max-width: 480px) { .logos { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .compare table { min-width: 0; }
  .compare thead { display: none; }
  .compare tr { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { display: block; padding: 8px 12px; border: 0; width: auto; }
  .compare tbody th { padding-left: 0; font-size: 16px; width: auto; }
  .compare td.is-jmp, .compare__total .is-jmp { border-radius: var(--radius); }
}

/* ---------- Prestations : techniques d'application ---------- */
.tools__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.tools__photo { margin: 0; }
.tools__photo img { width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tools__photo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); display: flex; gap: 10px; }
.tools__photo figcaption::before { content: ""; flex: none; width: 18px; height: 2px; background: var(--orange); margin-top: 11px; }
.tools__list { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--chaux); border: 1px solid var(--line); }
.tool b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.tool p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.tool:first-child { background: var(--navy); border-color: var(--navy); }
.tool:first-child b { color: #fff; }
.tool:first-child p { color: rgba(255,255,255,.75); }
.tools__note { margin: 22px 0 0; padding: 18px 22px; border-left: 3px solid var(--orange); background: var(--orange-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: 15.5px; }
@media (max-width: 900px) { .tools__grid { grid-template-columns: 1fr; } .tools__photo img { aspect-ratio: 16 / 10; } }
@media (max-width: 520px) { .tools__list { grid-template-columns: 1fr; } }

/* ---------- Ouverture 3D : le pinceau qui trace ---------- */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero.has-3d { height: 330vh; }
.hero.has-3d .hero__brush, .hero.has-3d .hero__photo, .hero.has-3d .hero__grid { display: none; }
.hero.has-3d .hero__sticky::after { background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(12,42,80,.55), rgba(12,42,80,0) 70%); }
.hero.has-3d .hero__content { --out: clamp(0, calc((var(--p, 0) - .5) / .14), 1); margin-top: -10vh; }
.hero.has-3d .hero__orange { opacity: clamp(0, calc((var(--p, 0) - .8) / .05), 1); }
.hero.has-3d .hero__flood { opacity: clamp(0, calc((var(--p, 0) - .86) / .1), 1); }

/* ---------- Barre de réassurance ---------- */
.trust { background: var(--chaux); border-bottom: 1px solid var(--line); }
.trust__row { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust__item { padding: 22px 18px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item b { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--heading); letter-spacing: -.01em; }
.trust__item span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) {
  .trust__row { grid-template-columns: repeat(2, 1fr); }
  .trust__item { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; }
  .trust__item:nth-child(-n+2) { border-top: 0; }
  .trust__item:last-child { grid-column: 1 / -1; }
}

/* ---------- Équilibre : sections collantes plus courtes ---------- */
.wall { height: 390vh; }
.tints { height: 350vh; }
@media (max-width: 860px) { .wall { height: 360vh; } }

/* ==========================================================================
   Équilibre de lecture : blocs, photos et titres resserrés
   ========================================================================== */
body { font-size: 17px; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); gap: 16px; }
.h-display { font-size: clamp(40px, 6.4vw, 96px); }
.h1 { font-size: clamp(34px, 4.8vw, 64px); }
.h2 { font-size: clamp(27px, 3.3vw, 44px); }
.lead { font-size: clamp(16.5px, 1.3vw, 18.5px); }
.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(56px, 7vw, 90px); }

/* Cartes et fenêtres */
.card { padding: 24px; }
.card li { font-size: 15px; }
.pains { gap: 10px; }
.pains li { padding: 18px 20px; gap: 14px; grid-template-columns: 44px 1fr; }
.pains b { font-size: 24px; }
.pains h3 { font-size: 17.5px; }
.pains p { font-size: 15px; }
.pain__turn { font-size: 16.5px; padding: 18px 22px; }
.value { padding: 24px 22px; }
.value svg { width: 40px; height: 40px; margin-bottom: 18px; }
.method li { padding: 26px 24px 28px; }
.method li::before { font-size: 38px; margin-bottom: 18px; }
.pillar { padding: clamp(22px, 2.4vw, 30px); }
.logos li { padding: 14px 16px; }
.logos b { font-size: 19px; }
.tool { padding: 16px 18px; }
.tool b { font-size: 17px; }
.trust__item { padding: 18px 16px; }
.trust__item b { font-size: 20px; }
.org { padding: 16px 18px; }
.zone { padding: 22px 20px; }
.pledge__v { font-size: clamp(46px, 5vw, 72px); }
.pledge { padding-top: 28px; }

/* Cartes métiers */
.trade { width: clamp(260px, 26vw, 360px); min-height: clamp(380px, 52vh, 460px); gap: 22px; padding: 0 clamp(22px, 2.2vw, 30px) clamp(22px, 2.2vw, 30px); }
.trade__img { margin: 0 calc(-1 * clamp(22px, 2.2vw, 30px)); height: clamp(130px, 17vh, 160px); }
.trade .h3 { font-size: clamp(21px, 1.8vw, 25px); }
.trade p { font-size: 15px; }

/* Publics */
.aud { padding: clamp(24px, 2.6vw, 36px); gap: 14px; }
.aud__img { margin: calc(-1 * clamp(24px, 2.6vw, 36px)) calc(-1 * clamp(24px, 2.6vw, 36px)) 6px; height: 180px; }
.aud .h2 { font-size: clamp(24px, 2.4vw, 32px) !important; }
.aud li { font-size: 15.5px; }

/* Photos */
.svc__photo img { aspect-ratio: 21 / 9; }
.svc__body { gap: 20px; }
.svc { padding-bottom: clamp(56px, 7vw, 90px); }
.svc + .svc { padding-top: clamp(56px, 7vw, 90px); }
.svc__num { font-size: clamp(52px, 5.6vw, 76px); }
.roots__photo img { aspect-ratio: 4 / 4.4; max-height: 500px; }
.tools__photo img { max-height: 520px; }
.team__photo img { aspect-ratio: 16 / 9; }
.wall__stage { max-height: 66vh; }
.ba { aspect-ratio: 16 / 7; }
.work:nth-child(5n+1) .work__img { min-height: 320px; }

/* Comparatif */
.compare { padding: clamp(20px, 3vw, 36px); margin-top: clamp(48px, 6vw, 80px); }
.compare__head .h3 { font-size: clamp(23px, 2.3vw, 30px); }
.compare table { font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; }
@media (max-width: 900px) {
  .pains li { grid-template-columns: 36px 1fr; padding: 16px; }
  .ba { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Audit responsive : corrections de lecture et de débordement
   ========================================================================== */
/* Tailles minimales de lecture */
.eyebrow { font-size: 13px; }
.crumbs { font-size: 14px; }
.work__badge { font-size: 12px; padding: 6px 11px; }
.work__note { font-size: 12px; }
.work__cap span { font-size: 14px; }
.trade__more { font-size: 13.5px; }
.law__pair li { font-size: 13.5px; }
.wall__tag { font-size: 13.5px; }
.ba__lbl { font-size: 12.5px; }
.form__foot p { font-size: 14px; }
.footer__bottom { font-size: 13.5px; }
.tags li { font-size: 14px; }
.nav a:not(.btn) { padding: 10px 0; }

/* Longueur de ligne confortable (65-75 caractères) */
.compare__note, .tools__note { max-width: 72ch; }
.footer__grid > :first-child p { max-width: 52ch; }
.faq details p { max-width: 68ch; }
.svc__head p { max-width: 62ch; }
.card p, .pillar p, .value p, .pains p, .aud li { max-width: 62ch; }

/* Galerie : la grande carte ne force plus une largeur minimale */
@media (max-width: 860px) {
  .work:nth-child(5n+1) .work__img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
}

/* Tableaux techniques : tiennent dans l'écran mobile */
@media (max-width: 560px) {
  .classes { table-layout: fixed; font-size: 13.5px; }
  .classes th, .classes td { padding: 10px 8px; overflow-wrap: anywhere; }
  .classes th:first-child, .classes td:first-child { width: 22%; }
  .classes td:first-child { font-size: 15px; }
}

/* Contact sur tablette : coordonnées et suite côte à côte, FAQ en dessous */
@media (max-width: 960px) and (min-width: 640px) {
  .side { grid-template-columns: 1fr 1fr; align-items: start; }
  .side .faq { grid-column: 1 / -1; }
}
.law__kicker, .pillar__k, .aud__tag, .work__badge, .work__note { font-size: 12.5px; }
.hero__scroll { font-size: 12px; }

/* Réglages mobiles rétablis après la passe d'équilibre (doivent rester en fin de feuille) */
@media (max-width: 900px) {
  .roots__photo img, .tools__photo img { aspect-ratio: 16 / 10; max-height: none; }
  .trust__item { padding: 14px 12px 14px 0; }
  .svc__photo img { aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
  .wall__stage { max-height: 42vh; }
  .compare th, .compare td { padding: 8px 12px; }
}
@media (max-width: 900px) {
  .page-hero::after { background: linear-gradient(180deg, rgba(18,58,107,.9), rgba(18,58,107,.82) 60%, rgba(12,42,80,.92)); }
  .page-hero .lead { color: rgba(255,255,255,.86); }
  .svc-nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }
}
.footer h4, .classes th, .compare thead th { font-size: 12.5px; }
.coord small { font-size: 12px; }

/* ==========================================================================
   SIMULATEUR DE DEVIS
   ========================================================================== */
.page-hero--compact { padding-bottom: clamp(48px, 6vw, 72px); }
.sim { padding-top: clamp(40px, 5vw, 64px); }
.sim__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.sim__form { display: grid; gap: 18px; }
.sim__panel { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 14px; }

.sim-step { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); padding: clamp(20px, 2.4vw, 28px); margin: 0; min-width: 0; }
.sim-step[hidden] { display: none; }
.sim-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--heading); }
.sim-step legend + * { clear: both; }
.sim-step legend b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--navy-ink); font-size: 14px; }
.sim-intro { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.sim-label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 8px; }
.sim-label small { color: var(--muted); font-weight: 400; }
.sim-hint { display: block; margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }

.sim-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sim-choice input, .sim-seg input, .sim-mini--chk input { position: absolute; opacity: 0; pointer-events: none; }
.sim-choice span { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.sim-choice strong { font-family: var(--font-display); font-size: 16.5px; color: var(--heading); }
.sim-choice small { font-size: 13px; color: var(--muted); }
.sim-choice input:checked + span { border-color: var(--navy); background: rgba(18,58,107,.05); box-shadow: inset 0 0 0 1px var(--navy); }
.sim-choice input:checked + span strong::before { content: "✓ "; color: var(--orange-text); }
.sim-choice input:focus-visible + span, .sim-seg input:focus-visible + span, .sim-mini--chk input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.sim-seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--chaux); border-radius: 12px; border: 1px solid var(--line); }
.sim-seg label { flex: 1 1 auto; }
.sim-seg span { display: block; text-align: center; padding: 10px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.sim-seg input:checked + span { background: var(--paper); color: var(--heading); box-shadow: 0 1px 3px rgba(15,36,64,.15); }
.sim-seg--stack { flex-direction: column; }
.sim-seg--stack span { text-align: left; font-weight: 500; }
.sim-seg--stack strong { color: var(--heading); }
.sim-seg--sm span { padding: 8px 10px; font-size: 13px; }

.sim-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sim-presets button { min-height: 40px; padding: 8px 14px; border-radius: 40px; border: 1.5px dashed rgba(18,58,107,.35); background: transparent; color: var(--heading); font-weight: 600; font-size: 14px; transition: all .2s; }
.sim-presets button:hover { border-style: solid; border-color: var(--navy); background: var(--navy); color: #fff; }
.sim-rooms { display: grid; gap: 12px; }
.sim-empty { color: var(--muted); font-size: 15px; text-align: center; padding: 18px; }

.sim-room { border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; background: var(--paper); transition: border-color .25s, box-shadow .25s; }
.sim-room.is-active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239,138,34,.14); }
.sim-room__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sim-room__name { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--heading); padding: 4px 6px; margin-left: -6px; border-radius: 6px; }
.sim-room__name:hover, .sim-room__name:focus { background: var(--chaux); outline: none; }
.sim-room__del { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }
.sim-room__del:hover { color: #C2410C; border-color: #C2410C; }
.sim-room__dims { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sim-dim { display: grid; gap: 4px; min-width: 0; }
.sim-dim > span:first-child { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sim-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--chaux); overflow: hidden; transition: border-color .2s, background .2s; }
.sim-input:focus-within { border-color: var(--navy); background: #fff; }
.sim-input input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); padding: 11px 12px; -moz-appearance: textfield; }
.sim-input input::-webkit-outer-spin-button, .sim-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim-input input:focus { outline: none; }
.sim-input i { font-style: normal; color: var(--muted); font-size: 14px; padding-right: 12px; }
.sim-input--sm input { padding: 9px 2px; text-align: center; font-size: 15px; }
.sim-input--sm i { padding: 0 8px 0 0; font-size: 12.5px; }
.sim-step-btn { flex: none; width: 30px; height: 40px; border: 0; background: transparent; color: var(--heading); font-size: 18px; font-weight: 600; }
.sim-step-btn:hover { background: rgba(18,58,107,.08); }
.sim-room__opts { display: grid; gap: 10px; margin-top: 12px; }
.sim-room__checks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sim-room__checks--sol { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sim-mini { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sim-mini select { font: inherit; font-size: 14px; font-weight: 600; color: var(--heading); border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--chaux); }
.sim-mini--chk span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 30px; border: 1.5px solid var(--line); font-weight: 600; color: var(--heading); cursor: pointer; transition: all .2s; min-height: 38px; }
.sim-mini--chk span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; opacity: .5; }
.sim-mini--chk input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.sim-mini--chk input:checked + span::before { content: "✓"; opacity: 1; border: 0; font-size: 12px; line-height: 14px; text-align: center; }
.sim-room__sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding: 10px 12px; border-radius: var(--radius); background: var(--chaux); font-size: 13.5px; color: var(--muted); }
.sim-room__sum b { color: var(--heading); font-family: var(--font-display); font-size: 15px; }

.sim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.sim-field { display: block; margin-bottom: 14px; }
.sim-field input[type="range"] { width: 100%; accent-color: var(--orange); }
.sim-check { display: flex; gap: 10px; align-items: center; font-size: 15px; margin: 4px 0 14px; }
.sim-check input { width: 18px; height: 18px; accent-color: var(--navy); }

/* Visionneuse 3D */
.sim-viewer { position: relative; aspect-ratio: 4 / 3.2; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #fff, var(--sand)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sim-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.sim-canvas:active { cursor: grabbing; }
.sim-viewer__labels { position: absolute; inset: 0; pointer-events: none; }
.sim-viewer__top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.sim-viewer__name { font-family: var(--font-display); font-weight: 700; color: var(--heading); background: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 30px; font-size: 14.5px; backdrop-filter: blur(6px); }
.sim-viewer__tip { font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.7); padding: 5px 10px; border-radius: 30px; transition: opacity .4s; }
.sim-viewer.touched .sim-viewer__tip { opacity: 0; }
.sim-legend { position: absolute; left: 10px; right: 10px; bottom: 10px; list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); border-radius: 12px; }
.sim-legend li { display: grid; gap: 1px; padding: 6px 8px; border-radius: 8px; font-size: 12px; color: var(--muted); cursor: pointer; position: relative; padding-left: 22px; transition: background .2s; }
.sim-legend li:hover { background: var(--orange-soft); }
.sim-legend i { position: absolute; left: 8px; top: 10px; width: 9px; height: 9px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.sim-legend b { font-family: var(--font-display); font-size: 14.5px; color: var(--heading); }
.sim-lbl { font: 600 12px/1 var(--font); white-space: nowrap; pointer-events: none; }
.sim-lbl--area { background: var(--navy); color: #fff; padding: 5px 8px; border-radius: 20px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); }
.sim-lbl--dim { color: var(--heading); background: rgba(255,255,255,.9); padding: 3px 7px; border-radius: 4px; border: 1px solid var(--line); }
.sim-viewer.no-3d .sim-canvas { display: none; }
.sim-viewer.no-3d::after { content: "Aperçu 3D indisponible sur cet appareil"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

.sim-colors { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.sim-colors span { margin-right: 4px; font-weight: 600; }
.sim-colors button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); transition: transform .2s, box-shadow .2s; }
.sim-colors button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--navy); transform: scale(1.05); }

.sim-total { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 22px 24px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.sim-total__k { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--orange); }
.sim-total__v { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.sim-total__d { font-size: 14px; color: rgba(255,255,255,.72); }
.sim-total__d b { color: #fff; font-weight: 600; }
.sim-total .btn { justify-content: center; margin-top: 10px; }
.sim-total__link { text-align: center; font-size: 14px; color: rgba(255,255,255,.75); text-decoration: none; margin-top: 2px; }
.sim-total__link:hover { color: var(--orange); }

/* Comprendre le métré */
.metre { display: grid; gap: 22px; }
.metre__formula { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.metre__formula span { flex: 1 1 150px; display: grid; gap: 4px; align-content: center; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--chaux); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--heading); }
.metre__formula span:first-child { background: var(--navy); color: #fff; border-color: var(--navy); }
.metre__formula small { font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--muted); }
.metre__formula i { align-self: center; font-style: normal; font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--orange-text); }
.metre__examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metre-ex { text-align: left; display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); font: inherit; color: var(--ink); transition: transform .3s var(--ease), border-color .3s; }
.metre-ex:hover { transform: translateY(-3px); border-color: var(--orange); }
.metre-ex b { font-family: var(--font-display); font-size: 18px; color: var(--heading); }
.metre-ex span { font-size: 14.5px; color: var(--muted); }
.metre-ex strong { color: var(--ink); }
.metre-ex em { font-style: normal; font-weight: 700; color: var(--orange-text); font-size: 14px; margin-top: 6px; }
.metre__note { margin: 0; padding: 16px 20px; border-radius: var(--radius); background: var(--orange-soft); border-left: 3px solid var(--orange); max-width: 80ch; }

/* Détail */
.sim-detail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 36px); }
.sim-detail__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.sim-detail__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sim-detail__actions .btn--ghost { color: var(--heading); }
.sim-table-wrap { overflow-x: auto; }
.sim-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.sim-table th, .sim-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.sim-table thead th { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sim-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sim-table td:last-child, .sim-table thead th:last-child { text-align: right; }
.sim-table tbody th { font-weight: 500; }
.sim-table tfoot th { text-align: right; font-weight: 600; color: var(--muted); }
.sim-table tfoot td { text-align: right; font-weight: 700; color: var(--heading); }
.sim-table__ttc th, .sim-table__ttc td { background: var(--orange-soft); font-size: 17px; color: var(--ink) !important; border-bottom: 0; }
.sim-disclaimer { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); max-width: 90ch; }

.sim-mbar { display: none; }
.form__est { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius); background: var(--orange-soft); border-left: 3px solid var(--orange); font-size: 15px; }

@media (max-width: 1000px) {
  .sim__grid { grid-template-columns: 1fr; }
  .sim__panel { position: static; order: -1; }
  .sim-viewer { aspect-ratio: 16 / 11; }
  .metre__examples { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sim-choices { grid-template-columns: 1fr; }
  .sim-room__dims { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sim-row { grid-template-columns: 1fr; }
  .sim-legend { grid-template-columns: repeat(2, 1fr); }
  .sim-total { display: none; }
  .sim-mbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 12px; background: rgba(7,27,54,.94); color: #fff; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); backdrop-filter: blur(10px); }
  .sim-mbar small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
  .sim-mbar b { font-family: var(--font-display); font-size: 17px; }
  .sim-mbar .btn { padding: 12px 18px; }
  .sim ~ * .footer, body:has(.sim-mbar) .footer { padding-bottom: 110px; }
}

/* Impression : seule l'estimation détaillée */
@media print {
  .header, .page-hero, .sim, .metre, .footer, .mobile-bar, .sim-mbar, .wipe, .skip, .sim-detail__actions, section:not(#sim-detail) { display: none !important; }
  body { background: #fff; }
  #sim-detail { padding: 0; }
  .sim-detail { box-shadow: none; border: 0; padding: 0; }
  .sim-detail::before { content: "JMP Peinture · Estimation indicative"; display: block; font: 700 20px var(--font-display); color: #123A6B; margin-bottom: 10px; }
}
/* Simulateur : champs lisibles et légende compacte */
.sim-room__dims { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sim-input--sm input { min-width: 3.2em; }
@media (max-width: 640px) {
  .sim-room__dims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim-viewer { aspect-ratio: 4 / 3.4; }
  .sim-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; gap: 2px; left: 6px; right: 6px; bottom: 6px; }
  .sim-legend li { font-size: 10.5px; padding: 4px 4px 4px 15px; }
  .sim-legend i { left: 5px; top: 8px; width: 7px; height: 7px; }
  .sim-legend b { font-size: 12.5px; }
  .sim-viewer__tip { display: none; }
  .sim-lbl { font-size: 10.5px; }
}

/* ==========================================================================
   Modernisation UX/UI
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
::selection { background: var(--orange-soft); color: var(--navy-ink); }

/* En-tête qui se resserre au défilement */
.header { transition: background .35s, box-shadow .35s, height .35s var(--ease); }
.header.is-solid, .header.is-dark { height: 64px; }
.header.is-solid .brand, .header.is-dark .brand { width: 112px; height: 44px; }
.brand { transition: width .35s var(--ease), height .35s var(--ease); }
.nav a[href="simulateur.html"]:not(.btn)::before { content: "2 min"; position: absolute; top: -9px; right: -14px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 5px; border-radius: 6px; background: var(--orange); color: var(--navy-ink); }
@media (max-width: 900px) { .nav a[href="simulateur.html"]:not(.btn)::before { position: static; display: inline-block; margin-right: 8px; vertical-align: middle; font-size: 11px; } }

/* Bloc d'appel au simulateur */
.sim-teaser { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 52px); position: relative; overflow: hidden; }
.sim-teaser::after { content: ""; position: absolute; right: -10%; bottom: -30%; width: 70%; height: 90%; background: url("../img/pinceau.png") center / contain no-repeat; opacity: .14; transform: rotate(-8deg); pointer-events: none; }
.sim-teaser .eyebrow { color: var(--orange); }
.sim-teaser .h2 { margin: 12px 0 14px; color: #fff; }
.sim-teaser p { margin: 0 0 20px; color: rgba(255,255,255,.78); max-width: 52ch; }
.sim-teaser__steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; font-weight: 600; }
.sim-teaser__steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); margin-right: 8px; font-size: 12px; }
.sim-teaser__visual { position: relative; z-index: 1; display: grid; gap: 12px; }
.sim-teaser__card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 18px 20px; display: grid; gap: 2px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); transform: rotate(-1.5deg); }
.sim-teaser__card span { font-size: 13px; color: var(--muted); font-weight: 600; }
.sim-teaser__card b { font-family: var(--font-display); font-size: 30px; color: var(--heading); letter-spacing: -.02em; }
.sim-teaser__card small { font-size: 13px; color: var(--muted); }
.sim-teaser__card--alt { background: var(--orange); transform: rotate(1.5deg) translateX(18px); }
.sim-teaser__card--alt span, .sim-teaser__card--alt small { color: rgba(7,27,54,.7); }
.sim-teaser__card--alt b { color: var(--navy-ink); }
@media (max-width: 800px) { .sim-teaser { grid-template-columns: 1fr; } .sim-teaser__card--alt { transform: rotate(1deg); } }

/* Boutons : retour tactile */
.btn:active { transform: scale(.98); }

/* Très petits écrans (320-380 px) : les grilles peuvent rétrécir sous la largeur de leur contenu */
.contact > *, .sim__grid > *, .fields > *, .sim-room__dims > * { min-width: 0; }
.coord strong { overflow-wrap: anywhere; }
.opt span { white-space: normal; text-align: left; }
@media (max-width: 1000px) { .sim__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) {
  .sim-step { padding: 18px 14px; }
  .sim-room { padding: 14px 12px; }
  .sim-step-btn { width: 26px; }
  .sim-input--sm input { min-width: 2.4em; }
  .sim-input--sm i { display: none; }
  .form { padding: 22px 16px; }
  .side .card--navy { padding: 24px 18px; }
}
@media (max-width: 340px) { .sim-room__dims { grid-template-columns: minmax(0, 1fr); } }
.sim-rooms { grid-template-columns: minmax(0, 1fr); }
.sim-room { min-width: 0; }
.sim-room__checks .sim-mini select { max-width: 100%; }

/* Détail de l'estimation sur mobile : lignes empilées, sans défilement latéral */
@media (max-width: 640px) {
  .sim-detail__actions { width: 100%; }
  .sim-detail__actions .btn { flex: 1 1 100%; justify-content: center; padding: 13px 18px; font-size: 15px; }
  .sim-table { min-width: 0; font-size: 14.5px; }
  .sim-table thead { display: none; }
  .sim-table tbody tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sim-table tbody th { grid-column: 1 / -1; padding: 0 0 4px; border: 0; font-weight: 600; color: var(--heading); }
  .sim-table tbody td { padding: 0; border: 0; color: var(--muted); font-size: 13.5px; }
  .sim-table tbody td:nth-child(3)::before { content: "× "; }
  .sim-table tbody td:last-child { color: var(--ink); font-weight: 700; font-size: 14.5px; }
  .sim-table tbody td.sim-empty { grid-column: 1 / -1; text-align: center; }
  .sim-table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; }
  .sim-table tfoot th, .sim-table tfoot td { border: 0; padding: 10px 0; }
  .sim-table__ttc { padding: 0 12px; border-radius: var(--radius); background: var(--orange-soft); }
  .sim-table__ttc th, .sim-table__ttc td { background: transparent; }
}
@media (max-width: 640px) {
  .sim-table tbody td.is-na { visibility: hidden; }
  .metre__formula { flex-direction: column; gap: 6px; }
  .metre__formula span { flex: none; }
  .metre__formula i { text-align: center; line-height: 1; font-size: 22px; }
}

/* Simulateur : retour visuel, reprise de saisie, 3D compacte sur tablette et mobile */
@keyframes sim-bump { 0% { transform: scale(1); } 35% { transform: scale(1.045); color: var(--orange); } 100% { transform: scale(1); } }
.sim-total__v, .sim-mbar__v { display: inline-block; transform-origin: left center; }
.sim-total__v.is-updated, .sim-mbar__v.is-updated { animation: sim-bump .45s var(--ease); }
.sim-restored { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--orange-soft); border-left: 3px solid var(--orange); font-size: 14.5px; }
.sim-restored button { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 700; color: var(--heading); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .sim-viewer { aspect-ratio: 16 / 9; max-height: 340px; }
  .sim-total { grid-template-columns: 1fr auto; align-items: center; column-gap: 20px; }
  .sim-total .btn { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .sim-total__link { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 640px) { .sim-viewer { aspect-ratio: 4 / 3.2; max-height: none; } }
@media (prefers-reduced-motion: reduce) { .sim-total__v.is-updated, .sim-mbar__v.is-updated { animation: none; } }
