/* ============================================================
   ORBYA FOR EARTH — « WHEN DIGITAL MEETS NATURE »
   Escale Terre · forêt immersive, parcours en 3 étapes,
   compteurs confirmés et transparence Tree-Nation.
   ============================================================ */

.oe {
  --oe-night: #02060d;
  --oe-deep: #05131a;
  --oe-forest: #0b3a2c;
  --oe-emerald: #3ee89a;
  --oe-mint: #9dffc9;
  --oe-cyan: #28d8ff;
  --oe-sun: #ffe6b0;
  --oe-ink: #f2fbf6;
  --oe-muted: rgba(226, 244, 236, .74);
  --oe-faint: rgba(226, 244, 236, .5);
  --oe-line: rgba(62, 232, 154, .18);
  --oe-ease: cubic-bezier(.22, .61, .36, 1);
  --oe-grad: linear-gradient(115deg, var(--oe-mint) 0%, var(--oe-emerald) 45%, var(--oe-cyan) 100%);

  position: relative;

  display: grid;
  gap: clamp(64px, 8vw, 112px);

  margin-top: clamp(64px, 9vw, 128px);

  color: var(--oe-ink);
}

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

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

.oe-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin: 0;

  color: var(--oe-emerald);

  font-family: "JetBrains Mono", "Space Grotesk", monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.oe-kicker::before {
  content: "";

  width: 34px;
  height: 1px;

  background: linear-gradient(90deg, var(--oe-emerald), transparent);
}

.oe-h {
  margin: 18px 0 0;

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
}

.oe-h span,
.oe-title__accent {
  display: block;

  color: transparent;
  background: var(--oe-grad);
  background-clip: text;
  -webkit-background-clip: text;
}

.oe-h--sm {
  font-size: clamp(26px, 3vw, 38px);
}

/* ------------------------------------------------------------
   1 · HERO
   ------------------------------------------------------------ */

.oe-hero {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: stretch;

  overflow: hidden;

  background:
    radial-gradient(120% 90% at 100% 100%, rgba(30, 140, 96, .28), transparent 60%),
    radial-gradient(80% 70% at 0% 0%, rgba(40, 216, 255, .08), transparent 60%),
    linear-gradient(180deg, #030914 0%, #04121a 55%, #06201c 100%);

  border: 1px solid var(--oe-line);
  border-radius: 32px;

  box-shadow:
    0 40px 120px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(157, 255, 201, .08);

  isolation: isolate;
}

/* Fines étoiles statiques derrière le texte : continuité avec l'espace */
.oe-hero::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1.4px 1.4px at 41% 12%, rgba(255, 255, 255, .75), transparent),
    radial-gradient(1px 1px at 8% 82%, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1px 1px at 35% 88%, rgba(255, 255, 255, .3), transparent),
    radial-gradient(1.2px 1.2px at 21% 40%, rgba(157, 255, 201, .5), transparent);

  opacity: .8;
  pointer-events: none;
}

.oe-hero__copy {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(40px, 5.5vw, 76px) 0 clamp(40px, 5.5vw, 76px) clamp(28px, 5vw, 68px);
}

.oe-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.oe-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin: 0;
  padding: 7px 14px;

  color: #ffe9c2;

  background: rgba(255, 196, 92, .08);
  border: 1px solid rgba(255, 210, 122, .3);
  border-radius: 999px;

  font-family: "JetBrains Mono", "Space Grotesk", monospace;
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.oe-badge__dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #ffd27a;
  box-shadow: 0 0 0 0 rgba(255, 210, 122, .6);

  animation: oe-pulse 2.6s ease-out infinite;
}

.oe-title {
  margin: 26px 0 0;

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 4.3vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}

.oe-title > span {
  display: block;
}

.oe-title__accent {
  padding-bottom: .08em;
}

.oe-lead {
  max-width: 520px;
  margin: 26px 0 0;

  color: var(--oe-ink);

  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
}

.oe-text {
  max-width: 520px;
  margin: 16px 0 0;

  color: var(--oe-muted);

  font-size: 15.5px;
  line-height: 1.7;
}

.oe-note {
  max-width: 520px;
  margin: 18px 0 0;
  padding-left: 14px;

  color: var(--oe-faint);

  border-left: 2px solid rgba(255, 210, 122, .45);

  font-size: 13.5px;
  line-height: 1.6;
}

.oe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 34px;
}

.oe-btn {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 50px;
  padding: 14px 26px;

  border-radius: 999px;

  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;

  transition:
    transform .3s var(--oe-ease),
    box-shadow .3s var(--oe-ease),
    background-color .3s,
    border-color .3s;
}

.oe-btn--primary {
  color: #03180f;

  background: var(--oe-grad);

  box-shadow: 0 14px 40px rgba(62, 232, 154, .28);
}

.oe-btn--primary:hover,
.oe-btn--primary:focus-visible {
  transform: translateY(-2px);

  box-shadow: 0 20px 56px rgba(62, 232, 154, .45);
}

.oe-btn--ghost {
  color: var(--oe-ink);

  background: rgba(255, 255, 255, .02);
  border: 1.5px solid rgba(226, 244, 236, .26);
}

.oe-btn--ghost:hover,
.oe-btn--ghost:focus-visible {
  transform: translateY(-2px);

  background: rgba(62, 232, 154, .08);
  border-color: rgba(62, 232, 154, .6);
}

.oe a:focus-visible,
.oe button:focus-visible {
  outline: 2px solid var(--oe-mint);
  outline-offset: 4px;
}

/* ---- Scène forestière ---- */

.oe-figure {
  position: relative;

  min-width: 0;
  min-height: 640px;
  margin: 0;
}

/* Bureau : la scène occupe toute la hauteur de la colonne droite. */
.oe-figure .oe-scene {
  position: absolute;
  inset: 0;

  height: 100%;
  aspect-ratio: auto;
}

.oe-scene {
  --mx: 0;
  --my: 0;
  --sp: 0;

  position: relative;

  width: 100%;
  aspect-ratio: 600 / 640;

  overflow: hidden;

  /* Fond de secours (avant génération ou sans JavaScript) */
  background:
    radial-gradient(60% 35% at 40% 72%, rgba(62, 232, 154, .22), transparent 70%),
    linear-gradient(180deg, #02040c 0%, #061424 45%, #0a2a2c 72%, #041410 100%);

  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%);
}

.oe-l {
  --k: 0;
  --ks: 0;

  position: absolute;
  inset: 0;

  transform:
    translate3d(
      calc(var(--mx) * var(--k) * 1px),
      calc((var(--sp) * var(--ks) + var(--my) * var(--k)) * 1px),
      0
    );

  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
  will-change: transform;
  pointer-events: none;
}

.oe-l > .oe-li,
.oe-l > svg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
}

.oe-li > svg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
}

.oe-li > svg {
  transform: scale(var(--zoom, 1));
  transform-origin: 50% 100%;
}

.oe-l svg {
  display: block;
  overflow: visible;
}

.oe-far   { --k: 3;  --ks: 16; }
.oe-mid   { --k: 6;  --ks: 9;  }
.oe-tree  { --k: 9;  --ks: 0;  }
.oe-fg    { --k: 14; --ks: -10; }
.oe-rays  { --k: 2;  --ks: 6;  }
.oe-parts { --k: 11; --ks: -4; }

/* Rayons de lumière */
.oe-ray {
  position: absolute;
  top: -12%;

  width: var(--w, 14%);
  height: 92%;
  left: var(--x, 20%);

  background: linear-gradient(180deg, rgba(255, 236, 190, .5) 0%, rgba(190, 255, 220, .16) 45%, transparent 85%);

  transform: rotate(-17deg);
  transform-origin: 50% 0;

  filter: blur(8px);
  mix-blend-mode: screen;

  opacity: 0;
}

/* Brume */
.oe-mist {
  position: absolute;
  left: -20%;

  width: 140%;
  height: var(--h, 14%);
  top: var(--y, 70%);

  background: radial-gradient(50% 50% at 50% 50%, rgba(170, 230, 215, var(--a, .16)), transparent 70%);

  filter: blur(6px);

  opacity: 0;
}

/* Particules lumineuses */
.oe-p {
  position: absolute;
  left: var(--x);
  top: var(--y);

  width: var(--s, 3px);
  height: var(--s, 3px);

  border-radius: 50%;

  background: var(--oe-mint);
  box-shadow: 0 0 8px 2px rgba(62, 232, 154, .55);

  opacity: 0;
}

/* Éléments SVG de l'arbre */
.oe-br {
  fill: none;
  stroke: url(#oe-bark);
  stroke-linecap: round;

  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;

  opacity: 0;

  transition:
    stroke-dashoffset var(--d, .6s) var(--oe-ease) calc(var(--t) * 1s),
    opacity .01s linear calc(var(--t) * 1s);
}

.oe-trunk {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);

  transition: transform 1s cubic-bezier(.3, .7, .2, 1) .55s;
}

.oe-lf {
  transform-box: fill-box;
  transform-origin: 50% 60%;
  transform: scale(.15);

  opacity: 0;

  transition:
    transform .9s cubic-bezier(.2, .9, .3, 1.15) calc(var(--t) * 1s),
    opacity .6s ease calc(var(--t) * 1s);
}

.oe-sprout {
  opacity: 0;

  transition: opacity .5s ease .25s;
}

.oe-sprout path {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;

  transition: stroke-dashoffset .7s var(--oe-ease) .3s;
}

.oe-seed {
  transform-box: fill-box;
  transform-origin: 50% 50%;

  opacity: 0;
}

.oe-far .oe-li,
.oe-mid .oe-li {
  opacity: 0;
  transform: translate3d(0, 18px, 0);

  transition:
    opacity 1.5s var(--oe-ease) var(--rd, 2.4s),
    transform 1.8s var(--oe-ease) var(--rd, 2.4s);
}

.oe-far .oe-li { --rd: 2.9s; }
.oe-mid .oe-li { --rd: 2.5s; }

.oe-rays .oe-li,
.oe-mists .oe-li {
  opacity: 0;

  transition: opacity 2s ease 3s;
}

/* --- États : growing / grown --- */

.oe-scene[data-state="growing"] .oe-br,
.oe-scene[data-state="grown"] .oe-br,
.oe-scene[data-state="growing"] .oe-sprout path,
.oe-scene[data-state="grown"] .oe-sprout path {
  stroke-dashoffset: 0;
  opacity: 1;
}

.oe-scene[data-state="growing"] .oe-trunk,
.oe-scene[data-state="grown"] .oe-trunk {
  transform: scaleY(1);
}

.oe-scene[data-state="growing"] .oe-lf,
.oe-scene[data-state="grown"] .oe-lf {
  transform: none;
  opacity: 1;
}

.oe-scene[data-state="growing"] .oe-far .oe-li,
.oe-scene[data-state="growing"] .oe-mid .oe-li,
.oe-scene[data-state="grown"] .oe-far .oe-li,
.oe-scene[data-state="grown"] .oe-mid .oe-li {
  opacity: 1;
  transform: none;
}

.oe-scene[data-state="growing"] .oe-rays .oe-li,
.oe-scene[data-state="growing"] .oe-mists .oe-li,
.oe-scene[data-state="grown"] .oe-rays .oe-li,
.oe-scene[data-state="grown"] .oe-mists .oe-li {
  opacity: 1;
}

.oe-scene[data-state="growing"] .oe-sprout {
  opacity: 1;
  animation: oe-sprout-out 1.8s ease 1.1s forwards;
}

.oe-scene[data-state="growing"] .oe-seed {
  animation: oe-seed 2.2s var(--oe-ease) forwards;
}

.oe-scene[data-state="grown"] .oe-seed {
  opacity: .5;
}

.oe-scene[data-state="grown"] .oe-sprout {
  opacity: 0;
}

/* L'état final n'anime rien (arrivée directe, animations réduites). */
.oe-scene[data-state="grown"].is-instant * {
  transition: none !important;
}

/* --- Vie de la scène (uniquement visible, sans animations réduites) --- */

.oe-scene[data-state] .oe-ray {
  opacity: var(--o, .5);
  animation: oe-breathe var(--dur, 9s) ease-in-out var(--del, 0s) infinite alternate;
}

.oe-scene[data-state] .oe-mist {
  opacity: 1;
  animation: oe-drift var(--dur, 26s) ease-in-out infinite alternate;
}

.oe-scene[data-state] .oe-p {
  animation: oe-float var(--dur, 9s) ease-in-out var(--del, 0s) infinite;
}

.oe-tree .oe-sway {
  transform-origin: 55% 90%;
}

.oe-scene[data-state="grown"] .oe-tree .oe-sway {
  animation: oe-sway 9s ease-in-out infinite alternate;
}

.oe-scene:not(.is-visible) *,
.oe-scene:not(.is-visible) {
  animation-play-state: paused !important;
}

.oe-figure__caption {
  position: absolute;
  left: 18%;
  right: 24px;
  bottom: 24px;
  z-index: 3;

  display: flex;
  align-items: center;
  gap: 12px;

  color: rgba(242, 251, 246, .88);

  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;

  text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
}

.oe-figure__line {
  flex: 0 0 auto;

  width: 26px;
  height: 1px;

  background: var(--oe-emerald);
  box-shadow: 0 0 10px var(--oe-emerald);
}

/* ------------------------------------------------------------
   2 · COMMENT ÇA FONCTIONNE
   ------------------------------------------------------------ */

/* Fond sombre propre : lisible quel que soit le ciel de l'escale. */
.oe-how,
.oe-tn {
  position: relative;

  padding: clamp(32px, 5vw, 64px);

  background:
    radial-gradient(60% 80% at 50% 0%, rgba(62, 232, 154, .08), transparent 70%),
    linear-gradient(180deg, rgba(3, 9, 16, .9), rgba(4, 14, 18, .94));

  border: 1px solid var(--oe-line);
  border-radius: 32px;

  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.oe-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.oe-steps {
  position: relative;
}

.oe-roots {
  position: absolute;
  top: 6px;
  left: 4%;
  z-index: 0;

  width: 92%;
  height: 112px;

  overflow: visible;
  pointer-events: none;
}

.oe-roots path {
  fill: none;
  stroke: url(#oe-root-grad);
  stroke-linecap: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;

  transition: stroke-dashoffset 2.2s var(--oe-ease) .3s;
}

.oe-roots__main {
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(62, 232, 154, .55));
}

.oe-roots__twig {
  stroke-width: 1.2;
  opacity: .6;
  transition-delay: 1.4s !important;
}

.oe-steps.in .oe-roots path {
  stroke-dashoffset: 0;
}

.oe-steps__list {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);

  margin: 0;
  padding: 0;

  list-style: none;
}

.oe-step {
  position: relative;

  padding: 30px 28px 32px;

  overflow: hidden;

  background: linear-gradient(180deg, rgba(8, 26, 30, .86), rgba(4, 12, 18, .9));

  border: 1px solid rgba(157, 255, 201, .12);
  border-radius: 24px;

  opacity: 0;
  transform: translateY(26px);

  transition:
    opacity .8s var(--oe-ease) var(--sd, 0s),
    transform .8s var(--oe-ease) var(--sd, 0s),
    border-color .35s;
}

.oe-step:nth-child(2) { --sd: .18s; }
.oe-step:nth-child(3) { --sd: .36s; }

.oe-steps.in .oe-step {
  opacity: 1;
  transform: none;
}

[data-earth-glow]::before {
  content: "";

  position: absolute;
  inset: 0;

  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), rgba(62, 232, 154, .16), transparent 65%);

  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

[data-earth-glow]:hover::before {
  opacity: 1;
}

.oe-step:hover {
  border-color: rgba(62, 232, 154, .36);
}

.oe-step__icon,
.oe-stat__icon {
  position: relative;

  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  color: var(--oe-mint);

  background: radial-gradient(circle at 35% 30%, rgba(62, 232, 154, .28), rgba(6, 30, 26, .95) 70%);
  border: 1px solid rgba(62, 232, 154, .4);
  border-radius: 50%;

  box-shadow: 0 0 0 6px rgba(3, 9, 14, .9), 0 0 30px rgba(62, 232, 154, .22);
}

.oe-step__icon svg,
.oe-stat__icon svg,
.oe-tn__mark svg {
  width: 28px;
  height: 28px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.oe-step__num {
  position: absolute;
  top: 28px;
  right: 26px;

  color: rgba(157, 255, 201, .4);

  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 2px;
}

.oe-step h4 {
  margin: 26px 0 10px;

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.oe-step p {
  margin: 0;

  color: var(--oe-muted);

  font-size: 15px;
  line-height: 1.65;
}

.oe-how__note {
  margin: 26px 0 0;

  color: var(--oe-faint);

  font-size: 13.5px;
  text-align: center;
}

/* ------------------------------------------------------------
   3 · NOTRE FORÊT GRANDIT
   ------------------------------------------------------------ */

.oe-impact {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px clamp(32px, 5vw, 72px);
  align-items: center;

  padding: clamp(32px, 5vw, 64px);

  overflow: hidden;

  background:
    radial-gradient(70% 90% at 85% 120%, rgba(62, 232, 154, .18), transparent 65%),
    linear-gradient(160deg, rgba(5, 19, 26, .94), rgba(3, 8, 14, .96));

  border: 1px solid var(--oe-line);
  border-radius: 32px;
}

.oe-impact__msg {
  margin: 20px 0 0;

  color: var(--oe-muted);

  font-size: 16px;
  line-height: 1.6;
}

.oe-impact[data-earth-state="empty"] .oe-impact__msg {
  color: var(--oe-mint);

  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 500;
}

.oe-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;

  margin: 0;
}

.oe-stat {
  position: relative;

  display: grid;
  grid-template-areas:
    "icon"
    "value"
    "label";
  align-content: start;

  min-height: 210px;
  padding: 26px 24px;

  overflow: hidden;

  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(157, 255, 201, .12);
  border-radius: 22px;
}

.oe-stat__icon {
  grid-area: icon;

  width: 46px;
  height: 46px;

  box-shadow: 0 0 24px rgba(62, 232, 154, .2);
}

.oe-stat__icon svg {
  width: 22px;
  height: 22px;
}

.oe-stat dd {
  grid-area: value;

  min-height: 1em;
  margin: 26px 0 8px;

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(46px, 5.4vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.oe-stat dt {
  grid-area: label;

  color: var(--oe-muted);

  font-size: 14px;
  line-height: 1.45;
}

.oe-impact[data-earth-state="loading"] .oe-stat dd {
  width: 2.2ch;

  color: transparent;

  background: linear-gradient(90deg, rgba(157, 255, 201, .06), rgba(157, 255, 201, .2), rgba(157, 255, 201, .06));
  background-size: 200% 100%;
  border-radius: 10px;

  animation: oe-shimmer 1.4s linear infinite;
}

.oe-impact[data-earth-state="error"] .oe-stat dd {
  color: var(--oe-faint);
}

.oe-grove {
  grid-column: 1 / -1;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;

  height: 64px;
  padding: 0 4px;

  border-bottom: 1px solid rgba(157, 255, 201, .16);
}

.oe-grove svg {
  flex: 1 1 0;

  max-width: 44px;
  height: auto;

  overflow: visible;
}

.oe-grove .oe-sap {
  fill: none;
  stroke: rgba(226, 244, 236, .18);
  stroke-width: 1.4;
  stroke-dasharray: 3 3;
  transition: fill .8s ease, stroke .8s ease, filter .8s ease;
}

.oe-grove .is-lit .oe-sap {
  fill: rgba(62, 232, 154, .55);
  stroke: var(--oe-mint);
  stroke-dasharray: none;
  filter: drop-shadow(0 0 6px rgba(62, 232, 154, .6));
}

.oe-grove__more {
  align-self: center;

  color: var(--oe-mint);

  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.oe-impact__foot {
  grid-column: 1 / -1;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.oe-status {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0;

  color: var(--oe-faint);

  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: .4px;
}

.oe-status::before {
  content: "";

  flex: 0 0 auto;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--oe-faint);
}

.oe-impact[data-earth-state="ready"] .oe-status::before,
.oe-impact[data-earth-state="empty"] .oe-status::before {
  background: var(--oe-emerald);
  box-shadow: 0 0 8px var(--oe-emerald);
}

.oe-impact[data-earth-state="error"] .oe-status {
  color: #ffd9a0;
}

.oe-impact[data-earth-state="error"] .oe-status::before {
  background: #ffb84d;
}

.oe-retry {
  min-height: 40px;
  padding: 8px 18px;

  color: var(--oe-ink);

  background: transparent;
  border: 1px solid rgba(226, 244, 236, .3);
  border-radius: 999px;

  font: 500 13px "Space Grotesk", sans-serif;

  cursor: pointer;

  transition: background-color .3s, border-color .3s;
}

.oe-retry:hover {
  background: rgba(62, 232, 154, .08);
  border-color: rgba(62, 232, 154, .6);
}

.oe-impact__legal {
  grid-column: 1 / -1;

  margin: 0;

  color: var(--oe-faint);

  font-size: 12.5px;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   4 · TREE-NATION
   ------------------------------------------------------------ */

.oe-tn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;

}

.oe-tn__mark {
  display: grid;
  place-items: center;

  width: 76px;
  height: 76px;

  color: var(--oe-mint);

  border: 1px solid rgba(62, 232, 154, .3);
  border-radius: 50%;

  background: radial-gradient(circle, rgba(62, 232, 154, .14), transparent 70%);
}

.oe-tn__mark svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.3;
}

.oe-tn__mark svg circle {
  stroke-opacity: .35;
}

.oe-tn__copy > p:not(.oe-kicker) {
  max-width: 640px;
  margin: 18px 0 0;

  color: var(--oe-muted);

  font-size: 15.5px;
  line-height: 1.7;
}

.oe-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 20px;
  padding: 6px 0;

  color: var(--oe-mint);

  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;

  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;

  transition: background-size .4s var(--oe-ease);
}

.oe-link:hover,
.oe-link:focus-visible {
  background-size: 100% 1px;
}

/* ------------------------------------------------------------
   Keyframes
   ------------------------------------------------------------ */

@keyframes oe-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 210, 122, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 210, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 210, 122, 0); }
}

@keyframes oe-seed {
  0%   { opacity: 0; transform: scale(.2); }
  18%  { opacity: 1; transform: scale(1.35); }
  45%  { opacity: .9; transform: scale(1); }
  100% { opacity: .5; transform: scale(1); }
}

@keyframes oe-sprout-out {
  to { opacity: 0; }
}

@keyframes oe-sway {
  from { transform: rotate(-.45deg); }
  to   { transform: rotate(.55deg); }
}

@keyframes oe-breathe {
  from { opacity: calc(var(--o, .5) * .55); }
  to   { opacity: var(--o, .5); }
}

@keyframes oe-drift {
  from { transform: translate3d(-4%, 0, 0); }
  to   { transform: translate3d(4%, -6px, 0); }
}

@keyframes oe-float {
  0%   { opacity: 0; transform: translate3d(0, 0, 0); }
  20%  { opacity: var(--o, .8); }
  80%  { opacity: var(--o, .8); }
  100% { opacity: 0; transform: translate3d(var(--dx, 10px), -60px, 0); }
}

@keyframes oe-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

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

@media (max-width: 980px) {
  .oe-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .oe-hero__copy {
    padding: 40px clamp(22px, 6vw, 48px) 8px;
  }

  .oe-figure {
    min-height: 0;
  }

  .oe-figure .oe-scene {
    position: relative;
    inset: auto;

    height: auto;
    max-height: 640px;
    aspect-ratio: 600 / 640;
  }

  .oe-scene {

    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14%);
  }

  .oe-figure__caption {
    left: clamp(22px, 6vw, 48px);
  }

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

@media (max-width: 820px) {
  .oe-roots {
    display: none;
  }

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

  /* Parcours vertical : une ligne de croissance relie les icônes */
  .oe-steps__list::before {
    content: "";

    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 49px;

    width: 2px;

    background: linear-gradient(180deg, rgba(40, 216, 255, .2), var(--oe-emerald), rgba(157, 255, 201, .2));
    box-shadow: 0 0 10px rgba(62, 232, 154, .45);

    transform: scaleY(0);
    transform-origin: 50% 0;
    transition: transform 1.6s var(--oe-ease) .2s;
  }

  .oe-steps.in .oe-steps__list::before {
    transform: scaleY(1);
  }

  .oe-step {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 18px;

    padding: 22px 20px;

    background: rgba(5, 16, 22, .92);
  }

  .oe-step__icon {
    grid-row: 1 / span 2;
  }

  .oe-step h4 {
    margin: 6px 0 8px;
    padding-right: 34px;
  }

  .oe-step__num {
    top: 22px;
    right: 18px;
  }

  .oe-how__note {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .oe-how,
  .oe-tn {
    padding: 28px 18px;
    border-radius: 24px;
  }

  .oe-hero,
  .oe-impact {
    border-radius: 24px;
  }

  .oe-title {
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .oe-actions {
    flex-direction: column;
  }

  .oe-btn {
    width: 100%;
  }

  .oe-figure__caption {
    right: 18px;
    bottom: 18px;

    font-size: 13px;
  }

  .oe-stats {
    gap: 12px;
  }

  .oe-stat {
    min-height: 0;
    padding: 20px 16px;
  }

  .oe-stat dd {
    margin-top: 18px;
  }

  .oe-stat dt {
    font-size: 13px;
  }

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

  .oe-tn__mark {
    width: 60px;
    height: 60px;
  }
}

/* ------------------------------------------------------------
   Animations réduites : tout est affiché, rien ne bouge.
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .oe *,
  .oe *::before,
  .oe *::after {
    animation: none !important;
    transition: none !important;
  }

  .oe-step,
  .oe-steps__list::before {
    opacity: 1;
    transform: none;
  }

  .oe-roots path {
    stroke-dashoffset: 0;
  }

  .oe-l {
    transform: none !important;
  }

  .oe-scene[data-state] .oe-ray {
    opacity: var(--o, .5);
  }

  .oe-scene[data-state] .oe-p {
    opacity: var(--o, .6);
  }

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