/* Eco Network · page d'accueil
   Feuille propre à la page d'accueil : les pages légales et le livre blanc
   gardent style.css, pour qu'aucune refonte ici ne les dérange. */

:root {
  color-scheme: dark;
  --bg: #05080d;
  --bg-2: #0a0f17;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-2: rgba(255, 255, 255, 0.14);
  --text: #f3f6fa;
  --body: #b9c2d0;
  --muted: #7f8a9e;
  --lime: #c6f94e;
  --green: #6fd44a;
  --on-lime: #0a1200;
  --radius: 22px;
  --radius-lg: 30px;
  --wrap: 1120px;
  --pad: 20px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
/* Les anneaux décoratifs dépassent volontairement de leur bloc : rien ne doit
   pour autant élargir la page sur mobile. `clip` ne crée pas de conteneur de
   défilement, ce qui garde la barre de navigation fixe intacte. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ── Navigation ───────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 8, 13, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--stroke);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.nav-links { display: none; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--body); font-size: 14.5px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ── Boutons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--lime); color: var(--on-lime); box-shadow: 0 10px 30px -12px rgba(198, 249, 78, .55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -12px rgba(198, 249, 78, .7); }
.btn-ghost { border-color: var(--stroke-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 120px 0 72px; isolation: isolate; overflow: hidden; }
#eco { overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(620px 420px at 78% 18%, rgba(111, 212, 74, .16), transparent 70%),
    radial-gradient(520px 380px at 8% 0%, rgba(198, 249, 78, .08), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(198, 249, 78, .07); border: 1px solid rgba(198, 249, 78, .22);
  color: var(--lime); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198, 249, 78, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 249, 78, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(198, 249, 78, 0); } }
h1 {
  margin: 0; font-size: clamp(2.35rem, 7.2vw, 4.3rem); line-height: 1.04;
  letter-spacing: -0.035em; font-weight: 800;
}
h1 .accent {
  display: block;
  /* Le texte en dégradé est découpé à sa boîte : sans cette marge, les
     jambages (le « g » de growing) étaient rognés. */
  padding-bottom: .12em;
  background: linear-gradient(92deg, var(--lime), var(--green) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 22px 0 0; max-width: 540px; color: var(--body); font-size: clamp(1.02rem, 2.4vw, 1.15rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }

/* Le téléphone, posé sur un anneau lumineux. */
.device { position: relative; justify-self: center; width: min(300px, 78vw); }
.device::before {
  content: ""; position: absolute; inset: -12% -22%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 212, 74, .28), transparent);
  filter: blur(8px);
}
.ring {
  position: absolute; z-index: -1; left: 50%; top: 50%; border-radius: 50%;
  border: 1px solid rgba(198, 249, 78, .14); transform: translate(-50%, -50%);
}
.ring.r1 { width: 135%; aspect-ratio: 1; }
.ring.r2 { width: 175%; aspect-ratio: 1; border-color: rgba(198, 249, 78, .07); }
.phone {
  border-radius: 40px; padding: 9px; background: linear-gradient(160deg, #1b2431, #0c1119);
  border: 1px solid var(--stroke-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4) inset;
}
.phone img { border-radius: 32px; width: 100%; height: auto; }
.coin-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px; font-size: 13px; color: var(--body);
  background: rgba(10, 15, 23, .82); border: 1px solid var(--stroke-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
}
.coin-chip b { display: block; color: var(--text); font-size: 14px; }
.coin-chip.c1 { left: -12%; top: 18%; }
.coin-chip.c2 { right: -10%; bottom: 16%; }
.mini-coin {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #e6ff9c, var(--lime) 45%, #6fae21);
  color: var(--on-lime); font-weight: 800; font-size: 10px; letter-spacing: .02em;
}

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding: 84px 0; position: relative; }
.band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--lime); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(1.85rem, 5vw, 2.9rem); line-height: 1.1; letter-spacing: -0.028em; font-weight: 800; }
.sub { margin: 18px 0 0; color: var(--body); font-size: clamp(1rem, 2.2vw, 1.12rem); max-width: 640px; }
.head { max-width: 720px; margin-bottom: 44px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .sub { margin-left: auto; margin-right: auto; }
h3 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0; }

.cards { display: grid; gap: 14px; }
.card {
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--stroke);
}
.card p { color: var(--body); }
.icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(198, 249, 78, .08); border: 1px solid rgba(198, 249, 78, .2); color: var(--lime);
}
.icon svg { width: 22px; height: 22px; }

/* « What is Eco Network? » : le texte, puis trois repères. */
.about-text { display: grid; gap: 18px; color: var(--body); font-size: 1.06rem; max-width: 760px; margin-bottom: 44px; }
.about-text strong { color: var(--text); font-weight: 600; }

/* ── ECO ──────────────────────────────────────────────────────────────── */
.eco-grid { display: grid; gap: 48px; align-items: center; }
.coin-wrap { position: relative; justify-self: center; width: min(320px, 74vw); aspect-ratio: 1; display: grid; place-items: center; }
.coin-wrap .ring { z-index: 0; }
.coin-wrap .ring.r1 { width: 92%; }
.coin-wrap .ring.r2 { width: 118%; }
.coin {
  position: relative; z-index: 1; width: 62%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #ecffb0, var(--lime) 38%, #78b52a 72%, #4c7a17);
  box-shadow: 0 30px 70px -20px rgba(198, 249, 78, .45), inset 0 -10px 24px rgba(0, 0, 0, .25), inset 0 8px 18px rgba(255, 255, 255, .35);
  color: var(--on-lime); font-weight: 900; font-size: clamp(2.2rem, 7vw, 3rem); letter-spacing: .02em;
}
.coin::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 2px solid rgba(10, 18, 0, .18); }
.facts { display: grid; gap: 12px; margin-top: 30px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); }
.fact svg { width: 20px; height: 20px; color: var(--lime); flex: none; margin-top: 3px; }
.fact b { display: block; }
.fact span { color: var(--body); font-size: 15px; }

/* ── How it works ─────────────────────────────────────────────────────── */
.how-grid { display: grid; gap: 48px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 22px 22px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--stroke); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: var(--on-lime); background: var(--lime);
}
.step p { color: var(--body); font-size: 15.5px; }
.how-device { width: min(280px, 72vw); }

/* ── Community ────────────────────────────────────────────────────────── */
.pillars { display: grid; gap: 14px; }
.pillar { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--stroke); }
.pillar p { color: var(--body); }
.follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 34px; color: var(--muted); font-size: 15px; }

/* ── Progress ─────────────────────────────────────────────────────────── */
.progress { border-radius: var(--radius-lg); padding: 30px 24px; background: linear-gradient(180deg, rgba(198, 249, 78, .05), rgba(255, 255, 255, .02)); border: 1px solid rgba(198, 249, 78, .18); }
.now-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(198, 249, 78, .1); color: var(--lime); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px 28px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.check { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); }
.check svg { width: 14px; height: 14px; }
.progress-note { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--stroke); color: var(--body); }

/* ── Vision ───────────────────────────────────────────────────────────── */
.vision { text-align: center; }
.vision .sub { margin-left: auto; margin-right: auto; }
.motto {
  margin: 34px auto 0; display: inline-block; font-weight: 700; font-size: clamp(1.15rem, 3vw, 1.4rem); letter-spacing: -0.01em;
  background: linear-gradient(92deg, var(--text), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); transition: border-color .2s; }
.faq details[open] { border-color: var(--stroke-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 22px 22px; color: var(--body); }
.faq .answer p + p { margin-top: 10px; }
.faq a { color: var(--lime); }

/* ── Join ─────────────────────────────────────────────────────────────── */
.join {
  position: relative; overflow: hidden; text-align: center; border-radius: var(--radius-lg);
  padding: 56px 24px; background: linear-gradient(160deg, #0f1a10, #0a0f17 60%); border: 1px solid rgba(198, 249, 78, .2);
}
.join::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(198, 249, 78, .18), transparent); pointer-events: none;
}
.join > * { position: relative; }
.join .sub { margin-left: auto; margin-right: auto; }
.join-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.soon { display: block; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: 14.5px; }
.foot-grid { display: grid; gap: 34px; }
.foot-about p { margin-top: 14px; max-width: 320px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.foot h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; }
.foot-cols a { display: block; padding: 4px 0; text-decoration: none; color: var(--muted); transition: color .2s; }
.foot-cols a:hover { color: var(--text); }
.copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--stroke); font-size: 13.5px; }

/* ── Apparition au défilement (discrète, et absente si le système le demande) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
}

/* ── Tablette ─────────────────────────────────────────────────────────── */
@media (min-width: 720px) {
  :root { --pad: 32px; }
  section { padding: 104px 0; }
  .cards.c3, .pillars { grid-template-columns: repeat(3, 1fr); }
  .checklist { grid-template-columns: repeat(2, 1fr); }
  .progress { padding: 40px 44px; }
  .join { padding: 72px 48px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ── Bureau ───────────────────────────────────────────────────────────── */
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .hero { padding: 150px 0 110px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .device { width: 320px; }
  /* Plus de place sur grand écran : les étiquettes s'écartent du téléphone
     pour ne pas masquer ce qu'il affiche. */
  .coin-chip.c1 { left: -30%; top: 12%; }
  .coin-chip.c2 { right: -26%; bottom: 14%; }
  .eco-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; }
  .how-grid { grid-template-columns: 1.2fr .8fr; gap: 72px; }
  .foot-grid { grid-template-columns: 1fr 1.6fr; }
}

/* Très petits écrans : les étiquettes flottantes autour du téléphone gênent. */
@media (max-width: 400px) {
  .coin-chip { display: none; }
}
