/* ==========================================================================
   Moon3D - feuille de style unique
   Theme verrouille sombre. Rayon de bordure : 0 partout (systeme "plaque technique").
   ========================================================================== */

:root {
  /* Fonds */
  --ink:        #060609;
  --ink-2:      #0c0d12;
  --ink-3:      #14161d;

  /* Filets */
  --line:       rgba(255,255,255,.09);
  --line-mid:   rgba(255,255,255,.14);
  --line-hi:    rgba(255,255,255,.20);

  /* Texte */
  --text:       #f5f5f7;
  --text-2:     #c8cad2;
  --muted:      #8e90a0;
  --faint:      #5c5e66;

  /* Marque */
  --accent:     #e040f0;
  --accent-ink: #0a0210;
  --accent-dim: rgba(224,64,240,.42);
  --blue:       #3030e0;

  /* Plaque technique claire */
  --plate:      #eeedea;
  --plate-ink:  #1a1b20;
  --plate-soft: #5c5e66;

  /* Grille */
  --gutter: 96px;
  --maxw:   1440px;

  /* Typo */
  --display: 'Bricolage Grotesque', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono:    'Martian Mono', ui-monospace, 'Courier New', monospace;

  --ease: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  margin: 0;
}

p { margin: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Utilitaires de mise en page
   -------------------------------------------------------------------------- */

.shell {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 112px; }
.section--tight { padding-block: 80px; }

.rule-top { border-top: 1px solid var(--line); }

/* Lignes de couche : clin d'oeil a l'impression FDM */
.layers {
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,.035) 0px, rgba(255,255,255,.035) 1px,
    transparent 1px, transparent 7px);
}

/* Plaque technique : accueille les rendus CAO sur fond blanc */
.plate {
  position: relative;
  background-color: var(--plate);
  background-image:
    linear-gradient(rgba(6,6,9,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,6,9,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  border: 1px solid var(--line-mid);
  overflow: hidden;
}
.plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 26px;
  mix-blend-mode: multiply;
}
.plate__tag {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--plate-ink);
  z-index: 2;
}
.plate__axis { position: absolute; top: 16px; right: 18px; opacity: .45; z-index: 2; }

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.h-xl { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: .96; }
.h-lg { font-size: clamp(2.1rem, 4.4vw, 3.15rem); line-height: 1.02; }
.h-md { font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.08; letter-spacing: -.03em; }
.h-sm { font-size: 1.19rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }

.lead   { font-size: 1.06rem; color: #9ea1af; line-height: 1.6; max-width: 46ch; }
.body   { color: var(--muted); line-height: 1.68; max-width: 60ch; }
.body-2 { font-size: .875rem; color: var(--muted); line-height: 1.55; }

.mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 28px;
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--body);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #ee5ffb; }

.btn--ghost { border-color: var(--line-hi); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }

.btn--sm { padding: 11px 20px; font-size: .8125rem; }

.btn svg { flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6,6,9,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img { height: 24px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: .875rem;
  color: var(--text-2);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.nav__burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-mid);
  background: none;
  color: var(--text);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 32px;
  align-items: center;
  padding-block: 88px 84px;
}
.hero__copy { grid-column: span 6; display: flex; flex-direction: column; gap: 26px; }
.hero__visual { grid-column: span 6; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

.hero__plate { aspect-ratio: 1 / .92; }
.hero__plate img { padding: 52px; }

/* Bascule douce de la plaque au survol : suggere le volume sans simuler une rotation */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .hero__plate {
    transition: transform .5s var(--ease);
    transform-style: preserve-3d;
  }
  .hero__plate:hover { transform: perspective(1200px) rotateX(1.4deg) rotateY(-2.2deg); }
}

/* --------------------------------------------------------------------------
   Bande de reassurance : logos clients + matieres
   -------------------------------------------------------------------------- */

.trust {
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.trust__cell { padding: 26px var(--gutter); display: flex; align-items: center; gap: 30px; }
.trust__cell + .trust__cell { border-left: 1px solid var(--line); justify-content: flex-end; }
.trust__label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.trust__logo { height: 30px; width: auto; opacity: .78; transition: opacity .2s var(--ease); }
.trust__logo:hover { opacity: 1; }
.trust__mats { display: flex; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.trust__mat { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--text-2); }
.trust__mat span { color: var(--faint); }

/* --------------------------------------------------------------------------
   En-tetes de section
   -------------------------------------------------------------------------- */

.head { display: flex; flex-direction: column; gap: 22px; margin-bottom: 52px; max-width: 30ch; }
.head--wide { max-width: none; }
.head .body { max-width: 52ch; }

/* --------------------------------------------------------------------------
   Grille produits
   -------------------------------------------------------------------------- */

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
.products--four { grid-template-columns: repeat(4, minmax(0,1fr)); }

.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.product:hover { border-color: var(--accent-dim); background: #101118; }
.product__plate { aspect-ratio: 4 / 3; border: 0; border-bottom: 1px solid var(--line); }
.product__plate img { padding: 24px; }
.product__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product__price {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--faint);
  margin-top: auto;
  padding-top: 10px;
}
.product__price strong { color: var(--text-2); font-weight: 500; }
.product__price--quote { color: var(--accent); }

/* Carte mise en avant : casse la regularite de la grille */
.product--feature { grid-column: span 2; flex-direction: row; }
.product--feature .product__plate {
  aspect-ratio: auto;
  flex: 1 1 58%;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.product--feature .product__body { flex: 1 1 42%; justify-content: center; gap: 14px; padding: 36px; }

/* --------------------------------------------------------------------------
   Process : rail horizontal avec filet de liaison
   -------------------------------------------------------------------------- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--line-mid);
}
.flow__step { padding: 30px 32px 40px 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.flow__step + .flow__step { border-left: 1px solid var(--line); padding-left: 32px; }
.flow__step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 34px; height: 1px;
  background: var(--accent);
}
.flow__step + .flow__step::before { left: -1px; }

/* --------------------------------------------------------------------------
   Split : texte + visuels
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 48px;
  align-items: center;
}
.split__text { grid-column: span 6; display: flex; flex-direction: column; gap: 24px; }
.split__media { grid-column: span 6; display: flex; flex-direction: column; gap: 18px; }

.stage { position: relative; border: 1px solid var(--line); overflow: hidden; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.stage__mark {
  position: absolute; top: 14px; left: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--text);
  text-shadow: 0 1px 6px rgba(6,6,9,.9);
}
.stage__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 18px 20px;
  background: linear-gradient(transparent, rgba(6,6,9,.9));
  font-size: .875rem; font-weight: 600;
}

/* Liste a filets, sans puce ni point decoratif */
.facts { display: flex; flex-direction: column; }
.facts__row { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.facts__row:last-child { border-bottom: 1px solid var(--line); }
.facts__row svg { flex: none; margin-top: 3px; }
.facts__t { font-size: .9375rem; font-weight: 600; display: block; margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   Prestations : enonce + liste divisee
   -------------------------------------------------------------------------- */

.services { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 48px; }
.services__intro { grid-column: span 5; display: flex; flex-direction: column; gap: 22px; }
.services__list { grid-column: span 7; display: flex; flex-direction: column; }
.services__item { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.services__item:last-child { border-bottom: 1px solid var(--line); }
.services__name { font-family: var(--display); font-weight: 700; font-size: 1.19rem; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   Galerie
   -------------------------------------------------------------------------- */

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.gallery .stage { aspect-ratio: 3 / 4; }
.gallery figcaption { display: flex; flex-direction: column; gap: 5px; }
.gallery figcaption b { font-size: .9375rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   Bloc final
   -------------------------------------------------------------------------- */

.closer { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 32px; align-items: center; }
.closer__text { grid-column: span 7; display: flex; flex-direction: column; gap: 22px; }
.closer__actions { grid-column: span 5; display: flex; flex-direction: column; gap: 14px; }
.closer__row { display: flex; gap: 14px; }
.closer__row .btn { flex: 1; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.foot { border-top: 1px solid var(--line); padding-block: 44px; }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot__brand { display: flex; align-items: center; gap: 20px; }
.foot__brand img { height: 18px; width: auto; opacity: .8; }
.foot small { font-size: .8125rem; color: var(--faint); }
.foot__links { display: flex; gap: 26px; }
.foot__links a { font-size: .8125rem; color: var(--muted); transition: color .18s var(--ease); }
.foot__links a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Page catalogue
   -------------------------------------------------------------------------- */

.specs { border-block: 1px solid var(--line); }
.specs__inner { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.specs__cell { padding: 26px 32px; display: flex; flex-direction: column; gap: 7px; }
.specs__cell + .specs__cell { border-left: 1px solid var(--line); }
.specs__cell:first-child { padding-left: 0; }
.specs__cell:last-child  { padding-right: 0; }
.specs__k { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; color: var(--faint); }
.specs__v { font-size: .875rem; color: var(--text-2); }

/* --------------------------------------------------------------------------
   Fiche produit
   -------------------------------------------------------------------------- */

.crumb { display: flex; align-items: center; gap: 10px; padding-block: 20px; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb span { color: #42454f; }

.sheet { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 48px; padding-top: 56px; }
.sheet__media { grid-column: span 6; display: flex; flex-direction: column; gap: 18px; }
.sheet__hero { aspect-ratio: 1 / .88; }
.sheet__hero img { padding: 44px; }
.sheet__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.sheet__thumb { aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; position: relative; background: var(--ink-2); }
.sheet__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sheet__thumb.is-active { border-color: var(--accent); }
.sheet__thumb--empty { display: grid; place-items: center; border-style: dashed; padding: 12px; text-align: center; }

.sheet__text { grid-column: span 6; display: flex; flex-direction: column; gap: 22px; }
.badge {
  align-self: flex-start;
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  padding: 6px 10px; border: 1px solid var(--accent-dim); color: var(--accent);
}
.sheet__claim { font-size: 1.125rem; line-height: 1.5; color: var(--text-2); max-width: 50ch; }

.table { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line-mid); margin-top: 6px; }
.table__cell { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.table__cell:nth-child(odd) { border-right: 1px solid var(--line); }
.table__cell:nth-child(even) { padding-left: 24px; padding-right: 0; }
.table__k { font-family: var(--mono); font-size: 9px; letter-spacing: .13em; color: var(--faint); }
.table__v { font-size: .875rem; color: var(--text-2); }
.table__v--accent { color: var(--accent); }

.price { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 10px; }
.price__n { font-family: var(--display); font-weight: 800; font-size: 2.1rem; letter-spacing: -.03em; }
.price__n small { font-size: .9375rem; font-weight: 500; color: var(--muted); }
.price__note { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--faint); display: block; margin-top: 4px; }

.ref { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: #42454f; margin-top: 4px; }

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 26px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field > label { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; color: var(--muted); }

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: .9375rem;
  color: var(--text);
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.13);
  padding: 15px 16px;
  width: 100%;
  transition: border-color .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #6b6d78; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); outline: none; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238e90a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: block;
  padding: 11px 18px;
  font-size: .875rem;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.13);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.chip input:checked + span { border-color: var(--accent); color: var(--text); background: rgba(224,64,240,.1); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.drop {
  display: flex; align-items: center; gap: 16px;
  padding: 24px;
  border: 1px dashed var(--line-hi);
  background: #0a0b10;
  cursor: pointer;
  transition: border-color .18s var(--ease);
}
.drop:hover { border-color: var(--accent); }

.consent { display: flex; gap: 13px; align-items: flex-start; font-size: .8125rem; color: var(--muted); line-height: 1.55; }
.consent input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

.aside { grid-column: span 5; display: flex; flex-direction: column; }
.aside__block { padding-block: 30px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.aside__block:first-child { padding-top: 0; }
.aside__block:last-child { border-bottom: 0; }
.aside__k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.aside__big { display: flex; align-items: center; gap: 14px; font-size: 1.19rem; font-weight: 600; }
.aside__big:hover { color: var(--accent); }
.checklist { display: flex; flex-direction: column; gap: 13px; }
.checklist li { display: flex; gap: 13px; font-size: .875rem; color: var(--text-2); line-height: 1.55; }
.checklist svg { flex: none; margin-top: 3px; }
ul { list-style: none; margin: 0; padding: 0; }

.note {
  font-size: .9375rem; line-height: 1.7; color: var(--faint);
  padding: 16px 20px;
  border-left: 2px solid var(--accent-dim);
  background: #0a0b10;
}

/* --------------------------------------------------------------------------
   Atelier
   -------------------------------------------------------------------------- */

.duo { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
.panel { border: 1px solid var(--line-mid); background: var(--ink-2); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.tag { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; padding: 6px 10px; border: 1px solid rgba(255,255,255,.13); color: var(--text-2); }

.matter { display: flex; flex-direction: column; border-top: 1px solid var(--line-mid); }
.matter__row { display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.matter__k { font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; color: var(--text); }

.kv { display: flex; flex-direction: column; border-top: 1px solid var(--line-mid); }
.kv__row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.kv__k { font-size: .875rem; color: var(--muted); }
.kv__v { font-size: .9375rem; font-weight: 500; }
.kv__v--todo { font-family: var(--mono); font-size: .75rem; color: var(--faint); font-weight: 400; }

/* --------------------------------------------------------------------------
   Reveal au defilement
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); }
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  :root { --gutter: 48px; }
  .products--four { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow__step:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .flow__step:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { height: 64px; }

  .section { padding-block: 72px; }

  .hero { grid-template-columns: 1fr; padding-block: 48px 56px; gap: 36px; }
  .hero__copy, .hero__visual { grid-column: 1 / -1; min-width: 0; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__plate { aspect-ratio: 4 / 3.4; }
  .hero__plate img { padding: 32px; }
  .hero__actions .btn { flex: 1; }

  .trust { grid-template-columns: 1fr; }
  .trust__cell { padding: 20px var(--gutter); flex-wrap: wrap; gap: 20px; }
  .trust__cell + .trust__cell { border-left: 0; border-top: 1px solid var(--line); justify-content: flex-start; }
  .trust__mats { justify-content: flex-start; gap: 16px; }

  .head { margin-bottom: 36px; }

  .products, .products--four { grid-template-columns: 1fr; }
  .product--feature { grid-column: span 1; flex-direction: column; }
  .product--feature .product__plate { aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid var(--line); }
  .product--feature .product__body { padding: 22px; }

  .flow { grid-template-columns: 1fr; }
  .flow__step { padding: 26px 0 30px; }
  .flow__step + .flow__step { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .flow__step::before { left: 0; }

  .split, .services, .closer, .sheet, .duo { grid-template-columns: 1fr; gap: 32px; }
  .split > *, .services > *, .closer > *, .sheet > * { min-width: 0; }
  .split__text, .split__media, .services__intro, .services__list,
  .closer__text, .closer__actions, .sheet__media, .sheet__text, .aside { grid-column: 1 / -1; }

  .services__item { grid-template-columns: 1fr; gap: 8px; }

  .gallery { grid-template-columns: 1fr; gap: 32px; }
  .gallery .stage { aspect-ratio: 4 / 3; }

  .specs__inner { grid-template-columns: 1fr; }
  .specs__cell + .specs__cell { border-left: 0; border-top: 1px solid var(--line); }
  .specs__cell { padding-inline: 0; }

  .form__row { grid-template-columns: 1fr; }
  .table { grid-template-columns: 1fr; }
  .table__cell:nth-child(odd) { border-right: 0; }
  .table__cell:nth-child(even) { padding-left: 0; }

  .matter__row, .duo { grid-template-columns: 1fr; gap: 10px; }

  .foot__inner { flex-direction: column; align-items: flex-start; gap: 20px; }

  .closer__row { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Objet 3D d'ambiance derriere le hero
   -------------------------------------------------------------------------- */

.hero-wrap { position: relative; overflow: hidden; }

.hero-wrap .hero { position: relative; z-index: 1; }

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  /* Le sujet vit a droite, derriere la plaque : il ne mange pas le titre. */
  -webkit-mask-image: radial-gradient(120% 100% at 74% 46%, #000 0%, #000 42%, transparent 76%);
          mask-image: radial-gradient(120% 100% at 74% 46%, #000 0%, #000 42%, transparent 76%);
}

@media (max-width: 900px) {
  .hero__canvas { opacity: .32; -webkit-mask-image: radial-gradient(110% 70% at 50% 34%, #000 0%, #000 40%, transparent 78%); mask-image: radial-gradient(110% 70% at 50% 34%, #000 0%, #000 40%, transparent 78%); }
}

/* ==========================================================================
   Mouvement. Tout ce bloc se desactive sous prefers-reduced-motion.
   ========================================================================== */

/* --- Arrivee sur le hero : la sphere s'imprime, puis les mots, puis la preuve. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    opacity: 0;
    transform: translateY(22px);
    animation: rise .95s var(--ease) forwards;
  }
  .hero__copy > :nth-child(1) { animation-delay: .40s; }
  .hero__copy > :nth-child(2) { animation-delay: .55s; }
  .hero__copy > :nth-child(3) { animation-delay: .72s; }
  .hero__copy > :nth-child(4) { animation-delay: .88s; }

  .hero__visual {
    opacity: 0;
    transform: translateX(44px) perspective(1400px) rotateY(-7deg);
    animation: settle 1.25s var(--ease) .8s forwards;
  }

  @keyframes rise   { to { opacity: 1; transform: none; } }
  @keyframes settle { to { opacity: 1; transform: none; } }

  .btn--primary:hover { transform: translateY(-1px); }
}

/* --- Transitions entre pages : API View Transitions.
       Le contenu glisse, la barre de navigation reste en place. */
@view-transition { navigation: auto; }

.nav { view-transition-name: site-nav; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in  .48s var(--ease) both; }
  ::view-transition-old(site-nav),
  ::view-transition-new(site-nav) { animation: none; mix-blend-mode: normal; }

  @keyframes vt-out { to   { opacity: 0; transform: translateY(-14px); } }
  @keyframes vt-in  { from { opacity: 0; transform: translateY(18px); } }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* --- Cartes produits : bascule 3D sous le pointeur (valeurs posees en JS). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product__plate { transition: transform .55s var(--ease); transform-style: preserve-3d; }
  .product__plate img { transition: transform .55s var(--ease); }
  .product:hover .product__plate { will-change: transform; }
}

/* --- Photos : derive lente pilotee par le defilement, sans JavaScript. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .gallery .stage img,
    .split__media .stage img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes drift {
      from { transform: translateY(-5%) scale(1.1); }
      to   { transform: translateY(5%)  scale(1.1); }
    }
  }
}

/* ==========================================================================
   v4 : frise de process, bandes pleine largeur, visionneuse, modale, fondateurs
   ========================================================================== */

/* --- Bande pleine largeur : le fond (lignes de couche) couvre tout l'ecran,
       le contenu reste dans .shell. */
.band { width: 100%; }

/* --- Frise de process : titre colle a gauche, etapes a droite, trait qui se remplit. */
.timeline {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.timeline__head { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 22px; }
.timeline__head .body { max-width: 40ch; }

.timeline__steps {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 44px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline__steps::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line-mid);
}
.timeline__steps::after {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 1px;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(1);
}
.timeline__step {
  position: relative;
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline__step:last-child { border-bottom: 0; }
.timeline__step::before {
  content: "";
  position: absolute;
  left: -40px; top: 32px;
  width: 9px; height: 9px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--ink);
}
.timeline__step .body-2 { max-width: 52ch; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .timeline__steps::after {
      animation: tl-fill linear both;
      animation-timeline: view();
      animation-range: cover 18% cover 72%;
    }
    .timeline__step {
      animation: tl-step linear both;
      animation-timeline: view();
      animation-range: entry 30% entry 100%;
    }
    @keyframes tl-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    @keyframes tl-step {
      from { opacity: .32; }
      to   { opacity: 1; }
    }
  }
}

/* --- Bouton "agrandir" sur la plaque de la fiche. */
.plate__zoom {
  position: absolute;
  bottom: 14px; right: 16px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  color: var(--plate-ink);
  background: rgba(6,6,9,.06);
  border: 0;
  cursor: pointer;
}
.plate__zoom:hover { background: rgba(6,6,9,.12); }
.sheet__hero img[data-zoom] { cursor: zoom-in; }

/* --- Visionneuse plein ecran. */
.lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  background: transparent;
}
.lightbox::backdrop { background: rgba(6,6,9,.94); }
.lightbox img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(24px, 6vw, 96px);
  background: var(--plate);
  mix-blend-mode: normal;
}
.lightbox__close,
.modal__close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-hi);
  background: var(--ink);
  color: var(--text);
  cursor: pointer;
}
.lightbox__close:hover, .modal__close:hover { border-color: var(--accent); }

/* --- Modale telephone (ordinateur). */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
}
.modal::backdrop { background: rgba(6,6,9,.88); backdrop-filter: blur(6px); }
.modal__box {
  position: relative;
  width: min(92vw, 440px);
  padding: 40px 36px 34px;
  background: var(--ink-2);
  border: 1px solid var(--line-mid);
  display: flex; flex-direction: column; gap: 18px;
  color: var(--text);
}
.modal__number {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -.03em;
  line-height: 1;
}
.modal__row { display: flex; gap: 12px; }
.modal__row .btn { flex: 1; }
.modal__qr { display: grid; place-items: center; padding: 18px 0 4px; }
.modal__qr svg { width: 200px; height: 200px; }
.modal__box .body-2 { text-align: center; }

/* --- Fondateurs. */
.founders { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.founders figcaption { display: flex; flex-direction: column; gap: 4px; }
.founders figcaption b { font-size: .9375rem; font-weight: 600; }

/* --- Bande matieres seule (sans logos). */
.mats {
  border-block: 1px solid var(--line);
}
.mats__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-block: 24px;
}
.mats__label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.mats__list { display: flex; gap: 28px; flex-wrap: wrap; }
.mats__list span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--text-2); }
.mats__list span small { font-size: 11px; color: var(--faint); }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline__head { position: static; }
  .timeline__steps { padding-left: 34px; }
  .timeline__step::before { left: -30px; }
  .modal__row { flex-direction: column; }
  .mats__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* --- Menu mobile ouvert (bascule par classe, plus de styles en ligne). */
@media (max-width: 900px) {
  .nav__links.is-open {
    display: flex;
    position: absolute;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 24px 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open .btn { margin-top: 10px; }
}

/* --- Formulaire : champ piege invisible pour les robots, etat de succes. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note--ok { border-left-color: var(--accent); color: var(--text-2); }
