/* ==========================================================================
   Feuille de style — atelier de fonte à cire perdue
   --------------------------------------------------------------------------
   Système visuel : encre nuit sur blanc, un seul accent indigo, graisse 300,
   filets de 1px, rayon de 4px, aucune ombre. La profondeur vient des teintes
   de fond (blanc → brume → givre → lavis violet), jamais d'une élévation.
   Seule exception à l'accent unique : le procédé, où chaque étape a sa couleur.
   ========================================================================== */

:root {
  /* Couleurs */
  --indigo: #533afd;
  --indigo-hover: #7389ff;
  --ink: #061b31;
  --slate: #64748d;
  --steel: #50617a;
  --smoke: #839bc8;
  --smoke-text: #7089bd; /* fumée un ton plus dense : titres atténués lisibles */
  --white: #ffffff;
  --mist: #f8fafd;
  --frost: #e5edf5;
  --lavender: #b9b9f9;
  --lilac: #d6d9fc;
  --wash: #e8e9ff;
  --deep: #182659;
  --amethyst: #7f71e6;
  --night: #040e1b; /* noir bleuté de la bande sombre */
  --night-line: rgba(255, 255, 255, 0.12);
  --night-text: #9fb0cc;
  --whatsapp: #25d366;

  /* Procédé : une couleur par étape, du fichier 3D (indigo) au contrôle (vert) */
  --step-1: #533afd;
  --step-2: #9a3cf2;
  --step-3: #e0338a;
  --step-4: #ee5a0e;
  --step-5: #c98500;
  --step-6: #0f9d6b;

  /* Typographie */
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Mise en page */
  --max: 1320px;
  --pad: 40px;
  --nav-h: 76px;
  --gap: 96px;
  --radius: 4px;

  /* Mouvement */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01" on, "tnum" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

svg, canvas {
  display: block;
}

button, input, select, textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

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

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

html.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

.skip {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: top 0.2s;
}

.skip:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   Grille de page : conteneur, repères verticaux, filets de section
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* Deux repères verticaux en pointillé encadrent la colonne, comme une feuille de registre */
.guides {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.guides::before,
.guides::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--frost) 0 5px, transparent 5px 10px);
}

.guides::before {
  left: max(12px, calc(50% - var(--max) / 2));
}

.guides::after {
  right: max(12px, calc(50% - var(--max) / 2));
}

/* Filet horizontal entre deux sections, avec repères en croix aux extrémités */
.rule {
  position: relative;
  width: calc(100% - 24px);
  max-width: var(--max);
  height: 1px;
  margin-inline: auto;
}

.rule::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--frost);
  transform-origin: left center;
}

.rule::after {
  content: "";
  position: absolute;
  inset: -4px;
  background:
    linear-gradient(var(--lavender) 0 0) 0 50% / 9px 1px,
    linear-gradient(var(--lavender) 0 0) 4px 50% / 1px 9px,
    linear-gradient(var(--lavender) 0 0) 100% 50% / 9px 1px,
    linear-gradient(var(--lavender) 0 0) calc(100% - 4px) 50% / 1px 9px;
  background-repeat: no-repeat;
}

/* Repères en croix aux quatre coins d'un cadre (--mark : leur couleur) */
.marks::before {
  content: "";
  position: absolute;
  inset: -5px;
  pointer-events: none;
  background:
    linear-gradient(var(--mark, var(--lavender)) 0 0) 0 4px / 9px 1px,
    linear-gradient(var(--mark, var(--lavender)) 0 0) 4px 0 / 1px 9px,
    linear-gradient(var(--mark, var(--lavender)) 0 0) 100% 4px / 9px 1px,
    linear-gradient(var(--mark, var(--lavender)) 0 0) calc(100% - 4px) 0 / 1px 9px,
    linear-gradient(var(--mark, var(--lavender)) 0 0) 0 calc(100% - 4px) / 9px 1px,
    linear-gradient(var(--mark, var(--lavender)) 0 0) 4px 100% / 1px 9px,
    linear-gradient(var(--mark, var(--lavender)) 0 0) 100% calc(100% - 4px) / 9px 1px,
    linear-gradient(var(--mark, var(--lavender)) 0 0) calc(100% - 4px) 100% / 1px 9px;
  background-repeat: no-repeat;
}

.section {
  padding-block: var(--gap);
}

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

.display {
  font-size: clamp(2.5rem, 1.1rem + 4.1vw, 4.125rem);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.h2 {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.38;
  color: var(--slate);
  text-wrap: pretty;
}

.muted {
  color: var(--smoke-text);
}

.line {
  display: block;
  text-wrap: balance;
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.label span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--indigo);
}

.label span::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--lavender);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 10px;
  border-radius: 9999px;
  background: var(--wash);
  color: var(--indigo);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.tag--sm {
  height: 24px;
  padding: 0 10px;
}

.tag__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tag__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% { transform: scale(0.4); opacity: 0.9; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Boutons et liens
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s, transform 0.4s var(--ease);
}

.btn--sm {
  height: 40px;
  padding: 0 16px;
}

/* Bouton « Demander un devis » de la barre du haut : un cran plus présent que les autres */
.btn--nav {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

/* Grand bouton d'appel du haut de page */
.btn--lg {
  gap: 12px;
  height: 64px;
  padding: 0 36px;
  font-size: 17px;
}

.btn--lg .arr {
  width: 14px;
  height: 12px;
}

.btn--primary {
  background: var(--indigo);
  color: var(--white);
}

/* Au survol, l'encre nuit monte dans le bouton */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--ink);
  transform: translateY(102%);
  transition: transform 0.45s var(--ease);
}

.btn--primary:hover::before,
.btn--primary:focus-visible::before {
  transform: none;
}

.btn--ghost {
  border-color: var(--lavender);
  background: transparent;
  color: var(--indigo);
}

.btn--ghost:hover {
  border-color: var(--amethyst);
  background: var(--wash);
}

/* Flèche : le chevron glisse et sa hampe apparaît au survol */
.arr {
  flex: none;
  width: 12px;
  height: 10px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arr__l {
  opacity: 0;
  transform: scaleX(0);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.arr__t {
  transform: translateX(-3px);
  transition: transform 0.3s var(--ease);
}

a:hover > .arr .arr__l,
button:hover > .arr .arr__l {
  opacity: 1;
  transform: none;
}

a:hover > .arr .arr__t,
button:hover > .arr .arr__t {
  transform: none;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--indigo);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.link:hover {
  color: var(--ink);
}

.link--sm {
  font-size: 14px;
}

.ulink {
  color: var(--indigo);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s, text-underline-offset 0.25s var(--ease);
}

.ulink:hover {
  color: var(--ink);
  text-underline-offset: 6px;
}

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  transition: border-color 0.3s, background-color 0.3s;
}

.nav.is-scrolled {
  border-bottom-color: var(--frost);
}

html.menu-open .nav {
  background: var(--white);
  border-bottom-color: var(--frost);
}

.nav__in {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

/* « by AO » : la signature, en retrait du nom */
.brand small {
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--slate);
}

.brand__mark {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.9s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotateY(360deg);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: 40px;
}

.nav__links a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--indigo);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__cta {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* Fil de progression de lecture, posé sur le filet de la barre */
.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--indigo);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left center;
}

.burger {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px var(--pad) 32px;
  overflow-y: auto;
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.45s var(--ease), visibility 0s 0.45s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--frost);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease), color 0.2s;
  transition-delay: 0s;
}

.menu.is-open .menu__links a {
  opacity: 1;
  transform: none;
  transition-delay: calc(60ms + var(--i, 0) * 50ms), calc(60ms + var(--i, 0) * 50ms), 0s;
}

.menu__links a:hover {
  color: var(--indigo);
}

.menu__links span {
  width: 24px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--indigo);
}

.menu__cta {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Héro
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: min(100svh, 980px);
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 64px;
  background: radial-gradient(880px 560px at 88% 0%, #eef0ff 0%, rgba(238, 240, 255, 0) 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .display {
  margin-top: 28px;
}

.hero__lead {
  max-width: 33em;
  margin-top: 28px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  width: 100%;
  max-width: 660px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--frost);
}

.hero__points li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 400;
  color: var(--steel);
}

.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23533afd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Panneau « instrument » : la bague en fil de fer et sa fiche de fabrication */
.panel {
  position: relative;
  border: 1px solid var(--frost);
  border-radius: var(--radius);
  background: var(--white);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 44px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--frost);
  font-size: 12px;
  font-weight: 400;
  color: var(--slate);
}

.panel__file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.panel__file svg {
  flex: none;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 10px;
  border-radius: 9999px;
  background: var(--wash);
  color: var(--indigo);
  white-space: nowrap;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: 0.25; }
}

.panel__view {
  position: relative;
  height: clamp(300px, 50vh, 480px);
  overflow: hidden;
  background-color: var(--mist);
  background-image: radial-gradient(circle, #d9e2ee 1px, transparent 1.4px);
  background-size: 20px 20px;
  background-position: 50% 50%;
  touch-action: pan-y;
}

.panel__view canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Réticule de mesure qui suit le pointeur */
.cross {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--lavender);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.cross--x {
  width: 1px;
  height: 100%;
}

.cross--y {
  width: 100%;
  height: 1px;
}

.cross__label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 3px 7px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.panel__view.is-hover {
  cursor: crosshair;
}

.panel__view.is-hover .cross,
.panel__view.is-hover .cross__label {
  opacity: 1;
}

.readout {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: grid;
  gap: 4px;
  pointer-events: none;
}

.readout__name {
  font-size: 12px;
  font-weight: 400;
  color: var(--slate);
}

.readout__val {
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.readout__val small {
  margin-left: 4px;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--smoke);
}

.panel__hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 11px;
  font-weight: 400;
  color: var(--slate);
  pointer-events: none;
  transition: opacity 0.3s;
}

.panel__view.is-hover .panel__hint {
  opacity: 0;
}

.ticket {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--frost);
}

.ticket__rows {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 0.6fr;
  gap: 16px;
}

.ticket__rows dt {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.ticket__rows dd {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.stepper li {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--slate);
  transition: color 0.3s;
}

.stepper li.is-on {
  color: var(--ink);
}

.stepper i {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  background: var(--frost);
}

.stepper i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--indigo);
  transform: scaleX(var(--f, 0));
  transform-origin: left center;
}

/* --------------------------------------------------------------------------
   Bandeau défilant
   -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 22px;
  border-block: 1px solid var(--frost);
  background: var(--white);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__group {
  display: flex;
  flex: none;
  align-items: center;
}

.marquee__group li {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--smoke);
  white-space: nowrap;
  transition: color 0.3s;
}

.marquee__group li::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--indigo);
  transform: rotate(45deg);
  transition: background-color 0.3s;
}

.marquee__group li:hover {
  color: var(--ink);
}

.marquee__group li:hover::after {
  background: var(--indigo);
}

/* --------------------------------------------------------------------------
   Bande sombre — le manifeste s'éclaire au défilement, suivi des chiffres clés
   -------------------------------------------------------------------------- */

.band {
  --p: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 128px 104px;
  background: var(--night);
  color: var(--white);
}

/* Trame de points, comme sur les panneaux techniques */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1.4px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

/* Halo indigo qui descend lentement avec le défilement (--p : 0 → 1) */
.band::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -62%;
  right: -18%;
  width: 72%;
  aspect-ratio: 1.25;
  background: radial-gradient(closest-side, rgba(83, 58, 253, 0.55), rgba(83, 58, 253, 0));
  transform: translate3d(0, calc(var(--p) * 160px), 0);
}

.band .label {
  color: var(--night-text);
}

.statement__text {
  max-width: 15em;
  margin-top: 32px;
  font-size: clamp(2.5rem, 1rem + 5.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.statement__text .soft {
  color: var(--lavender);
}

html.js .statement__text .sw {
  opacity: 0.16;
  transition: opacity 0.2s linear;
}

.band .stats {
  margin-top: 104px;
  border-top-color: var(--night-line);
}

.band .stats .stat {
  border-color: var(--night-line);
}

.band .stat__num small {
  color: var(--lavender);
}

.band .stat__label {
  color: var(--night-text);
}

/* --------------------------------------------------------------------------
   En-tête de section
   -------------------------------------------------------------------------- */

.head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: 64px;
  row-gap: 24px;
  align-items: end;
}

.head .label {
  grid-column: 1 / -1;
}

.head .lead {
  padding-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
  border-block: 1px solid var(--frost);
}

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.card + .card {
  border-left: 1px solid var(--frost);
}

/* Lavis violet qui suit le pointeur */
.card::before,
.benefit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--wash), transparent 70%),
    var(--mist);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.card::after,
.benefit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease);
}

.card:hover::before,
.benefit:hover::before {
  opacity: 1;
}

.card:hover::after,
.benefit:hover::after {
  transform: none;
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card__num {
  font-size: 12px;
  font-weight: 400;
  color: var(--slate);
  transition: color 0.3s;
}

.card:hover .card__num {
  color: var(--indigo);
}

.card__text {
  max-width: 36ch;
  margin-top: 16px;
  margin-bottom: 32px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--steel);
}

.card .link {
  align-self: flex-start;
  margin-top: auto;
}

/* Deux encarts mis en avant sous les services : dessin 3D, et règlement de l'or en vieux bijoux */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius);
}

.feature--wash {
  background: var(--wash);
}

.feature--night {
  background: var(--night);
  color: var(--white);
}

/* Halo indigo qui suit le pointeur */
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(440px circle at var(--mx, 85%) var(--my, 15%), rgba(83, 58, 253, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.feature--night::before {
  background: radial-gradient(440px circle at var(--mx, 85%) var(--my, 15%), rgba(83, 58, 253, 0.55), transparent 70%);
  opacity: 0.55;
}

.feature:hover::before {
  opacity: 1;
}

.feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature--wash .tag {
  background: var(--white);
}

.feature--night .tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lavender);
}

.feature h3 {
  margin-top: 20px;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.feature p {
  max-width: 40ch;
  margin-top: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--deep);
}

.feature--night p {
  color: var(--night-text);
}

.feature .link {
  margin-top: 24px;
}

.feature--night .link {
  color: var(--lavender);
}

.feature--night .link:hover {
  color: var(--white);
}

.feature--night :focus-visible {
  outline-color: var(--lavender);
}

/* Illustrations au trait des encarts */
.feature__art {
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature__art .l {
  stroke: var(--amethyst);
  stroke-width: 1.4;
}

.feature__art .wh {
  fill: var(--white);
}

.feature__art .pt {
  fill: var(--white);
  stroke-width: 1.4;
}

.feature__art .cur {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 1.4;
}

.feature--night .feature__art {
  stroke: var(--white);
}

.feature--night .feature__art .l {
  stroke: var(--lavender);
}

.feature--night .feature__art .wh {
  fill: var(--night);
}

/* Pictogrammes au trait */
.ico {
  flex: none;
  width: 56px;
  height: 56px;
  overflow: visible;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--sm {
  width: 32px;
  height: 32px;
}

/* Au survol, pictogrammes et illustrations se redessinent trait par trait */
html.js .card:hover .ico > *,
html.js .benefit:hover .ico > *,
html.js .feature:hover .feature__art .d {
  stroke-dasharray: calc(var(--len, 100) * 1px);
  animation: ico-draw 0.9s var(--ease) both;
  animation-delay: calc(var(--k, 0) * 80ms);
}

@keyframes ico-draw {
  from { stroke-dashoffset: calc(var(--len, 100) * 1px); }
  to { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Procédé — empilé par défaut, épinglé au défilement sur grand écran.
   Chaque étape a sa couleur (--c), du fichier 3D en indigo au contrôle en
   vert : le trait des figures, la pastille du numéro, le rail et le cadre
   la reprennent.
   -------------------------------------------------------------------------- */

.process {
  position: relative;
}

/* Teintes dérivées de --c. Sans color-mix(), tout reste dans la gamme indigo. */
.step,
.stage {
  --c: var(--indigo);
  --c-soft: var(--lavender); /* traits secondaires */
  --c-wash: var(--wash);     /* aplats et pastilles */
  --c-tint: var(--mist);     /* fond des cadres */
  --c-line: var(--frost);    /* bord des cadres */
  --c-dot: #d9e2ee;          /* trame de points */
  --c-glow: transparent;     /* halo dans l'angle des cadres */
  --c-text: var(--indigo);   /* petits textes */
}

@supports (color: color-mix(in srgb, red, blue)) {
  .step:nth-child(1), .stage__bar i:nth-child(1) { --c: var(--step-1); }
  .step:nth-child(2), .stage__bar i:nth-child(2) { --c: var(--step-2); }
  .step:nth-child(3), .stage__bar i:nth-child(3) { --c: var(--step-3); }
  .step:nth-child(4), .stage__bar i:nth-child(4) { --c: var(--step-4); }
  .step:nth-child(5), .stage__bar i:nth-child(5) { --c: var(--step-5); }
  .step:nth-child(6), .stage__bar i:nth-child(6) { --c: var(--step-6); }

  .step,
  .stage {
    --c-soft: color-mix(in srgb, var(--c) 46%, #fff);
    --c-wash: color-mix(in srgb, var(--c) 13%, #fff);
    --c-tint: color-mix(in srgb, var(--c) 6%, #fff);
    --c-line: color-mix(in srgb, var(--c) 24%, #fff);
    --c-dot: color-mix(in srgb, var(--c) 26%, #fff);
    --c-glow: color-mix(in srgb, var(--c) 22%, transparent);
    --c-text: color-mix(in srgb, var(--c) 62%, var(--ink));
  }
}

.process__grid {
  padding-block: var(--gap);
}

.process__left .h2 {
  margin-top: 24px;
}

/* « étape par étape. » passe par les couleurs du procédé, un dégradé par mot */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html.js .process .h2 .muted .w__i,
  html:not(.js) .process .h2 .muted {
    background-image: linear-gradient(90deg, var(--step-1), var(--step-2), var(--step-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* Le fond doit couvrir les jambages, qui dépassent de la boîte du mot */
  html.js .process .h2 .muted .w__i {
    margin-block: -0.12em;
    padding-block: 0.12em;
  }

  html.js .process .h2 .muted .w:nth-child(2) .w__i {
    background-image: linear-gradient(90deg, var(--step-3), var(--step-4));
  }

  html.js .process .h2 .muted .w:nth-child(3) .w__i {
    background-image: linear-gradient(90deg, var(--step-4), var(--step-5) 60%, var(--step-6));
  }

  html:not(.js) .process .h2 .muted {
    background-image: linear-gradient(90deg, var(--step-1), var(--step-2), var(--step-3), var(--step-4), var(--step-5), var(--step-6));
  }
}

.steps {
  margin-top: 48px;
}

/* Filet de séparation, amorcé à la couleur de l'étape */
.step {
  padding: 24px 0 8px;
  background:
    linear-gradient(var(--c) 0 0) left top / 56px 2px no-repeat,
    linear-gradient(var(--frost) 0 0) left top / 100% 1px no-repeat;
}

.step__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 300;
  text-align: left;
  cursor: default;
}

.step__num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 22px;
  border-radius: var(--radius);
  background: var(--c-wash);
  color: var(--c-text);
  font-size: 12px;
  font-weight: 500;
}

.step__title {
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.step__body > div {
  padding: 12px 0 0 50px;
}

.step__body p {
  max-width: 46ch;
  font-weight: 400;
  line-height: 1.55;
  color: var(--steel);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.step .tag {
  background: var(--c-wash);
  color: var(--c-text);
}

.stage {
  display: none;
}

/* Illustrations au trait, à la couleur de leur étape.
   Le halo de l'angle s'ouvre à mesure que la figure se trace (--p). */
.art {
  --p: 1;
  position: relative;
  margin: 24px 0;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background-color: var(--c-tint);
  background-image:
    radial-gradient(circle, var(--c-dot) 1px, transparent 1.4px),
    radial-gradient(calc(40% + var(--p) * 44%) calc(36% + var(--p) * 40%) at 100% 0%, var(--c-glow), transparent 72%);
  background-size: 20px 20px, 100% 100%;
  aspect-ratio: 4 / 3;
}

.art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.art .d {
  fill: none;
  stroke: var(--c);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art .l { stroke: var(--c-soft); }
.art .k { stroke: var(--ink); }
.art .w { fill: var(--c-wash); }
.art .wh { fill: var(--white); }
.art .thick { stroke-width: 4; }
.art .trunk { stroke-width: 11; stroke-linecap: butt; }
.art .fat { stroke-width: 6; }

.art .dash {
  fill: none;
  stroke: var(--c-soft);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 3 4;
}

.art .cut { stroke: var(--c); }
.art .waxfill { fill: none; stroke: var(--c-wash); stroke-width: 6; }
.art .melt { fill: var(--c); }
.art .grain { fill: var(--c-soft); }
.art .pt { fill: var(--white); stroke: var(--c); stroke-width: 1.25; }
.art .cursor { fill: var(--white); stroke: var(--ink); stroke-width: 1.25; stroke-linejoin: round; }
.art .mover { fill: var(--c); }
.art .ticks { fill: none; stroke: var(--c); stroke-width: 1.5; stroke-linecap: round; }

.art .t {
  fill: var(--slate);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.art .t.ink { fill: var(--ink); }

/* Tracé piloté par le défilement : --p (0 → 1) est posé par le script sur la figure,
   --s et --l fixent le départ et la durée de chaque trait dans cette progression. */
html.js .art .d {
  stroke-dasharray: calc(var(--len, 0) * 1px);
  stroke-dashoffset: calc(var(--len, 0) * 1px * clamp(0, 1 - (var(--p) - var(--s, 0)) / var(--l, 0.3), 1));
  opacity: clamp(0, (var(--p) - var(--s, 0)) * 60, 1);
}

html.js .art .f {
  opacity: clamp(0, (var(--p) - var(--s, 0)) / var(--l, 0.3), 1);
}

/* Petites animations en boucle, actives seulement quand la figure est à l'écran */
.art .head { animation: art-head 2.2s var(--ease-io) infinite alternate; }
.art .beam { fill: none; stroke: var(--c); stroke-width: 1.5; stroke-dasharray: 2 5; animation: art-dash 0.6s linear infinite; }
.art .flowline { fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 3 11; animation: art-dash 0.5s linear infinite; }
.art .spin { transform-box: fill-box; transform-origin: center; animation: art-spin 2.6s linear infinite; }
.art .rub { animation: art-rub 0.7s ease-in-out infinite alternate; }
.art .drop { fill: var(--c-wash); stroke: var(--c); stroke-width: 1.25; animation: art-drop 1.7s ease-in infinite; }
.art .drop + .drop { animation-delay: 0.85s; }
.art .heat { animation: art-heat 2.2s ease-in-out infinite alternate; }
.art .glint { fill: var(--white); stroke: var(--c); stroke-width: 1.25; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: art-glint 2s ease-in-out infinite; }
.art .glint--b { animation-delay: 0.7s; }
.art .glint--c { animation-delay: 1.3s; }

.art .head, .art .beam, .art .flowline, .art .spin, .art .rub, .art .drop, .art .heat, .art .glint {
  animation-play-state: paused;
}

.art.is-live .head, .art.is-live .beam, .art.is-live .flowline, .art.is-live .spin,
.art.is-live .rub, .art.is-live .drop, .art.is-live .heat, .art.is-live .glint {
  animation-play-state: running;
}

@keyframes art-head { from { transform: translateX(-58px); } to { transform: translateX(58px); } }
@keyframes art-dash { to { stroke-dashoffset: -14; } }
@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-rub { from { transform: translateX(-5px); } to { transform: translateX(5px); } }
@keyframes art-drop { 0% { transform: translateY(-6px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes art-heat { from { transform: translateY(3px); opacity: 0.45; } to { transform: translateY(-3px); opacity: 1; } }
@keyframes art-glint { 0%, 100% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }

/* Halos du cadre épinglé */
@keyframes glow-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-14%, 12%, 0) scale(1.14); } }
@keyframes glow-b { from { transform: translate3d(0, 0, 0) scale(1.08); } to { transform: translate3d(16%, -10%, 0) scale(0.92); } }

@media (min-width: 1024px) and (min-height: 600px) {
  .process__track {
    height: calc(100vh + 360vh);
  }

  .process__sticky {
    position: sticky;
    top: var(--nav-h);
    display: flex;
    align-items: center;
    height: calc(100vh - var(--nav-h));
  }

  .process__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 64px;
    align-items: center;
    height: min(100%, 760px);
    padding-block: 40px;
  }

  .process__left {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .steps {
    margin-top: 28px;
  }

  /* Le rail de gauche se remplit étape après étape, chacune dans sa couleur (--sp : 0 → 1).
     Les étapes ne sont jamais positionnées : leurs figures se calent sur la grille. */
  .step {
    padding: 0 0 0 30px;
    background:
      linear-gradient(var(--c) 0 0) left 4px top 0 / 2px calc(var(--sp, 0) * 100%) no-repeat,
      linear-gradient(var(--frost) 0 0) left 4px top 0 / 2px 100% no-repeat;
  }

  /* Un point suit l'avancée dans l'étape en cours */
  .step.is-active {
    background:
      radial-gradient(circle closest-side, var(--c) 0 56%, var(--white) 64% 94%, transparent) left 0 top calc(var(--sp, 0) * 100%) / 10px 10px no-repeat,
      linear-gradient(var(--c) 0 0) left 4px top 0 / 2px calc(var(--sp, 0) * 100%) no-repeat,
      linear-gradient(var(--frost) 0 0) left 4px top 0 / 2px 100% no-repeat;
  }

  .step__head {
    padding: 11px 0;
    color: var(--slate);
    cursor: pointer;
    transition: color 0.3s;
  }

  .step__num {
    background: transparent;
    color: var(--slate);
    transition: color 0.3s, background-color 0.3s;
  }

  .step__title {
    font-size: 20px;
    transition: transform 0.45s var(--ease);
  }

  .step.is-active .step__head {
    color: var(--ink);
  }

  .step.is-past .step__num {
    color: var(--c-text);
  }

  .step.is-active .step__num,
  .step__head:hover .step__num {
    background: var(--c-wash);
    color: var(--c-text);
  }

  .step__head:hover {
    color: var(--c-text);
  }

  .step__head:hover .step__title {
    transform: translateX(4px);
  }

  html.js .step__body {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.6s var(--ease), opacity 0.4s ease;
  }

  html.js .step__body > div {
    overflow: hidden;
    padding: 0 0 0 50px;
  }

  html.js .step.is-active .step__body {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .step__body p {
    padding-top: 2px;
  }

  .tags {
    padding-bottom: 16px;
  }

  /* Le cadre : --c et --c2 (couleur de l'étape en cours et de la suivante) sont posées par le script */
  .stage {
    --c2: var(--c);
    --mark: var(--c-soft);
    position: relative;
    display: block;
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background-color: var(--c-tint);
    background-image: radial-gradient(circle, var(--c-dot) 1px, transparent 1.4px);
    background-size: 20px 20px;
  }

  /* Deux halos dérivent lentement derrière la figure */
  .stage__glow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
  }

  .stage__glow i {
    position: absolute;
    top: -30%;
    right: -24%;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--c), transparent);
    opacity: 0.3;
    animation: glow-a 14s ease-in-out infinite alternate paused;
  }

  .stage__glow i + i {
    top: auto;
    right: auto;
    bottom: -36%;
    left: -26%;
    background: radial-gradient(closest-side, var(--c2), transparent);
    opacity: 0.26;
    animation-name: glow-b;
    animation-duration: 18s;
  }

  .stage.is-live .stage__glow i {
    animation-play-state: running;
  }

  .stage__meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 52px;
    padding: 0 20px;
    border-top: 1px solid var(--c-line);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--white);
    font-size: 13px;
    font-weight: 400;
    color: var(--slate);
  }

  .stage__count b {
    font-weight: 500;
    color: var(--c-text);
  }

  .stage__name {
    color: var(--ink);
  }

  /* Le nom de l'étape remonte à chaque changement */
  .stage__name.is-swap {
    animation: bump 0.5s var(--ease);
  }

  /* En haut du cadre, un segment par étape, chacun dans sa couleur (--f : remplissage, 0 → 1) */
  .stage__bar {
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 6px;
  }

  .stage__bar i {
    flex: 1;
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--c-line);
  }

  .stage__bar i::after {
    content: "";
    display: block;
    height: 100%;
    background: var(--c);
    transform: scaleX(var(--f, 0));
    transform-origin: left center;
  }

  /* Les figures quittent leur étape pour se superposer dans le cadre de droite :
     elles arrivent par le bas et repartent par le haut */
  html.js .art {
    position: absolute;
    top: 40px;
    bottom: 92px;
    left: calc(var(--pad) + (100% - 2 * var(--pad) - 64px) * 5 / 12 + 64px);
    right: var(--pad);
    z-index: 1;
    margin: 0;
    padding: 28px;
    border: 0;
    background: none;
    aspect-ratio: auto;
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.97);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.8s var(--ease);
  }

  html.js .step.is-past .art {
    transform: translate3d(0, -20px, 0) scale(1.02);
  }

  html.js .step.is-active .art {
    opacity: 1;
    transform: none;
  }

  html:not(.js) .process__track {
    height: auto;
  }

  html:not(.js) .process__sticky {
    position: static;
    height: auto;
  }

  html:not(.js) .process__grid {
    display: block;
    height: auto;
    padding-block: var(--gap);
  }

  html:not(.js) .stage {
    display: none;
  }
}

@media (min-width: 1024px) and (min-height: 600px) and (max-height: 780px) {
  .process__grid {
    padding-block: 24px;
  }

  .process__left .h2 {
    margin-top: 16px;
    font-size: 2.125rem;
  }

  .steps {
    margin-top: 20px;
  }

  .step__head {
    padding: 8px 0;
  }

  .step__num {
    height: 20px;
  }

  .step__title {
    font-size: 18px;
  }

  .step__body p {
    font-size: 15px;
    line-height: 1.5;
  }

  html.js .art {
    top: 24px;
    bottom: 76px;
    padding: 16px;
  }
}

/* --------------------------------------------------------------------------
   Métaux — l'or en tableau (titres × teintes), l'argent et le laiton à côté
   -------------------------------------------------------------------------- */

.metals {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 64px;
  align-items: start;
  margin-top: 64px;
}

.metals__side {
  display: grid;
  gap: 24px;
}

.ledger table {
  width: 100%;
  border-collapse: collapse;
}

.ledger thead th {
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--frost);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--slate);
}

.ledger tbody tr {
  transition: background-color 0.35s ease;
}

.ledger tbody tr:hover {
  background: var(--mist);
}

.ledger tbody th,
.ledger tbody td {
  padding: 22px 16px;
  border-bottom: 1px solid var(--frost);
  font-weight: 300;
  text-align: left;
  vertical-align: middle;
}

/* Le titre en millièmes mène la ligne ; un filet indigo la marque au survol */
.ledger tbody th {
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: linear-gradient(var(--indigo) 0 0) left center / 2px 0% no-repeat;
  transition: background-size 0.45s var(--ease), padding-left 0.45s var(--ease);
}

.ledger tbody tr:hover th {
  padding-left: 26px;
  background-size: 2px 100%;
}

.ledger tbody small,
.metal__name small,
.stat__num small {
  margin-left: 4px;
  font-size: 0.55em;
  letter-spacing: 0;
  color: var(--smoke);
}

.ledger td.carat {
  font-weight: 400;
  white-space: nowrap;
  color: var(--steel);
}

.ledger .tint {
  width: 17%;
}

/* Pastille de teinte */
.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 14px;
  border: 1px solid rgba(6, 27, 49, 0.14);
  border-radius: 2px;
  background: var(--c);
  vertical-align: 0.08em;
  transition: transform 0.5s var(--ease);
}

.ledger thead .swatch {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  vertical-align: -0.05em;
}

/* Teinte réalisable : un carré cliquable qui pivote en losange au survol */
.pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: -9px 0 -9px -10px;
  border-radius: var(--radius);
  transition: background-color 0.25s;
}

.pick::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid rgba(6, 27, 49, 0.16);
  border-radius: 2px;
  background: var(--c);
  transition: transform 0.5s var(--ease);
}

.pick:hover {
  background: var(--wash);
}

.pick:hover::before,
.pick:focus-visible::before {
  transform: rotate(45deg) scale(1.08);
}

/* Teinte non réalisable à ce titre */
.none {
  display: inline-block;
  width: 18px;
  text-align: center;
  color: var(--smoke);
}

.ledger__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 20px;
  padding-inline: 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
}

.ledger__legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ledger__legend i {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(6, 27, 49, 0.16);
  border-radius: 2px;
  background: var(--lilac);
}

.ledger__legend b {
  font-weight: 400;
  color: var(--smoke);
}

/* Argent et laiton : une carte cliquable par métal */
.metal {
  display: grid;
  justify-items: start;
  padding: 24px;
  border: 1px solid var(--frost);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s, background-color 0.3s;
}

.metal:hover {
  border-color: var(--lavender);
  background: var(--mist);
}

.metal__name {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Le titre en millièmes, aligné à droite du nom du métal */
.metal__name b {
  margin-left: auto;
  font-weight: 300;
  white-space: nowrap;
}

/* Dans le bloc « Or », le titre s'aligne sur le texte des cellules du tableau */
.ledger .metal__name,
.ledger .metal__note {
  padding-inline: 16px;
}

.ledger .metal__note {
  margin-bottom: 32px;
}

.metal__note {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--steel);
}

.metal .link {
  margin-top: 18px;
  color: var(--slate);
  transition: color 0.25s;
}

.metal:hover .link {
  color: var(--indigo);
}

.metal:hover .swatch {
  transform: rotate(45deg);
}

.metal:hover .arr__l {
  opacity: 1;
  transform: none;
}

.metal:hover .arr__t {
  transform: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 80px;
  border-top: 1px solid var(--frost);
}

.stat {
  padding: 32px 24px 0 0;
}

.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid var(--frost);
}

.stat__num {
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.stat__label {
  max-width: 24ch;
  margin-top: 12px;
  line-height: 1.4;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Tarifs — seconde bande sombre : prix affichés et estimation
   -------------------------------------------------------------------------- */

.band--price {
  padding-block: 112px;
}

/* Ici le halo part du bas à gauche, pour ne pas répéter la première bande */
.band--price::after {
  top: auto;
  right: auto;
  bottom: -64%;
  left: -20%;
  transform: translate3d(0, calc(var(--p) * -160px), 0);
}

.band .h2 .soft {
  color: var(--lavender);
}

.band .lead {
  color: var(--night-text);
}

.band :focus-visible {
  outline-color: var(--lavender);
}

/* Sur fond sombre, le bouton principal se remplit de blanc au survol */
.band .btn--primary::before {
  background: var(--white);
}

.band .btn--primary:hover,
.band .btn--primary:focus-visible {
  color: var(--ink);
}

.prices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 72px;
  border-top: 1px solid var(--night-line);
}

.price {
  padding: 32px 24px 0 0;
}

.price + .price {
  padding-left: 24px;
  border-left: 1px solid var(--night-line);
}

.price__label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--night-text);
}

.price__num {
  margin-top: 20px;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.price__num small {
  margin-left: 6px;
  font-size: 0.5em;
  letter-spacing: 0;
  color: var(--lavender);
}

.price__unit {
  max-width: 22ch;
  margin-top: 12px;
  line-height: 1.4;
  color: var(--night-text);
}

/* Estimation interactive */
.estimate {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  margin-top: 72px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.estimate__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 20px;
  align-content: center;
  padding: 32px;
}

.estimate__title {
  grid-column: 1 / -1;
  font-size: 26px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.estimate__hint {
  grid-column: 1 / -1;
  max-width: 52ch;
  margin-top: -8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--night-text);
}

.efield {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-content: end;
}

.efield > span:first-child {
  font-size: 14px;
  font-weight: 400;
  color: var(--night-text);
}

.efield__box {
  display: flex;
  align-items: center;
  height: 56px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, background-color 0.2s;
}

.efield__box:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.efield__box:focus-within {
  border-color: var(--lavender);
  background: rgba(255, 255, 255, 0.07);
}

.efield input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 16px;
  border: 0;
  outline: none;
  background: none;
  color: var(--white);
  font-size: 22px;
  font-weight: 300;
  -moz-appearance: textfield;
  appearance: textfield;
}

.efield input::-webkit-outer-spin-button,
.efield input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.efield select {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 40px 0 16px;
  border: 0;
  outline: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23b9b9f9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") right 14px center / 12px no-repeat;
  color: var(--white);
  font-size: 18px;
  font-weight: 300;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* La liste ouverte est dessinée par le système : on y remet des couleurs lisibles */
.efield select option,
.efield select optgroup {
  background: var(--white);
  color: var(--ink);
}

/* Prestations à inclure dans l'estimation */
.estimate__opts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--night-text);
}

.estimate__opts > span {
  margin-right: 8px;
}

.estimate .chip span {
  border-color: var(--night-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.estimate .chip span:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.estimate .chip input:checked + span {
  border-color: var(--lavender);
  background: rgba(83, 58, 253, 0.35);
  color: var(--white);
}

.estimate .chip input:checked + span::before {
  border-color: var(--white);
  background: var(--white);
}

.estimate .chip input:focus-visible + span {
  outline-color: var(--lavender);
}

.efield i {
  padding: 0 14px 0 8px;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
  color: var(--night-text);
}

.estimate__result {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 32px;
  border-left: 1px solid var(--night-line);
}

.estimate__result dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--night-line);
}

.estimate__result dl div:first-child {
  padding-top: 0;
}

.estimate__result dt {
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
}

.estimate__result dt small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--night-text);
}

.estimate__result dd {
  font-size: 18px;
  white-space: nowrap;
}

.estimate__min dt,
.estimate__min dd {
  color: var(--lavender);
}

.estimate__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--night-text);
}

.estimate__total strong {
  display: inline-block;
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
  color: var(--white);
}

/* Quand on arrive depuis « Demander un devis », le calculateur s'allume un instant */
.estimate.is-flash {
  animation: estimate-flash 1.8s ease;
}

@keyframes estimate-flash {
  0%, 35% { border-color: var(--lavender); background-color: rgba(83, 58, 253, 0.24); }
  100% { border-color: var(--night-line); background-color: rgba(255, 255, 255, 0.03); }
}

/* Barre d'envoi sous l'estimation : par e-mail ou par WhatsApp */
.send {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 28px 32px;
  border-top: 1px solid var(--night-line);
}

.send__title {
  font-size: 26px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.send__text p {
  max-width: 46ch;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--night-text);
}

.send__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.send__choices .btn {
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
}

.send .wa-ico,
.mail-ico {
  flex: none;
  width: 20px;
  height: 20px;
}

.mail-ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bouton secondaire sur fond sombre */
.band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.band .btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Le total « respire » à chaque nouveau calcul */
.estimate__total strong.is-bump {
  animation: bump 0.5s var(--ease);
}

@keyframes bump {
  0% { transform: translateY(6px); opacity: 0.4; }
  100% { transform: none; opacity: 1; }
}

.estimate__note {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--night-text);
}

/* Rappel bien visible sous l'estimation : l'or se règle aussi en vieux bijoux */
.band__note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 24px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.45;
}

.band__note .ico {
  stroke: var(--lavender);
}

.band__note a {
  margin-left: auto;
  color: var(--lavender);
  white-space: nowrap;
}

.band__note a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Pour les bijoutiers — parcours d'une commande et engagements
   -------------------------------------------------------------------------- */

.flow {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 80px;
  padding-top: 36px;
}

.flow::before,
.flow::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  height: 1px;
}

.flow::before {
  right: 0;
  background: var(--frost);
}

.flow::after {
  width: calc(var(--p) * var(--len, 80%));
  background: var(--indigo);
}

.flow__node {
  position: relative;
  padding-right: 24px;
}

/* Jalon en losange, rempli quand le fil indigo l'atteint */
.flow__node i {
  position: absolute;
  left: 0;
  top: -36px;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--lavender);
  background: var(--white);
  transform: rotate(45deg) scale(0.8);
  transition: transform 0.5s var(--ease), background-color 0.3s, border-color 0.3s;
}

.flow__node.is-on i {
  border-color: var(--indigo);
  background: var(--indigo);
  transform: rotate(45deg);
}

.flow__node strong {
  display: block;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--smoke);
  transition: color 0.4s;
}

.flow__node.is-on strong {
  color: var(--ink);
}

.flow__node--us.is-on strong {
  color: var(--indigo);
}

.flow__node span {
  display: block;
  max-width: 22ch;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--slate);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 80px;
  border-block: 1px solid var(--frost);
}

.benefit {
  position: relative;
  isolation: isolate;
  padding: 32px 28px 36px;
}

.benefit + .benefit {
  border-left: 1px solid var(--frost);
}

.benefit h3 {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.benefit p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--steel);
}

/* --------------------------------------------------------------------------
   Questions fréquentes
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.split__intro {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.split__intro .h2 {
  margin-top: 24px;
}

.split__intro .lead {
  max-width: 24em;
  margin-top: 24px;
}

.faq {
  border-top: 1px solid var(--frost);
}

.faq__item {
  border-bottom: 1px solid var(--frost);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s, padding-left 0.45s var(--ease);
}

.faq__q:hover {
  padding-left: 8px;
  color: var(--indigo);
}

.faq__ico {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--lilac);
  border-radius: var(--radius);
  transition: background-color 0.3s, border-color 0.3s;
}

.faq__ico::before,
.faq__ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--indigo);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease);
}

.faq__ico::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.is-open .faq__ico::after {
  transform: translate(-50%, -50%);
}

.faq__q:hover .faq__ico {
  border-color: var(--lavender);
  background: var(--wash);
}

.faq__a p {
  max-width: 60ch;
  padding: 0 56px 28px 0;
  font-weight: 400;
  line-height: 1.55;
  color: var(--steel);
}

html.js .faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

html.js .faq__a > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 0.5s;
}

html.js .faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

html.js .faq__item.is-open .faq__a > div {
  visibility: visible;
  transition-delay: 0s;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.coords {
  margin-top: 48px;
  border-top: 1px solid var(--frost);
}

.coords div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--frost);
}

.coords dt {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.coords dd {
  font-size: 18px;
  line-height: 1.4;
}

.coords a {
  text-decoration: none;
  background: linear-gradient(var(--indigo) 0 0) left bottom / 0% 1px no-repeat;
  transition: color 0.2s, background-size 0.45s var(--ease);
}

.coords a:hover {
  color: var(--indigo);
  background-size: 100% 1px;
}

.form {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--frost);
  border-radius: var(--radius);
  background: var(--mist);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  font-size: 14px;
  font-weight: 400;
  color: var(--steel);
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--frost);
  border-radius: var(--radius);
  background-color: var(--white);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, outline-color 0.2s;
  outline: 3px solid transparent;
  outline-offset: 0;
}

.field input:hover {
  border-color: var(--lavender);
}

.field input:focus {
  border-color: var(--indigo);
  outline-color: var(--wash);
}

/* Cases à cocher en pastille (calculateur des tarifs) */
.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--frost);
  border-radius: 9999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.chip span::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--lavender);
  transform: rotate(45deg);
  transition: background-color 0.2s, border-color 0.2s, transform 0.45s var(--ease);
}

.chip span:hover {
  border-color: var(--lavender);
}

.chip input:checked + span {
  border-color: var(--indigo);
  background: var(--wash);
  color: var(--indigo);
}

.chip input:checked + span::before {
  border-color: var(--indigo);
  background: var(--indigo);
  transform: rotate(225deg);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.form__note {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--slate);
}

.form__status {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--deep);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.form__status.is-shown {
  display: block;
}

/* --------------------------------------------------------------------------
   WhatsApp — pictogramme dans les boutons et bouton flottant
   -------------------------------------------------------------------------- */

.wa-ico {
  flex: none;
  width: 18px;
  height: 18px;
  fill: var(--whatsapp);
}

.wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--night);
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.35s ease, transform 0.5s var(--ease), background-color 0.25s, border-color 0.25s;
}

.wa .wa-ico {
  width: 22px;
  height: 22px;
  transition: fill 0.25s;
}

.wa:hover {
  border-color: var(--indigo);
  background: var(--indigo);
}

.wa:hover .wa-ico {
  fill: var(--white);
}

/* Le bouton n'apparaît qu'après le début du défilement */
html.js .wa {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

html.js .wa.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

html.menu-open .wa {
  display: none;
}

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

.footer {
  border-top: 1px solid var(--frost);
  background: var(--mist);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 48px;
  padding-block: 72px 56px;
}

.footer__about p {
  max-width: 30ch;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--slate);
}

.footer h2 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.footer li {
  font-size: 14px;
  font-weight: 400;
}

.footer ul a,
.footer__bottom a {
  text-decoration: none;
  background: linear-gradient(var(--indigo) 0 0) left bottom / 0% 1px no-repeat;
  transition: color 0.2s, background-size 0.45s var(--ease);
}

.footer ul a:hover,
.footer__bottom a:hover {
  color: var(--indigo);
  background-size: 100% 1px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--frost);
  font-size: 12px;
  font-weight: 400;
  color: var(--slate);
}

.footer__bottom nav {
  display: flex;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Page de texte (mentions légales)
   -------------------------------------------------------------------------- */

.legal {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: var(--gap);
}

.legal .display {
  margin-top: 24px;
}

.legal__body {
  max-width: 720px;
  margin-top: 64px;
}

.legal__body h2 {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--frost);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.legal__body p,
.legal__body li {
  margin-top: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.legal__body mark {
  padding: 1px 6px;
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--deep);
}

/* --------------------------------------------------------------------------
   Apparitions au défilement
   -------------------------------------------------------------------------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.9s ease, transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Titres : chaque mot monte derrière un masque */
html.js .w {
  display: inline-block;
  overflow: hidden;
  margin-block: -0.12em;
  padding-block: 0.12em;
  vertical-align: top;
}

html.js .w__i {
  display: inline-block;
  transform: translate3d(0, 115%, 0);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 45ms);
}

html.js .is-in .w__i {
  transform: none;
}

html.js .rule::before {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-io);
}

html.js .rule::after {
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}

html.js .rule.is-in::before {
  transform: none;
}

html.js .rule.is-in::after {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Adaptations
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .nav__links {
    margin-left: 20px;
  }

  .nav__links a {
    padding-inline: 8px;
  }

  .nav__links a::after {
    left: 8px;
    right: 8px;
  }
}

@media (max-width: 1100px) {
  .nav__links,
  .nav__cta .btn--ghost {
    display: none;
  }

  .burger {
    display: block;
  }

  .menu {
    display: flex;
  }
}

@media (max-width: 1023px) {
  :root {
    --gap: 80px;
  }

  .hero {
    min-height: 0;
    padding-bottom: 72px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .panel__view {
    height: clamp(300px, 52vw, 460px);
  }

  .head,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split {
    gap: 48px;
  }

  .split__intro {
    position: static;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .card + .card {
    border-top: 1px solid var(--frost);
    border-left: 0;
  }

  .card__top {
    margin-bottom: 40px;
  }

  .card__text {
    max-width: 52ch;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .metals {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .metals__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .price:nth-child(n + 3) {
    margin-top: 32px;
    border-top: 1px solid var(--night-line);
  }

  .estimate {
    grid-template-columns: minmax(0, 1fr);
  }

  .estimate__result {
    border-top: 1px solid var(--night-line);
    border-left: 0;
  }

  .stats,
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    margin-top: 32px;
    border-top: 1px solid var(--frost);
  }

  .benefit:nth-child(odd) {
    border-left: 0;
  }

  .benefit:nth-child(n + 3) {
    border-top: 1px solid var(--frost);
  }

  .art {
    max-width: 640px;
  }

  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 20px;
    --nav-h: 64px;
    --gap: 64px;
  }

  .guides {
    display: none;
  }

  .rule {
    width: 100%;
  }

  .rule::after {
    display: none;
  }

  .band::after {
    top: -24%;
    right: -80%;
    width: 160%;
  }

  .band {
    padding-block: 88px 72px;
  }

  .band .stats {
    margin-top: 64px;
  }

  .wa {
    right: 16px;
    bottom: 16px;
    width: 48px;
    padding: 0;
    justify-content: center;
  }

  .wa span {
    display: none;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 32px);
  }

  .hero__cta {
    width: 100%;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
  }

  .hero__points {
    flex-direction: column;
  }

  .cards,
  .metals,
  .stats,
  .benefits,
  .flow {
    margin-top: 48px;
  }

  .card {
    padding: 28px 0;
  }

  .card::before {
    inset: 0 calc(var(--pad) * -1);
  }

  .features {
    gap: 16px;
    margin-top: 20px;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 28px 24px;
  }

  .feature__art {
    max-width: 280px;
  }

  .ledger {
    overflow-x: auto;
  }

  .ledger thead th,
  .ledger tbody th,
  .ledger tbody td {
    padding-inline: 6px;
  }

  .ledger thead th {
    font-size: 11px;
    letter-spacing: 0.03em;
  }

  .ledger thead th:first-child,
  .ledger tbody th {
    padding-left: 0;
  }

  .ledger tbody th {
    font-size: 20px;
  }

  .ledger tbody tr:hover th {
    padding-left: 10px;
  }

  .ledger td.carat {
    font-size: 14px;
  }

  .ledger .tint {
    width: auto;
  }

  .ledger thead .swatch {
    margin-right: 6px;
  }

  .pick {
    width: 34px;
    height: 34px;
    margin: -8px 0 -8px -8px;
  }

  .ledger__legend,
  .ledger .metal__name,
  .ledger .metal__note {
    padding-inline: 0;
  }

  .metals__side {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .swatch {
    margin-right: 10px;
  }

  .band--price {
    padding-block: 80px;
  }

  .band--price::after {
    top: auto;
    right: auto;
    bottom: -18%;
    left: -80%;
  }

  .prices,
  .estimate {
    margin-top: 48px;
  }

  .price__unit {
    font-size: 14px;
  }

  .band__note {
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 18px 20px;
  }

  .band__note span {
    flex: 1 1 200px;
  }

  .band__note a {
    margin-left: 48px;
  }

  .estimate__form,
  .estimate__result,
  .send {
    padding: 24px 20px;
  }

  .send__choices {
    width: 100%;
  }

  .send__choices .btn {
    flex: 1 1 100%;
  }

  .btn--lg {
    height: 60px;
    padding: 0 28px;
  }

  .estimate__form {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu__links a {
    padding: 14px 0;
    font-size: 26px;
  }

  .stat__label {
    font-size: 14px;
  }

  /* Le parcours passe à la verticale */
  .flow {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
    padding-top: 0;
    padding-left: 32px;
  }

  .flow::before,
  .flow::after {
    left: 5px;
    top: 8px;
    width: 1px;
  }

  .flow::before {
    right: auto;
    bottom: 8px;
    height: auto;
  }

  .flow::after {
    height: calc(var(--p) * var(--len, 80%));
  }

  .flow__node {
    padding-right: 0;
  }

  .flow__node i {
    left: -32px;
    top: 8px;
  }

  .flow__node span {
    max-width: none;
  }

  .benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefit {
    padding: 28px 0;
  }

  .benefit + .benefit {
    border-top: 1px solid var(--frost);
    border-left: 0;
  }

  .benefit::before {
    inset: 0 calc(var(--pad) * -1);
  }

  .benefit h3 {
    margin-top: 20px;
  }

  .step__title {
    font-size: 22px;
  }

  .step__body > div {
    padding-left: 0;
  }

  .faq__a p {
    padding-right: 0;
  }

  .coords div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .form {
    padding: 20px;
  }

  .form__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .readout__val {
    font-size: 30px;
  }

  .form__foot .btn {
    flex: 1 1 auto;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
    padding-block: 56px 40px;
  }
}

@media (max-width: 520px) {
  .nav__cta {
    display: none;
  }

  .burger {
    margin-left: auto;
  }

  .ticket__rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticket__rows div:last-child {
    display: none;
  }

  .panel__file span {
    display: none;
  }
}

/* Sur les très petits écrans, le titre en millièmes suffit : la colonne des carats disparaît */
@media (max-width: 360px) {
  .ledger thead th:nth-child(2),
  .ledger td.carat {
    display: none;
  }
}

@media (hover: none) {
  .panel__hint {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  html.js [data-reveal],
  html.js .w__i,
  html.js .rule::before {
    opacity: 1;
    transform: none;
  }

  html.js .rule::after,
  html.js .statement__text .sw {
    opacity: 1;
  }
}
