/* =========================================================
   OPALE COVERING — feuille de style (V2)
   Base claire. Encre et typographie communes au groupe
   Corbec Noveclair / Infinity Publicite, accent « bleu opale »
   propre a Opale Covering.
   ========================================================= */

:root {
  /* socle commun aux trois sites du groupe */
  --ink: oklch(18% 0.05 258);
  --ink-2: oklch(29% 0.085 257);
  --cream: oklch(97% 0.006 256);

  /* accent propre a Opale Covering */
  --opale: oklch(57% 0.145 257);
  --opale-profond: oklch(45% 0.135 258);
  --opale-pale: oklch(94.5% 0.032 256);
  --sable: oklch(94.5% 0.009 256);
  --laiton: oklch(68.3% 0.128 256);
  --opale-clair: oklch(68.3% 0.128 256);   /* le bleu exact du logo, sur fond sombre */

  --blanc: #fff;
  --texte: var(--ink);
  --texte-doux: oklch(45% 0.032 258);
  --texte-tres-doux: oklch(58% 0.022 258);
  --ligne: oklch(90% 0.014 256);
  --ligne-forte: oklch(81% 0.022 256);

  --serif: "Jost", "Futura", ui-sans-serif, system-ui, sans-serif;  /* titres : géométrique, comme le lettrage du logo */
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;      /* texte : grotesque variable */
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1280px;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --r: 0.625rem;
  --r-sm: 0.3rem;
  --t: 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  --ombre: 0 1px 2px rgba(16, 20, 40, .04), 0 12px 32px -18px rgba(16, 20, 40, .28);
  --ombre-forte: 0 2px 4px rgba(16, 20, 40, .05), 0 28px 60px -28px rgba(16, 20, 40, .4);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  background: var(--blanc); color: var(--texte); font-family: var(--sans);
  font-size: 1rem; font-weight: 400; line-height: 1.68;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--opale); color: #fff; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 500; line-height: 1.02;
  letter-spacing: -.022em; color: var(--ink); text-wrap: balance;
}
h1 { font-weight: 400; }
h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.72rem); line-height: 1.16; letter-spacing: -.01em; }
h4 { font-size: 1.1rem; line-height: 1.28; }
p { text-wrap: pretty; }

.lede { font-size: clamp(1.06rem, 1.4vw, 1.24rem); line-height: 1.6; color: var(--texte-doux); max-width: 60ch; }
.small { font-size: .85rem; line-height: 1.62; color: var(--texte-doux); }
.legende { font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--texte-tres-doux); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; font-stretch: 125%;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--opale);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow--plain::before { display: none; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--opale); font-variant-numeric: tabular-nums; }

/* ---------- Mise en page ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--large { width: min(100% - 2 * var(--gutter), 1480px); margin-inline: auto; }
.wrap--etroit { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--nuit { background: var(--cream); }
.section--fumee { background: var(--sable); }
.section--encre { background: var(--ink); color: rgba(255,255,255,.84); }
.section--encre h1, .section--encre h2, .section--encre h3, .section--encre h4 { color: #fff; }
.section--encre .lede, .section--encre .small, .section--encre p { color: rgba(255,255,255,.76); }
.section--encre .eyebrow, .section--encre .mono { color: oklch(78% .12 256); }

.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.8rem); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
  .split--texte-droite { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
}
.stack > * + * { margin-top: 1.05rem; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-inline: auto; }
.rule { height: 1px; width: 100%; background: var(--ligne); border: 0; }

/* titre de section avec filet */
.titre-section { display: grid; gap: .9rem; margin-bottom: clamp(1.8rem, 3.5vw, 3rem); }
.titre-section__haut { display: flex; align-items: center; gap: 1rem; }
.titre-section__haut::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.section--encre .titre-section__haut::after { background: rgba(255,255,255,.18); }

/* fond hexagonal tres discret */
.hex-bg { position: relative; isolation: isolate; }
.hex-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 1 54 16v32L28 63 2 48V16z' fill='none' stroke='%23c7d0da' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 64px; opacity: .5;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 72%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 72%);
}

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6rem; padding: .86rem 1.45rem;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bg); border-radius: var(--r);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.btn:focus-visible { outline: 2px solid var(--opale); outline-offset: 3px; }
.btn svg { width: 15px; height: 15px; flex: none; transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ligne-forte); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--laiton, .btn--opale { --bg: var(--opale); --fg: #fff; }
.btn--clair { --bg: #fff; --fg: var(--ink); }
.btn--sm { padding: .62rem 1rem; font-size: .7rem; }
.btns { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.section--encre .btn--ghost { --fg: #fff; border-color: rgba(255,255,255,.28); }
.section--encre .btn--ghost:hover { border-color: #fff; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--opale-profond); padding-bottom: 2px;
  border-bottom: 1px solid color-mix(in oklab, var(--opale) 35%, transparent);
  transition: border-color var(--t), gap var(--t), color var(--t);
}
.lien-fleche:hover { border-color: var(--opale); gap: .75rem; }
.lien-fleche svg { width: 14px; height: 14px; flex: none; }
.section--encre .lien-fleche { color: oklch(80% .11 256); border-color: rgba(255,255,255,.3); }

/* ---------- En-tete ---------- */
.bandeau { background: var(--ink); color: rgba(255,255,255,.78); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.bandeau__in { display: flex; justify-content: center; gap: .6rem; padding-block: .52rem; text-align: center; }
.bandeau b { color: #fff; font-weight: 600; }
@media (max-width: 620px) { .masque-xs { display: none; } }

.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, #fff 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ligne);
}
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .8rem; }

.marque { display: inline-flex; align-items: center; gap: .7rem; }
.marque svg { width: 32px; height: 36px; flex: none; }
.marque__sceau { width: 42px; height: 42px; flex: none; border-radius: 50%; }
.footer .marque__sceau { width: 48px; height: 48px; }
.marque__txt { display: grid; line-height: 1; }
.marque__nom { font-family: var(--serif); font-size: 1.16rem; font-weight: 500; letter-spacing: .16em; color: var(--ink); }
.marque__sous { font-size: .54rem; letter-spacing: .38em; color: var(--opale); margin-top: .34rem; font-weight: 600; }

.nav { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1080px) { .nav { display: flex; } }
.nav a, .nav-groupe > button {
  font-size: .84rem; font-weight: 500; color: var(--texte-doux); background: none; border: 0;
  cursor: pointer; padding-block: .35rem; position: relative; display: inline-flex; align-items: center; gap: .35rem;
  transition: color var(--t);
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--opale); transition: right var(--t); }
.nav a:hover, .nav a[aria-current="page"], .nav-groupe > button:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav-groupe { position: relative; }
.nav-groupe > button svg { width: 11px; height: 11px; opacity: .6; transition: transform var(--t); }
.nav-groupe[data-ouvert="true"] > button svg { transform: rotate(180deg); }
.sous-menu {
  position: absolute; top: calc(100% + .85rem); left: -.9rem; min-width: 300px;
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: .5rem;
  display: grid; gap: .1rem; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all var(--t); box-shadow: var(--ombre-forte);
}
.nav-groupe[data-ouvert="true"] .sous-menu { opacity: 1; visibility: visible; transform: none; }
.sous-menu a { padding: .58rem .75rem; display: grid; gap: .1rem; border-radius: var(--r-sm); font-size: .88rem; color: var(--ink); }
.sous-menu a::after { display: none; }
.sous-menu a:hover { background: var(--cream); }
.sous-menu span { font-size: .74rem; color: var(--texte-tres-doux); font-weight: 400; }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 38px; background: none; border: 1px solid var(--ligne-forte);
  border-radius: var(--r-sm); cursor: pointer; padding: 0 10px;
}
@media (min-width: 1080px) { .burger { display: none; } }
.burger i { display: block; height: 1.5px; background: var(--ink); transition: transform var(--t), opacity var(--t); }
body[data-menu="ouvert"] .burger i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body[data-menu="ouvert"] .burger i:nth-child(2) { opacity: 0; }
body[data-menu="ouvert"] .burger i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.menu-mobile {
  position: fixed; inset: 56px 0 0; z-index: 99; background: #fff;
  padding: 1.6rem var(--gutter) 4rem; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all var(--t);
}
body[data-menu="ouvert"] .menu-mobile { opacity: 1; visibility: visible; transform: none; }
body[data-menu="ouvert"] { overflow: hidden; }
.menu-mobile a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--ligne); font-family: var(--serif); font-size: 1.3rem; }
.menu-mobile .mono {
  display: block; margin-top: 1.8rem; margin-bottom: .3rem; font-family: var(--sans);
  font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--opale);
}

/* ---------- Heros plein ecran ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--h-haut, 0px)); display: grid; grid-template-rows: 1fr auto;
  background: var(--ink); color: rgba(255, 255, 255, .86);
}
.hero__fond { position: absolute; inset: -5% 0; z-index: -3; }
.hero__fond img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.5s ease;
}
.hero__fond img.actif { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero__fond img.actif { animation: ampleur 9s ease-out both; }
  @keyframes ampleur { from { scale: 1; } to { scale: 1.08; } }
}
.hero__voile {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--ink) 78%, transparent) 0%,
      color-mix(in srgb, var(--ink) 38%, transparent) 30%,
      color-mix(in srgb, var(--ink) 52%, transparent) 62%,
      color-mix(in srgb, var(--ink) 90%, transparent) 100%),
    radial-gradient(92% 70% at 50% 46%, transparent 22%, color-mix(in srgb, var(--ink) 50%, transparent) 100%);
}
/* pose du film : une feuille translucide traverse l'écran à l'ouverture */
.hero__pose { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero__pose span {
  position: absolute; top: -12%; bottom: -12%; left: 0; width: 72vw; display: block;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, .035) 26%,
    rgba(255, 255, 255, .085) 68%,
    rgba(255, 255, 255, .22) 92%,
    rgba(255, 255, 255, .72) 98.5%,
    rgba(255, 255, 255, .95) 99.6%,
    transparent 100%);
  transform: translateX(-108%) skewX(-7deg);
}
.hero__pose span::after {
  content: ""; position: absolute; inset: 0; right: -2px;
  box-shadow: 14px 0 34px -8px rgba(180, 220, 255, .55);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__pose span { animation: pose 2.4s cubic-bezier(.42, .04, .18, 1) .35s both; }
  @keyframes pose {
    0% { transform: translateX(-108%) skewX(-7deg); }
    100% { transform: translateX(190%) skewX(-7deg); }
  }
}

/* le logotype et son éclat de chrome */
.hero__logo { position: relative; display: inline-block; line-height: 0; }
.hero__logo img {
  width: clamp(78px, 8.4vw, 124px); height: auto;
  filter: drop-shadow(0 10px 26px rgba(3, 8, 24, .5));
}
.hero__logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(104deg, transparent 40%, rgba(255, 255, 255, .62) 50%, transparent 60%);
  background-size: 320% 100%; background-position: -70% 0;
  -webkit-mask-image: url("/logo/opale-medaillon.webp"); mask-image: url("/logo/opale-medaillon.webp");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__logo::after { animation: eclat 2.4s cubic-bezier(.42, .04, .18, 1) .35s both; }
  @keyframes eclat {
    0% { background-position: -70% 0; opacity: 0; }
    22% { opacity: 1; }
    88% { opacity: 1; }
    100% { background-position: 170% 0; opacity: 0; }
  }
}

.hero__in {
  place-self: center; text-align: center; display: grid; justify-items: center; gap: 1.2rem;
  width: min(100% - 2 * var(--gutter), var(--max));
  padding-block: clamp(4.5rem, 12vh, 8rem) clamp(3rem, 8vh, 5rem);
}
.hero .eyebrow { color: oklch(80% .12 256); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.2rem); max-width: 17ch; text-shadow: 0 2px 40px rgba(8, 14, 44, .45); }
.hero h1 em { display: block; font-style: italic; color: oklch(78% .13 256); }
.hero .lede { color: rgba(255, 255, 255, .85); max-width: 56ch; text-shadow: 0 1px 24px rgba(8, 14, 44, .5); }
.hero .btns { margin-top: .7rem; justify-content: center; }
.hero .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .38); backdrop-filter: blur(6px); }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }
.hero__sceau {
  display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap; justify-content: center;
  font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .66);
}
.hero__sceau b { color: #fff; font-weight: 700; }
.hero__sceau i { width: 5px; height: 5px; border-radius: 50%; background: oklch(78% .12 256); font-style: normal; }

/* reperes du diaporama */
.hero__points { position: absolute; right: var(--gutter); bottom: 7.4rem; z-index: 3; display: flex; gap: .45rem; }
.hero__points button {
  width: 38px; height: 2px; padding: 0; border: 0; cursor: pointer; position: relative;
  background: rgba(255, 255, 255, .28); overflow: hidden;
}
.hero__points button i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.hero__points button[aria-current="true"] i { transform: scaleX(1); transition: transform 7s linear; }
@media (max-width: 760px) { .hero__points { display: none; } }

/* bandeau « fiche » intégré au héros */
.hero__fiche {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: color-mix(in srgb, var(--ink) 58%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
}
.hero__fiche__in { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .hero__fiche__in { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .hero__fiche__in { grid-template-columns: repeat(4, 1fr); } }
.hero__fiche div { padding: .95rem 1.4rem; display: grid; gap: .2rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.hero__fiche div:first-child { border-left: 0; padding-left: 0; }
@media (min-width: 560px) and (max-width: 1039px) {
  .hero__fiche div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero__fiche div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}
.hero__fiche dt { font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.hero__fiche dd { font-size: .88rem; color: #fff; }
@media (max-width: 760px) {
  .hero__fiche div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); padding-inline: 0; padding-block: .7rem; }
  .hero__fiche div:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__in > * { opacity: 0; transform: translateY(14px); animation: entree .9s cubic-bezier(.2, .75, .2, 1) forwards; }
  .hero__in > :nth-child(1) { animation-delay: .1s; }
  .hero__in > :nth-child(2) { animation-delay: .18s; }
  .hero__in > :nth-child(3) { animation-delay: .42s; }
  .hero__in > :nth-child(4) { animation-delay: .56s; }
  .hero__in > :nth-child(5) { animation-delay: .68s; }
  .hero__fiche { opacity: 0; animation: entree 1s ease .85s forwards; }
  @keyframes entree { to { opacity: 1; transform: none; } }
}
@media (max-width: 700px) {
  .hero { min-height: calc(94svh - var(--h-haut, 0px)); }
  .hero__in { padding-block: 2.2rem 1.9rem; gap: .9rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.2vw, 2.9rem); }
  .hero .lede { font-size: .95rem; }
  .hero .btns { width: 100%; flex-direction: column; }
  .hero .btn { width: 100%; justify-content: center; }
  .hero__sceau { font-size: .58rem; letter-spacing: .12em; }
}
@media (max-width: 560px) { .eyebrow::before { display: none; } }

/* bandeau « fiche » sous le heros */
.fiche-bar { background: #fff; border-bottom: 1px solid var(--ligne); }
.fiche-bar__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.fiche-bar div { padding: 1.1rem 1.3rem; display: grid; gap: .28rem; border-left: 1px solid var(--ligne); }
.fiche-bar div:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 760px) {
  .fiche-bar div { border-left: 0; border-top: 1px solid var(--ligne); padding-inline: 0; }
  .fiche-bar div:first-child { border-top: 0; }
}
.fiche-bar dt { font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-tres-doux); }
.fiche-bar dd { font-size: .93rem; color: var(--ink); }

/* ---------- En-tete de page interieure ---------- */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--ligne); }
.page-hero__in { padding-block: clamp(2.6rem, 5vw, 4.2rem) clamp(2rem, 4vw, 3rem); display: grid; gap: 2rem; }
@media (min-width: 980px) {
  .page-hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; }
  .page-hero__in--large { grid-template-columns: 1fr; }
}
.page-hero__in--large h1 { max-width: 22ch; }
.page-hero h1 { font-size: clamp(2.1rem, 4.3vw, 3.4rem); max-width: 19ch; }
.page-hero .lede { margin-top: 1.1rem; }
.page-hero__media { border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); }
.page-hero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Cartes ---------- */
.carte {
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--r);
  padding: clamp(1.25rem, 2.2vw, 1.85rem); display: flex; flex-direction: column; gap: .7rem;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
a.carte:hover { transform: translateY(-3px); border-color: var(--ligne-forte); box-shadow: var(--ombre); }
.carte__num { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--opale); }
.carte h3 { font-size: 1.22rem; }
.carte p { color: var(--texte-doux); font-size: .92rem; }
.carte .lien-fleche { margin-top: auto; padding-top: .5rem; align-self: flex-start; }
.carte--media { padding: 0; overflow: hidden; }
.carte--media > img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
a.carte--media:hover > img { transform: scale(1.035); }
.carte--media .carte__corps { padding: clamp(1.15rem, 2vw, 1.6rem); display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.section--fumee .carte, .section--nuit .carte { background: #fff; }

/* ---------- Index editorial ---------- */
.index-liste { border-top: 1px solid var(--ligne); }
.index-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem;
  padding: clamp(1.1rem, 2vw, 1.7rem) 0; border-bottom: 1px solid var(--ligne);
  transition: padding-left var(--t), background var(--t);
}
.index-item:hover { padding-left: .8rem; background: linear-gradient(90deg, var(--opale-pale), transparent 60%); }
.index-item__num { font-family: var(--mono); font-size: .75rem; color: var(--opale); min-width: 2.2rem; }
.index-item__txt h3 { font-size: clamp(1.25rem, 2.3vw, 1.85rem); font-weight: 400; }
.index-item__txt p { color: var(--texte-doux); font-size: .92rem; margin-top: .35rem; max-width: 62ch; }
.index-item__media { width: 128px; height: 84px; border-radius: var(--r-sm); overflow: hidden; display: none; }
@media (min-width: 860px) { .index-item__media { display: block; } }
.index-item__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: filter var(--t), transform var(--t); }
.index-item:hover .index-item__media img { filter: none; transform: scale(1.05); }

/* ---------- Etapes ---------- */
.etapes { counter-reset: e; border-top: 1px solid var(--ligne); }
.etape { counter-increment: e; display: grid; gap: .5rem 2.5rem; grid-template-columns: 1fr; padding-block: clamp(1.4rem, 2.6vw, 2.1rem); border-bottom: 1px solid var(--ligne); }
@media (min-width: 840px) { .etape { grid-template-columns: 5rem 15rem 1fr; align-items: baseline; } }
.etape::before { content: "0" counter(e); font-family: var(--mono); font-size: .78rem; color: var(--opale); }
.etape h3 { font-size: 1.3rem; }
.etape p { color: var(--texte-doux); }
.section--encre .etapes, .section--encre .etape { border-color: rgba(255,255,255,.14); }

/* ---------- Chiffres ---------- */
.chiffre { display: grid; gap: .3rem; }
.chiffre b { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 400; line-height: 1; color: var(--ink); }
.chiffre span { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-tres-doux); }
.section--encre .chiffre b { color: #fff; }
.section--encre .chiffre span { color: rgba(255,255,255,.6); }

/* ---------- Configurateur ---------- */
.config { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); }
.config__onglets { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--ligne); background: var(--cream); }
.config__onglets button {
  flex: 1 1 auto; min-width: 150px; background: none; border: 0; border-right: 1px solid var(--ligne);
  padding: .95rem 1.1rem; cursor: pointer; text-align: left; display: grid; gap: .2rem;
  color: var(--texte-doux); transition: background var(--t), color var(--t); position: relative;
}
.config__onglets button:last-child { border-right: 0; }
.config__onglets button strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: inherit; }
.config__onglets button span { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.config__onglets button[aria-selected="true"] { background: #fff; color: var(--ink); }
.config__onglets button[aria-selected="true"]::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--opale); }
.config__corps { display: grid; }
@media (min-width: 940px) { .config__corps { grid-template-columns: 1.3fr 1fr; } }
.config__schema { padding: clamp(1.2rem, 2.6vw, 2.2rem); background: linear-gradient(180deg, #fff, var(--cream)); }
.config__schema svg { width: 100%; height: auto; }
.config__texte { padding: clamp(1.3rem, 2.6vw, 2.1rem); border-top: 1px solid var(--ligne); display: flex; flex-direction: column; gap: .9rem; }
@media (min-width: 940px) { .config__texte { border-top: 0; border-left: 1px solid var(--ligne); } }
.config__texte ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.config__texte li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--texte-doux); }
.config__texte li::before { content: ""; width: 6px; height: 6px; margin-top: .58rem; flex: none; background: var(--opale); border-radius: 50%; }

.corps { fill: #eef1f4; stroke: none; }
.roue { fill: #dfe4ea; stroke: oklch(80% .022 256); stroke-width: 1; }
.vitre { fill: #d8e3ea; stroke: oklch(78% .03 250); stroke-width: 1; }
.zone { fill: #e4e8ed; stroke: oklch(80% .022 256); stroke-width: 1; transition: fill .45s ease, stroke .45s ease; }
.zone.on { fill: url(#gradOpale); stroke: var(--opale-profond); }
.config__schema svg.cliquable .zone { cursor: pointer; }
.config__schema svg.cliquable .zone:hover { stroke: var(--opale); }
.carro { fill: none; stroke: oklch(50% .045 256); stroke-width: 1.6; }
.carro-fine { fill: none; stroke: oklch(72% .03 256); stroke-width: 1; }

/* ---------- Avant / apres ---------- */
.ba { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--ligne); touch-action: none; box-shadow: var(--ombre); }
.ba img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ba__apres { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 2px solid #fff; }
.ba__apres img { width: var(--w, 100%); max-width: none; height: 100%; }
.ba__poignee {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 44px; height: 44px;
  border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center;
  pointer-events: none; box-shadow: var(--ombre-forte);
}
.ba__poignee svg { width: 19px; height: 19px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__etiq {
  position: absolute; bottom: .85rem; font-size: .62rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; background: rgba(255,255,255,.93); color: var(--ink);
  padding: .3rem .6rem; border-radius: 100px;
}
.ba__etiq--g { left: .85rem; }
.ba__etiq--d { right: .85rem; }

/* ---------- Nuancier ---------- */
.nuancier { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: .8rem; }
.teinte { border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--ombre); }
.teinte i { display: block; height: 96px; }
.teinte span { display: block; padding: .6rem .75rem; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); }

/* ---------- Medias ---------- */
.media { border-radius: var(--r); overflow: hidden; border: 1px solid var(--ligne); background: #fff; }
.media img { width: 100%; object-fit: cover; }
.media figcaption { padding: .75rem 1rem; font-family: var(--serif); font-style: italic; font-size: .88rem; color: var(--texte-tres-doux); border-top: 1px solid var(--ligne); background: #fff; }
.bande-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.duo { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .duo > :nth-child(2) { margin-top: 2.6rem; } }

/* ---------- Encadre ---------- */
.encadre {
  border: 1px solid color-mix(in oklab, var(--opale) 25%, var(--ligne));
  background: var(--opale-pale); border-radius: var(--r); padding: clamp(1.1rem, 2vw, 1.5rem);
}
.encadre h4 { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--opale-profond); margin-bottom: .45rem; }
.encadre p { color: var(--ink); font-size: .95rem; }
.section--encre .encadre { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.section--encre .encadre h4 { color: oklch(80% .11 256); }
.section--encre .encadre p { color: rgba(255,255,255,.82); }

/* ---------- Citation ---------- */
.citation {
  position: relative; font-family: var(--serif); font-size: clamp(1.5rem, 2.9vw, 2.3rem);
  line-height: 1.26; letter-spacing: -.02em; color: var(--ink); max-width: 25ch;
  border-left: 2px solid var(--opale); padding-left: clamp(1.1rem, 2.2vw, 2rem);
}
.citation::before {
  content: "\201C"; position: absolute; left: clamp(.6rem, 1.4vw, 1.2rem); top: -.42em;
  font-size: 5em; line-height: 1; color: var(--opale); opacity: .13; pointer-events: none;
}
.section--encre .citation { color: #fff; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.05rem, 1.7vw, 1.28rem); font-weight: 400; color: var(--ink);
  transition: color var(--t);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.5rem; width: 10px; height: 10px;
  border-right: 1.5px solid var(--opale); border-bottom: 1.5px solid var(--opale);
  transform: rotate(45deg); transition: transform var(--t);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--opale-profond); }
.faq .faq__rep { padding-bottom: 1.3rem; color: var(--texte-doux); max-width: 76ch; }
.faq .faq__rep > * + * { margin-top: .75rem; }

/* ---------- Fiche technique ---------- */
.fiche-tech { width: 100%; border-collapse: collapse; font-size: .93rem; }
.fiche-tech th, .fiche-tech td { text-align: left; padding: .82rem .7rem .82rem 0; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.fiche-tech th { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-tres-doux); width: 38%; }
.fiche-tech td { color: var(--ink); }
.section--encre .fiche-tech th { color: rgba(255,255,255,.55); }
.section--encre .fiche-tech td { color: #fff; }
.section--encre .fiche-tech th, .section--encre .fiche-tech td { border-color: rgba(255,255,255,.14); }

.liste-tech { display: grid; border-top: 1px solid var(--ligne); }
.liste-tech > * { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--ligne); align-items: baseline; }
.section--encre .liste-tech, .section--encre .liste-tech > * { border-color: rgba(255,255,255,.14); }

/* ---------- Bandeau groupe ---------- */
.groupe { background: var(--cream); border-block: 1px solid var(--ligne); }
.groupe__in { display: grid; gap: 2.2rem; padding-block: clamp(2.6rem, 5vw, 4rem); }
@media (min-width: 900px) { .groupe__in { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.groupe__marques { display: grid; gap: .8rem; }
@media (min-width: 560px) { .groupe__marques { grid-template-columns: 1fr 1fr; } }
.groupe__marque {
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 1.1rem 1.2rem;
  display: grid; gap: .5rem; align-content: start;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
a.groupe__marque:hover { border-color: var(--ligne-forte); box-shadow: var(--ombre); transform: translateY(-2px); }
.groupe__marque img { height: 46px; width: auto; object-fit: contain; object-position: left; margin-bottom: .2rem; }
.groupe__marque b { font-family: var(--serif); font-size: 1.02rem; font-weight: 500; }
.groupe__marque span { font-size: .8rem; color: var(--texte-tres-doux); line-height: 1.45; }
.groupe__marque--actif { border-color: var(--opale); background: var(--opale-pale); }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 1rem; }
.form-ligne { display: grid; gap: 1rem; }
@media (min-width: 680px) { .form-ligne { grid-template-columns: 1fr 1fr; } }
.champ { display: grid; gap: .38rem; }
.champ label { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-tres-doux); }
.champ input, .champ select, .champ textarea {
  background: #fff; border: 1px solid var(--ligne-forte); border-radius: var(--r-sm);
  padding: .8rem .9rem; color: var(--ink); width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
.champ textarea { min-height: 128px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 0; border-color: var(--opale); box-shadow: 0 0 0 3px var(--opale-pale); }
.champ input::placeholder, .champ textarea::placeholder { color: oklch(72% .02 260); }
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(154px, 1fr)); gap: .55rem; }
.choix label {
  border: 1px solid var(--ligne-forte); border-radius: var(--r-sm); padding: .78rem .9rem; cursor: pointer;
  display: flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--texte-doux);
  transition: border-color var(--t), background var(--t), color var(--t);
}
.choix input { accent-color: var(--opale); }
.choix label:has(input:checked) { border-color: var(--opale); background: var(--opale-pale); color: var(--ink); }
.rgpd { display: flex; gap: .65rem; align-items: flex-start; font-size: .82rem; color: var(--texte-doux); }

/* ---------- Fil d'ariane ---------- */
.ariane { font-size: .72rem; letter-spacing: .06em; color: var(--texte-tres-doux); padding-block: .9rem; border-bottom: 1px solid var(--ligne); }
.ariane a { color: var(--texte-doux); }
.ariane a:hover { color: var(--opale-profond); }
.ariane span { margin-inline: .45rem; opacity: .5; }

/* ---------- Corps redactionnel ---------- */
.prose { max-width: 70ch; font-size: 1.04rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.2rem; display: grid; gap: .5rem; color: var(--texte-doux); }
.prose li::marker { color: var(--opale); }
.prose a { color: var(--opale-profond); border-bottom: 1px solid color-mix(in oklab, var(--opale) 35%, transparent); }
.prose a:hover { border-color: var(--opale); }
.prose p { color: var(--texte-doux); }
.prose .fiche-tech { margin-top: 1.4rem; }
.prose--chapo > p:first-of-type::first-letter {
  float: left; font-family: var(--serif); font-size: 3.5em; line-height: .82;
  padding-right: .07em; padding-top: .06em; color: var(--ink);
}

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: clamp(3rem, 6vw, 4.5rem) 1.8rem; }
.footer h4 { font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: oklch(78% .12 256); margin-bottom: .9rem; }
.footer__grid { display: grid; gap: 2.2rem; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.footer a { font-size: .88rem; color: rgba(255,255,255,.72); transition: color var(--t); }
.footer a:hover { color: #fff; }
.footer .marque__nom { color: #fff; }
.footer .marque__sous { color: rgba(255,255,255,.5); }
.footer p { color: rgba(255,255,255,.72); }
.footer__groupe { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .footer__groupe { grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem; } }
.footer__groupe p { font-size: .82rem; color: rgba(255,255,255,.6); max-width: 52ch; }
.footer__logos { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.footer__logo { background: #fff; border-radius: var(--r-sm); padding: .8rem 1.1rem; display: inline-flex; align-items: center; min-height: 76px; transition: transform var(--t), box-shadow var(--t); }
.footer__logo:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(0,0,0,.8); }
.footer__logo img { height: 48px; width: auto; object-fit: contain; }
.footer__bas {
  margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .9rem; justify-content: space-between; font-size: .78rem; color: rgba(255,255,255,.5);
}

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Divers ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--ligne-forte);
  border-radius: 100px; padding: .32rem .75rem; font-size: .66rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); background: #fff;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--opale); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r-sm); }
.skip:focus { left: 1rem; top: 1rem; }

/* le sigle s'inverse dans le pied de page sombre */
.footer .marque { color: #fff; }
.footer .marque:hover { color: #fff; }


/* =========================================================
   Mouvement au defilement
   ========================================================= */

/* barre de progression de lecture */
.progres {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--opale), oklch(68.3% .128 256));
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progres { transform: scaleX(0); animation: progres linear both; animation-timeline: scroll(root block); }
    @keyframes progres { to { transform: scaleX(1); } }
  }
}

/* en-tete qui se resserre */
.header { transition: box-shadow var(--t), background var(--t); }
.header[data-compact="true"] { box-shadow: 0 1px 0 var(--ligne), 0 18px 40px -34px rgba(16, 20, 40, .55); }
.header[data-compact="true"] .header__bar { padding-block: .55rem; }
.header__bar { transition: padding var(--t); }

/* apparition : variantes directionnelles et decalage en cascade */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal--g { transform: translateX(-26px); }
.reveal--d { transform: translateX(26px); }
.reveal--zoom { transform: scale(.965); }
.reveal.vu { opacity: 1; transform: none; }
.cascade > * { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.cascade.vu > * { opacity: 1; transform: none; }

/* titres : mots qui montent un a un */
.mot { display: inline-block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.mot > i {
  display: inline-block; font-style: inherit; will-change: transform;
  transform: translateY(110%); opacity: 0;
  transition: transform .95s cubic-bezier(.16, .84, .26, 1), opacity .6s ease;
  transition-delay: calc(var(--i, 0) * 52ms);
}
.txt-vu .mot > i { transform: none; opacity: 1; }

/* images : devoilement par le bas + leger recadrage */
.devoile img {
  clip-path: inset(0 0 100% 0); transform: scale(1.08);
  transition: clip-path 1.05s cubic-bezier(.2, .8, .2, 1), transform 1.5s cubic-bezier(.2, .8, .2, 1);
}
.devoile.vu img { clip-path: inset(0 0 0 0); transform: none; }

/* colonne qui reste en place pendant que les etapes defilent */
@media (min-width: 980px) {
  .split--colle { align-items: start; }
  .split--colle > :first-child { position: sticky; top: 6.5rem; }
  .split--colle .etape { grid-template-columns: 3.2rem 1fr; gap: .4rem 1.4rem; }
  .split--colle .etape > div { grid-column: 2; }
  .split--colle .etape p { grid-column: 2; }
}

/* parallaxe douce des bandes d'image */
.bande-image { overflow: hidden; }
.bande-image img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .cascade > *, .mot > i, .devoile img {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .progres { transform: scaleX(0); }
  .hero__fond img { transform: none !important; }
}


/* =========================================================
   V5 — grammaire graphique : le liseré de film
   ========================================================= */

/* transition douce d'une page à l'autre */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-sortie .22s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-entree .4s cubic-bezier(0, 0, .2, 1) both; }
  @keyframes vt-sortie { to { opacity: 0; } }
  @keyframes vt-entree { from { opacity: 0; transform: translateY(10px); } }
}

/* filet de séparation, avec un éclat qui se déploie à l'apparition */
.filet { position: relative; height: 1px; background: var(--ligne); overflow: hidden; }
.filet::after {
  content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, transparent, var(--opale) 18%, oklch(78% .12 256) 50%, var(--opale) 82%, transparent);
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.filet.vu::after { transform: scaleX(1); }
.section--encre .filet { background: rgba(255, 255, 255, .16); }

/* chiffre fantôme derrière les titres de section */
.titre-section { position: relative; isolation: isolate; }
.titre-section[data-num]::before {
  content: attr(data-num); position: absolute; right: -.08em; top: -.55em; z-index: -1;
  font-family: var(--serif); font-size: clamp(6rem, 13vw, 12rem); line-height: .78;
  color: var(--ink); opacity: .035; letter-spacing: -.04em; pointer-events: none;
}
.section--encre .titre-section[data-num]::before { color: #fff; opacity: .06; }
@media (max-width: 760px) { .titre-section[data-num]::before { font-size: 6rem; opacity: .03; } }

/* boutons : un reflet de chrome traverse au survol */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -40%; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: translateX(-180%) skewX(-16deg); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn:hover::after { transition: transform .85s cubic-bezier(.3, 0, .2, 1); transform: translateX(420%) skewX(-16deg); }
}
.btn--ghost::after, .btn--clair::after { background: linear-gradient(100deg, transparent, rgba(20, 30, 70, .1), transparent); }
.hero .btn--ghost::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent); }

/* cartes : un liseré se dessine sur l'arête haute */
.carte { position: relative; }
.carte::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; z-index: 1;
  background: linear-gradient(90deg, var(--opale), oklch(76% .13 256));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  border-radius: var(--r) var(--r) 0 0;
}
a.carte:hover::before { transform: scaleX(1); }

/* index : le filet se colore et le numéro avance */
.index-item { position: relative; }
.index-item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--opale), transparent 70%);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.index-item:hover::after { transform: scaleX(1); }
.index-item__num { transition: transform var(--t), color var(--t); }
.index-item:hover .index-item__num { transform: translateX(3px); }

/* images qui débordent du cadre de lecture */
@media (min-width: 1100px) {
  .media--deborde-d { margin-right: calc(-1 * clamp(1.5rem, 5vw, 5rem)); }
  .media--deborde-g { margin-left: calc(-1 * clamp(1.5rem, 5vw, 5rem)); }
  .media--haut { margin-top: -5rem; }
}

/* mot-symbole en filigrane au pied du site */
.footer__mot { margin-top: 2.6rem; container-type: inline-size; }
.footer__mot span {
  display: block; line-height: .8; user-select: none; text-align: center; white-space: nowrap;
  font-family: var(--serif); font-size: 11cqw; letter-spacing: .015em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
}
@supports not (font-size: 1cqw) { .footer__mot span { font-size: clamp(2rem, 8vw, 7rem); } }

/* =========================================================
   V5 — configurateur en séquence
   ========================================================= */
.config--sequence { overflow: visible; }   /* sinon « sticky » ne peut pas fonctionner */
.config--sequence .config__onglets { border-radius: var(--r) var(--r) 0 0; }
.config--sequence .config__corps { display: block; }
.config--sequence .config__schema { background: none; }
.config__scene { position: relative; }
.config__panneau {
  padding: clamp(1.4rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--ligne);
  transition: opacity .5s ease;
}
.config__panneau:first-child { border-top: 0; }
.config__panneau h3 { font-size: clamp(1.35rem, 2.4vw, 1.95rem); }
.config__panneau ul { list-style: none; padding: 0; display: grid; gap: .45rem; margin-top: .9rem; }
.config__panneau li { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; color: var(--texte-doux); }
.config__panneau li::before { content: ""; width: 6px; height: 6px; margin-top: .55rem; flex: none; background: var(--opale); border-radius: 50%; }
.config__compte { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--opale); }

@media (min-width: 1000px) {
  .config--sequence .config__corps { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); }
  .config--sequence .config__colonne {
    border-right: 1px solid var(--ligne); border-radius: 0 0 0 var(--r);
    background: linear-gradient(180deg, #fff, var(--cream));
  }
  .config--sequence .config__schema {
    position: sticky; top: calc(var(--h-entete, 72px) + 1.6rem);
  }
  .config--sequence .config__panneaux { padding: 0 clamp(1.6rem, 3vw, 2.6rem); }
  .config__panneau { opacity: .32; transition: opacity .55s ease; }
  .config__panneau[data-actif="true"] { opacity: 1; }
}
@media (max-width: 999px) {
  .config--sequence .config__corps { position: relative; }
  .config--sequence .config__colonne {
    position: sticky; top: var(--h-entete, 64px); z-index: 2;
    background: #fff; border-bottom: 1px solid var(--ligne);
    box-shadow: 0 10px 20px -18px rgba(16, 20, 40, .5);
  }
  .config--sequence .config__schema { padding: .9rem clamp(1rem, 4vw, 1.4rem) .3rem; }
  .config--sequence .config__legende { padding: 0 clamp(1rem, 4vw, 1.4rem) .8rem; gap: .9rem; font-size: .6rem; }
  .config--sequence .config__panneaux { padding: 0 clamp(1.1rem, 4vw, 1.8rem) 1rem; }
  .config__panneau { padding-block: 1.6rem; }
}

/* onglets : repère actif animé */
.config__onglets { position: relative; }
.config__onglets button[aria-selected="true"]::before { transition: none; }

/* zones du schéma : apparition en cascade et halo */
.zone { transition: fill .55s cubic-bezier(.2, .8, .2, 1), stroke .55s ease; }
.zone.on { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--opale) 45%, transparent)); }
.ombre-vehicule { fill: oklch(72% .022 256); opacity: .16; }

/* légende du schéma */
.config__legende {
  display: flex; flex-wrap: wrap; gap: 1.1rem; padding: 0 clamp(1.2rem, 2.6vw, 2.2rem) 1.2rem;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-tres-doux);
}
.config__legende span { display: inline-flex; align-items: center; gap: .45rem; }
.config__legende i { width: 14px; height: 9px; border-radius: 2px; display: inline-block; }
.config__legende i.couvert { background: var(--opale); }
.config__legende i.nu { background: #e4e8ed; border: 1px solid var(--ligne-forte); }


/* =========================================================
   V5 — finitions
   ========================================================= */

/* chiffres sur fond encre : blanc plein, souligné d'un filet opale */
.section--encre .chiffre { position: relative; padding-top: .9rem; }
.section--encre .chiffre::before {
  content: ""; position: absolute; top: 0; left: 0; width: 2.4rem; height: 2px;
  background: linear-gradient(90deg, var(--opale-clair), transparent);
}
.section--encre .chiffre b { color: #fff; -webkit-text-fill-color: #fff; }
.section--encre .chiffre span { color: rgba(255, 255, 255, .55); }

/* fond encre : une trame hexagonale très basse et un halo */
.section--encre { position: relative; isolation: isolate; overflow: hidden; }
.section--encre::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 1 54 16v32L28 63 2 48V16z' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 64px;
}
.section--encre::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 60vw; aspect-ratio: 1; right: -18vw; top: -26vw; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--opale) 30%, transparent), transparent 66%);
  opacity: .5;
}

/* nuancier : vernis et profondeur */
.teinte { position: relative; transition: transform var(--t), box-shadow var(--t); }
.teinte:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.teinte i { position: relative; overflow: hidden; }
.teinte i::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(104deg, transparent 38%, rgba(255, 255, 255, .22) 46%, rgba(255, 255, 255, .05) 52%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 42%);
}

/* comparateur : trait de séparation net et poignée affinée */
.ba__apres { border-right: 0; }
.ba__trait {
  position: absolute; top: 0; bottom: 0; width: 2px; left: 50%; translate: -50% 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .25), #fff 18%, #fff 82%, rgba(255, 255, 255, .25));
  pointer-events: none; box-shadow: 0 0 18px rgba(255, 255, 255, .4);
}
.ba__poignee { width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .9); }
.ba:hover .ba__poignee { transform: scale(1.06); }
.ba__poignee { transition: transform var(--t); }
.ba__etiq { backdrop-filter: blur(6px); letter-spacing: .16em; }

/* encadré : filet d'accent plutôt qu'un aplat seul */
.encadre { position: relative; overflow: hidden; }
.encadre::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--opale), oklch(74% .13 256));
}

/* fiche technique : la ligne survolée s'éclaire */
.fiche-tech tr { transition: background var(--t); }
.fiche-tech tr:hover { background: color-mix(in srgb, var(--opale) 5%, transparent); }

/* liens du pied de page : décalage fin */
.footer a { display: inline-block; transition: color var(--t), transform var(--t); }
.footer li a:hover { transform: translateX(3px); }


/* halo opale derrière les en-têtes de pages intérieures */
.page-hero { position: relative; isolation: isolate; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -8%; top: -55%; width: 46vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--opale) 13%, transparent), transparent 64%);
}
.page-hero__in { position: relative; }


/* =========================================================
   V6 — les composants sur fond bleu nuit
   ========================================================= */
.section--encre { background: var(--ink); color: rgba(255, 255, 255, .80); }
.section--encre .texte-doux, .section--encre .legende { color: rgba(255, 255, 255, .62); }

/* cartes */
.section--encre .carte {
  background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .14);
  backdrop-filter: blur(2px);
}
.section--encre .carte p { color: rgba(255, 255, 255, .72); }
.section--encre a.carte:hover { background: rgba(255, 255, 255, .075); border-color: rgba(255, 255, 255, .26); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .8); }
.section--encre .carte__num { color: var(--opale-clair); }

/* index éditorial */
.section--encre .index-liste, .section--encre .index-item { border-color: rgba(255, 255, 255, .14); }
.section--encre .index-item:hover { background: linear-gradient(90deg, rgba(255, 255, 255, .07), transparent 60%); }
.section--encre .index-item__num { color: var(--opale-clair); }
.section--encre .index-item__txt p { color: rgba(255, 255, 255, .68); }

/* médias */
.section--encre .media { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); }
.section--encre .media figcaption { background: transparent; border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .6); }
.section--encre .ba { border-color: rgba(255, 255, 255, .18); }

/* questions fréquentes */
.section--encre .faq, .section--encre .faq details { border-color: rgba(255, 255, 255, .14); }
.section--encre .faq summary { color: #fff; }
.section--encre .faq summary:hover { color: var(--opale-clair); }
.section--encre .faq summary::after { border-color: var(--opale-clair); }
.section--encre .faq .faq__rep { color: rgba(255, 255, 255, .72); }

/* filets, titres, listes */
.section--encre .filet { background: rgba(255, 255, 255, .16); }
.section--encre .rule { background: rgba(255, 255, 255, .16); }
.section--encre .badge { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .78); }
.section--encre .badge i { background: var(--opale-clair); }
.section--encre .prose p, .section--encre .prose li { color: rgba(255, 255, 255, .74); }
.section--encre .prose a { color: var(--opale-clair); }
.section--encre .prose li::marker { color: var(--opale-clair); }
.section--encre .prose > p:first-of-type::first-letter { color: #fff; }

/* nuancier et marques du groupe gardent leur support clair */
.section--encre .teinte { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.section--encre .teinte span { color: rgba(255, 255, 255, .72); }
.section--encre .groupe__marque { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); }
.section--encre .groupe__marque span { color: rgba(255, 255, 255, .62); }

/* formulaires */
.section--encre .champ input, .section--encre .champ select, .section--encre .champ textarea {
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff;
}
.section--encre .champ input::placeholder, .section--encre .champ textarea::placeholder { color: rgba(255, 255, 255, .4); }
.section--encre .choix label { border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .76); }
.section--encre .choix label:has(input:checked) { background: rgba(255, 255, 255, .1); border-color: var(--opale-clair); color: #fff; }

/* boutons */
.section--encre .btn { background: #fff; color: var(--ink); border-color: #fff; }
.section--encre .btn--opale, .section--encre .btn--laiton { background: var(--opale); border-color: var(--opale); color: #fff; }

/* le configurateur reste sur fond clair, même dans une section sombre */
.section--encre .config { background: #fff; }
.section--encre .config, .section--encre .config * { color: var(--texte); }
.section--encre .config h3 { color: var(--ink); }
.section--encre .config .lien-fleche { color: var(--opale-profond); }


/* =========================================================
   V6 — typographie : Bodoni Moda + Archivo
   ========================================================= */

/* toutes les capitales d'interface prennent la largeur étendue du logo */
.btn, .badge, .fiche-bar dt, .hero__fiche dt, .champ label, .footer h4,
.config__onglets button span, .hero__sceau, .ba__etiq, .chiffre span,
.config__legende, .bandeau, .ariane, .config__compte, .menu-mobile .mono {
  font-stretch: 125%;
}

/* le mot-symbole de l'en-tête reprend exactement le lettrage du logo */
.marque__nom {
  font-family: var(--sans); font-stretch: 125%; font-weight: 600;
  font-size: 1.04rem; letter-spacing: .2em;
}
.marque__sous { font-stretch: 125%; font-size: .5rem; letter-spacing: .36em; font-weight: 600; }

/* le Bodoni est plus petit d'œil : on compense sur les blocs d'accroche */
.citation { font-size: clamp(1.6rem, 3.1vw, 2.5rem); line-height: 1.2; }
.chiffre b { font-size: clamp(2.3rem, 4.3vw, 3.3rem); }
.index-item__txt h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 500; }
.faq summary { font-size: clamp(1.1rem, 1.8vw, 1.38rem); font-weight: 500; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); letter-spacing: -.02em; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.etape h3 { font-size: 1.4rem; }
.config__panneau h3 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
.footer__mot span { font-size: 10.4cqw; letter-spacing: .01em; -webkit-text-stroke-width: 1.2px; }
.titre-section[data-num]::before { font-weight: 500; opacity: .045; }
.section--encre .titre-section[data-num]::before { opacity: .07; }

/* le texte courant gagne en lisibilité avec Archivo */
body { font-size: 1.01rem; line-height: 1.66; letter-spacing: -.002em; }
.lede { font-size: clamp(1.08rem, 1.45vw, 1.28rem); line-height: 1.56; }
.prose { font-size: 1.06rem; }


/* =========================================================
   V7 — titres : Jost (géométrique), dans les codes du logo
   ========================================================= */
.hero h1 {
  font-weight: 300; text-transform: uppercase; letter-spacing: .018em; line-height: 1.08;
  text-shadow: 0 2px 44px rgba(6, 12, 34, .5);
}
.hero h1 em {
  font-style: normal; font-weight: 400; letter-spacing: .025em;
  /* bleu acier très pâle, dans l'esprit de l'anneau chromé du logo */
  color: oklch(90% .035 252);
}
.page-hero h1 { font-weight: 400; letter-spacing: -.026em; }
h2 { font-weight: 400; letter-spacing: -.026em; }
h3 { font-weight: 500; letter-spacing: -.012em; }
h4 { font-weight: 600; letter-spacing: -.008em; }

/* le trait fin du géométrique fait tout l'effet sur les grands corps */
.citation { font-weight: 300; letter-spacing: -.024em; line-height: 1.14; }
.chiffre b { font-weight: 300; letter-spacing: -.03em; }
.titre-section[data-num]::before { font-weight: 300; letter-spacing: -.04em; }
.footer__mot span { font-weight: 300; }
.index-item__txt h3 { font-weight: 400; letter-spacing: -.02em; }
.faq summary { font-weight: 400; letter-spacing: -.018em; }
.config__panneau h3, .etape h3 { font-weight: 500; }
.prose--chapo > p:first-of-type::first-letter { font-weight: 300; }
.marque__nom { font-family: var(--serif); font-stretch: normal; font-weight: 500; letter-spacing: .26em; font-size: 1.02rem; }

/* un géométrique porte mieux les très grands corps : on remonte l'échelle */
h1 { font-size: clamp(2.8rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.hero h1 { font-size: clamp(2.2rem, 5.1vw, 4.4rem); max-width: 19ch; }
.page-hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.9rem); }
.citation { font-size: clamp(1.7rem, 3.3vw, 2.7rem); }
.chiffre b { font-size: clamp(2.5rem, 4.6vw, 3.6rem); }
.config__panneau h3 { font-size: clamp(1.5rem, 2.7vw, 2.2rem); }
.index-item__txt h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }

/* liste des pièces couvertes par un pack */
.liste-zones { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ligne); }
.liste-zones li {
  display: flex; gap: .8rem; align-items: baseline; padding: .85rem 0;
  border-bottom: 1px solid var(--ligne); font-size: 1rem; color: var(--texte);
}
.liste-zones li::before {
  content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: var(--opale); transform: translateY(-1px);
}
.section--encre .liste-zones, .section--encre .liste-zones li { border-color: rgba(255, 255, 255, .14); }
.section--encre .liste-zones li { color: rgba(255, 255, 255, .88); }
.section--encre .liste-zones li::before { background: var(--opale-clair); }
