/* ============================================================
   compagnon — v2 · style éditorial (inspiration afterquery.com)
   Fond crème, sérif Source Serif 4, minimal, images N&B arrondies
   ============================================================ */

:root {
  --bg-rgb: 248, 248, 243;
  --bg:     rgb(var(--bg-rgb));
  --ink:    #0a0a0a;
  --muted:  rgba(0,0,0,0.6);
  --muted2: rgba(0,0,0,0.4);
  --line:   rgba(0,0,0,0.13);
  --btn-bg: rgba(0,0,0,0.9);
  --btn-fg: #f8f8f3;
  --btn-soft: rgba(0,0,0,0.06);
  --btn-soft-hover: rgba(0,0,0,0.1);
  --serif:  "Source Serif 4", Georgia, serif;
  --sans:   "Inter", system-ui, sans-serif;
  --mono:   "Fragment Mono", ui-monospace, monospace;
  --maxw:   1080px;
  --pad:    clamp(20px, 5vw, 40px);
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg-rgb: 14, 14, 13;
  --ink:    #f3f1ea;
  --muted:  rgba(255,255,255,0.62);
  --muted2: rgba(255,255,255,0.4);
  --line:   rgba(255,255,255,0.14);
  --btn-bg: #f3f1ea;
  --btn-fg: #0e0e0d;
  --btn-soft: rgba(255,255,255,0.1);
  --btn-soft-hover: rgba(255,255,255,0.16);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; }
main { padding-top: 0; }

/* sérif réservé aux titres d'affichage + sous-titre + chiffres */
.brand, .hero__title, .hero__sub, .block__title, .trust__label,
.cta-band__text h2, .stat strong {
  font-family: var(--serif);
}

/* ---------- nav : fixe, pleine largeur, liens centrés (comme afterquery) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--pad);
  background: var(--bg);
  border: 1px solid transparent; border-radius: 0;
  transition: max-width .4s var(--ease), padding .4s var(--ease), top .4s var(--ease),
              border-radius .4s var(--ease), background .3s, box-shadow .3s, border-color .3s;
}
/* au scroll : la nav rétrécit en pill flottante */
.nav.is-stuck {
  top: 12px; max-width: 980px;
  padding: 9px 10px 9px 18px;
  border-radius: 10000px;
  background: rgba(var(--bg-rgb), 0.8); backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: 0 10px 34px rgba(0,0,0,0.1);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.brand__logo { height: 19px; width: auto; display: block; }
[data-theme="dark"] .brand__logo { filter: invert(1) brightness(1.8); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav__link {
  font-family: var(--sans); font-size: 14px; color: var(--muted);
  text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.nav__link:hover { color: var(--ink); }

.nav__theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: 0 0 auto;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  border-radius: 999px; transition: background 0.2s;
}
.nav__theme:hover { background: var(--btn-soft); }
.nav__theme svg { width: 18px; height: 18px; }
.nav__theme .ic-sun { display: none; }
[data-theme="dark"] .nav__theme .ic-sun { display: block; }
[data-theme="dark"] .nav__theme .ic-moon { display: none; }

.nav__toggle { display: none; }

@media (max-width: 700px) {
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 38px; height: 38px; padding: 9px;
    background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 1.6px; width: 100%; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
  .nav--open .nav__toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

  .nav__right {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
    padding: 14px; box-shadow: 0 18px 44px rgba(0,0,0,0.14);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav--open .nav__right { opacity: 1; visibility: visible; transform: none; }
  .nav__right .btn, .nav__link { width: 100%; text-align: center; }
  .nav__right .btn--ghost { display: inline-flex; }
  .nav__link { padding: 10px; }
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: 1.15;
  padding: 8px 12px; border-radius: 1000px; text-decoration: none;
  border: 1px solid transparent; transition: all 0.22s var(--ease); white-space: nowrap;
}
.btn--dark { background: var(--btn-bg); color: var(--btn-fg); }
.btn--dark:hover { transform: translateY(-1px); opacity: 0.88; }
.btn--ghost { background: var(--btn-soft); color: var(--ink); }
.btn--ghost:hover { background: var(--btn-soft-hover); }

/* ---------- layout commun ---------- */
main { display: block; }
.hero, .block, .values, .cases, .cta-band, .figure {
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
  padding-left: var(--pad); padding-right: var(--pad);
}

/* ---------- hero ---------- */
/* hero : texte dans un conteneur étroit, indenté vers le centre */
.hero {
  max-width: 1240px;
  padding-top: clamp(96px, 14vh, 150px); padding-bottom: clamp(36px, 6vh, 70px);
  padding-left: clamp(var(--pad), 18vw, 260px);
}
.hero__title {
  font-weight: 400; font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.18; letter-spacing: -0.01em; max-width: 26ch;
}
/* image hero : conteneur plus large que le texte */
.figure--wide { max-width: 1240px; }
.figure--wide .figure__img { aspect-ratio: 337 / 132; }
.hero__sub {
  margin-top: 16px; color: var(--muted); font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.35; max-width: 44ch;
}
.hero__cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- figures (images) ---------- */
.figure { margin-top: clamp(20px, 4vh, 40px); margin-bottom: clamp(40px, 8vh, 96px); }
.figure--wide { margin-top: 8px; }
.figure__img {
  width: 100%; aspect-ratio: 21 / 9; border-radius: 14px;
  background-image: var(--img); background-size: cover; background-position: center;
  border: 1px solid var(--line);
}
.figure__img--gray { filter: none; }
.figure:not(.figure--wide) .figure__img { aspect-ratio: 16 / 8; }

/* ---------- bloc texte (problème, solution, résultats) ---------- */
.block { padding-top: clamp(20px, 4vh, 48px); padding-bottom: clamp(20px, 4vh, 48px); }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 400;
  color: var(--muted); margin-bottom: 18px; letter-spacing: 0.01em;
}
.block__title {
  font-weight: 400; font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2; letter-spacing: -0.01em; max-width: 30ch; margin-bottom: 22px;
}
.block__body { max-width: 60ch; }
.block__body p { color: var(--muted); font-size: 16px; margin-bottom: 15px; }
.block__body p:last-child { margin-bottom: 0; }
.block__lead { margin-top: 38px; color: var(--muted); font-size: 14px; }

/* méthode : liste numérotée 01–04 */
.steps { list-style: none; margin-top: 6px; border-top: 1px solid var(--line); }
.steps li {
  display: grid; grid-template-columns: 42px minmax(110px, 200px) 1fr;
  gap: clamp(16px, 3vw, 40px); align-items: baseline;
  padding: clamp(18px, 2.6vh, 28px) 0; border-bottom: 1px solid var(--line);
}
.steps__num { font-family: var(--mono); font-size: 13px; color: var(--muted2); }
.steps__t { font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -0.01em; }
.steps__d { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 50ch; }

/* ---------- métiers (marquee) ---------- */
.metiers { padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(48px, 8vh, 96px); overflow: hidden; }
.metiers__head { text-align: center; padding: 0 var(--pad); margin-bottom: clamp(28px, 5vh, 48px); }
.metiers__head .title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.01em; line-height: 1.2; color: var(--ink);
}
.serif { font-style: italic; }

.marquee {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.metier-card {
  position: relative; flex: 0 0 auto;
  width: clamp(190px, 20vw, 260px); aspect-ratio: 4 / 5;
  border-radius: 12px; overflow: hidden; text-decoration: none;
  border: 1px solid var(--line);
}
.metier-card__img {
  position: absolute; inset: 0;
  background-image: var(--img); background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease);
}
.metier-card:hover .metier-card__img { transform: scale(1.05); }
.metier-card__label { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.metier-card__label span {
  display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--ink); background: rgba(var(--bg-rgb),0.92); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 1000px; padding: 6px 12px; white-space: nowrap;
}
.metiers__foot { text-align: center; padding: 0 var(--pad); margin-top: clamp(28px, 5vh, 48px); color: var(--muted); font-size: 14px; line-height: 1.5; }
.metiers__foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- stats : bande à filets ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 6px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: clamp(26px, 4vh, 42px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  display: block; font-weight: 400; font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px;
}
.stat span { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- cas récents ---------- */
.cases { padding-top: clamp(56px, 9vh, 110px); padding-bottom: clamp(40px, 7vh, 80px); }
.cases__intro { color: var(--muted); max-width: 56ch; margin-bottom: 36px; font-size: 16px; }
/* mosaïque : tuile gauche grande, deux à droite */
.cases__grid {
  display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 12px; height: clamp(420px, 46vw, 580px);
}
.case {
  position: relative; overflow: hidden; border-radius: 12px;
  text-decoration: none; border: 1px solid var(--line);
}
.case:nth-child(1) { grid-row: 1 / 3; }
.case__img {
  position: absolute; inset: 0;
  background-image: var(--img); background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
/* N&B par défaut, couleur au survol (appareils à survol uniquement) */
@media (hover: hover) {
  .case__img { filter: grayscale(1) contrast(1.03); }
  .case:hover .case__img { filter: grayscale(0); transform: scale(1.04); }
}
.case::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0) 55%);
}
.case__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 18px; }
.case__title { color: #fff; font-weight: 500; font-size: 15px; line-height: 1.32; letter-spacing: -0.005em; margin-bottom: 6px; }
.case__meta { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.78); }

/* ---------- bandeau CTA ---------- */
.cta-band {
  position: relative; overflow: hidden;
  margin-top: clamp(40px, 7vh, 90px); margin-bottom: clamp(60px, 10vh, 120px);
  border-radius: 18px; padding: clamp(36px, 5vw, 60px);
  background: linear-gradient(105deg, #c3b491 0%, #d9cfb6 55%, #efe9d8 100%);
  color: #2a2418;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
/* grain sur le bandeau */
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cta-band__text, .cta-band__link { position: relative; z-index: 1; }
.cta-band__text h2 { font-weight: 400; font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.01em; margin-bottom: 10px; }
.cta-band__text p { max-width: 48ch; color: #4a4231; font-size: 16px; line-height: 1.5; }
.cta-band__link {
  font-family: var(--sans); font-weight: 500; font-size: 14px; text-decoration: none;
  background: rgba(0,0,0,0.9); color: #f8f8f3; padding: 11px 20px; border-radius: 1000px;
  white-space: nowrap; transition: transform 0.22s var(--ease), background 0.22s;
}
.cta-band__link:hover { transform: translateY(-1px); background: rgba(0,0,0,0.82); }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 56px var(--pad) 72px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.4fr 3fr; gap: 40px 24px; align-items: start;
}
.footer .brand { font-size: 18px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__h { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted2); margin-bottom: 14px; }
.footer__cols a { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 9px; transition: color 0.2s; }
.footer__cols a:hover { color: var(--ink); }
.footer__copy { grid-column: 1 / -1; font-family: var(--mono); font-size: 13px; color: var(--muted2); margin-top: 20px; }

/* ---------- engagements : liste à révélation ---------- */
.values { padding-top: clamp(56px, 9vh, 110px); padding-bottom: clamp(56px, 9vh, 110px); }
.values .eyebrow { margin-bottom: clamp(20px, 3vh, 32px); }
.values__list { display: flex; flex-direction: column; }
.value {
  display: grid; grid-template-columns: 1fr minmax(200px, 300px);
  align-items: center; gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line); padding: clamp(20px, 3.2vh, 34px) 0;
}
.value:last-child { border-bottom: 1px solid var(--line); }
.value__row { display: flex; align-items: center; min-width: 0; }
.value__media {
  flex: 0 0 auto; width: 0; height: clamp(64px, 9vh, 104px); overflow: hidden;
  border-radius: 8px; margin-right: 0;
  transition: width 0.7s var(--ease), margin-right 0.7s var(--ease);
}
.value__img {
  width: clamp(120px, 14vw, 180px); height: 100%;
  background-image: var(--img); background-size: cover; background-position: center;
}
.value__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.01em; line-height: 1.12; color: var(--ink);
  opacity: 0.32; transition: opacity 0.5s var(--ease); min-width: 0;
}
.value__text {
  font-size: 14px; color: var(--muted); line-height: 1.5;
  opacity: 0.32; transition: opacity 0.5s var(--ease), color 0.5s var(--ease);
}
/* desktop : révélation au survol de la ligne */
@media (hover: hover) and (min-width: 861px) {
  .value:hover .value__media { width: clamp(120px, 14vw, 180px); margin-right: clamp(16px, 1.6vw, 28px); }
  .value:hover .value__title { opacity: 1; }
  .value:hover .value__text  { opacity: 1; color: var(--ink); }
}

/* ============================================================
   PAGE « Nos commerces à vendre »
   ============================================================ */
.nav__link.is-current { color: var(--ink); }
.page { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.page-head { padding-top: clamp(110px, 16vh, 180px); padding-bottom: clamp(36px, 6vh, 64px); }
.page-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -0.015em; line-height: 1.1;
}
.page-intro { margin-top: 16px; max-width: 60ch; color: var(--muted); font-size: 16px; line-height: 1.55; }

.listing { margin-top: 8px; }
.lr {
  position: relative; overflow: hidden; text-decoration: none; color: var(--ink);
  display: grid; grid-template-columns: 44px 1.7fr 1fr 0.8fr 0.9fr;
  gap: clamp(12px, 2vw, 32px); align-items: baseline;
  padding: clamp(16px, 2.3vh, 24px) clamp(10px, 1.6vw, 20px);
  border-bottom: 1px solid var(--line);
  transition: color 0.35s var(--ease);
}
.lr:not(.lr--head):first-of-type { border-top: 1px solid var(--line); }
/* le voile noir qui couvre depuis le bas au survol */
.lr::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--ink);
  transform: translateY(101%); transition: transform 0.45s var(--ease);
}
.lr:hover::before { transform: translateY(0); }
.lr > * { position: relative; z-index: 1; }
.lr:hover { color: var(--bg); }

.lr__num { font-family: var(--mono); font-size: 12px; color: var(--muted2); }
.lr__name { font-family: var(--serif); font-size: clamp(16px, 1.6vw, 21px); letter-spacing: -0.01em; }
.lr__loc, .lr__ca { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.lr__price { font-family: var(--serif); font-size: clamp(15px, 1.5vw, 19px); text-align: right; }
.lr:hover .lr__num { color: rgba(var(--bg-rgb),0.55); }
.lr:hover .lr__loc, .lr:hover .lr__ca { color: rgba(var(--bg-rgb),0.7); }

/* en-tête de colonnes */
.lr--head { border-bottom: 1px solid var(--ink); padding-top: 0; padding-bottom: 12px; }
.lr--head::before { display: none; }
.lr--head:hover { color: var(--ink); }
.lr--head span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted2); }
.lr--head .lr__name, .lr--head .lr__price { font-family: var(--mono); }

.listing-foot { padding: clamp(40px, 7vh, 80px) 0 clamp(80px, 12vh, 130px); color: var(--muted); font-size: 16px; }
.listing-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- révélation au scroll (fade + blur léger → net) ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(16px); filter: blur(5px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; filter: blur(0); }

/* ---------- titres animés mot par mot ---------- */
.word {
  display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(7px);
  transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, filter, transform;
}
.words-in .word { opacity: 1; filter: blur(0); transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  /* steps : numéro à gauche, titre + description empilés */
  .steps li { grid-template-columns: 36px 1fr; row-gap: 4px; }
  .steps__t, .steps__d { grid-column: 2; }
  /* stats : empilées, filets horizontaux */
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0; }
  .stat:first-child { border-top: 0; }
  .cases__grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; gap: 14px; }
  .case { grid-row: auto !important; aspect-ratio: 4 / 3; }

  /* listing : lignes empilées (nom + prix, puis ville + CA) */
  .lr { grid-template-columns: 1fr auto; gap: 5px 16px; }
  .lr__num, .lr--head { display: none; }
  .lr__name { grid-column: 1; grid-row: 1; }
  .lr__price { grid-column: 2; grid-row: 1; }
  .lr__loc  { grid-column: 1; grid-row: 2; }
  .lr__ca   { grid-column: 2; grid-row: 2; text-align: right; }
  .footer { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-band { flex-direction: column; align-items: flex-start; }

  /* hero : plus d'indentation, pleine largeur */
  .hero, .figure--wide { max-width: 100%; }
  .hero { padding-left: var(--pad); }

  /* ----- comportement scroll identique à la v1 : snap plein écran ----- */
  html:has(.home) { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
  .home .hero, .home .metiers, .home .block, .home .cases, .home .cta-band, .home .footer {
    min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: clamp(80px, 12vh, 120px); padding-bottom: clamp(40px, 8vh, 80px);
    margin-top: 0; margin-bottom: 0;
  }
  .home .metiers, .home .cases, .home .cta-band { align-items: stretch; }
  .home .metiers { overflow: hidden; }
  .home .footer { justify-content: flex-end; }

  /* l'image devient le FOND de la section liée (primeur → Le problème).
     Le hero, lui, reste sans image de fond. */
  .figure { display: none; }
  #probleme { position: relative; overflow: hidden; isolation: isolate; }
  #probleme::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center;
    background-image: url("assets/primeur.jpg");
  }
  #probleme::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, rgba(var(--bg-rgb),0.55) 0%, rgba(var(--bg-rgb),0.78) 55%, rgba(var(--bg-rgb),0.9) 100%);
  }

  /* engagements : chaque ligne = un écran plein, image révélée au scroll */
  .values { display: block; padding: 0; }
  .values .eyebrow { display: none; }
  .values__list { display: block; }
  .value {
    min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always;
    grid-template-columns: none; gap: 0; border: 0 !important;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(80px, 12vh, 120px) var(--pad) clamp(40px, 8vh, 80px);
  }
  .value__row { display: block; }
  .value__media { width: 100% !important; height: auto; aspect-ratio: 4 / 3; margin: 0 0 26px !important; border-radius: 12px; }
  .value__img { width: 100%; height: 100%; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease); }
  .value.is-active .value__img { clip-path: inset(0 0 0 0); }
  .value__title { font-size: clamp(24px, 8vw, 34px); opacity: 0.25; line-height: 1.12; }
  .value.is-active .value__title { opacity: 1; }
  .value__text { font-size: 16px; opacity: 0.3; margin-top: 18px; }
  .value.is-active .value__text { opacity: 1; color: var(--ink); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero__cta .btn { flex: 1; }
  .footer__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
