/* HEXIS Web — app.css
   Généré à la main pour le scaffold. En production : buildé depuis assets-src/scss
   avec design-tokens.json comme source. Les :root ci-dessous reflètent ces tokens. */

:root {
  --c-graphics: #E2001A;
  --c-energy:   #F5A623;
  --c-training: #4A90D9;
  --c-corporate:#232323;
  --c-ink:      #0E0E10;
  --c-paper:    #FBFBF9;
  --c-muted:    #6B6B70;
  --c-line:     #E6E4DF;
  --c-accent:   var(--c-graphics);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --ease-signature: cubic-bezier(.16, 1, .3, 1);
  --dur-reveal: .7s;
  --dur-page: .5s;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

.theme-graphics { --c-accent: var(--c-graphics); }
.theme-energy   { --c-accent: var(--c-energy); }
.theme-training { --c-accent: var(--c-training); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--c-ink); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── Boutons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease-signature), background .25s, color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--c-ink); color: #fff; }
.btn--solid:hover { background: var(--c-accent); }
.btn--ghost { border: 1px solid var(--c-line); }
.btn--ghost:hover { border-color: var(--c-ink); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--c-paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--c-line); }
.site-header__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.logo-mark { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; font-size: 1.25rem; }
.site-logo { height: 32px; width: auto; display: block; }
.site-header__logo { display: inline-flex; align-items: center; }
.site-logo--invert { height: 34px; filter:grayscale(1); opacity: .92; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-right: auto; }
.site-nav__link { position: relative; font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.site-nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--c-accent); transition: width .3s var(--ease-signature);
}
.site-nav__link:hover::after { width: 100%; }
.nav-item { position: relative; }
.site-nav__menu {
  position: absolute; top: 140%; left: 0; min-width: 220px; padding: .5rem;
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.nav-item:hover .site-nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav__menu a { display: block; padding: .55rem .75rem; border-radius: 8px; font-size: .92rem; }
.site-nav__menu a:hover { background: var(--c-paper); }

/* Méga-menu Produits (pleine largeur, piloté PIM) */
.nav-item--mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--c-line);
  box-shadow: 0 34px 50px -32px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .28s var(--ease-signature), transform .28s var(--ease-signature), visibility .28s;
}
.nav-item--mega:hover .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.4rem 2rem; padding: 2.2rem 0; align-items: start; }
.mega__col { display: flex; flex-direction: column; gap: .3rem; }
.mega__cat { font-family: var(--font-display); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35rem; }
.mega__cat:hover { color: var(--c-accent); }
.mega__link { font-size: .86rem; color: var(--c-muted); }
.mega__link:hover { color: var(--c-ink); }
.mega__feature { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; padding-top: 1.4rem; margin-top: .4rem; border-top: 1px solid var(--c-line); }
.mega__feature span { color: var(--c-muted); font-size: .9rem; }

.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; gap: .35rem; }
.lang { font-size: .74rem; font-weight: 600; color: var(--c-muted); }
.lang.is-active { color: var(--c-ink); }

/* Burger + menu mobile */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: none; border: 1px solid var(--c-line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--c-ink); transition: transform .3s var(--ease-signature), opacity .2s; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { position: fixed; inset: 72px 0 0; background: var(--c-paper); padding: 1.5rem var(--gutter) 3rem; overflow-y: auto; display: flex; flex-direction: column; gap: .4rem; transform: translateX(100%); transition: transform .35s var(--ease-signature); z-index: 40; }
.mobile-nav[hidden] { display: none; }   /* sinon display:flex écrase [hidden] → panneau hors-écran = scroll horizontal */
body.nav-lock .mobile-nav { transform: none; }   /* panneau désormais hors du <header> (voir header.php) → on cible body.nav-lock, posé par le JS */
.mobile-nav .search-form--page { margin: 0 0 1rem; max-width: none; }
.mobile-nav__list { display: flex; flex-direction: column; }
.mobile-nav__list > a, .mobile-nav summary { display: block; padding: .95rem .2rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; border-bottom: 1px solid var(--c-line); cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; float: right; color: var(--c-muted); font-weight: 400; }
.mobile-nav details[open] summary::after { content: "–"; }
.mobile-nav__sub { display: flex; flex-direction: column; padding: .4rem 0 .8rem .6rem; }
.mobile-nav__sub a { padding: .5rem 0; color: var(--c-muted); font-size: .98rem; }
.mobile-nav__sub a:hover { color: var(--c-ink); }
.mobile-nav__account { margin-top: 1.4rem; text-align: center; }
.mobile-nav__langs { display: flex; gap: 1rem; margin-top: 1.4rem; }
.mobile-nav__langs .lang { font-size: .9rem; }
body.nav-lock { overflow: hidden; }

@media (max-width: 1040px) {
  .site-nav, .site-header__actions .search-form, .site-header__actions .prefs, .btn--account { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  padding-block: clamp(3rem, 10vh, 8rem); overflow: hidden; color: #fff;
  background: radial-gradient(120% 120% at 70% 10%, #26262b 0%, var(--c-ink) 55%);
}
.hero__media {
  position: absolute; inset: 0;
  background-image: var(--hero-media, none); background-size: cover; background-position: center;
  opacity: .5; scale: 1.08; translate: 0 0;          /* scale = reveal, translate = parallax (indépendants) */
  transition: scale 1.4s var(--ease-signature);
  will-change: translate;
}
.hero.is-visible .hero__media { scale: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 100%);
}
.hero__inner { position: relative; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); margin: 0 0 1rem; max-width: 14ch; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 48ch; color: rgba(255,255,255,.85); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.5rem; width: 1px; height: 46px;
  background: linear-gradient(#fff, transparent); animation: scrollpulse 2s var(--ease-signature) infinite;
}
@keyframes scrollpulse { 0%,100% { opacity: .2; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* Boutons d'action du hero (fond sombre) */
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero__actions .btn--solid { background: var(--c-accent); color: #fff; }
.hero__actions .btn--solid:hover { background: #fff; color: var(--c-ink); }
.hero__actions .btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.hero__actions .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* Barre de progression de lecture (haut de page) */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: var(--c-accent); transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform; pointer-events: none;
}

/* ── Blocs de contenu ────────────────────────────────────── */
.page > *, .block { padding-block: clamp(3rem, 8vh, 6rem); }
.page h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 20ch; }
.page p, .page ul { max-width: 68ch; font-size: 1.08rem; }
.page .container, .page > h2, .page > p, .page > ul { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.page ul { padding-left: 1.1rem; }
.page li { margin-block: .4rem; }

/* ── Nuancier ────────────────────────────────────────────── */
.swatches__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.25rem; margin-top: 2rem;
}
.swatch { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--c-line); background: #fff;
  transition: transform .35s var(--ease-signature), box-shadow .35s; }
.swatch:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.35); }
a.swatch { display: block; text-decoration: none; color: inherit; }
a.swatch:hover { border-color: var(--c-accent); }
.swatch__chip { display: block; height: 120px; background: var(--swatch, #d9d7d2); }
.swatch__chip--img { padding: 0; }
.swatch__chip--img img { width: 100%; height: 120px; object-fit: cover; display: block; }
.swatch figcaption { padding: .8rem 1rem; display: flex; flex-direction: column; }
.swatch figcaption strong { font-size: .95rem; }
.swatch figcaption span { font-size: .8rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.swatches__note { margin-top: 1.5rem; font-size: .85rem; color: var(--c-muted); }
.swatches__all { margin-left: .5rem; font-weight: 600; color: var(--c-accent, currentColor); text-decoration: underline; text-underline-offset: 2px; }
.swatches__all::after { content: " →"; }
.swatches__all:hover { text-decoration: none; }

/* ── CTA ─────────────────────────────────────────────────── */
.cta { padding-block: clamp(2.5rem, 7vh, 5rem); }
.cta__inner {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between;
  padding: clamp(2.25rem, 5vw, 4rem); border-radius: 28px;
  background: linear-gradient(120deg, var(--c-ink), #24242b); color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 64px -34px rgba(0,0,0,.65);
  transition: transform .5s var(--ease-signature), box-shadow .5s var(--ease-signature);
}
.cta__inner:hover { transform: translateY(-3px); box-shadow: 0 44px 84px -34px rgba(0,0,0,.75); }
.cta__inner::after {                 /* halo accent diffus, sous le contenu */
  content: ""; position: absolute; z-index: 0; top: -45%; right: -6%;
  width: min(440px, 55%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--c-accent), transparent 68%);
  opacity: .3; filter: blur(28px); pointer-events: none;
}
.cta__text { max-width: 48ch; }
.cta__text :is(h2,h3) { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: 0 0 .4rem; }
.cta__text :is(h2,h3,p) { margin-block: .2rem; }
.cta__text p { color: rgba(255,255,255,.72); font-size: 1.05rem; }
.cta .btn--solid { background: var(--c-accent); color: #fff; box-shadow: 0 12px 30px -12px rgba(0,0,0,.55); }
.cta .btn--solid::after { content: "→"; margin-left: .15rem; transition: transform .25s var(--ease-signature); }
.cta .btn--solid:hover::after { transform: translateX(4px); }

/* ── Footer ──────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.site-footer { margin-top: 4rem; padding-block: 3rem 1.5rem; background: var(--c-ink); color: #cfcfd3; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; }
.site-footer__brand { max-width: 32ch; }
.site-footer__brand p { color: #9a9aa0; }
.site-footer__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.site-footer__social-link { display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; color: #cfcfd3;
  background: rgba(255,255,255,.06); transition: background .2s, color .2s; }
.site-footer__social-link:hover { background: var(--c-accent); color: #fff; }

.site-footer__cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.site-footer__cols h4 { color: #fff; margin: 0 0 .8rem; font-size: .95rem; }
.site-footer__cols a { display: block; padding: .25rem 0; color: #cfcfd3; font-size: .92rem; }
.site-footer__cols a:hover { color: #fff; }
.site-footer__contact p { margin: 0 0 .6rem; color: #9a9aa0; font-size: .92rem; line-height: 1.5; }

.site-footer__news { flex: 1 1 260px; max-width: 340px; }
.site-footer__news h4 { color: #fff; margin: 0 0 .5rem; font-size: .95rem; }
.site-footer__news p { color: #9a9aa0; font-size: .9rem; margin: 0 0 1rem; }
.site-footer__news-msg { font-size: .85rem; padding: .55rem .75rem; border-radius: 6px; }
.site-footer__news-msg--ok  { color: #b8f0c8; background: rgba(46, 160, 87, .15); }
.site-footer__news-msg--err { color: #f3b7b7; background: rgba(200, 60, 60, .15); }
.site-footer__news-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.site-footer__news-form input { flex: 1 1 160px; min-width: 0; padding: .6rem .8rem;
  border: 1px solid rgba(255,255,255,.15); border-radius: 6px; background: rgba(255,255,255,.04);
  color: #fff; font-size: .9rem; }
.site-footer__news-form input::placeholder { color: #7f7f86; }
.site-footer__news-form input:focus { outline: none; border-color: var(--c-accent); }

.site-footer__eco { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__eco-label { color: #7f7f86; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer__eco-list { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.site-footer__eco-link { color: #cfcfd3; font-size: .88rem; }
.site-footer__eco-link:hover { color: #fff; }

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #7f7f86; }
.site-footer__legal a { color: #7f7f86; }
.site-footer__legal a:hover { color: #fff; }

/* ── Motion / reveals ────────────────────────────────────── */
.motion-ready .reveal { --reveal-y: 34px; opacity: 0; transition: opacity var(--dur-reveal) var(--ease-signature),
  transform var(--dur-reveal) var(--ease-signature), clip-path var(--dur-reveal) var(--ease-signature); }
.motion-ready .reveal[data-motion="reveal-up"]    { transform: translateY(var(--reveal-y)); }
.motion-ready .reveal[data-motion="reveal-fade"]  { transform: none; }
.motion-ready .reveal[data-motion="reveal-mask"]  { clip-path: inset(0 0 100% 0); }
.motion-ready .reveal[data-motion="reveal-scale"] { transform: scale(.965); transform-origin: center bottom; }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* ── Marquee de teintes (colorstrip) ─────────────────────── */
.colorstrip {
  padding-block: clamp(.85rem, 2.5vw, 1.5rem); overflow: hidden;
  background: linear-gradient(180deg, #16161c, var(--c-ink));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.colorstrip__track { display: flex; gap: 10px; width: max-content; padding-block: 5px; animation: marquee 40s linear infinite; }
.colorstrip__track--reverse { padding-top: 0; animation-direction: reverse; animation-duration: 52s; }
.colorstrip:hover .colorstrip__track { animation-play-state: paused; }
.colorstrip__chip {
  flex: 0 0 auto; width: clamp(76px, 8vw, 104px); height: clamp(52px, 5.5vw, 68px);
  border-radius: 10px; overflow: hidden; background: #2a2a30;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  transition: transform .35s var(--ease-signature), box-shadow .35s var(--ease-signature);
}
.colorstrip__chip:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 24px -10px rgba(0,0,0,.6); }
.colorstrip__chip img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Split media / texte ─────────────────────────────────── */
.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
  aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; position: relative;
  background: var(--split-media, linear-gradient(135deg, #26262b, var(--c-ink)));
  background-size: cover; background-position: center;
}
.split__badge { position: absolute; inset: auto 1.2rem 1.2rem auto; width: 46px; height: 46px; border-radius: 50%; background: var(--c-accent); }
.split__text h2, .split__text h3 { margin-top: 0; }
.split__text p { color: var(--c-muted); font-size: 1.08rem; }

/* ── Chiffres-clés ───────────────────────────────────────── */
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.stat { padding: 1.75rem; border: 1px solid var(--c-line); border-radius: 20px; background: #fff; }
.stat__value { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; color: var(--c-accent); }
.stat__label { display: block; margin-top: .4rem; color: var(--c-muted); font-size: .95rem; }

/* ── Cartes features ─────────────────────────────────────── */
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.feature { padding: 2rem; border-radius: 20px; background: #fff; border: 1px solid var(--c-line); transition: transform .35s var(--ease-signature), box-shadow .35s; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -28px rgba(0,0,0,.3); }
.feature__dot { display: block; width: 34px; height: 34px; border-radius: 10px; background: var(--c-accent); margin-bottom: 1.1rem; }
.feature h3 { margin: 0 0 .6rem; font-size: 1.2rem; }
.feature p { color: var(--c-muted); font-size: 1rem; margin: 0; }

/* ── Comparatif en cartes (bloc ::compare::) ─────────────── */
.compare__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.compare__card {
  display: flex; flex-direction: column; padding: 1.75rem 1.75rem 2rem;
  border: 1px solid var(--c-line); border-radius: 20px; background: #fff;
  transition: transform .35s var(--ease-signature), box-shadow .35s, border-color .35s;
}
.compare__card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -28px rgba(0,0,0,.3); border-color: var(--c-accent); }
.compare__head { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-line); }
.compare__index { font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.compare__name { margin: 0; font-size: 1.25rem; font-family: var(--font-display); letter-spacing: -.01em; }
.compare__specs { margin: 0; display: flex; flex-direction: column; gap: 1.15rem; }
.compare__spec { display: flex; flex-direction: column; gap: .4rem; }
.compare__spec dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--c-muted); }
.compare__spec dd { margin: 0; }
.compare__meter { display: flex; gap: 4px; margin-bottom: .45rem; }
.compare__meter i { width: 26px; height: 5px; border-radius: 999px; background: var(--c-line); }
.compare__meter i.is-on { background: var(--c-accent); }
.compare__val { display: block; font-size: .95rem; line-height: 1.4; color: var(--c-ink); }

/* ── Déclaration éditoriale (bloc ::statement::) ─────────── */
.statement { padding-block: clamp(4rem, 12vh, 8rem); }
.statement__inner { text-align: center; }
.statement__eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; color: var(--c-accent); margin: 0 0 1.3rem; }
.statement h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -.02em; margin: 0 auto 1.5rem; max-width: 18ch; }
.statement h2 strong { color: var(--c-accent); font-weight: inherit; }
.statement p { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.65; color: var(--c-muted); margin: 0 auto; max-width: 62ch; }
.statement p strong { color: var(--c-ink); font-weight: 600; }

/* ── Grille de familles produits (bloc ::grid::) ─────────── */
.famgrid { padding-block: clamp(3rem, 8vh, 6rem); }
.famgrid__intro { margin-bottom: 2.5rem; }
.famgrid__intro h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 20ch; margin: 0 0 .8rem; }
.famgrid__intro p { max-width: 68ch; font-size: 1.08rem; color: var(--c-muted); margin: 0; }
.famgrid__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.famcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 5; padding: 0; border-radius: 20px; overflow: hidden; isolation: isolate;
  color: #fff; background: var(--c-ink); border: 1px solid var(--c-line);
  transition: transform .4s var(--ease-signature), box-shadow .4s;
}
.famcard__media {
  position: absolute; inset: 0; z-index: -2;
  background: var(--fam-media, linear-gradient(135deg, #26262b, var(--c-ink))) center / cover no-repeat;
  transition: transform .6s var(--ease-signature);
}
.famcard::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 32%, rgba(0,0,0,.55) 68%, rgba(0,0,0,.88) 100%);
}
.famcard:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(0,0,0,.55); }
.famcard:hover .famcard__media { transform: scale(1.07); }
.famcard__body { padding: 1.3rem; display: flex; flex-direction: column; gap: .45rem; }
.famcard__title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.15; letter-spacing: -.01em; }
.famcard__desc { font-size: .85rem; color: rgba(255,255,255,.82); line-height: 1.45; }
.famcard__arrow {
  position: absolute; top: 1.1rem; right: 1.1rem; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 50%; background: var(--c-accent);
  font-family: var(--font-display); font-size: 1.05rem;
  transform: translate(4px, -4px) scale(.85); opacity: 0;
  transition: transform .4s var(--ease-signature), opacity .3s;
}
.famcard:hover .famcard__arrow, .famcard:focus-visible .famcard__arrow { transform: none; opacity: 1; }

/* ── Catalogue & gammes PIM ──────────────────────────────── */
.hero--page { min-height: 44vh; background: radial-gradient(120% 120% at 80% 0%, #2a2a30, var(--c-ink)); }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--c-accent); font-weight: 600; margin: 0 0 .7rem; }
.catalog-group { padding-block: clamp(2rem, 6vh, 4rem); }
.catalog-group h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.catalog-lead { margin: 0 0 .8rem; max-width: 62ch; font-size: 1.02rem; line-height: 1.55; color: var(--c-muted); }
.catalog-agg { margin: 0 0 1.5rem; font-size: .95rem; color: var(--c-muted); }
.catalog-agg strong { color: var(--c-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.gamme-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--c-line); transition: transform .35s var(--ease-signature), box-shadow .35s; }
.gamme-card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -28px rgba(0,0,0,.32); }
.gamme-card__media { aspect-ratio: 4 / 3; background: #f0eee9 center / cover no-repeat; }
.gamme-card__strip { display: flex; gap: 2px; padding: 6px 6px 0; }
.gamme-card__chip { flex: 1 1 0; height: 16px; border-radius: 3px; overflow: hidden; background: var(--c-line); }
.gamme-card__chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gamme-card__body { padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; }
.gamme-card__body strong { font-size: 1rem; line-height: 1.2; }
.gamme-card__body span { font-size: .85rem; color: var(--c-muted); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
/* Cartes descriptives : badge de type + usage rédigé (front-matter `ranges:`) */
.catalog-grid--rich { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.gamme-card__badge {
  font-style: normal; font-size: .68rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--c-accent); border: 1px solid currentColor; border-radius: 999px; padding: .18em .6em; white-space: nowrap;
}
.gamme-card__desc { margin: .5rem 0 0; font-size: .85rem; line-height: 1.45; color: var(--c-muted); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.product { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--c-line); background: #fff; transition: transform .3s var(--ease-signature); }
.product:hover { transform: translateY(-4px); }
.product__chip { display: block; height: 110px; background: var(--swatch, #e7e5e0); }
.product__chip img { width: 100%; height: 110px; object-fit: cover; display: block; }
.product figcaption { padding: .7rem .85rem; display: flex; flex-direction: column; gap: .15rem; }
.product figcaption strong { font-size: .9rem; }
.product__ref { font-size: .78rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.product__ds { font-size: .75rem; color: var(--c-accent); font-weight: 600; margin-top: .3rem; text-decoration: none; }
a.product { text-decoration: none; color: inherit; }
.product__fam { font-size: .72rem; color: var(--c-accent); }

/* ── Recherche ───────────────────────────────────────────── */
.search-form input { border: 1px solid var(--c-line); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-size: .85rem; width: 150px; background: #fff; transition: width .3s var(--ease-signature), border-color .3s; }
.search-form input:focus { outline: none; border-color: var(--c-ink); width: 210px; }
.search-form--page { display: flex; gap: .6rem; margin-top: 1.75rem; max-width: 540px; }
.search-form--page input { flex: 1; width: auto; font-size: 1rem; padding: .85rem 1.3rem; }
.search-count { color: var(--c-muted); font-weight: 400; }
.search-section { font-size: 1.15rem; margin: 2.25rem 0 1.1rem; }
.search-section:first-child { margin-top: 0; }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.search-result a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--c-line); border-radius: 14px; background: #fff; transition: border-color .25s var(--ease-signature), transform .25s var(--ease-signature); }
.search-result a:hover { border-color: var(--c-ink); transform: translateY(-2px); }
.search-result__type { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin-bottom: .3rem; }
.search-result__title { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.search-result__excerpt { display: block; margin-top: .3rem; color: var(--c-muted); font-size: .9rem; }

/* ── Actualités ──────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem; margin-top: 1rem; }
.news-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--c-line); transition: transform .35s var(--ease-signature), box-shadow .35s; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -28px rgba(0,0,0,.3); }
.news-card__media { aspect-ratio: 16 / 9; background: #26262b center / cover no-repeat; }
.news-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.news-card__body time { font-size: .78rem; color: var(--c-accent); font-weight: 600; }
.news-card__body strong { font-size: 1.15rem; line-height: 1.25; }
.news-card__body p { color: var(--c-muted); font-size: .92rem; margin: 0; }

/* ── Motion / reveals ────────────────────────────────────── */
.motion-ready .reveal { --reveal-y: 34px; opacity: 0; transition: opacity var(--dur-reveal) var(--ease-signature),
  transform var(--dur-reveal) var(--ease-signature), clip-path var(--dur-reveal) var(--ease-signature); }
.motion-ready .reveal[data-motion="reveal-up"]    { transform: translateY(var(--reveal-y)); }
.motion-ready .reveal[data-motion="reveal-fade"]  { transform: none; }
.motion-ready .reveal[data-motion="reveal-mask"]  { clip-path: inset(0 0 100% 0); }
.motion-ready .reveal[data-motion="reveal-scale"] { transform: scale(.965); transform-origin: center bottom; }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* Reveal en cascade (stagger) : les enfants apparaissent en séquence. */
.motion-ready .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-signature), transform .6s var(--ease-signature); }
.motion-ready .stagger.is-visible > * { opacity: 1; transform: none; }
.stagger > *:nth-child(1) { transition-delay: .02s; } .stagger > *:nth-child(2) { transition-delay: .08s; }
.stagger > *:nth-child(3) { transition-delay: .14s; } .stagger > *:nth-child(4) { transition-delay: .20s; }
.stagger > *:nth-child(5) { transition-delay: .26s; } .stagger > *:nth-child(6) { transition-delay: .32s; }
.stagger > *:nth-child(7) { transition-delay: .38s; } .stagger > *:nth-child(8) { transition-delay: .44s; }
.stagger > *:nth-child(9) { transition-delay: .50s; } .stagger > *:nth-child(10) { transition-delay: .56s; }
.stagger > *:nth-child(n+11) { transition-delay: .60s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none; }
  .hero__scroll { animation: none; }
  .hero__media { animation: none; transition: none; scale: 1; translate: 0; }
  .colorstrip__track { animation: none; }
}

/* ============================================================
   Fiche produit (PDP) — /{locale}/{categorie}/{gamme}/{reference}
   ============================================================ */
.pdp { padding: clamp(1.5rem, 4vw, 3rem) 0 4rem; --pdp-accent: var(--c-accent); }
.pdp__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; color: var(--c-muted); margin-bottom: 1.75rem; }
.pdp__crumbs a { color: var(--c-muted); text-decoration: none; }
.pdp__crumbs a:hover { color: var(--c-ink); }
.pdp__crumbs-cur { color: var(--c-ink); font-weight: 600; }

.pdp__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 800px) { .pdp__grid { grid-template-columns: 1fr; } }

.pdp__media { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 800px) { .pdp__media { position: static; } }
.pdp__imgwrap { border: 1px solid var(--c-line); border-radius: 18px; overflow: hidden; background: #fff; }
.pdp__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pdp__img--empty { display: grid; place-items: center; color: var(--c-muted); font-family: var(--font-display); letter-spacing: .05em; background: #f3f2ef; }

.pdp__docs { display: flex; flex-direction: column; gap: .5rem; }
.pdp__doc { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; border: 1px solid var(--c-line); border-radius: 12px; text-decoration: none; color: var(--c-ink); font-size: .88rem; font-weight: 500; transition: border-color .2s, background .2s; }
.pdp__doc:hover { border-color: var(--pdp-accent); background: #fff; }
.pdp__doc-dl { color: var(--pdp-accent); font-weight: 700; }
/* Barre d'actions gamme (hors PDP) : --pdp-accent n'est pas défini → repli accent global */
.gamme-actions { padding: 1.25rem 0 0; --pdp-accent: var(--c-accent); }
.gamme-actions .pdp__toolbar { margin-top: 0; }
.pdp__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.pdp__tool { cursor: pointer; }
.pdp__profile-cta { display: inline-flex; }
.pdp__profile-cta:empty { display: none; }

/* Favori — n'apparaît que pour un client connecté (piloté par app.js) */
.pdp__fav { display: inline-flex; align-items: center; gap: .45rem; }
.pdp__fav-ico { flex: none; transition: fill .2s, stroke .2s; }
.pdp__fav.is-active { border-color: var(--pdp-accent, var(--c-accent)); color: var(--pdp-accent, var(--c-accent)); }
.pdp__fav.is-active .pdp__fav-ico { fill: var(--pdp-accent, var(--c-accent)); stroke: var(--pdp-accent, var(--c-accent)); }

/* Partage social — liens statiques, indépendants de l'auth */
.pdp__share { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; }
.pdp__share-link { display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border: 1px solid var(--c-line); border-radius: 50%;
  background: none; color: var(--c-muted); cursor: pointer; text-decoration: none;
  transition: color .2s, border-color .2s, background .2s; }
.pdp__share-link:hover { color: var(--pdp-accent, var(--c-accent)); border-color: var(--pdp-accent, var(--c-accent)); background: #fff; }

.pdp__ref { font-size: .8rem; letter-spacing: .06em; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.pdp__title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: .35rem 0 .4rem; display: flex; align-items: center; gap: .6rem; }
.pdp__dot { width: .7em; height: .7em; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex: none; }
.pdp__fam { color: var(--pdp-accent); font-weight: 600; font-size: .95rem; }
.pdp__tagline { font-size: 1.1rem; color: var(--c-ink); margin: .9rem 0 0; }

.pdp__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.pdp__chip { padding: .35rem .75rem; border: 1px solid var(--c-line); border-radius: 999px; font-size: .8rem; color: var(--c-ink); background: #fff; }
.pdp__note { padding: .8rem 1rem; border-left: 3px solid var(--pdp-accent); background: #faf9f7; border-radius: 0 8px 8px 0; font-size: .9rem; color: var(--c-muted); }

.pdp__benefits { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .55rem; }
.pdp__benefits li { position: relative; padding-left: 1.6rem; }
.pdp__benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--pdp-accent); font-weight: 700; }

.pdp__section { margin-top: 2rem; }
.pdp__section > h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--c-line); }
.pdp__rich { line-height: 1.65; color: var(--c-ink); }
.pdp__rich p { margin: 0 0 .8rem; }
.pdp__lead { font-size: 1.05rem; margin-bottom: 1rem; }

.pdp__specs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pdp__specs td { padding: .55rem .25rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.pdp__specs td:first-child { color: var(--c-muted); width: 42%; }

.pdp__details { margin-top: 1rem; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; }
.pdp__details > summary { cursor: pointer; padding: .85rem 1.1rem; font-weight: 600; font-size: .92rem; list-style: none; }
.pdp__details > summary::-webkit-details-marker { display: none; }
.pdp__details > summary::after { content: "＋"; float: right; color: var(--c-muted); }
.pdp__details[open] > summary::after { content: "－"; }
.pdp__details-body { padding: 0 1.1rem 1.1rem; }
.pdp__details-body h3 { font-size: .95rem; margin: 1rem 0 .4rem; }

.pdp__section--full { grid-column: 1 / -1; margin-top: 3rem; }
.pdp__count { font-size: .8rem; color: var(--c-muted); font-weight: 400; }
.pdp__siblings { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .8rem; margin-top: 1rem; }
.pdp__sib { display: flex; flex-direction: column; gap: .1rem; text-decoration: none; color: inherit; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; background: #fff; transition: transform .25s var(--ease-signature), border-color .2s; }
.pdp__sib:hover { transform: translateY(-3px); border-color: var(--pdp-accent); }
.pdp__sib-img { display: block; height: 80px; background: #f3f2ef; }
.pdp__sib-img img { width: 100%; height: 80px; object-fit: cover; display: block; }
.pdp__sibdot { display: block; width: 100%; height: 100%; }
.pdp__sib-name { font-size: .8rem; font-weight: 600; padding: .5rem .6rem 0; }
.pdp__sib-ref { font-size: .72rem; color: var(--c-muted); padding: 0 .6rem .55rem; font-variant-numeric: tabular-nums; }
.pdp__moredetails { margin-top: 1rem; }
.pdp__moredetails > summary { cursor: pointer; color: var(--pdp-accent); font-weight: 600; font-size: .9rem; }

.pdp__toast { position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%); background: var(--c-ink); color: #fff; padding: .6rem 1.1rem; border-radius: 999px; font-size: .85rem; z-index: 50; }
.pdp__toast[hidden] { display: none; }

/* ============================================================
   Motion premium — Lenis, View Transitions & polish
   Chargé sans build : ces règles sont inertes si le JS/CDN n'est pas actif.
   ============================================================ */

/* ── Lenis (smooth scroll) ───────────────────────────────────
   Le JS pose .motion-premium sur <html> ; Lenis ajoute .lenis/.lenis-smooth.
   Le scroll natif « smooth » entre en conflit avec Lenis → on le neutralise. */
html.motion-premium { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ── Transitions de page inter-documents (MPA) ───────────────
   Opt-in CSS : un fondu discret entre pages, respecté et interrompable par le
   navigateur. Remplace l'ancien handler JS (qui n'animait rien en multi-page). */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--dur-page, .5s);
  animation-timing-function: var(--ease-signature);
}

/* ── Anneau de focus unifié (a11y + finition) ────────────────
   Cible clavier uniquement (:focus-visible) → n'apparaît pas au clic souris. */
:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Sur fond sombre, l'anneau accent reste lisible ; on renforce le halo. */
.hero :focus-visible, .cta__inner :focus-visible, .site-footer :focus-visible {
  outline-color: #fff;
}

/* ── Grain subtil sur les surfaces sombres (effet « studio ») ─
   Bruit SVG inline (aucun asset externe), très faible opacité, en overlay. */
.hero::after,
.cta__inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay; z-index: 0;
}
.cta__inner { position: relative; overflow: hidden; }
.cta__inner > * { position: relative; z-index: 1; }
/* Le hero a déjà ::before (dégradé) et un contenu en position: relative :
   le grain ::after passe au-dessus du média mais sous le texte (z-index gérés). */
.hero__inner { z-index: 1; }

/* ── Reveal directionnel sur les gros titres (mask ligne) ────
   En premium, le hero/statement gagnent un masque vertical plus marqué. */
.motion-premium .hero.is-visible h1,
.motion-premium .statement.is-visible h2 { will-change: clip-path; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .hero::after, .cta__inner::before { display: none; }
}

/* ============================================================
   Page gamme — profil remonté (info commune à toutes les teintes)
   Réutilise les composants .pdp__ ; --pdp-accent doit être défini ici.
   ============================================================ */
.gamme-info, .gamme-specs { --pdp-accent: var(--c-accent); }

/* Intro : texte principal + colonne latérale (chips & documents). */
.gamme-info__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gamme-info__main > :first-child { margin-top: 0; }
.gamme-info__aside { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.gamme-info__aside .pdp__chips { margin: 0; }
@media (max-width: 800px) {
  .gamme-info__grid { grid-template-columns: 1fr; }
  .gamme-info__aside { position: static; }
}

/* Specs : tableaux groupés en colonnes auto-fit. */
.gamme-specs__intro { max-width: 68ch; margin-bottom: 2rem; color: var(--c-ink); }
.gamme-specs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem 2.5rem; align-items: start; }
.gamme-specs__grid .pdp__section { margin-top: 0; }
.gamme-specs__note { margin-top: 2rem; max-width: 68ch; color: var(--c-muted); font-size: .95rem; }
.gamme-specs__details { margin-top: 1rem; max-width: 78ch; }
.gamme-specs__details:first-of-type { margin-top: 2rem; }

/* ── Modale (sas d'orientation) ────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
/* L'attribut `hidden` doit primer sur les `display:*` des composants internes
   (pied `display:flex`, boutons `.btn`), sinon un élément masqué reste visible. */
.modal [hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(14,14,16,.55); backdrop-filter: blur(4px); animation: modal-fade .25s var(--ease-signature); }
.modal__dialog {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: min(100%, 640px); max-height: min(90vh, 760px); background: var(--c-paper);
  border-radius: 22px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.5); overflow: hidden;
  animation: modal-pop .35s var(--ease-signature);
}
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .modal__backdrop, .modal__dialog { animation: none; } }
.modal__head { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--c-line); flex: 0 0 auto; }
.modal__eyebrow { font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: .8rem; color: var(--c-accent); }
.modal__title { margin: 0; font-size: 1.35rem; }
.modal__close { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--c-muted); transition: background .2s, color .2s; }
.modal__close:hover { background: var(--c-line); color: var(--c-ink); }
.modal__body { padding: 1.75rem 1.5rem; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal__foot { display: flex; gap: .75rem; justify-content: space-between; align-items: center; padding: 1.1rem 1.5rem; border-top: 1px solid var(--c-line); flex: 0 0 auto; }

/* Boutons-icônes du header */
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); cursor: pointer; transition: border-color .2s, transform .2s, background .2s, color .2s; }
.icon-btn:hover { border-color: var(--c-ink); transform: translateY(-1px); }

/* Menu langue + préférences */
.prefs { position: relative; }
.prefs__btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .7rem; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font: inherit; font-weight: 600; font-size: .82rem; cursor: pointer; transition: border-color .2s; }
.prefs__btn:hover { border-color: var(--c-ink); }
.prefs__menu { left: auto; right: 0; min-width: 220px; }
.prefs__lang { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; border-radius: 8px; font-size: .92rem; }
.prefs__lang span { color: var(--c-muted); font-size: .78rem; font-weight: 600; }
.prefs__lang:hover { background: var(--c-paper); }
.prefs__lang.is-active { color: var(--c-accent); font-weight: 600; }
.prefs__reopen { display: block; width: 100%; text-align: left; margin-top: .35rem; padding: .6rem .75rem; border: 0; border-top: 1px solid var(--c-line); background: none; font: inherit; font-size: .88rem; color: var(--c-muted); cursor: pointer; border-radius: 0 0 10px 10px; }
.prefs__reopen:hover { color: var(--c-ink); background: var(--c-paper); }

/* Header : empêcher l'écrasement du logo et le retour à la ligne des actions */
.site-header__logo { flex-shrink: 0; }
.site-header__actions { flex-shrink: 0; }
.site-header__actions > * { flex-shrink: 0; }
.btn--account { white-space: nowrap; }

/* Orientation */
.orient-modal__intro { margin: 0 0 1.5rem; color: var(--c-muted); }
.orient-field { border: 0; padding: 0; margin: 0 0 1.5rem; }
.orient-field legend { font-family: var(--font-display); font-weight: 600; margin-bottom: .6rem; padding: 0; }
.orient-audience, .orient-langs { display: flex; flex-wrap: wrap; gap: .5rem; }
.orient-pill { padding: .55rem 1.1rem; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font: inherit; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.orient-pill:hover { border-color: var(--c-ink); }
.orient-pill.is-selected { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.orient-select { width: 100%; padding: .7rem .9rem; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; font: inherit; }
.mobile-nav__prefs { margin-top: .7rem; width: 100%; }

/* ── Page Réseau : univers HEXIS, locator, embed, encarts promo ───────── */

/* Univers HEXIS (bloc ::network::) — mêmes codes que .famcard, en plus large. */
.netgrid { padding-block: clamp(3rem, 8vh, 6rem); }
.netgrid__intro { margin-bottom: 2.5rem; }
.netgrid__intro h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 20ch; margin: 0 0 .8rem; }
.netgrid__intro p { max-width: 68ch; font-size: 1.08rem; color: var(--c-muted); margin: 0; }
.netgrid__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.netcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; border-radius: 20px; overflow: hidden; isolation: isolate;
  color: #fff; background: var(--c-ink); border: 1px solid var(--c-line); text-decoration: none;
  transition: transform .4s var(--ease-signature), box-shadow .4s;
}
.netcard__media {
  position: absolute; inset: 0; z-index: -2;
  background: var(--net-media, linear-gradient(135deg, #26262b, var(--c-ink))) center / cover no-repeat;
  transition: transform .6s var(--ease-signature);
}
.netcard::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.6) 66%, rgba(0,0,0,.9) 100%);
}
.netcard:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(0,0,0,.55); }
.netcard:hover .netcard__media { transform: scale(1.06); }
.netcard__body { padding: 1.4rem 1.4rem .6rem; display: flex; flex-direction: column; gap: .4rem; }
.netcard__title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; letter-spacing: -.01em; }
.netcard__desc { font-size: .9rem; color: rgba(255,255,255,.84); line-height: 1.45; }
.netcard__host { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.netcard__go {
  margin: .4rem 1.4rem 1.3rem; align-self: flex-start; padding: .4rem .85rem; border-radius: 999px;
  background: var(--c-accent); color: #fff; font-size: .8rem; font-weight: 600;
  transform: translateY(4px); opacity: .85; transition: transform .35s var(--ease-signature), opacity .3s;
}
.netcard:hover .netcard__go, .netcard:focus-visible .netcard__go { transform: none; opacity: 1; }

/* Se localiser (bloc ::locator::) */
.locator { padding-block: clamp(2.5rem, 6vh, 4.5rem); }
.locator__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.locator__text h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0 0 .7rem; max-width: 18ch; }
.locator__text p { color: var(--c-muted); max-width: 55ch; margin: 0 0 .6rem; }
.locator__card { background: #fff; border: 1px solid var(--c-line); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 24px 48px -34px rgba(0,0,0,.35); }
.locator__label { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: .5rem; }
.locator__result { margin: .9rem 0 0; padding: .8rem 1rem; border-radius: 12px; background: var(--c-paper); border: 1px solid var(--c-line); font-size: .92rem; color: var(--c-ink); }
.locator__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
@media (max-width: 860px) { .locator__inner { grid-template-columns: 1fr; } }

/* Filiale du visiteur (bloc ::subsidiaries::) */
.subs { padding-block: clamp(2.5rem, 6vh, 4.5rem); }
.subs__inner { display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
.subs__text h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0 0 .7rem; max-width: 20ch; }
.subs__text p { color: var(--c-muted); max-width: 62ch; margin: 0 0 .6rem; }
.subs__picker { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; }
.subs__label { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: .4rem; }
.subs__picker .orient-select { min-width: min(320px, 100%); }
.subs__prompt { margin: 0; color: var(--c-muted); max-width: 62ch; }
.subcard { background: #fff; border: 1px solid var(--c-line); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 24px 48px -34px rgba(0,0,0,.35); }
.subcard__eyebrow { margin: 0 0 .2rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); font-weight: 600; }
.subcard__title { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 0 0 .4rem; }
.subcard__intro { margin: 0 0 .6rem; color: var(--c-muted); max-width: 62ch; }
.subcard__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-top: 1.2rem; }
.subcard__sitename { margin: 0 0 .3rem; font-weight: 600; }
.subcard address { font-style: normal; color: var(--c-muted); line-height: 1.5; margin-bottom: .6rem; }
.subcard__line { margin: 0 0 .35rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.subcard__role { color: var(--c-muted); min-width: 7.5rem; }
.subcard__line a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.subcard__line a:hover { color: var(--c-accent); }
.subcard__note { margin: .8rem 0 0; font-size: .88rem; color: var(--c-muted); }
.subcard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--c-line); }
.subcard__shopnote { margin: 0; font-size: .86rem; color: var(--c-muted); max-width: 44ch; }
@media (max-width: 640px) { .subcard__role { min-width: 100%; } }

/* Service externe intégré (bloc ::embed::) */
.embed { padding-block: clamp(2.5rem, 6vh, 5rem); }
.embed__intro { margin-bottom: 1.8rem; }
.embed__intro h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 .7rem; max-width: 22ch; }
.embed__intro p { color: var(--c-muted); max-width: 68ch; margin: 0; }
.embed__frame { border: 1px solid var(--c-line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -40px rgba(0,0,0,.45); }
.embed__frame iframe { display: block; width: 100%; height: var(--embed-h, 800px); border: 0; }
.embed__fallback { margin: .8rem 0 0; font-size: .88rem; color: var(--c-muted); }
@media (max-width: 640px) { .embed__frame iframe { height: min(var(--embed-h, 800px), 78vh); } }

/* Encart promo (bloc ::promo::) */
.promo { padding-block: clamp(1.5rem, 4vh, 3rem); }
.promo__inner {
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; gap: 0;
  border: 1px solid var(--c-line); border-radius: 24px; overflow: hidden; background: #fff;
}
.promo--reverse .promo__media { order: 2; }
.promo__media { min-height: 260px; background: var(--promo-media, linear-gradient(135deg, #26262b, var(--c-ink))) center / cover no-repeat; }
.promo__text { padding: clamp(1.5rem, 4vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .2rem; }
.promo__eyebrow { margin: 0 0 .5rem; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); font-weight: 700; }
.promo__text h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.1; margin: 0 0 .6rem; max-width: 22ch; }
.promo__text p { color: var(--c-muted); margin: 0 0 1.2rem; max-width: 60ch; }
.promo__text .btn { margin-top: .2rem; }
@media (max-width: 860px) {
  .promo__inner { grid-template-columns: 1fr; }
  .promo--reverse .promo__media { order: 0; }
}
