/* ASA Systems — feuille de style
   Couleurs tirées du logo : noir et vert menthe. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-ext.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-ext.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #000000;
  --mint: #2bebba;
  --mint-dim: #1b9e7e;
  --paper: #eaf2ee;
  --fog: #8e9e97;
  --wire: #3a4843;
  --panel: #050a08;

  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --ease: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* grain léger pour éviter l'aplat numérique */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 50;
}

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

a { color: inherit; }

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

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

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--mint); color: var(--ink);
  padding: .5rem .9rem; border-radius: 6px; z-index: 100;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--mint);
  color: var(--ink);
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  transition: transform .25s var(--ease), background-color .25s;
}
.btn:hover { background: #5ff5cf; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--small { font-size: .95rem; padding: .6rem 1.1rem; }

.link {
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: var(--mint-dim);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { color: var(--mint); text-decoration-color: var(--mint); }

/* ---------- En-tête ---------- */

.site-header {
  position: relative;
  z-index: 20;
  padding: .75rem var(--gutter) 0;
}

.nav {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo { flex: none; margin-left: -.6rem; }
.nav__logo img { height: 64px; width: auto; }

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  color: var(--fog);
  font-size: .98rem;
  transition: color .2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--paper); }

.nav__toggle { display: none; }
.nav__legal { display: none; }

/* Bouton à trois lignes et son menu */
.more {
  position: relative;
  margin-left: -1rem;
}

.more__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--wire);
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.more__btn:hover { border-color: var(--fog); }
.more__btn[aria-expanded="true"] { border-color: var(--mint); background: #07110d; }

.more__lines {
  display: grid;
  gap: 3px;
  width: 15px;
}
.more__lines i {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.more__lines i:nth-child(2) { width: 70%; justify-self: end; }
.more__btn[aria-expanded="true"] .more__lines i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.more__btn[aria-expanded="true"] .more__lines i:nth-child(2) { opacity: 0; }
.more__btn[aria-expanded="true"] .more__lines i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.more__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: .4rem;
  background: var(--panel);
  border: 1px solid #1d2b26;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  transform-origin: top right;
  animation: menu-in .22s var(--ease);
}
.more__menu[hidden] { display: none; }
.more__menu a {
  display: block;
  padding: .7rem .85rem;
  border-radius: 9px;
  text-decoration: none;
  font-size: .95rem;
  color: var(--paper);
  transition: background-color .15s, color .15s;
}
.more__menu a:hover,
.more__menu a:focus-visible { background: #0e1a16; color: var(--mint); }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: none; }
}

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

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4.5rem) var(--gutter) clamp(3rem, 8vh, 6rem);
  min-height: calc(100svh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero__title {
  margin: 0 0 1.75rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.8vw, 4.3rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__title-a { font-weight: 800; }
.hero__title-b {
  font-weight: 400;
  color: #c9d6d0;
  margin-top: .08em;
}

.hero__lede {
  max-width: 34rem;
  margin: 0 0 2.25rem;
  color: var(--fog);
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

/* ---------- Schéma animé ---------- */

.flow {
  margin: 0;
  width: 100%;
  max-width: 500px;
  justify-self: end;
}

.flow__board {
  position: relative;
  aspect-ratio: 440 / 480;
  border: 1px solid #16231f;
  border-radius: 22px;
  background:
    radial-gradient(circle at 1px 1px, rgba(43, 235, 186, .13) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--panel);
  overflow: hidden;
}

.flow__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wires path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1.1s var(--ease), opacity .6s;
}
.wires--messy path {
  stroke: var(--wire);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}
.wires--clean path {
  stroke: var(--mint-dim);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  stroke-dashoffset: 1;
}
.wires--messy path:nth-child(2n) { transition-delay: .08s; }
.wires--messy path:nth-child(3n) { transition-delay: .16s; }
.wires--clean path:nth-child(2n) { transition-delay: .12s; }
.wires--clean path:nth-child(3n) { transition-delay: .24s; }

.pulses circle { fill: var(--mint); opacity: 0; transition: opacity .5s .9s; }

.task {
  position: absolute;
  left: calc(var(--x1) / 440 * 100%);
  top: calc(var(--y1) / 480 * 100%);
  transform: translate(-50%, -50%) rotate(var(--r1));
  padding: .42em .9em;
  font-size: clamp(.72rem, 1.6vw, .9rem);
  font-weight: 550;
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--wire);
  border-radius: 999px;
  transition:
    left .95s var(--ease),
    top .95s var(--ease),
    transform .95s var(--ease),
    border-color .6s,
    opacity .5s;
}
.task:nth-of-type(2n) { transition-delay: .05s; }
.task:nth-of-type(3n) { transition-delay: .1s; }

.core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
  border-radius: 50%;
  border: 2px solid var(--mint);
  background: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: clamp(.9rem, 2.2vw, 1.25rem);
  color: var(--mint);
  transition: transform .8s var(--ease) .35s, opacity .5s .35s;
}
.core::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--mint);
  opacity: 0;
}

.note {
  position: absolute;
  margin: 0;
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--mint);
  line-height: 1.1;
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.note--1 { right: 6%; bottom: 4%; transform: rotate(-4deg); color: var(--fog); }
.note--2 { left: 50%; bottom: 3.5%; transform: translateX(-50%) rotate(-2deg); white-space: nowrap; }
.note--3 { position: static; margin-top: 1.1rem; color: var(--fog); transform: rotate(-1.5deg); font-size: clamp(.95rem, 2vw, 1.15rem); }

/* Résultats */
.results {
  position: absolute;
  inset: 0;
  padding: 12% 10% 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s, visibility 0s .5s;
}
.results__row { display: grid; gap: .4rem; }
.results__label { font-size: clamp(.8rem, 1.7vw, .95rem); color: var(--paper); }
.bar {
  display: block;
  height: 9px;
  border-radius: 99px;
  width: var(--w);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease);
}
.bar--before { background: var(--wire); }
.bar--after { background: var(--mint); transition-delay: .35s; }
.results__row:nth-child(2) .bar { transition-delay: .12s; }
.results__row:nth-child(2) .bar--after { transition-delay: .47s; }
.results__row:nth-child(3) .bar { transition-delay: .24s; }
.results__row:nth-child(3) .bar--after { transition-delay: .59s; }

.results__legend {
  margin: .4rem 0 0;
  font-size: .82rem;
  color: var(--fog);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot--before { background: var(--wire); }
.dot--after { background: var(--mint); margin-left: .7rem; }

/* --- État 1 : comprendre --- */
.flow[data-step="1"] .note--1 { opacity: 1; transition-delay: .6s; }

/* --- État 2 : intégrer --- */
.flow[data-step="2"] .task {
  left: calc(var(--x2) / 440 * 100%);
  top: calc(var(--y2) / 480 * 100%);
  transform: translate(-50%, -50%) rotate(0deg);
  border-color: var(--mint-dim);
}
.flow[data-step="2"] .wires--messy path,
.flow[data-step="3"] .wires--messy path { stroke-dashoffset: 1; opacity: 0; }
.flow[data-step="2"] .wires--clean path { stroke-dashoffset: 0; transition-delay: .55s; }
.flow[data-step="2"] .wires--clean path:nth-child(2n) { transition-delay: .65s; }
.flow[data-step="2"] .wires--clean path:nth-child(3n) { transition-delay: .75s; }
.flow[data-step="2"] .pulses circle { opacity: 1; transition-delay: 1.4s; }
.flow[data-step="2"] .core { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.flow[data-step="2"] .core::after { animation: ping 2.4s ease-out 1.4s infinite; }
.flow[data-step="2"] .note--2 { opacity: 1; transition-delay: 1.3s; }

/* --- État 3 : mesurer --- */
.flow[data-step="3"] .task {
  left: calc(var(--x2) / 440 * 100%);
  top: calc(var(--y2) / 480 * 100%);
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: .06;
}
.flow[data-step="3"] .wires--clean path { stroke-dashoffset: 0; opacity: .08; }
.flow[data-step="3"] .core { transform: translate(-50%, -50%) scale(1); opacity: .06; }
.flow[data-step="3"] .note--3 { opacity: 1; transition-delay: 1.2s; }
.flow[data-step="3"] .results {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s .2s, visibility 0s;
}
.flow[data-step="3"] .bar { transform: scaleX(1); }

@keyframes ping {
  0% { transform: scale(1); opacity: .7; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}

/* Étapes */
.flow__steps { margin-top: 1.25rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.step {
  position: relative;
  appearance: none;
  background: none;
  border: 0;
  border-top: 2px solid #1d2925;
  padding: .85rem 0 0;
  text-align: left;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--fog);
  cursor: pointer;
  transition: color .2s;
}
.step:hover { color: var(--paper); }
.step[aria-selected="true"] { color: var(--paper); }
.step__n {
  display: inline-grid;
  place-items: center;
  width: 1.55em;
  height: 1.55em;
  margin-right: .3rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: .78em;
  font-weight: 700;
}
.step[aria-selected="true"] .step__n { background: var(--mint); border-color: var(--mint); color: var(--ink); }

.step__progress {
  position: absolute;
  left: 0;
  top: -2px;
  height: 2px;
  width: 100%;
  background: var(--mint);
  transform-origin: left;
  transform: scaleX(0);
}
.step[aria-selected="true"] .step__progress { transform: scaleX(1); }
.flow.is-auto .step[aria-selected="true"] .step__progress {
  animation: fill var(--dur, 5s) linear forwards;
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.step__text {
  margin: 1rem 0 0;
  min-height: 4.8em;
  color: var(--fog);
  font-size: .98rem;
  line-height: 1.55;
  max-width: 30rem;
}

/* ---------- Apparition au chargement ---------- */

.hero__text > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s var(--ease) forwards;
}
.hero__lede { animation-delay: .15s !important; }
.hero__actions { animation-delay: .3s !important; }
.flow { opacity: 0; animation: fade 1s ease .35s forwards; }

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

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

.services {
  --s-ink: #06110d;
  --s-green: #0a7a5e;
  background: var(--paper);
  color: var(--s-ink);
  border-radius: 28px 28px 0 0;
  position: relative;
  z-index: 1;
}

.services__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter) clamp(4rem, 8vw, 6.5rem);
}

.services__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.9vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.section-title span { display: block; }
.section-title__a { font-weight: 800; }
.section-title__b { font-weight: 400; color: #3d5249; }

.services__intro {
  margin: 0;
  max-width: 30rem;
  color: #3d5249;
  font-size: 1.08rem;
}

/* Les trois services, en séquence */
.offer {
  list-style: none;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
}

.offer__item {
  border-top: 2px solid var(--s-ink);
  padding-top: 1.4rem;
}

.offer__n {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--s-ink);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 1.1rem;
}

.offer__title {
  margin: 0 0 .6rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.offer__item p {
  margin: 0;
  color: #3d5249;
  max-width: 24rem;
}

/* Le panneau des métriques */
.metrics {
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(1.75rem, 4.5vw, 3.75rem);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.metrics__kicker {
  margin: 0 0 .35rem;
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--mint);
  transform: rotate(-2deg);
  transform-origin: left;
}

.metrics__title {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.metrics__text > p:not(.metrics__kicker) {
  margin: 0 0 1.5rem;
  color: var(--fog);
  max-width: 32rem;
}

.metrics__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}
.metrics__list li {
  position: relative;
  padding-left: 1.6rem;
}
.metrics__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .9rem;
  height: .45rem;
  border-left: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}

/* Le registre : questions → chiffres */
.ledger {
  border: 1px solid #16231f;
  border-radius: 18px;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  background:
    radial-gradient(circle at 1px 1px, rgba(43, 235, 186, .1) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--panel);
}

.ledger__switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--wire);
  margin-bottom: 1rem;
}
.ledger__opt {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fog);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s;
}
.ledger__opt[aria-pressed="true"] { background: var(--mint); color: var(--ink); }
.ledger__opt:not([aria-pressed="true"]):hover { color: var(--paper); }

.ledger__rows { list-style: none; margin: 0; padding: 0; }

.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 1rem;
  padding: .95rem 0;
  border-top: 1px solid #16231f;
}
.ledger__q { font-size: .98rem; line-height: 1.4; }

.ledger__a {
  position: relative;
  height: 40px;
  display: grid;
  place-items: center;
}
.ledger__unknown {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--wire);
  transition: opacity .35s, transform .45s var(--ease);
}
.spark {
  position: absolute;
  inset: 2px 0;
  width: 100%;
  height: 36px;
  overflow: visible;
}
.spark polyline {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease);
}

.ledger[data-state="apres"] .ledger__unknown { opacity: 0; transform: scale(.6); }
.ledger[data-state="apres"] .spark polyline { stroke-dashoffset: 0; }
.ledger[data-state="apres"] .ledger__row:nth-child(2) polyline { transition-delay: .12s; }
.ledger[data-state="apres"] .ledger__row:nth-child(3) polyline { transition-delay: .24s; }
.ledger[data-state="apres"] .ledger__row:nth-child(4) polyline { transition-delay: .36s; }

.ledger__note {
  margin: .6rem 0 0;
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--fog);
  transform: rotate(-1.5deg);
  transform-origin: left;
}
.ledger[data-state="apres"] .ledger__note { color: var(--mint); }

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

.contact {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}

.contact__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.section-title--hero {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  margin-bottom: 1.5rem;
}
.contact .section-title__b { color: #c9d6d0; }

.contact__lede {
  margin: 0 0 2.5rem;
  max-width: 32rem;
  color: var(--fog);
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
}

.contact__info {
  margin: 0;
  display: grid;
  gap: 1.4rem;
}
.contact__info dt {
  font-size: .9rem;
  color: var(--fog);
  margin-bottom: .2rem;
}
.contact__info dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 550;
  overflow-wrap: anywhere;
}

/* Formulaire */
.form {
  background: var(--paper);
  color: #06110d;
  border-radius: 24px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.form__title {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .4rem;
}
.field__opt { font-weight: 400; color: #5a6e65; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: #06110d;
  background: #fff;
  border: 1.5px solid #b9cbc2;
  border-radius: 12px;
  padding: .8rem .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 8.5rem; line-height: 1.5; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #0a7a5e;
  box-shadow: 0 0 0 3px rgba(10, 122, 94, .2);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b4321f; }
.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 50, 31, .18); }

.field__error {
  margin: .4rem 0 0;
  font-size: .88rem;
  color: #a12a18;
}

.form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__submit {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  margin-top: .5rem;
  background: #06110d;
  color: var(--paper);
}
.form__submit:hover { background: #0a7a5e; color: #fff; }
.form__submit:disabled { opacity: .6; cursor: progress; transform: none; }
.form .btn:focus-visible { outline-color: #0a7a5e; }

.form__status {
  margin: 1rem 0 0;
  font-size: .98rem;
}
.form__status:empty { display: none; }
.form__status.is-ok {
  color: #075c46;
  font-weight: 600;
}
.form__status.is-error { color: #a12a18; }
.form__status a { color: inherit; }

/* Carte */
.where {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.where__title {
  margin: 0 0 .9rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
}
.where__head p { margin: 0; color: var(--fog); max-width: 24rem; }

.where__map { position: relative; }

.map {
  height: clamp(320px, 42vw, 460px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #16231f;
  background: var(--panel);
}

/* carte assombrie pour suivre le reste du site */
.map .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.35);
}
.map .leaflet-control-attribution {
  background: rgba(0, 0, 0, .65);
  color: var(--fog);
  font-size: 11px;
}
.map .leaflet-control-attribution a { color: var(--paper); }
.map .leaflet-bar a {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: var(--wire);
}
.map .leaflet-bar a:hover { background: #111a17; }
.map .leaflet-bar { border: 1px solid var(--wire); }
.map .leaflet-interactive { cursor: grab; }

.map__note {
  position: absolute;
  right: 1.25rem;
  top: 1rem;
  margin: 0;
  z-index: 500;
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--mint);
  transform: rotate(-3deg);
  pointer-events: none;
  text-shadow: 0 1px 6px #000;
}

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

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 1.5rem;
  }
  .flow { justify-self: start; max-width: 520px; }

  .services__head,
  .metrics { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .offer__item {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    column-gap: .75rem;
  }
  .offer__item .offer__n { grid-row: span 2; margin: 0; }

  .contact__top,
  .where { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .ledger__row { grid-template-columns: minmax(0, 1fr) 84px; gap: .75rem; }
  .ledger__q { font-size: .92rem; }
}

@media (max-width: 760px) {
  .nav { gap: 1rem; }
  .nav__logo img { height: 52px; }
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--wire);
    border-radius: 50%;
    color: var(--paper);
    cursor: pointer;
    order: 3;
  }
  .nav__toggle-bars,
  .nav__toggle-bars::before {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    position: relative;
    transition: transform .3s var(--ease);
  }
  .nav__toggle-bars::before { content: ""; position: absolute; top: 5px; }
  .nav__toggle-bars { transform: translateY(-2.5px); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars { transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(-5px) rotate(-90deg); }

  .nav__links {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: .5rem 1.25rem;
    background: var(--panel);
    border: 1px solid #16231f;
    border-radius: 16px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .more { display: none; }
  .nav__legal { display: list-item; }
  .nav__links .nav__legal a { font-size: .95rem; color: var(--fog); padding: .65rem 0; }
  .nav__links li.nav__legal--first { border-top-color: var(--wire); margin-top: .35rem; padding-top: .35rem; }
  .nav__links a { display: block; padding: .8rem 0; font-size: 1.1rem; color: var(--paper); }
  .nav__links li + li { border-top: 1px solid #16231f; }

  .hero__title { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .step { font-size: .9rem; }
}

@media (max-width: 440px) {
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .steps { gap: .35rem; }
  .step { font-size: .82rem; }
  .step__n { margin-right: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .pulses { display: none; }
}

/* ---------- Pages documents (politique, conditions) ---------- */

body.doc {
  background: #ffffff;
  color: #111614;
}
body.doc::after { display: none; }

.doc__bar {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 0;
}
.doc__back {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  color: #111614;
}
.doc__back:hover { color: #0a7a5e; }

.doc__page {
  max-width: 760px;
  min-height: 70vh;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) var(--gutter) 5rem;
}
.doc__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -.025em;
  line-height: 1.05;
}
.doc :focus-visible { outline-color: #0a7a5e; }
