:root {
  --nuit: #0C1530;
  --abysse: #070C1F;
  --lagune: #12405A;
  --indigo: #1E2F66;
  --ivoire: #EEE9DF;
  --brume: #9AA3BF;
  --champagne: #D9C08F;
  --orange: #F08A2C;
  --line: rgba(238, 233, 223, .14);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --measure: 34rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
.reduce { scroll-behavior: auto; }

body {
  margin: 0;
  color: var(--ivoire);
  background:
    radial-gradient(70rem 50rem at 78% 18%, rgba(30, 47, 102, .55), transparent 70%),
    radial-gradient(60rem 40rem at 8% 92%, rgba(18, 64, 90, .45), transparent 70%),
    var(--nuit);
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- scene layers ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .foot, .top { position: relative; z-index: 3; }

/* ---------- intro ---------- */
.intro { display: none; }
.js:not(.reduce) .intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: var(--abysse);
  animation: intro-fallback 0s 6s forwards;
}
.intro__word {
  font-family: var(--serif);
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.03em;
  color: var(--champagne);
  display: flex;
  overflow: hidden;
  line-height: 1.1;
}
.intro__word span { display: inline-block; }
@keyframes intro-fallback { to { visibility: hidden; opacity: 0; } }

/* ---------- header ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem var(--gutter) 2rem;
  z-index: 5;
  background: linear-gradient(var(--nuit) 45%, rgba(12, 21, 48, 0));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.brand__mark { width: 1.6rem; height: 1.6rem; color: var(--champagne); }
.status {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--brume);
  font-size: .9rem;
  margin-right: auto;
  margin-left: 1.5rem;
}
.status__dot {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(240, 138, 44, .6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 .6rem rgba(240, 138, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 138, 44, 0); }
}
.reduce .status__dot { animation: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  font: 600 .98rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--solid { background: var(--champagne); color: var(--nuit); }
.btn--solid:hover { background: var(--ivoire); }
.btn--ghost { border-color: rgba(217, 192, 143, .45); color: var(--champagne); min-height: 2.6rem; }
.btn--ghost:hover { background: var(--champagne); color: var(--nuit); }
.btn--link { padding: 0 .25rem; color: var(--ivoire); text-decoration: underline; text-underline-offset: .35em; text-decoration-color: rgba(238, 233, 223, .35); }
.btn--link:hover { text-decoration-color: var(--champagne); }

/* ---------- shared type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 96;
}
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; }
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 72;
  max-width: 14em;
}
h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: -.005em; }

section { padding: 18vh var(--gutter); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 8vh;
  position: relative;
}
.hero__text { max-width: 44rem; }
.hero__news { color: var(--champagne); font-size: 1.05rem; margin-bottom: 1.6rem; }
.lede { margin-top: 2rem; max-width: var(--measure); color: rgba(238, 233, 223, .78); font-size: 1.15rem; }
.actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.hint {
  position: absolute;
  right: var(--gutter);
  bottom: 6vh;
  color: var(--brume);
  font-size: .85rem;
  font-family: var(--serif);
  font-style: italic;
}
.fallback-card { display: none; }
.no-webgl .fallback-card {
  display: flex;
  align-items: flex-end;
  position: absolute;
  right: var(--gutter);
  top: 50%;
  translate: 0 -50%;
  width: min(30rem, 38vw);
  aspect-ratio: 1.586;
  padding: 1.6rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #34363c, #1f2126 60%, #2b2d33);
  color: var(--champagne);
  font-weight: 600;
  font-size: 1.4rem;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, .45);
  rotate: -6deg;
}
.no-webgl .fallback-card--phone {
  width: min(15rem, 22vw);
  aspect-ratio: .48;
  border-radius: 2.2rem;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(170deg, var(--indigo), var(--lagune) 45%, #FBFAF7 45.2%);
  border: .5rem solid #30333b;
  color: var(--nuit);
  rotate: 4deg;
}
.no-webgl .hint { display: none; }

/* ---------- geste ---------- */
.geste, .partage { display: grid; grid-template-columns: 1fr 1fr; }
.geste__text, .partage__text { grid-column: 2; }
.ways { margin-top: 3rem; display: grid; gap: 2rem; max-width: var(--measure); }
.way { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.way dt { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.1; color: var(--champagne); }
.way dd { color: rgba(238, 233, 223, .8); }
.ways--story { gap: 0; }
.ways--story .way { min-height: 38vh; align-content: center; padding-bottom: 1.4rem; }
.note { margin-top: 3rem; max-width: var(--measure); color: var(--brume); font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.45; }

/* ---------- profil ---------- */
.profil { display: grid; grid-template-columns: 1fr 1fr; }
.profil__text { grid-column: 1; }
.profil__lede { margin-top: 1.5rem; max-width: var(--measure); color: rgba(238, 233, 223, .78); }
.features { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 3rem; }
.features li { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.features p { margin-top: .35rem; color: rgba(238, 233, 223, .72); font-size: .98rem; }

/* ---------- matières ---------- */
.matieres {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
}
.matieres__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; }
.matieres__head p { max-width: var(--measure); color: rgba(238, 233, 223, .78); }
.stage { min-height: 46vh; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.swatch {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .65rem 1.4rem .65rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 12, 31, .45);
  backdrop-filter: blur(8px);
  color: var(--ivoire);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.swatch:hover { border-color: rgba(217, 192, 143, .5); }
.swatch[aria-pressed="true"] { border-color: var(--champagne); background: rgba(217, 192, 143, .1); }
.swatch__chip { width: 2.6rem; height: 2.6rem; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.swatch__chip--metal { background: conic-gradient(from 200deg, #2a2c31, #5b5e66, #24262b, #4a4c53, #2a2c31); }
.swatch__chip--pvc { background: radial-gradient(circle at 30% 30%, #fff, #e9e5da 70%); }
.swatch__chip--wood { background: repeating-linear-gradient(8deg, #c79a69 0 5px, #a7764a 5px 7px, #bf9061 7px 12px); }
.swatch__label { display: grid; line-height: 1.3; }
.swatch__label strong { font-weight: 600; }
.swatch__label span { color: var(--brume); font-size: .85rem; }

/* ---------- pour qui ---------- */
.cols { margin-top: 4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.cols article { padding-top: 1.4rem; border-top: 1px solid var(--champagne); }
.cols h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -.02em; }
.cols p { margin-top: .9rem; color: rgba(238, 233, 223, .78); max-width: 26rem; }

/* ---------- rejoindre ---------- */
.rejoindre { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; align-items: center; }
.rejoindre__inner { grid-column: 2; max-width: 32rem; }
.rejoindre__lede { margin-top: 1.5rem; color: rgba(238, 233, 223, .78); }
.rejoindre__inner .actions { margin-top: 2.5rem; }
.form { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-size: .9rem; color: var(--brume); padding: 0; }
.opt { opacity: .7; }
.field input[type="text"] {
  width: 100%;
  min-height: 3.1rem;
  padding: 0 1rem;
  border-radius: .8rem;
  border: 1px solid var(--line);
  background: rgba(7, 12, 31, .55);
  color: var(--ivoire);
  font: inherit;
  transition: border-color .3s var(--ease);
}
.field input[type="text"]::placeholder { color: rgba(154, 163, 191, .55); }
.field input[type="text"]:hover { border-color: rgba(238, 233, 223, .3); }
.field input[type="text"]:focus { border-color: var(--champagne); outline: none; box-shadow: 0 0 0 3px rgba(217, 192, 143, .2); }
.field input[aria-invalid="true"] { border-color: var(--orange); }
.field--choice { display: flex; flex-wrap: wrap; gap: .5rem; }
.field--choice legend { width: 100%; margin-bottom: .4rem; }
.field--choice label { position: relative; color: var(--ivoire); cursor: pointer; }
.field--choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.field--choice span {
  display: inline-block;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field--choice input:checked + span { border-color: var(--champagne); background: rgba(217, 192, 143, .12); }
.field--choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.form__submit { justify-self: start; margin-top: .5rem; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__status { min-height: 1.6em; color: var(--champagne); }
.form__status.is-error { color: var(--orange); }

/* ---------- footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  color: var(--brume);
  font-size: .92rem;
}
.foot .brand { color: var(--ivoire); margin-right: auto; }
.foot a:not(.brand) { text-decoration-color: rgba(154, 163, 191, .4); text-underline-offset: .25em; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .matieres__head { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 820px) {
  body { font-size: 1rem; }
  section { padding: 14vh var(--gutter); }
  .status { display: none; }
  .top { justify-content: space-between; }
  .hero { align-items: end; padding-bottom: 7vh; }
  .hero { padding-top: 5rem; }
  .hero__text { padding-top: 36vh; }
  .hero__news { margin-bottom: 1rem; }
  .display { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .lede { margin-top: 1.25rem; font-size: 1.02rem; }
  .actions { margin-top: 1.5rem; }
  .hint { display: none; }
  .geste, .partage, .profil, .rejoindre { grid-template-columns: 1fr; }
  .geste__text, .partage__text, .profil__text, .rejoindre__inner { grid-column: 1; }
  .ways--story { gap: 2rem; }
  .ways--story .way { min-height: 0; padding-bottom: 0; }
  .way { grid-template-columns: 1fr; gap: .4rem; }
  .stage { min-height: 38vh; }
  .swatches { flex-direction: column; align-items: stretch; }
  .no-webgl .fallback-card { position: static; translate: none; width: 100%; margin-top: 3rem; rotate: 0deg; order: -1; }
  .no-webgl .fallback-card--phone { width: 12rem; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
