/* DUERP.ai, proposition A : Prisme.
   Noir émeraude, une grotesque fine et très grande, un mono technique pour les données.
   L'ambre et le rouge n'existent que pour le risque. */

:root {
  --ink: #020907;
  --ink-2: #05130e;
  --text: #ecf6f0;
  --mute: #a2bfb1;
  --dim: #7d9c8d;
  --green: #8df3bb;
  --green-2: #4fce8f;
  --brand: #2e885b;
  --amber: #ffb24d;
  --red: #ff5b38;
  --line: rgb(190 255 220 / 0.16);
  --line-2: rgb(190 255 220 / 0.32);
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gut: clamp(16px, 2.6vw, 40px);
  --rc: 54;
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 18.8%, 1.077 21%, 1.121 23.4%, 1.149 26.1%, 1.159 29%, 1.149 32.3%, 1.079 42.3%, 1.04 47.3%, 1.017 52.9%, 0.991 64.7%, 0.997 82.4%, 1);
}

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

html {
  background: var(--ink);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: clip;
}

body {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.5;
  font-variation-settings: 'opsz' 18, 'wdth' 92;
  font-weight: 300;
  background: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}
ol,
ul {
  list-style: none;
}
sup {
  font-size: 0.5em;
  line-height: 0;
  vertical-align: 0.82em;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  z-index: 60;
  left: 16px;
  top: -80px;
  background: var(--green);
  color: var(--ink);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
}
.skip:focus {
  top: 16px;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

main,
.pied,
.nav {
  position: relative;
  z-index: 2;
}

/* Sans WebGL : le losange reste, en CSS. Rien ne dépend du canvas pour être lu. */
.repli {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 18% 34%, rgb(255 120 40 / 0.14), transparent 70%),
    radial-gradient(60% 50% at 82% 34%, rgb(80 230 160 / 0.13), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgb(141 243 187 / 0.13) 31px 32px) 62vw 12vh / 34vw 42vh no-repeat,
    var(--ink);
}
.repli i {
  position: absolute;
  left: 50%;
  top: 34%;
  width: min(30vw, 42vh);
  aspect-ratio: 1;
  translate: -50% -50%;
  rotate: 45deg;
  border-radius: 25%;
  background: linear-gradient(135deg, rgb(141 243 187 / 0.3), rgb(10 60 42 / 0.5) 40%, rgb(2 12 9 / 0.9));
  box-shadow:
    inset 0 0 0 1px rgb(200 255 225 / 0.6),
    0 0 90px rgb(60 200 140 / 0.18);
}
.webgl .repli {
  display: none;
}

/* ---- navigation ---- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gut);
  pointer-events: none;
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 -26px;
  z-index: -1;
  background: linear-gradient(to bottom, rgb(2 9 7 / 0.82), rgb(2 9 7 / 0.55) 56%, transparent);
}
.nav a {
  pointer-events: auto;
  text-decoration: none;
}
.nav__brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 20px;
  font-weight: 400;
  font-variation-settings: 'opsz' 24, 'wdth' 88;
  letter-spacing: -0.01em;
}
.nav__brand svg {
  width: 22px;
  height: 22px;
  fill: var(--green-2);
}
.nav__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.01em;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  background: rgb(2 9 7 / 0.72);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav__cta:hover {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
}

/* ---- héros ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gut) clamp(20px, 3.4vh, 40px);
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 44% 0 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(2 9 7 / 0.97) 10%, rgb(2 9 7 / 0.88) 44%, rgb(2 9 7 / 0));
  pointer-events: none;
}
.hero__fig {
  position: absolute;
  top: 92px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  opacity: 0;
  animation: fig 0.9s 1.5s forwards ease-out;
  padding: 4px 8px 4px 0;
}
.hero__fig span {
  color: var(--amber);
  margin-right: 8px;
}
.hero__fig--in {
  left: var(--gut);
  background: linear-gradient(90deg, rgb(2 9 7 / 0.86) 70%, transparent);
}
.hero__fig--out {
  right: var(--gut);
}
.hero__fig--out span {
  color: var(--green);
}
@keyframes fig {
  to {
    opacity: 1;
  }
}

.hero__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 22vw);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.hero__title {
  font-size: clamp(54px, min(9.7vw, 19vh), 176px);
  line-height: 0.96;
  letter-spacing: -0.016em;
  font-weight: 200;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
}
.mask {
  display: block;
  overflow: clip;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.mask > span {
  display: block;
  translate: 0 112%;
  animation: rise 1.15s var(--spring) forwards;
  animation-delay: 0.55s;
}
.mask + .mask > span {
  animation-delay: 0.72s;
}
@keyframes rise {
  to {
    translate: 0 0;
  }
}
.hero__side {
  font-size: 16px;
  line-height: 1.45;
  color: var(--mute);
  padding-bottom: 0.7vh;
  opacity: 0;
  animation: fig 0.8s 1.2s forwards ease-out;
}
.hero__side p {
  margin-bottom: 18px;
}

.cta,
.wait button {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  padding: 16px 18px;
  background: var(--green);
  color: var(--ink);
  transition: letter-spacing 0.4s var(--spring), background 0.25s;
}
.cta:hover,
.wait button:hover {
  background: #c7ffdf;
  letter-spacing: 0.035em;
}

/* ---- la loi ---- */
.kicker,
.table__head h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.01em;
}
.kicker {
  color: var(--amber);
  margin-bottom: 20px;
}

.loi {
  position: relative;
  padding: 26vh var(--gut) 34vh;
  isolation: isolate;
}
.loi::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(2 9 7 / 0.97) 0%, rgb(2 9 7 / 0.93) 46%, rgb(2 9 7 / 0.3) 68%, rgb(2 9 7 / 0) 82%);
  mask-image: linear-gradient(to bottom, transparent, #000 16vh, #000 calc(100% - 30vh), transparent);
}
.loi__title {
  font-size: clamp(50px, 7.6vw, 138px);
  line-height: 0.98;
  font-weight: 200;
  letter-spacing: -0.014em;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
  max-width: 7em;
}
.amende {
  margin-top: 30vh;
  max-width: min(62vw, 980px);
}
.amende__num {
  font-size: clamp(92px, 18.5vw, 340px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 200;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
  color: var(--amber);
  white-space: nowrap;
  font-feature-settings: 'tnum' 0;
}
.amende__txt {
  margin-top: 30px;
  max-width: 34em;
  display: grid;
  gap: 14px;
  color: var(--mute);
}
.amende__lead {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.22;
  color: var(--text);
  font-variation-settings: 'opsz' 40, 'wdth' 84;
  font-weight: 250;
}
.amende__lead strong {
  font-weight: 450;
  color: var(--amber);
}
.registre {
  margin-top: 30vh;
  max-width: min(50vw, 800px);
  border-top: 1px solid var(--line-2);
}
.registre > div {
  display: grid;
  grid-template-columns: minmax(170px, 38%) 1fr;
  gap: 24px;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}
.registre dt {
  font-size: clamp(30px, 3.1vw, 52px);
  line-height: 1;
  font-weight: 200;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
}
.registre dd {
  color: var(--mute);
  font-size: 16.5px;
  line-height: 1.45;
}

/* révélation : un trait qui écrit de gauche à droite, pas un fondu */
[data-reveal] {
  mask-image: linear-gradient(90deg, #000 44%, transparent 56%);
  mask-size: 240% 100%;
  mask-repeat: no-repeat;
  mask-position: 100% 0;
  transition: mask-position 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].in {
  mask-position: 0 0;
}

/* ---- passage dans le verre, puis la table ---- */
.pin .lignes {
  height: calc(100vh * (1 + var(--dive) + 8 * var(--rowv)));
}
.pin .lignes__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: clip;
}
.dive {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  z-index: 3;
}
.dive__cap {
  grid-area: 1 / 1;
  font-size: clamp(30px, 4.6vw, 84px);
  line-height: 1.04;
  font-weight: 200;
  letter-spacing: -0.012em;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
  text-align: center;
  max-width: 14em;
  opacity: 0;
  padding: 0.3em 0.5em;
}
.dive__cap--a {
  align-self: end;
  margin-bottom: 9vh;
  background: radial-gradient(closest-side, rgb(2 9 7 / 0.84), rgb(2 9 7 / 0.6) 62%, transparent);
}
.dive__cap--b {
  background: radial-gradient(closest-side, rgb(2 9 7 / 0.92), rgb(2 9 7 / 0.78) 60%, transparent);
  color: #fff;
}

.pin .table {
  --show: 0;
  position: absolute;
  inset: 0;
  padding: 72px var(--gut) 0;
  display: flex;
  flex-direction: column;
  opacity: var(--show);
  translate: 0 calc((1 - var(--show)) * 18px);
}
.table__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 12px;
}
.table__head h2 {
  color: var(--green);
}
.table__head p {
  display: none;
}
.pin .rows {
  position: relative;
  flex: 1;
  margin-bottom: 18px;
}

.pin .row {
  position: absolute;
  inset: 0 0 auto;
  height: var(--rowA);
  will-change: transform, clip-path;
}
.row__in {
  position: relative;
  height: 100%;
}
.pin .row__in {
  display: block;
}
.row__n {
  position: absolute;
  left: 0;
  top: calc((var(--rowC, 54px) - 14px) / 2);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 14px;
  color: var(--green);
}
.row__title {
  position: absolute;
  left: clamp(44px, 5vw, 72px);
  top: calc((var(--rowC, 54px) - 24px) / 2);
  font-size: clamp(48px, 5vw, 84px);
  line-height: 0.5em;
  height: 1em;
  font-weight: 250;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
  white-space: nowrap;
  color: var(--mute);
  transform-origin: 0 0;
  will-change: transform;
}
.row__tag {
  position: absolute;
  right: 0;
  top: calc((var(--rowC, 54px) - 14px) / 2);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 14px;
  color: var(--dim);
}
.pin .row__body {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: stretch;
  opacity: 0;
}
.pin .row__txt {
  padding-left: clamp(44px, 5vw, 72px);
  margin-bottom: 26px;
}
.pin .mech {
  margin: 14px 0 22px;
}
.row__txt {
  color: var(--mute);
  font-size: 18px;
  line-height: 1.42;
  max-width: 25em;
  align-self: end;
}

/* ---- mécaniques : socle ---- */
.mech {
  --pad: 0px;
  position: relative;
  min-width: 0;
  min-height: 0;
  font-family: var(--mono);
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.4;
  font-weight: 300;
  font-variation-settings: normal;
}
.mech i {
  font-style: normal;
  color: var(--dim);
  font-size: clamp(10.5px, 0.8vw, 12px);
}
.mech svg .lab {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 300;
  fill: var(--text);
}
.mech svg .lab--dim {
  fill: var(--mute);
  font-size: 11.5px;
}
.mech svg .lab--strong {
  fill: var(--green);
  font-size: 12.5px;
}

/* 1 cotation */
.cot {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.cot__risk {
  color: var(--text);
}
.cot__risk span {
  color: var(--dim);
  margin-right: 10px;
}
.cot__calc {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 2vw, 30px);
}
.cot__calc span {
  display: grid;
}
.cot__calc b {
  font-family: var(--display);
  font-size: clamp(60px, 11.5vh, 118px);
  line-height: 0.95;
  font-weight: 200;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
}
.cot__calc em {
  font-style: normal;
  color: var(--dim);
  font-size: 22px;
  padding-bottom: 28px;
}
.cot__calc .is-risk b {
  color: var(--amber);
}
.cot__track {
  position: relative;
  height: clamp(20px, 3.6vh, 34px);
}
.cot__ghost {
  position: absolute;
  inset: 0;
  border: 1px dashed rgb(255 178 77 / 0.55);
}
.cot__bar {
  --safe: 0;
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  background: color-mix(in oklab, var(--red), var(--green) calc(var(--safe) * 100%));
}
.cot__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}
.cot__moves {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cot__moves button {
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--line-2);
  color: var(--mute);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.5s var(--spring);
}
.cot__moves button[aria-pressed='true'] {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
  transform: translateY(-2px);
}
.cot__res {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.cot__res output {
  --safe: 0;
  font-family: var(--display);
  font-size: clamp(70px, 15vh, 150px);
  line-height: 0.86;
  font-weight: 200;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
  color: color-mix(in oklab, var(--amber), var(--green) calc(var(--safe) * 100%));
  min-width: 1.15em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 2 l'IA propose */
.ia {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.ia__list {
  display: grid;
  gap: 10px;
}
.ia__list li {
  --in: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(10px, 1.7vh, 17px) 14px;
  border: 1px dashed var(--line-2);
  opacity: var(--in);
  translate: calc((1 - var(--in)) * -36px) 0;
  transition: border-color 0.3s, background 0.3s;
}
.ia__list li > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ia__list li span {
  color: var(--text);
  transition: color 0.3s;
}
.ia__list li p {
  display: flex;
  gap: 6px;
  flex: none;
}
.ia__list button {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 7px 9px;
  border: 1px solid var(--line-2);
  color: var(--mute);
  transition: background 0.2s, color 0.2s;
}
.ia__list li[data-state='keep'] {
  border-style: solid;
  border-color: var(--green);
  background: rgb(141 243 187 / 0.08);
}
.ia__list li[data-state='keep'] [data-do='keep'] {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
}
.ia__list li[data-state='drop'] {
  border-color: var(--line);
}
.ia__list li[data-state='drop'] span {
  color: var(--dim);
  text-decoration: line-through;
}
.ia__list li[data-state='drop'] [data-do='drop'] {
  background: var(--mute);
  color: var(--ink);
  border-color: var(--mute);
}
.ia__gate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  color: var(--mute);
}
.ia__gate[data-ready='true'] {
  border-top-color: var(--green);
}
.ia__gate[data-ready='true'] span {
  color: var(--green);
}

/* 3 sites */
.sites svg,
.rel svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.sites .trunk {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
}
.sites .branch {
  fill: none;
  stroke: var(--green-2);
  stroke-width: 1;
}
.sites .dia {
  fill: var(--green);
}
.sites .pulse {
  fill: #eafff3;
}

/* 4 versions */
.vers {
  perspective: 1000px;
  perspective-origin: 30% 40%;
  overflow: clip;
}
.vers__stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.plate {
  --flash: 0;
  position: absolute;
  left: 2%;
  top: 5%;
  width: min(330px, 46%);
  height: 90%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    linear-gradient(150deg, rgb(150 255 205 / calc(0.13 + var(--flash) * 0.6)), rgb(30 120 85 / 0.1) 52%, transparent),
    #04160f;
  box-shadow:
    inset 0 0 0 1px rgb(190 255 225 / calc(0.32 + var(--flash) * 0.6)),
    0 0 calc(var(--flash) * 40px) rgb(120 240 180 / 0.5);
  transform-origin: 0 50%;
}
.plate p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.plate p b {
  font-weight: 400;
  color: var(--text);
}
.plate p span {
  color: var(--dim);
  font-size: 10px;
}
.plate > i {
  display: block;
  height: 1px;
  background: var(--line-2);
  margin-top: 16px;
}
.plate > i:nth-of-type(2n) {
  width: 72%;
}
.plate em {
  margin-top: auto;
  font-style: normal;
  font-size: 10px;
  color: var(--green);
}
.vers__count {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: linear-gradient(90deg, transparent, rgb(2 9 7 / 0.9) 26%);
  padding-left: 40px;
}
.vers__count b {
  font-family: var(--display);
  font-size: clamp(54px, 7.4vh, 84px);
  line-height: 1;
  font-weight: 200;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
  color: var(--green);
}

/* 5 actions */
.acts {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.acts__head,
.acts__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 0.56fr minmax(240px, 1.5fr);
  gap: 14px;
  align-items: center;
}
.acts__head {
  color: var(--dim);
  font-size: 10.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}
.acts__row {
  padding: clamp(10px, 2.2vh, 22px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.st {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-2);
  isolation: isolate;
  padding: 0;
}
.st i {
  font-size: 10.5px;
  text-align: center;
  padding: 9px 0;
  color: var(--dim);
  transition: color 0.2s;
}
.st i.on {
  color: var(--ink);
}
.st b {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  bottom: 0;
  width: 33.334%;
  background: var(--mute);
  transform-origin: 50% 50%;
}
.st[data-done='true'] b {
  background: var(--green);
}

/* 6 relance */
.rel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rel svg {
  flex: 1;
  min-height: 0;
}
.rel .string {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.4;
}
.rel .tick {
  stroke: var(--line-2);
}
.rel .drop rect {
  fill: var(--green);
}
.rel .drop--late rect {
  fill: var(--amber);
}
.rel__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.rel__notif {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--mute);
  min-width: 0;
}
.rel__notif[data-on='true'] span {
  color: var(--text);
}
.rel__notif[data-kind='late'] i {
  color: var(--amber);
}
.rel__mail {
  display: inline-flex;
  flex: none;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  color: var(--mute);
  font-size: 11px;
}
.rel__mail input {
  appearance: none;
  width: 30px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--line-2);
  position: relative;
  cursor: pointer;
}
.rel__mail input::after {
  content: '';
  position: absolute;
  inset: 2px auto 2px 2px;
  width: 10px;
  background: var(--mute);
  transition: translate 0.45s var(--spring), background 0.2s;
}
.rel__mail input:checked::after {
  translate: 14px 0;
  background: var(--green);
}

/* 7 pdf */
.pdf {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0;
}
.pdf__wires {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3.7vh, 36px);
  padding-top: clamp(30px, 6vh, 56px);
}
.pdf__wires i {
  display: block;
  height: 1px;
  background: var(--green);
  transform-origin: 100% 50%;
}
.pdf__page {
  flex: none;
  aspect-ratio: 210 / 297;
  height: 100%;
  max-width: 62%;
  padding: 7% 5%;
  background: #eef6f0;
  color: #0b211a;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.5),
    0 26px 80px rgb(40 200 140 / 0.2);
  transform-origin: 100% 50%;
  display: flex;
  flex-direction: column;
  gap: 8%;
  overflow: hidden;
}
.pdf__t {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: 'opsz' 60, 'wdth' 75;
  font-size: clamp(18px, 3vh, 28px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.pdf__page ol {
  display: grid;
  gap: 2px;
  flex: 1;
  counter-reset: s;
  align-content: start;
}
.pdf__page li {
  counter-increment: s;
  font-size: clamp(8.5px, 1.25vh, 11px);
  line-height: 1.2;
  padding: clamp(4px, 1vh, 9px) 0;
  border-bottom: 1px solid rgb(11 33 26 / 0.22);
}
.pdf__page li::before {
  content: counter(s) '.';
  margin-right: 8px;
  color: #1d6d48;
}

/* 8 france */
.fr {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 88px minmax(150px, 0.8fr);
  align-items: stretch;
}
.fr__zone {
  border: 1px solid var(--green-2);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}
.fr__label {
  color: var(--green);
}
.fr__nodes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fr__nodes span {
  padding: 7px 10px;
  background: var(--green);
  color: var(--ink);
  font-size: 11px;
}
.fr__log {
  display: grid;
  gap: 3px;
  margin-top: auto;
}
.fr__log li {
  display: flex;
  gap: 12px;
  opacity: 0;
  color: var(--mute);
  font-size: 11px;
}
.fr svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.fr svg path {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.2;
  stroke-dasharray: 7 7;
  vector-effect: non-scaling-stroke;
}
.fr__out {
  --in: 0;
  align-self: center;
  border: 1px dashed var(--line-2);
  padding: 12px;
  opacity: var(--in);
  translate: calc((1 - var(--in)) * -18px) 0;
  display: grid;
  gap: 4px;
}
.fr__out p {
  color: var(--text);
}
.fr__out span {
  color: var(--mute);
  font-size: 11px;
}

/* ---- étapes ---- */
.etapes {
  position: relative;
  padding: 30vh var(--gut) 40vh;
}
.etapes h2 {
  font-size: clamp(38px, 5vw, 92px);
  line-height: 1;
  font-weight: 200;
  letter-spacing: -0.014em;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
  margin-bottom: 10vh;
}
.etape {
  display: grid;
  grid-template-columns: clamp(64px, 12vw, 200px) minmax(0, 1fr) minmax(0, 34%);
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(28px, 5vh, 54px) 0 clamp(46px, 11vh, 110px);
  align-items: start;
}
.etape span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  padding-top: 0.6em;
}
.etape h3 {
  font-size: clamp(54px, 10vw, 190px);
  line-height: 0.92;
  font-weight: 200;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
}
.etape p {
  color: var(--mute);
  padding-top: 0.6em;
}

/* ---- liste d'attente ---- */
.liste {
  height: 240vh;
  position: relative;
}
.liste__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
}
.liste__intro {
  position: absolute;
  left: var(--gut);
  top: 76px;
  max-width: 21vw;
  min-width: 260px;
}
.liste__intro h2 {
  font-size: clamp(32px, 3.5vw, 60px);
  line-height: 1.02;
  font-weight: 200;
  letter-spacing: -0.012em;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
  margin-bottom: 14px;
}
.liste__who {
  position: absolute;
  left: var(--gut);
  bottom: 28px;
  max-width: 21em;
  color: var(--mute);
  font-size: 16px;
}
.wait {
  position: relative;
  width: min(420px, 84vw);
  display: grid;
  gap: 10px;
  z-index: 2;
}
.wait label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
}
.wait input {
  width: 100%;
  background: rgb(2 9 7 / 0.82);
  border: 0;
  border-bottom: 1px solid var(--green);
  padding: 14px 2px 12px 10px;
  font-size: 22px;
  font-weight: 250;
  font-variation-settings: 'opsz' 30, 'wdth' 84;
  color: var(--text);
  border-radius: 0;
}
.wait input::placeholder {
  color: var(--dim);
}
.wait input:focus-visible {
  outline-offset: 2px;
}
.wait button {
  width: 100%;
  text-align: center;
  padding: 18px;
}
.wait__note {
  min-height: 1.5em;
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  color: var(--green);
}

/* ---- faq + pied ---- */
.faq {
  position: relative;
  background: var(--ink);
  padding: 16vh var(--gut) 14vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
}
.faq h2 {
  font-size: clamp(38px, 5vw, 92px);
  line-height: 1;
  font-weight: 200;
  letter-spacing: -0.014em;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
}
.faq__list {
  border-top: 1px solid var(--line-2);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.15;
  font-weight: 250;
  font-variation-settings: 'opsz' 40, 'wdth' 82;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 25%;
  background: var(--green-2);
  rotate: 45deg;
  margin-top: 0.42em;
  transition: rotate 0.6s var(--spring), scale 0.6s var(--spring);
}
.faq details[open] summary::after {
  rotate: 225deg;
  scale: 1.35;
}
.faq details p {
  color: var(--mute);
  padding-bottom: 24px;
  max-width: 40em;
}
.pied {
  background: var(--ink);
  padding: 0 var(--gut) 12px;
  overflow: clip;
}
.pied p {
  font-size: 29.4vw;
  line-height: 0.84;
  font-weight: 200;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  color: var(--green-2);
  white-space: nowrap;
  padding-bottom: 0.04em;
}

/* ---- table empilée : mobile, mouvement réduit, écrans très bas ---- */
.stacked .dive {
  position: relative;
  height: calc((var(--dive) + 1) * 100vh);
}
.stacked .dive__cap {
  position: sticky;
  top: 40vh;
}
.stacked .table {
  padding: 0 var(--gut);
  position: relative;
  background: linear-gradient(to bottom, transparent, rgb(2 9 7 / 0.55) 30vh);
}
.stacked .row {
  padding: 18px 0 44px;
}
.stacked .row__in {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px 10px;
}
.stacked .row__n,
.stacked .row__title,
.stacked .row__tag {
  position: static;
}
.stacked .row__title {
  font-size: clamp(36px, 10.6vw, 60px);
  line-height: 1;
  height: auto;
  white-space: normal;
  color: var(--text);
}
.stacked .row__n {
  padding-top: 0.9em;
}
.stacked .row__tag {
  grid-column: 2;
}
.stacked .row__body {
  grid-column: 1 / -1;
  display: grid;
  gap: 20px;
  margin-top: 12px;
}
.stacked .mech {
  min-height: 300px;
}
.stacked .mech.sites {
  min-height: 0;
  aspect-ratio: 700 / 330;
}
.stacked .mech.rel {
  min-height: 220px;
}
.stacked .mech.pdf {
  height: 340px;
}
.stacked .mech.vers {
  height: 280px;
  min-height: 0;
}
.stacked .mech.acts,
.stacked .mech.ia,
.stacked .mech.cot,
.stacked .mech.fr {
  min-height: 0;
}

@media (min-width: 900px) {
  .stacked .row__body {
    grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
    gap: 40px;
  }
}

.still [data-reveal] {
  mask-image: none;
  transition: none;
}
.still .mask > span,
.still .hero__side,
.still .hero__fig {
  animation: none;
  translate: 0 0;
  opacity: 1;
}
.still .dive {
  display: none;
}
.still .loi,
.still .table,
.still .etapes,
.still .liste {
  background: rgb(2 9 7 / 0.93);
}
.still .liste {
  height: auto;
  padding: 18vh 0;
}
.still .liste__stage {
  position: static;
  height: auto;
  display: grid;
  gap: 40px;
}
.still .liste__intro,
.still .liste__who {
  position: static;
  max-width: 600px;
}

.no-webgl .dive {
  display: none;
}
.no-webgl main > section:not(.hero) {
  background: rgb(2 9 7 / 0.9);
}
.no-webgl .row,
.no-webgl .etape {
  border-top: 1px solid var(--line-2);
}

@media (max-width: 900px) {
  .hero__copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .hero__side {
    max-width: 30em;
  }
  .amende,
  .registre {
    max-width: none;
  }
  .loi::before {
    background: rgb(2 9 7 / 0.86);
    mask-image: none;
  }
  .registre > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .etape {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .etape p {
    grid-column: 2;
    padding-top: 0;
  }
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .acts__head {
    display: none;
  }
  .acts__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }
  .acts__row > span:first-child {
    grid-column: 1 / -1;
  }
  .acts__row .st {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  .ia__list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .fr {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .fr svg {
    height: 40px;
    transform: rotate(0deg);
  }
  .fr__zone {
    min-height: 210px;
  }
  .fr__out {
    align-self: auto;
  }
  .cot__foot {
    flex-direction: column;
    align-items: stretch;
  }
  .cot__res {
    justify-content: flex-end;
  }
  .rel__foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .plate {
    width: 56%;
  }
  .liste__intro {
    top: 66px;
    left: var(--gut);
    right: var(--gut);
    max-width: none;
  }
  .liste__stage {
    align-items: end;
    padding-bottom: 5vh;
  }
  .liste__who {
    left: var(--gut);
    right: var(--gut);
    top: 140px;
    bottom: auto;
    max-width: none;
    font-size: 15px;
  }
  .hero__fig {
    top: 74px;
  }
}

@media (max-height: 760px) and (min-width: 721px) {
  .hero__fig {
    display: none;
  }
}

@media (max-width: 720px) {
  .sites svg .lab {
    font-size: 24px;
  }
  .sites svg .lab--strong {
    font-size: 19px;
  }
  .sites svg .lab--dim,
  .rel .drop text {
    display: none;
  }
  .rel svg .lab--dim {
    display: block;
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: 15.4vw;
  }
  .nav__cta {
    font-size: 9.5px;
    padding: 9px 10px;
  }
  .amende__num {
    font-size: 25vw;
  }
  .hero__side {
    font-size: 15px;
  }
}
