/* =========================================================
   Xpress Com · maquette
   Style : design system Bose (DESIGN bose.md) + couleurs Xpress Com
   ========================================================= */

:root {
  /* Couleurs Bose */
  --soprano-white: #ffffff;
  --studio-mist: #f8f8f8;
  --warm-porcelain: #f1efee;
  --bass-black: #131317;
  --countertenor-gray: #b4bec7;
  --steel-gray: #949494;
  --charcoal-helper: #40464b;
  --quiet-placeholder: #545454;

  /* Accent Xpress Com (remplace le Chord Blue de Bose) + encres CMJN */
  --magenta: #E5007D;
  --cyan: #00A0E3;
  --jaune: #FFE500;

  /* Typo : Barlow Condensed remplace Bose Headline, Barlow remplace Bose Text */
  --font-headline: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "Barlow", Arial, "Helvetica Neue", sans-serif;

  --text-micro: 13px;
  --text-nav: 15px;
  --text-body: 16px;
  --text-strong: 18px;
  --text-support: 24px;
  --text-heading: 32px;
  --text-display: clamp(44px, 6vw, 88px);
  --text-hero: clamp(48px, min(10.5vw, 13svh), 168px);

  /* Espacements (base 4px) */
  --gutter: clamp(16px, 3vw, 40px);
  --section-gap: clamp(88px, 10vw, 160px);

  /* Rayons Bose */
  --r-btn: 2px;
  --r-pill: 9999px;
  --r-badge: 88px;

  /* Mouvement */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--soprano-white);
  color: var(--bass-black);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.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: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--bass-black); color: #fff; padding: 10px 16px; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.display {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: var(--text-display);
  line-height: .88;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* Étiquette de rubrique : le même nom que dans la navigation, au-dessus de chaque titre */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ancres : laisser la place de l'en-tête quand il réapparaît */
.request, .online { scroll-margin-top: 140px; }

/* ---------- Barre de progression de lecture ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--magenta);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Boutons (Bose : 2px, majuscules 16px/500) ---------- */
.btn {
  --bg: var(--soprano-white); --fg: var(--bass-black);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; min-height: 48px;
  border: 1px solid var(--bass-black); border-radius: var(--r-btn);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-text); font-size: 16px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out), transform .2s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--bass-black));
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn--light, .btn--outline { --fill: var(--bass-black); }
.btn--light:hover, .btn--outline:hover, .btn--light:focus-visible, .btn--outline:focus-visible { color: #fff; }
.btn--light { border-color: var(--soprano-white); }
.btn--dark { --bg: var(--bass-black); --fg: #fff; --fill: var(--magenta); }
.btn--dark:hover, .btn--dark:focus-visible { border-color: var(--magenta); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none;
}
.link-arrow svg { transition: transform .35s var(--ease-out); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(6px); }
.link-arrow--light { color: #fff; }

/* ---------- Bandeau d'annonce ---------- */
.announce {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 40px; padding: 8px 48px;
  background: var(--countertenor-gray); color: var(--bass-black);
  font-size: 14px; text-align: center;
}
.announce a { font-weight: 500; text-underline-offset: 3px; }
.announce a:hover { color: var(--magenta); }
.announce__close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 40px; height: 40px;
  background: none; border: 0;
}
.announce.is-closed { display: none; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--soprano-white);
  border-bottom: 1px solid var(--bass-black);
  transition: transform .45s var(--ease-out);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h); padding: 0 var(--gutter);
}
.toplinks { display: flex; gap: clamp(18px, 2vw, 28px); }
.toplinks a {
  position: relative; white-space: nowrap; font-size: var(--text-nav); line-height: 1.2;
  text-transform: uppercase; text-decoration: none; padding: 6px 0;
}
.toplinks a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--magenta); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .4s var(--ease-out);
}
.toplinks a:hover::after, .toplinks a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }

/* vrai logo Xpress Com (img/logo-xpresscom.png, tiré de ressources-client/logo/), sans animation */
.logo { display: block; width: 92px; margin: -2px 0; }
.logo img { display: block; width: 100%; height: auto; }

.utils { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.utils__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: color .2s; }
.utils__icon:hover { color: var(--magenta); }


/* ---------- Hero ---------- */
.hero {
  position: relative; height: calc(100svh - var(--header-h) - 52px - 40px - 96px); min-height: 480px;
  overflow: hidden; color: #fff; background: var(--bass-black);
}
.hero__media { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); }
.hero__media--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--bass-black); }
.hero__half { position: relative; overflow: hidden; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); will-change: transform;
}
/* bâche : cadrée sur la pelouse, pour que le texte ne tombe pas sur les visuels imprimés */
.hero__half:first-child img { object-position: 50% 88%; }
/* voile neutre en bas et à gauche, là où se pose le texte (Bose : darkened lower image area).
   Assez fort pour rester lisible quelle que soit la photo, provisoire ou définitive. */
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; /* au-dessus des photos, même réordonnées */
  background:
    linear-gradient(to top, rgba(19,19,23,.9) 0%, rgba(19,19,23,.55) 45%, rgba(19,19,23,0) 78%),
    linear-gradient(to right, rgba(19,19,23,.7) 0%, rgba(19,19,23,.45) 38%, rgba(19,19,23,0) 66%);
}
/* légendes des deux photos, en haut de chaque moitié */
.hero__tags {
  position: absolute; inset: 0 0 auto 0; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  padding-top: clamp(16px, 3svh, 28px);
  pointer-events: none;
}
/* les deux légendes se font face, de part et d'autre de la jonction des photos */
.hero__tag:first-child { justify-self: end; margin-right: 16px; }
.hero__tag:last-child { justify-self: start; margin-left: 16px; }
.hero__tag {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 14px;
  border-radius: var(--r-badge); background: rgba(255,255,255,.92); color: var(--bass-black);
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background .3s, color .3s;
}
.hero__tag svg { transition: transform .35s var(--ease-out); }
.hero__tag:hover, .hero__tag:focus-visible { background: var(--magenta); color: #fff; }
.hero__tag:hover svg { transform: translateX(3px); }
.hero__content {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 6vh, 72px);
  max-width: 1100px;
}
.hero__eyebrow { margin-bottom: clamp(12px, 2.4svh, 20px); }
@media (max-height: 700px) { .hero__tags { display: none; } }
.hero__title {
  font-family: var(--font-headline); font-weight: 900;
  font-size: var(--text-hero); line-height: .86; letter-spacing: .01em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: block; transform: translateY(105%); }
.hero__text {
  max-width: 44ch; margin-top: clamp(12px, 3svh, 24px);
  font-size: clamp(16px, min(1.7vw, 2.8svh), 24px); font-weight: 500; line-height: 1.45;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(16px, 4svh, 32px); }
[data-hero] { opacity: 0; transform: translateY(24px); }

.is-loaded .hero__media { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease-io); }
.is-loaded .hero__media img { transform: scale(1); transition: transform 2.2s var(--ease-out); }
.is-loaded .hero__title .line > span { transform: translateY(0); transition: transform 1s var(--ease-out); }
.is-loaded .hero__title .line:nth-child(1) > span { transition-delay: .55s; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .65s; }
.is-loaded [data-hero] { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.is-loaded .hero__eyebrow { transition-delay: .45s; }
.is-loaded .hero__text { transition-delay: .85s; }
.is-loaded .hero__actions { transition-delay: .95s; }
.is-loaded .hero__tags { transition-delay: 1.1s; }
/* une fois l'entrée finie, le JS pilote le parallaxe */

/* ---------- Actions rapides ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--soprano-white); }
.quick__item {
  display: flex; flex-direction: column; gap: 4px; padding: 24px var(--gutter);
  background: var(--bass-black); color: #fff; text-decoration: none;
  transition: background .3s, color .3s;
}
.quick__item span { font-family: var(--font-headline); font-weight: 900; font-size: 26px; text-transform: uppercase; line-height: 1; }
.quick__item strong { font-weight: 400; font-size: 16px; color: var(--countertenor-gray); transition: color .3s; }
.quick__item--main { background: var(--magenta); }
.quick__item--main strong { color: #fff; }
.quick__item:hover, .quick__item:focus-visible { background: var(--soprano-white); color: var(--bass-black); }
.quick__item:hover strong, .quick__item:focus-visible strong { color: var(--charcoal-helper); }

/* ---------- Calage CMJN (l'idée) ---------- */
.calage { position: relative; height: 200svh; background: var(--soprano-white); }
.calage__eyebrow { position: relative; z-index: 1; margin-bottom: clamp(20px, 4vh, 40px); }
.calage__sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--header-h) var(--gutter) 40px; overflow: hidden;
}
/* fond flouté : le nuancier d'imprimerie, qui se précise à mesure que les encres se calent */
.calage__sticky::before {
  content: ""; position: absolute; inset: -12%; z-index: 0;
  background: url("../img/color-swatches.jpg") center / cover no-repeat;
  filter: blur(calc(46px - var(--p, 0) * 22px)) saturate(1.15);
  transform: scale(calc(1.2 - var(--p, 0) * .08)) rotate(calc(var(--p, 0) * -4deg));
}
.calage__sticky::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgba(255, 255, 255, calc(.62 - var(--p, 0) * .12));
}
.calage__word { position: relative; z-index: 1; isolation: isolate; }
.calage__foot { position: relative; z-index: 1; }
.calage__layer {
  display: block;
  font-family: var(--font-headline); font-weight: 900;
  font-size: clamp(64px, 13vw, 220px); line-height: .86; letter-spacing: .005em;
  text-transform: uppercase;
  mix-blend-mode: multiply;
  will-change: transform;
}
.calage__layer--c, .calage__layer--m, .calage__layer--y { position: absolute; inset: 0; }
.calage__layer--k { color: var(--bass-black); position: relative; z-index: 4; }
.calage__layer--c { color: var(--cyan); z-index: 1; }
.calage__layer--m { color: var(--magenta); z-index: 2; }
.calage__layer--y { color: var(--jaune); z-index: 3; }
.calage__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-top: clamp(32px, 6vh, 64px);
}
.calage__text { max-width: 52ch; font-size: var(--text-strong); line-height: 1.5; }
.calage__meter { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.calage__mire { will-change: transform; }
.calage__value { font-family: var(--font-headline); font-size: var(--text-heading); font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.calage__value strong { font-weight: 900; font-variant-numeric: tabular-nums; display: inline-block; min-width: 3.2ch; }
.calage.is-done .calage__value strong { color: var(--magenta); }

/* ---------- En-têtes de section ---------- */
.section-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end;
  padding: 0 var(--gutter); margin-bottom: 48px;
}
.section-head__text { font-size: var(--text-strong); max-width: 46ch; }
.section-head > .eyebrow { grid-column: 1 / -1; margin-bottom: -4px; }

/* ---------- Prestations : rail Bose ---------- */
.prestations { padding: var(--section-gap) 0; }
.rail { padding: 0 var(--gutter); }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3px) / 4);
  gap: 1px; background: var(--soprano-white);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.tile {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--studio-mist);
}
.tile__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--warm-porcelain); }
.tile__media img, .tile__media svg {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.tile:hover .tile__media img, .tile:hover .tile__media svg { transform: scale(1.07); }
.tile__media--draw .van, .tile__media--draw .van__stripe, .tile__media--draw text { transition: transform .9s var(--ease-out); }
.tile:hover .tile__media--draw .van__stripe { transform: translateX(-8px); }
.tile__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 24px 32px; flex: 1; }
.tile__title { font-size: 20px; font-weight: 600; line-height: 1.25; }
.tile__text { font-size: 16px; color: var(--charcoal-helper); flex: 1; }
.tile .btn { margin-top: 8px; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-badge);
  background: var(--bass-black); color: #fff; font-size: 13px; font-weight: 500;
}
.tile__badges { display: flex; flex-wrap: wrap; gap: 6px; }
/* tuile visée depuis un lien (bande, pied de page, double campagne) */
.tile { outline: 3px solid transparent; outline-offset: -3px; }
.tile.is-target { animation: cible 2s var(--ease-out); }
@keyframes cible { 0%, 50% { outline-color: var(--magenta); } 100% { outline-color: transparent; } }

/* ---------- Créer en ligne : les trois outils ---------- */
.online {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin: clamp(56px, 6vw, 88px) var(--gutter) 0; background: var(--soprano-white);
}
.online__head {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 28px; background: var(--bass-black); color: #fff;
}
.online__title { font-family: var(--font-headline); font-weight: 900; font-size: clamp(28px, 2.4vw, 36px); line-height: .95; text-transform: uppercase; }
.online__item {
  display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 28px;
  background: var(--warm-porcelain); text-decoration: none;
  transition: background .3s, color .3s;
}
.online__name { font-family: var(--font-headline); font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; }
.online__text { flex: 1; color: var(--charcoal-helper); transition: color .3s; }
.online__item .link-arrow { font-size: 14px; }
.online__item:hover, .online__item:focus-visible { background: var(--bass-black); color: #fff; }
.online__item:hover .online__text, .online__item:focus-visible .online__text { color: var(--countertenor-gray); }

.rail__controls { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.rail__dots { display: flex; gap: 8px; }
.rail__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--countertenor-gray); transition: background .3s, transform .3s; }
.rail__dots span.is-on { background: var(--bass-black); transform: scale(1.25); }
.rail__arrows { display: flex; gap: 12px; }
.round {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--bass-black); border-radius: 50%;
  background: var(--soprano-white);
  transition: background .3s var(--ease-out), color .3s var(--ease-out), transform .2s;
}
.round:hover { background: var(--bass-black); color: #fff; }
.round:active { transform: scale(.92); }
.round:disabled { opacity: .35; cursor: default; background: var(--soprano-white); color: var(--bass-black); }

/* ---------- Bandeau défilant ---------- */
.marquee { overflow: hidden; background: var(--bass-black); color: #fff; padding: 20px 0; }
.marquee__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee__track span {
  font-family: var(--font-headline); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 88px); line-height: 1; padding: 0 .35em; white-space: nowrap;
}
.marquee__track svg { width: clamp(32px, 4vw, 56px); height: clamp(32px, 4vw, 56px); flex-shrink: 0; }

/* ---------- Configurateur ---------- */
.config { padding: var(--section-gap) var(--gutter); background: var(--soprano-white); }
.config__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.config__intro p { font-size: var(--text-strong); max-width: 46ch; }
.config__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1px; background: var(--soprano-white); }
.config__stage { background: var(--studio-mist); padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.config__note { margin-top: 16px; font-size: 13px; color: var(--quiet-placeholder); }
.config__form { background: var(--studio-mist); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px; }

.field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field__label { display: block; font-size: 16px; font-weight: 600; padding: 0; }
.field__label span, .field__label output { margin-left: 8px; color: var(--charcoal-helper); font-weight: 400; }
.field__input {
  width: 100%; padding: 16px 24px; border-radius: var(--r-pill);
  border: 1px solid transparent; background: var(--soprano-white);
  font: 500 18px/1.2 var(--font-text); color: #000; text-transform: uppercase;
  transition: border-color .2s;
}
.field__input:focus { outline: none; border-color: var(--bass-black); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input, .swatch input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  border-radius: var(--r-pill); background: var(--soprano-white);
  border: 1px solid var(--steel-gray); font-size: 15px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.chip span:hover { border-color: var(--bass-black); }
.chip input:checked + span { background: var(--bass-black); border-color: var(--bass-black); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--magenta); outline-offset: 2px; }
.chip span:active { transform: scale(.96); }

.swatches { display: flex; gap: 12px; }
.swatch { position: relative; cursor: pointer; }
.swatch span {
  display: block; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  outline: 1px solid var(--steel-gray); outline-offset: 3px;
  transition: transform .25s var(--ease-out), outline-color .2s;
}
.swatch:hover span { transform: scale(1.1); }
.swatch input:checked + span { outline-color: var(--bass-black); outline-width: 2px; }
.swatch input:focus-visible + span { outline: 2px solid var(--magenta); }

.range { width: 100%; accent-color: var(--bass-black); height: 32px; }
.config__summary { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.config__summary p { font-size: var(--text-strong); font-weight: 500; }

/* Visualiseur de panneau (fragment d'interface, data-ui) */
.viewer { display: flex; flex-direction: column; gap: 16px; }
.viewer__scenes { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer__scene {
  min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--steel-gray); background: var(--soprano-white); font-size: 15px;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.viewer__scene:hover { border-color: var(--bass-black); }
.viewer__scene.is-on { background: var(--bass-black); border-color: var(--bass-black); color: #fff; }
.viewer__scene:active { transform: scale(.96); }
.viewer__frame { width: 100%; }

/* une scène : photo réelle + panneau SVG posé à l'échelle */
.scene {
  position: relative; width: 100%; aspect-ratio: var(--ratio);
  overflow: hidden; container-type: inline-size;
  background: #e9e6e2;
}
.scene[data-scene="studio"] { background: #e9e6e2; }
.scene__bg { position: absolute; inset: 0; overflow: hidden; }
.scene__bg img { position: absolute; max-width: none; object-fit: fill; }
.config__stage { justify-content: flex-start; }
/* aperçu + mention collés ensemble sous l'en-tête complet (header + bande noire) ;
   --sticky-top est tenu à jour par main.js (hauteur réelle, et 24px quand l'en-tête est caché) */
.config__sticky {
  position: sticky; top: var(--sticky-top, calc(var(--header-h) + 76px));
  transition: top .45s var(--ease-out);
}
.viewer__frame.is-switching .scene__bg { animation: scene-in .6s var(--ease-out); }
@keyframes scene-in { from { opacity: .2; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.scene__panel {
  position: absolute; overflow: visible;
  filter: drop-shadow(calc(var(--sh) * .7cqw) calc(var(--sh) * 1cqw) calc(var(--sh) * 1.1cqw) rgba(25, 12, 6, .42));
  transition: left .5s var(--ease-out), top .5s var(--ease-out), width .5s var(--ease-out), height .5s var(--ease-out);
}
.scene__panel.is-posing { animation: pose .7s var(--ease-out); }
.stage { display: block; width: 100%; height: auto; }
.stage__panel { transform-box: fill-box; transform-origin: 50% 0; }
.stage__panel.is-posing { animation: pose .7s var(--ease-out); }
@keyframes pose {
  0% { opacity: 0; transform: translateY(-4%) rotate(-1.2deg); }
  60% { opacity: 1; transform: translateY(.5%) rotate(.2deg); }
  100% { transform: none; }
}
.scene__goal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene__dims { position: absolute; inset: 0; pointer-events: none; font-size: 13px; color: var(--charcoal-helper); }
.dim { position: absolute; display: flex; justify-content: center; align-items: center; }
.dim--w { height: 20px; border-left: 1px solid; border-right: 1px solid; }
.dim--w::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid; }
.dim--h { width: 20px; border-top: 1px solid; border-bottom: 1px solid; writing-mode: vertical-rl; }
.dim--h::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid; }
.dim b { position: relative; padding: 0 6px; background: #e9e6e2; font-weight: 400; }

/* mini-scènes en tuile ou dans le hero : remplissent leur boîte */
.tile__media--scene, .hero__half--scene { position: relative; overflow: hidden; }
.tile__media--scene .scene, .hero__half--scene .scene {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.tile__media--scene .scene { transition: transform 1.1s var(--ease-out); }
.tile:hover .tile__media--scene .scene { transform: translate(-50%, -50%) scale(1.07); }

/* formulaire : supports, formats, logo */
.supports { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.support { position: relative; cursor: pointer; }
.support input { position: absolute; opacity: 0; pointer-events: none; }
.support span {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 14px 16px; background: var(--soprano-white); border: 1px solid var(--steel-gray);
  transition: border-color .25s, background .25s, color .25s;
}
.support strong { font-size: 16px; font-weight: 600; }
.support em { font-style: normal; font-size: 14px; color: var(--charcoal-helper); transition: color .25s; }
.support:hover span { border-color: var(--bass-black); }
.support input:checked + span { background: var(--bass-black); border-color: var(--bass-black); color: #fff; }
.support input:checked + span em { color: var(--countertenor-gray); }
.support input:focus-visible + span { outline: 2px solid var(--magenta); outline-offset: 2px; }
.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
.sizes label { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--charcoal-helper); }
.field__input--soft { text-transform: none; font-weight: 400; font-size: 16px; }
.upload { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--bass-black); border-radius: var(--r-btn); background: var(--soprano-white);
  font-size: 15px; font-weight: 500; transition: background .25s, color .25s;
}
.upload:hover .upload__btn { background: var(--bass-black); color: #fff; }
.upload input:focus-visible + .upload__btn { outline: 2px solid var(--magenta); outline-offset: 2px; }
.upload__name { font-size: 14px; color: var(--charcoal-helper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Kit déco moto ---------- */
.moto { background: var(--bass-black); color: #fff; }
.moto__intro { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.moto__photo { min-height: 440px; }
.moto__photo { position: relative; overflow: hidden; }
.moto__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.8s var(--ease-out); }
.moto__photo.is-in img { transform: scale(1); }
/* accueil : photo cadrée sur le pilote (photo paysage dans une colonne haute) */
.moto__photo img { object-position: 52% 50%; }
/* parallaxe au scroll (comme les photos du hero) + lien vers le configurateur */
a.moto__photo { display: block; color: inherit; }
.moto__photo-frame { position: absolute; inset: -5% 0; display: block; will-change: transform; }
.moto__photo-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 14px;
  border-radius: var(--r-badge); background: rgba(255,255,255,.92); color: var(--bass-black);
  font-size: 13px; font-weight: 500; transition: background .3s, color .3s;
}
.moto__photo-tag svg { transition: transform .35s var(--ease-out); }
a.moto__photo:hover .moto__photo-tag, a.moto__photo:focus-visible .moto__photo-tag { background: var(--magenta); color: #fff; }
a.moto__photo:hover .moto__photo-tag svg { transform: translateX(3px); }
/* petit blanc entre les actions rapides et la section moto */
.quick + .moto { margin-top: clamp(20px, 2.5vw, 36px); }
.moto__copy { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(40px, 6vw, 96px) clamp(32px, 5vw, 80px); }
.moto__title {
  font-family: var(--font-headline); font-weight: 900; text-transform: uppercase;
  font-size: var(--text-display); line-height: .86; letter-spacing: .01em;
}
.moto__lead { font-size: clamp(18px, 1.6vw, 22px); max-width: 38ch; }
.moto__list { display: flex; flex-direction: column; gap: 1px; background: #2c2e34; }
.moto__list li { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 16px 0; background: var(--bass-black); transition: padding .4s var(--ease-out), color .3s; }
.moto__list li:hover { padding-left: 12px; color: var(--magenta); }
.moto__list strong { font-family: var(--font-headline); font-size: 24px; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.moto__list span { color: var(--countertenor-gray); font-size: 16px; }
.moto__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.btn--magenta { --bg: var(--magenta); --fg: #fff; --fill: #fff; border-color: var(--magenta); }
.btn--magenta:hover, .btn--magenta:focus-visible { color: var(--bass-black); border-color: #fff; }
.badge--magenta { background: var(--magenta); }

.moto__strip { overflow: hidden; padding: 1px 0 0; }
.moto__strip-track { display: flex; gap: 1px; width: max-content; will-change: transform; }
.moto__strip figure { position: relative; margin: 0; width: clamp(280px, 34vw, 560px); aspect-ratio: 4 / 3; overflow: hidden; }
.moto__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.moto__strip figure:hover img { transform: scale(1.08); }
.moto__strip figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(19,19,23,.7), rgba(19,19,23,0) 45%); }
.moto__strip figcaption {
  position: absolute; left: 24px; bottom: 20px; z-index: 1;
  font-family: var(--font-headline); font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 40px); line-height: 1;
}

.plates { background: var(--soprano-white); color: var(--bass-black); padding: var(--section-gap) var(--gutter); }
.plates__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.plates__head p { font-size: var(--text-strong); max-width: 46ch; }
.plates__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1px; }
.plates__stage {
  position: relative; display: grid; grid-template-columns: .8fr 1fr; align-items: center; gap: 6%;
  padding: clamp(24px, 5vw, 72px); background: var(--warm-porcelain); min-height: 420px;
}
.plate { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 18px rgba(19,19,23,.28)); animation: flotte 6s ease-in-out infinite; }
.plate--side { animation-delay: -3s; transform-origin: 50% 50%; }
@keyframes flotte { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.plate.is-printing { animation: imprime .7s var(--ease-out), flotte 6s ease-in-out .7s infinite; }
@keyframes imprime { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.plates__row { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; }
.field__input--num { font-family: var(--font-headline); font-weight: 900; font-size: 24px; text-align: center; }
.swatches { flex-wrap: wrap; }

/* ---------- Double campagne ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--soprano-white); }
.split__panel {
  position: relative; display: block; height: clamp(420px, 80svh, 820px);
  overflow: hidden; color: #fff; text-decoration: none; background: var(--bass-black);
}
.split__panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 1.4s var(--ease-out);
}
.split__panel:hover img { transform: scale(1.12); }
.split__panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(19,19,23,.78), rgba(19,19,23,0) 55%);
}
.split__copy { position: absolute; left: clamp(24px, 3vw, 48px); bottom: clamp(24px, 4vw, 56px); z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.split__title {
  font-family: var(--font-headline); font-weight: 900; text-transform: uppercase;
  font-size: var(--text-display); line-height: .88; letter-spacing: .01em;
}

/* ---------- Méthode : défilement horizontal ---------- */
.methode { position: relative; height: 300svh; }
.step__num {
  position: relative; z-index: 1; margin-bottom: clamp(12px, 2vh, 20px);
  font-family: var(--font-headline); font-size: 20px; font-weight: 700; letter-spacing: .04em;
}
.methode__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.methode__track { display: flex; height: 100%; width: 400vw; will-change: transform; }
/* numéro, verbe et texte groupés, centrés dans l'écran */
.step {
  position: relative; flex: 0 0 100vw; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--header-h) var(--gutter) var(--gutter);
  overflow: hidden;
}
.step__verb {
  position: relative; z-index: 1;
  font-family: var(--font-headline); font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, min(9vw, 18svh), 150px); line-height: .86; letter-spacing: .005em;
  transform: translateX(calc(var(--shift, 0) * 1vw));
}
.step__text { position: relative; z-index: 1; max-width: 40ch; margin-top: clamp(16px, 2.6vh, 24px); font-size: clamp(17px, 1.3vw, 21px); font-weight: 500; line-height: 1.5; }
.step--white { background: var(--soprano-white); }
.step--porcelain { background: var(--warm-porcelain); }
.step--photo { background: var(--bass-black); color: #fff; }
.step--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(calc(1 + var(--zoom, 0) * .12)); }
.step--magenta { background: var(--magenta); color: #fff; }

/* ---------- Références ---------- */
.refs { padding: var(--section-gap) var(--gutter); }
.section-head--flush { padding: 0; }
.section-head__text a { text-underline-offset: 3px; }
.section-head__text a:hover { color: var(--magenta); }
/* une seule ligne qui défile (rail) : cartes compactes, la suivante dépasse pour inviter à faire défiler */
.refs__grid.rail__track { grid-auto-columns: clamp(240px, 21vw, 320px); cursor: grab; }
.refs__grid.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.refs__grid.rail__track.is-dragging .ref { pointer-events: none; }
.refs .tile { background: none; }
/* chaque carte : photo de la réalisation en fond, voile sombre, texte blanc (comme le hero et l'atelier) */
.ref {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  min-height: clamp(300px, 24vw, 360px); padding: 24px; text-decoration: none; height: 100%;
  background: var(--bass-black); color: #fff; overflow: hidden; isolation: isolate;
}
.ref__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ref::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(19,19,23,.86) 0%, rgba(19,19,23,.55) 45%, rgba(19,19,23,.88) 100%);
  transition: opacity .6s var(--ease-out);
}
.ref:hover .ref__bg, .ref:focus-visible .ref__bg { transform: scale(1.07); }
.ref:hover::before, .ref:focus-visible::before { opacity: .8; }
.ref__name {
  font-family: var(--font-headline); font-weight: 900; text-transform: uppercase;
  font-size: clamp(24px, 2vw, 32px); line-height: .9; letter-spacing: .01em;
}
.ref__what { font-size: 15px; line-height: 1.45; max-width: 26ch; flex: 1; color: rgba(255,255,255,.88); }
.ref__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; }
.ref .badge { background: #fff; color: var(--bass-black); transition: background .5s var(--ease-out), color .5s var(--ease-out); }
.ref:hover .badge, .ref:focus-visible .badge { background: var(--magenta); color: #fff; }
.ref__foot svg { transition: transform .8s var(--ease-out); }
.ref:hover .ref__foot svg { transform: rotate(180deg) scale(1.15); }


/* ---------- Contact : bande des savoir-faire ---------- */
.contact { background: var(--warm-porcelain); padding: 0 0 var(--section-gap); }
.sf { position: relative; z-index: 5; background: var(--bass-black); color: #fff; }
.header .sf__btn { min-height: 52px; font-size: clamp(15px, 1.15vw, 18px); }
.sf__bar { display: flex; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.sf__bar::-webkit-scrollbar { display: none; }
.sf__item { position: static; }
.sf__btn {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 0 4px;
  background: none; border: 0; color: #fff;
  font-family: var(--font-headline); font-size: 20px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap; transition: color .25s;
}
.sf__btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--magenta);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease-out);
}
.sf__item:hover .sf__btn, .sf__item.is-open .sf__btn, .sf__btn:focus-visible { color: var(--magenta); }
.sf__item:hover .sf__btn::after, .sf__item.is-open .sf__btn::after { transform: scaleX(1); }
.sf__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 48px; align-items: start;
  padding: 32px var(--gutter) 40px;
  background: var(--soprano-white); color: var(--bass-black);
  border-bottom: 1px solid var(--bass-black);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s;
}
.sf__item:hover .sf__panel, .sf__item:focus-within .sf__panel, .sf__item.is-open .sf__panel {
  opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.sf__intro { display: flex; flex-direction: column; gap: 16px; }
.sf__lead { font-size: var(--text-strong); max-width: 30ch; }
.sf__links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sf__links .link-arrow { font-size: 14px; min-height: 32px; transition: color .2s; }
.sf__links .link-arrow:hover, .sf__links .link-arrow:focus-visible { color: var(--magenta); }
.sf__label { margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal-helper); }

/* ---------- Contact : coordonnées + formulaire ---------- */
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px 80px;
  padding: var(--section-gap) var(--gutter) 0; align-items: start;
}
.contact__side { display: flex; flex-direction: column; gap: 28px; }
.contact__intro { font-size: var(--text-strong); max-width: 40ch; }
.contact__quick { display: grid; gap: 1px; background: var(--warm-porcelain); }
.contact__quick a {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 24px;
  background: var(--soprano-white); text-decoration: none;
  transition: background .3s, color .3s, padding .35s var(--ease-out);
}
.contact__quick span { font-size: 14px; color: var(--charcoal-helper); transition: color .3s; }
.contact__quick strong { font-size: 18px; font-weight: 600; }
.contact__quick a:hover, .contact__quick a:focus-visible { background: var(--bass-black); color: #fff; padding-left: 32px; }
.contact__quick a:hover span, .contact__quick a:focus-visible span { color: var(--countertenor-gray); }
.contact__mire svg { transition: transform 1s var(--ease-out); }
.contact__mire:hover svg { transform: rotate(90deg); }

.request { background: var(--soprano-white); padding: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; gap: 24px; }
.request__title { font-family: var(--font-headline); font-weight: 900; font-size: 32px; text-transform: uppercase; line-height: 1; }
.request__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.rf { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rf--full { grid-column: 1 / -1; }
.rf > span { font-size: 15px; font-weight: 600; }
.rf input[type="text"], .rf input[type="email"], .rf input[type="tel"], .rf select, .rf textarea {
  width: 100%; padding: 14px 20px; border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--studio-mist); font: 16px/1.4 var(--font-text); color: #000;
  transition: border-color .2s, background .2s;
}
.rf textarea { border-radius: 20px; resize: vertical; min-height: 128px; }
.rf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #131317 50%), linear-gradient(135deg, #131317 50%, transparent 50%); background-position: calc(100% - 26px) 52%, calc(100% - 20px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.rf input:focus, .rf select:focus, .rf textarea:focus { outline: none; border-color: var(--bass-black); background-color: var(--soprano-white); }
.rf.is-invalid input, .rf.is-invalid select, .rf.is-invalid textarea { border-color: #c4122f; }
.rf--file input { font-size: 15px; }
.rf--file input::file-selector-button {
  margin-right: 12px; padding: 10px 18px; border: 1px solid var(--bass-black); border-radius: var(--r-btn);
  background: var(--soprano-white); font: 500 15px var(--font-text); cursor: pointer; transition: background .2s, color .2s;
}
.rf--file input::file-selector-button:hover { background: var(--bass-black); color: #fff; }
.rf__hint { font-style: normal; font-size: 14px; color: var(--charcoal-helper); }
.rf--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.rf--check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--bass-black); }
.rf--check span { font-size: 14px; font-weight: 400; color: var(--charcoal-helper); }
.rf--check.is-invalid span { color: #c4122f; }
.request__error { color: #c4122f; font-weight: 500; }
.request__ok { padding: 14px 20px; background: var(--bass-black); color: #fff; }
.request__flash { animation: flash 1s var(--ease-out); }
@keyframes flash { 0% { background: color-mix(in srgb, var(--magenta) 18%, #fff); } 100% { background: var(--studio-mist); } }

/* ---------- Pied de page ---------- */
.footer { padding: 64px var(--gutter) 24px; background: var(--soprano-white); }
.footer__top { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 32px; }
.footer__h { font-size: 15px; font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
.footer__col { display: flex; flex-direction: column; gap: 6px; }
.footer__col a, .footer__top-link { color: var(--charcoal-helper); text-decoration: none; font-size: 15px; transition: color .2s; padding: 2px 0; }
.footer__col a:hover, .footer__top-link:hover { color: var(--magenta); }
.footer__mail {
  display: block; margin: clamp(64px, 10vw, 140px) 0 32px;
  font-family: var(--font-headline); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 9.6vw, 184px); line-height: .86; letter-spacing: .005em;
  text-decoration: none; color: var(--bass-black);
  transition: color .4s var(--ease-out);
}
.footer__mail:hover { color: var(--magenta); }
.footer__meta {
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--bass-black);
  font-size: 13px; color: var(--charcoal-helper);
}
.footer__meta p:last-child { text-align: right; }
.footer__credits { text-align: center; }

/* ---------- Onglet latéral ---------- */
.edge-tab {
  position: fixed; right: 0; top: 50%; z-index: 40;
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  padding: 18px 10px; background: var(--bass-black); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  transition: background .3s, padding .3s var(--ease-out);
}
.edge-tab:hover { background: var(--magenta); padding-left: 16px; }

/* ---------- Apparitions au scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .split__panel[data-reveal] { opacity: 1; transform: none; }
.js .split__panel[data-reveal] img { transform: scale(1.3); transition: transform 1.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms); }
.js .split__panel[data-reveal].is-in img { transform: scale(1.04); }
.js .split__panel[data-reveal].is-in:hover img { transform: scale(1.12); transition-duration: 1.4s; transition-delay: 0s; }
.js .split__panel[data-reveal] .split__copy { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out) .3s, transform .9s var(--ease-out) .3s; }
.js .split__panel[data-reveal].is-in .split__copy { opacity: 1; transform: none; }

/* ---------- Tablette ---------- */
@media (max-width: 1024px) {
  .rail__track { grid-auto-columns: calc((100% - 1px) / 2.2); }
  .toplinks { gap: 18px; }
  .moto__intro { grid-template-columns: 1fr; min-height: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .sf__bar { overflow-x: auto; gap: 28px; scrollbar-width: none; }
  .sf__bar::-webkit-scrollbar { display: none; }
  .moto__photo { aspect-ratio: 16 / 10; }
  .plates__grid { grid-template-columns: 1fr; }
  .online { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .online__head { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: repeat(2, 1fr) auto; }
}

/* ---------- Menu (bouton burger), à toutes les largeurs ---------- */
.header__left { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav a:not(.btn) { text-decoration: none; color: inherit; }
.burger {
  display: grid; align-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0;
}
.burger span { display: block; height: 2px; background: var(--bass-black); transition: transform .35s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
  background: var(--soprano-white); border-bottom: 1px solid var(--bass-black);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .5s var(--ease-io), visibility 0s .5s;
}
.nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease-io); }
/* panneau complet : défile seul, la page derrière ne bouge pas */
.nav { max-height: calc(100svh - var(--sticky-top, 184px) + 24px); overflow-y: auto; overscroll-behavior: contain; padding: 20px var(--gutter) 32px; }
.nav .nav__cta { display: flex; margin-bottom: 8px; padding: 14px 24px; font-size: 16px; font-family: var(--font-text); font-weight: 500; }
/* chaque partie de l'accueil : photo assombrie, texte blanc par-dessus (comme le hero et les réalisations) */
.nav__secs { display: grid; gap: 6px; list-style: none; margin-top: 12px; }
.nav__secs li { opacity: 0; transform: translateY(14px); }
.nav.is-open .nav__secs li { animation: navIn .55s var(--ease-out) both; animation-delay: calc(80ms + var(--i) * 55ms); }
.nav .nav__secs a {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  /* la carte part du bord gauche de l'écran (au-delà de la marge du panneau) */
  min-height: 88px; margin-left: calc(-1 * var(--gutter)); padding: 16px 56px 16px calc(var(--gutter) + 20px); border-radius: 0 2px 2px 0;
  color: #fff; background: var(--bass-black); text-transform: none; white-space: normal; font-size: inherit;
}
.nav__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .9s var(--ease-out); }
.nav .nav__secs a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* fondu noir depuis le bord gauche, la photo se dévoile vers la droite */
  background: linear-gradient(90deg, #131317 0%, rgba(19,19,23,.92) 22%, rgba(19,19,23,.72) 60%, rgba(19,19,23,.5) 100%);
  transition: opacity .5s var(--ease-out);
}
/* liseré magenta qui pousse depuis la gauche au survol */
.nav .nav__secs a::after {
  content: ""; display: block; position: absolute; left: var(--gutter); top: 14px; bottom: 14px; width: 3px; height: auto;
  background: var(--magenta); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease-out);
}
.nav__secs strong, .nav__text { transition: transform .45s var(--ease-out); }
.nav__secs strong { font-family: var(--font-headline); font-weight: 700; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.nav__text { font-size: 14px; line-height: 1.35; color: rgba(255,255,255,.8); }
.nav__go { position: absolute; right: 18px; top: 50%; color: #fff; transform: translate(-6px, -50%); opacity: .55; transition: transform .45s var(--ease-out), opacity .3s, color .3s; }
.nav .nav__secs a:hover .nav__bg, .nav .nav__secs a:focus-visible .nav__bg, .nav .nav__secs a:active .nav__bg { transform: scale(1.12); }
.nav .nav__secs a:hover::before, .nav .nav__secs a:focus-visible::before, .nav .nav__secs a:active::before { opacity: .78; }
.nav .nav__secs a:hover::after, .nav .nav__secs a:focus-visible::after, .nav .nav__secs a:active::after { transform: scaleY(1); }
.nav .nav__secs a:hover strong, .nav .nav__secs a:focus-visible strong { transform: translateX(6px); }
.nav .nav__secs a:hover .nav__text, .nav .nav__secs a:focus-visible .nav__text { transform: translateX(6px); transition-delay: .04s; }
.nav .nav__secs a:hover .nav__go, .nav .nav__secs a:focus-visible .nav__go, .nav .nav__secs a:active .nav__go { transform: translate(0, -50%); opacity: 1; color: var(--magenta); }
.nav.is-open .nav__cta { animation: navIn .5s var(--ease-out) both; }
.nav.is-open .nav__foot { animation: navIn .55s var(--ease-out) both; animation-delay: .4s; }
.nav__foot { display: grid; gap: 8px; margin-top: 24px; font-size: 15px; color: var(--charcoal-helper); }
.nav .nav__foot a { font-size: 15px; text-transform: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.nav__foot a::after { display: none; }
body.menu-open { overflow: hidden; }
@keyframes navIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* grand écran : le panneau s'ouvre à gauche, sous la bande des catégories */
@media (min-width: 1100px) {
  .nav { right: auto; width: min(480px, 100vw); border-right: 1px solid var(--bass-black); box-shadow: 24px 24px 60px rgba(0,0,0,.18); }
}

/* ---------- En-tête compact ---------- */
@media (max-width: 1099px) {

  .toplinks { display: none; }
  .header__inner { grid-template-columns: 44px 1fr auto; }
  .logo { justify-self: center; width: 66px; }
  .utils__icon { display: none; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .announce { font-size: 13px; padding: 8px 44px 8px 16px; text-align: left; }

  .hero__media--split { grid-template-columns: 1fr; }
  /* téléphone : l'enseigne en haut, la bâche (plus calme) sous le texte ; pas de légendes */
  .hero__half:first-child { order: 2; }
  .hero__tags { display: none; }
  /* le texte couvre plus de la moitié du hero : voile plus haut et plus dense */
  .hero__media::after {
    background: linear-gradient(to top, rgba(19,19,23,.94) 0%, rgba(19,19,23,.78) 45%, rgba(19,19,23,.3) 72%, rgba(19,19,23,0) 88%);
  }
  .hero__eyebrow { font-size: 12px; letter-spacing: .06em; }
  .online { grid-template-columns: 1fr; margin-top: 48px; }
  .online__item { min-height: 0; padding: 24px; }
  .sf__bar { gap: 22px; }
  .header .sf__btn { min-height: 46px; font-size: 16px; }
  .sf__panel { grid-template-columns: 1fr; gap: 8px; padding: 16px var(--gutter) 20px; }
  .quick { grid-template-columns: 1fr; }
  .quick__item { padding: 18px var(--gutter); }
  .moto__photo { min-height: 0; }
  .request__grid { grid-template-columns: 1fr; }
  .hero__half--scene { display: none; }
  .supports, .sizes { grid-template-columns: 1fr; }
  .plates__head { grid-template-columns: 1fr; }
  .plates__stage { grid-template-columns: 1fr 1.25fr; min-height: 0; padding: 24px 16px; }
  .moto__list li { grid-template-columns: 1fr; gap: 4px; }
  .viewer__scene { font-size: 14px; padding: 8px 12px; }
  .hero { min-height: 440px; height: calc(100svh - var(--header-h) - 46px - 120px); }
  .hero__title { font-size: clamp(56px, 17vw, 96px); }
  .hero__text { font-size: 17px; }
  .hero__actions { gap: 16px 24px; }

  .calage { height: 180svh; }
  .calage__layer { font-size: clamp(52px, 17vw, 96px); }
  .calage__foot { flex-direction: column; align-items: flex-start; }
  .calage__text { font-size: 16px; }
  .calage__value { font-size: 24px; }

  .section-head, .config__intro { grid-template-columns: 1fr; }
  .rail__track { grid-auto-columns: 82%; }
  .config__grid { grid-template-columns: 1fr; }
  .facade__wall { aspect-ratio: 4 / 3; }

  .split { grid-template-columns: 1fr; }
  .split__panel { height: 72svh; }

  /* méthode : empilée verticalement sur téléphone */
  .methode { height: auto; }
  .methode__sticky { position: static; height: auto; }
  .methode__track { flex-direction: column; width: 100%; transform: none !important; }
  .step { flex: none; width: 100%; min-height: 0; padding: 72px var(--gutter); }
  .step__verb { font-size: clamp(48px, 15vw, 72px); transform: none; }
  .step__text { font-size: 17px; }

  .refs__grid.rail__track { grid-auto-columns: 78%; }
  .ref { min-height: 300px; padding: 24px; }


  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top-link { grid-column: 1 / -1; }
  .footer__mail { font-size: 12.4vw; }
  .footer__meta { grid-template-columns: 1fr; }
  .footer__meta p:last-child, .footer__credits { text-align: left; }

  .edge-tab { display: none; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav__secs li, .nav.is-open .nav__secs li, .nav.is-open .nav__cta, .nav.is-open .nav__foot { opacity: 1; transform: none; animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero__media { clip-path: none; }
  .hero__media img { transform: none; }
  .hero__title .line > span, [data-hero] { transform: none; opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none !important; }
  .calage { height: auto; }
  .calage__sticky { position: static; height: auto; padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
  .calage__layer--c, .calage__layer--m, .calage__layer--y { display: none; }
  .methode { height: auto; }
  .methode__sticky { position: static; height: auto; }
  .methode__track { flex-direction: column; width: 100%; transform: none !important; }
  .step { flex: none; width: 100%; min-height: 0; padding: 72px var(--gutter); }
}

/* =========================================================
   Hero trophées (fond noir) · pages de personnalisation
   ========================================================= */
.hero--trophy { background: #0b0b0d; }
.hero__inner {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: end;
  padding: 0 var(--gutter);
}
.hero__copy { padding-bottom: clamp(32px, 6vh, 72px); }
.hero--trophy .hero__title { font-size: clamp(56px, 8.4vw, 136px); }
.hero__also { margin-top: 28px; font-size: 15px; color: var(--countertenor-gray); max-width: 46ch; }
.hero__stage {
  position: relative; height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 4% 0 3%; perspective: 1000px;
}
.hero__stage::before {
  content: ""; position: absolute; left: 50%; top: 52%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(229, 0, 125, .22), rgba(229, 0, 125, 0));
  animation: halo 6s ease-in-out infinite;
}
@keyframes halo { 0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.hero__trophy {
  position: relative; height: 100%; max-height: 640px; width: auto; max-width: 100%; overflow: visible;
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .6s var(--ease-out), opacity .5s var(--ease-out);
  opacity: 0;
}
.is-loaded .hero__trophy { opacity: 1; animation: monte 1.2s var(--ease-out) .3s backwards; }
@keyframes monte { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.hero__trophy.is-swapping { opacity: 0; }
.trophy__shine { transform-box: view-box; animation: brille 5s ease-in-out infinite; }
@keyframes brille { 0%, 55% { transform: translateX(0) skewX(-18deg); } 85%, 100% { transform: translateX(520px) skewX(-18deg); } }

/* tuile Trophées */
.tile__media--trophy { background: #0b0b0d; display: grid; place-items: center; }
.tile__media--trophy svg { width: 78%; height: 88%; object-fit: contain; }

/* pages de personnalisation */
.page-head { padding: clamp(40px, 6vw, 88px) var(--gutter) 0; display: flex; flex-direction: column; gap: 16px; }
.page-head__back { color: var(--charcoal-helper); font-size: 15px; }
.page-head__back:hover { color: var(--magenta); }
.page-head__back:hover svg { transform: translateX(-4px) scaleX(-1); }
.page-head__title { font-family: var(--font-headline); font-weight: 900; text-transform: uppercase; font-size: var(--text-display); line-height: .9; }
.page-head__lead { font-size: var(--text-strong); max-width: 52ch; }
.subpage .config { padding-top: 48px; }
.subpage .config__intro { display: none; }
.moto--page { background: var(--soprano-white); }
.moto--page .plates { padding-top: 48px; }
.moto--page .plates__head { display: none; }
.page-cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  margin: 0 var(--gutter) var(--section-gap); padding: 32px clamp(24px, 3vw, 48px); background: var(--warm-porcelain);
}
.page-cta p { font-family: var(--font-headline); font-weight: 700; font-size: 28px; text-transform: uppercase; line-height: 1; }

/* créateur de trophée */
.tbuild__frame {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 4.2;
  background: radial-gradient(circle at 50% 40%, #2a2a30, #0b0b0d 70%);
  overflow: hidden;
}
.tbuild__trophy { position: absolute; inset: 6% 8%; width: 84%; height: 88%; overflow: visible; filter: drop-shadow(0 24px 30px rgba(0,0,0,.5)); transition: transform .6s var(--ease-out); }
.tbuild__trophy.is-posing { animation: pose .7s var(--ease-out); }
.field__input--qty { max-width: 140px; text-transform: none; }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .hero--trophy { height: auto; min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; align-items: start; }
  .hero__stage { order: -1; height: 46svh; padding: 20px 0 0; }
  .hero__copy { padding: 8px 0 32px; }
  .hero--trophy .hero__title { font-size: clamp(48px, 15vw, 84px); }
  .page-cta p { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__trophy { opacity: 1; }
  .trophy__shine, .hero__stage::before { animation: none; }
}

/* ---------- Menu Signalétique (bande des catégories) : panneau noir et vignettes des produits ---------- */
a.sf__btn { text-decoration: none; }
.sf__panel--mega {
  grid-template-columns: minmax(240px, 1fr) minmax(0, 3fr); gap: 24px 48px;
  background: var(--bass-black); color: #fff; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 0;
  max-height: calc(100svh - var(--header-h) - 52px); overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
}
.sf__panel--mega .cat__grid--thumbs { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 12px; }
.mega__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mega__title { font-family: var(--font-headline); font-weight: 900; font-size: clamp(40px, 4.4vw, 76px); line-height: .88; text-transform: uppercase; }
.mega__text { color: var(--countertenor-gray); max-width: 34ch; }
.sf__item:hover .sf__panel--mega .cat__grid a, .sf__item.is-open .sf__panel--mega .cat__grid a { animation: cat-in .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 18ms); }
.cat__panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 20px; }
.cat__panel-head p { color: var(--countertenor-gray); font-size: 16px; }
.cat__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 28px; }
.cat__grid--thumbs { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 16px 12px; }
.cat__item { display: flex; flex-direction: column; gap: 8px; color: #fff; text-decoration: none; }
.cat__thumb { display: block; aspect-ratio: 1200 / 760; overflow: hidden; background: #e6e7e8; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .3s; }
.cat__thumb .stage { transition: transform .6s var(--ease-out); }
.cat__label { font-size: 14px; font-weight: 500; line-height: 1.25; }
.cat__item:hover .cat__thumb, .cat__item:focus-visible .cat__thumb { outline-color: var(--magenta); }
.cat__item:hover .cat__thumb .stage { transform: scale(1.07); }
.cat__item:hover .cat__label { text-decoration: underline; text-underline-offset: 3px; }
.cat__item:focus-visible { outline: none; }
.cat__link {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; text-decoration: none; font-size: 15px;
  transition: padding .35s var(--ease-out), color .3s;
}
.cat__link svg { flex-shrink: 0; color: var(--steel-gray); transition: transform .35s var(--ease-out), color .3s; }
.cat__link:hover, .cat__link:focus-visible { padding-left: 8px; }
.cat__link:hover svg, .cat__link:focus-visible svg { color: var(--magenta); transform: translateX(3px); }
.cat__link:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
@keyframes cat-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 767px) {
  .sf__panel--mega { grid-template-columns: 1fr; }
  .mega__title { font-size: 40px; }
  .sf__panel--mega .cat__grid--thumbs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Pages produits Signalétique ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--charcoal-helper); }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--magenta); }
.crumbs [aria-current] { color: var(--bass-black); font-weight: 500; }
.field__select {
  appearance: none; cursor: pointer; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, #131317 50%), linear-gradient(135deg, #131317 50%, transparent 50%);
  background-position: calc(100% - 26px) 52%, calc(100% - 20px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field__qty { max-width: 160px; }
.config__alt { align-self: center; font-size: 15px; }
.others { padding: 0 var(--gutter) clamp(56px, 7vw, 96px); }
.others__title { font-family: var(--font-headline); font-weight: 900; font-size: var(--text-heading); text-transform: uppercase; margin-bottom: 20px; }
.others__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.others__link {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--countertenor-gray); border-radius: var(--r-badge);
  color: var(--bass-black); text-decoration: none; font-size: 15px; transition: background .3s, border-color .3s, color .3s;
}
.others__link:hover { border-color: var(--bass-black); }
.others__link.is-current { background: var(--bass-black); border-color: var(--bass-black); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .sf__panel--mega .cat__grid a { animation: none !important; }
  .cat__thumb .stage, .cat__link { transition: none; }
}

/* menu Panneau rigide : 3 familles, leurs épaisseurs listées sous la vignette */
.mega__fams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mega__fam { display: flex; flex-direction: column; gap: 12px; }
.mega__fam-name { font-family: var(--font-headline); font-weight: 700; font-size: 24px; text-transform: uppercase; line-height: 1; }
.mega__variants { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mega__variants a {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.1); color: var(--countertenor-gray); text-decoration: none; font-size: 15px;
  transition: color .25s, padding .35s var(--ease-out);
}
.mega__variants a::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .3s var(--ease-out); }
.mega__variants a:hover, .mega__variants a:focus-visible { color: #fff; padding-left: 6px; }
.mega__variants a:hover::after, .mega__variants a:focus-visible::after { opacity: 1; transform: none; color: var(--magenta); }
/* menu Kit déco moto : une seule entrée, vignette plus grande */
.mega__fams--solo { grid-template-columns: minmax(0, 560px); }
@media (max-width: 767px) {
  .mega__fams { grid-template-columns: 1fr; }
}

/* vignette photo (logo posé sur une vraie photo) : même cadre et même zoom au survol que les dessins */
.cat__thumb--photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.cat__item:hover .cat__thumb--photo img { transform: scale(1.07); }
@media (prefers-reduced-motion: reduce) { .cat__thumb--photo img { transition: none; } }

/* ---------- Nuancier commun (js/couleurs.js) : 25 teintes + sur mesure ---------- */
.swatches--grid { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; }
.swatches--grid .swatch span { width: 34px; height: 34px; outline-offset: 2px; }
.swatch--custom span { background: conic-gradient(from 90deg, #e5007d, #ffe500, #2fb34a, #00a0e3, #6a2c91, #e5007d); position: relative; }
.swatch--custom span::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 2px #fff; }
.swatch__picker { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

/* ---------- Éditeur posé sur l'aperçu (js/editeur.js) ---------- */
.viewer__frame.is-editable { position: relative; user-select: none; -webkit-user-select: none; }
.edit-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.edit-bar {
  display: flex; flex-direction: column; gap: 8px; padding: 8px;
  background: #fff; border: 1px solid var(--magenta); border-radius: 6px; box-shadow: 0 6px 18px #0000001f;
}
.edit-bar[hidden] { display: none; }
.edit-bar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.edit-bar__text { flex: 1 1 140px; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #cfcfcf; border-radius: 4px; font: 500 15px var(--font-text); }
.edit-bar__text:focus { outline: none; border-color: var(--bass-black); }
.edit-bar__kind { padding: 0 6px; font-weight: 600; font-size: 14px; }
.edit-bar__btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; font: 500 13px var(--font-text); white-space: nowrap; }
.edit-bar__btn:hover { border-color: var(--bass-black); }
.edit-bar__btn[aria-expanded="true"] { border-color: var(--magenta); }
.edit-bar__color i { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px #00000033; }
.edit-bar__del { width: 34px; justify-content: center; padding: 0; color: #a00; }
.edit-bar__pal { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px 2px; }
.edit-bar__pal .edit-bar__sw { width: 28px; height: 28px; }
.edit-bar__sw { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; background: var(--sw); box-shadow: inset 0 0 0 1px #00000033; cursor: pointer; }
.edit-bar__sw[aria-pressed="true"] { outline: 2px solid var(--bass-black); outline-offset: 2px; }
.edit-bar__sw--auto { background: linear-gradient(135deg, #fff 50%, #131317 50%); }
.edit-bar__sw--custom { background: conic-gradient(from 90deg, #e5007d, #ffe500, #2fb34a, #00a0e3, #6a2c91, #e5007d); }
.edit-bar__sw--custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

/* liste des éléments dans le formulaire */
.field__hint { font-size: 14px; color: var(--charcoal-helper); margin: 0; }
.elist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.elist__row { display: flex; align-items: center; gap: 8px; padding: 6px; background: var(--soprano-white); border: 1px solid transparent; border-radius: 8px; }
.elist__row.is-sel { border-color: var(--magenta); }
.elist__pick { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; border: 0; padding: 0; background: var(--sw); color: #fff; box-shadow: inset 0 0 0 1px #00000026; cursor: pointer; overflow: hidden; }
.elist__pick svg { filter: drop-shadow(0 0 1px #000a); }
.elist__pick img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.elist__text { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid #dcdcdc; border-radius: 6px; font: 500 16px var(--font-text); background: #fff; }
.elist__text:focus { outline: none; border-color: var(--bass-black); }
.elist__name { flex: 1; font-size: 15px; font-weight: 500; }
.elist__name em { color: var(--charcoal-helper); font-style: normal; font-weight: 400; }
.elist__del { flex: none; width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: #8a8a8a; font-size: 15px; cursor: pointer; }
.elist__del:hover { background: #f0f0f0; color: #a00; }
.elist__empty { font-size: 14px; color: var(--charcoal-helper); padding: 8px 4px; }
.elist__add { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-add { position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border: 1px solid var(--bass-black); border-radius: var(--r-btn); background: var(--soprano-white); font: 500 15px var(--font-text); cursor: pointer; transition: background .25s, color .25s; }
.btn-add:hover { background: var(--bass-black); color: #fff; }
.btn-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btn-add:has(input:focus-visible) { outline: 2px solid var(--magenta); outline-offset: 2px; }

/* ---------- Devis kit déco moto (devis-kit-deco.html, js/devis-kit.js) ---------- */
.kd [hidden], .request__kit[hidden] { display: none !important; }
.kd { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding: 48px var(--gutter) var(--section-gap); }
.kd__aside { position: sticky; top: calc(var(--header-h) + 64px); display: flex; flex-direction: column; gap: 24px; }
.kd-steps { background: var(--bass-black); color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.kd-steps__title, .kd-config__eyebrow { font-family: var(--font-headline); font-weight: 900; font-size: 22px; text-transform: uppercase; line-height: 1; }
.kd-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: kd; display: flex; flex-direction: column; gap: 16px; }
.kd-steps li { counter-increment: kd; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.kd-steps li::before { content: counter(kd); grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--magenta); font: 900 18px var(--font-headline); }
.kd-steps li span { font-size: 14px; color: var(--countertenor-gray); }
.kd-steps__alt { color: #fff; font-size: 15px; }
.kd-steps__alt:hover { color: var(--magenta); }
.kd-config { background: var(--studio-mist); padding: 24px; display: flex; flex-direction: column; gap: 16px; border-top: 4px solid var(--magenta); }
.kd-config__imgs { display: grid; gap: 8px; }
.kd-config__imgs figure { margin: 0; background: var(--soprano-white); }
.kd-config__imgs img { display: block; width: 100%; height: auto; }
.kd-config__imgs figcaption { font-size: 12px; color: var(--quiet-placeholder); padding: 4px 8px; }
.kd-config__list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.kd-config__list dt { color: var(--charcoal-helper); }
.kd-config__list dd { margin: 0; font-weight: 500; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.kd-config__list i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.kd-config__note { font-size: 13px; color: var(--quiet-placeholder); }
.kd-config__actions { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; font-size: 15px; }
.kd-config__remove { background: none; border: 0; padding: 0; font: 14px var(--font-text); color: var(--charcoal-helper); text-decoration: underline; cursor: pointer; }
.kd-config__remove:hover { color: #c4122f; }

.kd-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.kd-hp { position: absolute; left: -9999px; }
.kd-block { border: 0; margin: 0; padding: clamp(24px, 3vw, 40px); background: var(--studio-mist); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.kd-block__title { padding: 0; display: flex; align-items: center; gap: 14px; font-family: var(--font-headline); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; float: left; width: 100%; }
.kd-block__title + * { clear: both; }
.kd-block__title span { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; background: var(--bass-black); color: #fff; font-size: 22px; }
.kd-block__help { color: var(--charcoal-helper); max-width: 60ch; }
.kd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; align-items: start; }
.kd-grid__note { font-size: 14px; color: var(--charcoal-helper); align-self: end; padding-bottom: 14px; }
.kd .rf input[type="text"], .kd .rf input[type="email"], .kd .rf input[type="tel"], .kd .rf input[type="number"], .kd .rf input[type="date"], .kd .rf select, .kd .rf textarea { background-color: var(--soprano-white); }
.kd .rf input[type="number"], .kd .rf input[type="date"] {
  width: 100%; padding: 14px 20px; border: 1px solid transparent; border-radius: var(--r-pill);
  font: 16px/1.4 var(--font-text); color: #000; transition: border-color .2s;
}
.kd .rf input[type="number"]:focus, .kd .rf input[type="date"]:focus { outline: none; border-color: var(--bass-black); }
.kd .field.is-invalid .chip span { border-color: #c4122f; }
.kd .field.is-invalid .field__label { color: #c4122f; }
.kd-files { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.kd-files > .field__label, .kd-files > .rf__hint { grid-column: 1 / -1; }
.kd-file { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; background: var(--soprano-white); border: 1px dashed var(--steel-gray); min-width: 0; transition: border-color .2s; }
.kd-file > span { font-size: 14px; font-weight: 600; }
.kd-file input { font-size: 14px; max-width: 100%; }
.kd-file input::file-selector-button { margin-right: 10px; padding: 6px 12px; border: 1px solid var(--bass-black); border-radius: var(--r-btn); background: var(--soprano-white); font: 500 14px var(--font-text); cursor: pointer; }
.kd-file.has-file { border-style: solid; border-color: var(--bass-black); }
.kd-send { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.kd-send .btn { min-height: 60px; font-size: 18px; }
.kd-send .btn:disabled { opacity: .6; cursor: wait; }
.kd-send__note { font-size: 14px; color: var(--charcoal-helper); text-align: center; }
.kd-done { grid-column: 2; background: var(--studio-mist); padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; outline: none; }
.kd-done__title { font-family: var(--font-headline); font-weight: 900; font-size: var(--text-display); text-transform: uppercase; line-height: .9; }
.kd-done p { font-size: var(--text-strong); max-width: 52ch; }
.kd-done__test { padding: 10px 16px; background: var(--jaune); font-size: 15px !important; }
@media (max-width: 960px) {
  .kd { grid-template-columns: 1fr; }
  .kd__aside { position: static; }
  .kd-done { grid-column: auto; }
}
@media (max-width: 640px) {
  .kd-grid, .kd-files { grid-template-columns: 1fr; }
  .kd-block__title { font-size: 24px; }
  .kd-grid__note { padding-bottom: 0; }
}
.request__kit { font-size: 15px; padding: 12px 18px; background: var(--studio-mist); border-left: 4px solid var(--magenta); }
.request__kit a { font-weight: 600; color: var(--magenta); }

/* ---------- Atelier : deux savoir-faire avec scène 3D (accueil) ---------- */
/* même construction que la section Kit déco moto : pleine largeur, deux moitiés */
.atelier { display: grid; gap: 1px; background: var(--soprano-white); }
.atelier__item { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(560px, 46vw, 760px); background: var(--bass-black); color: #fff; }
.atelier__item--rev .atelier__copy { order: 2; }

/* moitié texte : photo assombrie derrière, comme le hero */
.atelier__copy {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px;
  padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px);
}
.atelier__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
.atelier__item:has(.is-in) .atelier__bg { transform: scale(1); }
/* voile sombre sur tout le bloc : plus dense côté texte, plus léger côté 3D */
.atelier__item::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(19,19,23,.93) 0%, rgba(19,19,23,.84) 45%, rgba(19,19,23,.72) 100%);
}
.atelier__item--rev::after { background: linear-gradient(270deg, rgba(19,19,23,.93) 0%, rgba(19,19,23,.84) 45%, rgba(19,19,23,.72) 100%); }
.atelier__copy > :not(.atelier__bg) { max-width: 620px; }
.atelier__title {
  font-family: var(--font-headline); font-weight: 900; font-size: var(--text-display);
  line-height: .86; letter-spacing: .01em; text-transform: uppercase;
}
.atelier__title span { color: var(--magenta); }
.atelier__lead { max-width: 40ch; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; color: #fff; }
.atelier__list { list-style: none; width: 100%; border-top: 1px solid rgba(255,255,255,.22); }
.atelier__list li { display: grid; grid-template-columns: 10.5em 1fr; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.atelier__list strong { white-space: nowrap; font-family: var(--font-headline); font-weight: 700; font-size: clamp(22px, 1.8vw, 26px); line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.atelier__list span { color: rgba(255,255,255,.78); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.45; }

/* moitié 3D : fond gris clair du site + hexagone, rappel du logo */
/* 3D posée sur la photo : hexagone translucide + halo magenta, rappel du logo */
.atelier__stage { position: relative; display: grid; place-items: center; padding: clamp(24px, 4vw, 64px); }
.atelier__stage::before, .atelier__stage::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.atelier__stage::before {
  width: min(78%, 620px); aspect-ratio: 1.15;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  backdrop-filter: blur(2px);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}
.atelier__stage::after {
  width: min(60%, 460px); aspect-ratio: 2; top: 62%;
  background: radial-gradient(closest-side, rgba(229,0,125,.35), rgba(229,0,125,0));
  filter: blur(12px); z-index: 0;
}
.atelier__stage canvas { position: relative; z-index: 1; display: block; width: 100%; max-width: 560px; aspect-ratio: 4 / 3; height: auto; }

@media (max-width: 1024px) {
  .atelier__item { grid-template-columns: 1fr; min-height: 0; }
  .atelier__item--rev .atelier__copy { order: 0; }
  .atelier__list li { grid-template-columns: 1fr; gap: 4px; }
  .atelier__stage canvas { max-width: 440px; }
}

/* ---------- Pages légales (mentions légales, confidentialité, CGV) ---------- */
.legal { max-width: 760px; padding: 40px var(--gutter) 96px; font-size: 17px; line-height: 1.65; }
.legal h2 { font-family: var(--font-headline); font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1.1; margin: 48px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul, .legal ol { margin: 0 0 14px; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal li { margin-bottom: 6px; }
.legal a { color: inherit; text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 3px; }
.legal a:hover { color: var(--magenta); }
.legal__note { padding: 16px 20px; background: #f2f2f2; border-left: 4px solid var(--magenta); }
.legal__maj { margin-top: 48px; color: var(--charcoal-helper); font-size: 15px; }
/* information encore à fournir : très visible tant que la page n'est pas complète */
.todo { background: #fff3a8; color: #6b4a00; padding: 0 4px; font-weight: 600; }
.footer__legal a { white-space: nowrap; }
.footer__legal a + a::before { content: "·"; display: inline-block; margin: 0 8px; opacity: .5; text-decoration: none; }
