/* =========================================================
   Auckland Weed Telegram Group — thème « champ volcanique de nuit »
   Basalte sombre, orange lave, courbes de niveau. Une seule police : Space Grotesk.
   ========================================================= */
:root {
  --bg: #12100e;
  --bg-2: #1a1714;
  --card: #211d19;
  --line: #352f29;
  --text: #f4eee7;
  --muted: #b5aa9d;
  --lava: #ff7a2f;
  --ember: #ffb35c;
  --teal: #4cc9b8;
  --low: #4cc9b8;
  --mid: #ffb35c;
  --high: #ff5b4a;
  --legal: #8fd694;
  --radius: 14px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ember); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px;
  font: 700 1rem var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.btn-lava { background: linear-gradient(135deg, var(--lava), #ff9a3c); color: #1b0d03; box-shadow: 0 8px 28px -10px rgba(255,122,47,.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ember); }

/* ---------- Barre du haut ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18,16,14,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 1.08rem; }
.brand svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.brand b { color: var(--lava); font-weight: 700; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button {
  background: none; border: 0; color: var(--muted); font: 700 .8rem var(--font);
  padding: .4em .7em; border-radius: 999px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--lava); color: #1b0d03; }

/* ---------- Accueil ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(60% 50% at 85% 110%, rgba(255,122,47,.28), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(76,201,184,.10), transparent 70%);
}
.contours {
  position: absolute; right: -90px; top: 50%; translate: 0 -50%;
  width: min(640px, 90vw); color: rgba(255,179,92,.16); stroke-width: 1.4;
  pointer-events: none;
}
.contours .crater { stroke: var(--lava); stroke-width: 2; opacity: .9; }
.hero-in { position: relative; }
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1em;
}
.coords { color: var(--muted); margin-left: .6em; letter-spacing: .08em; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 700; max-width: 11ch; margin-bottom: .2em; }
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--ember); }
.hero-sub { font-size: clamp(1.1rem, 2.6vw, 1.45rem); color: var(--lava); font-weight: 700; }
.lead { max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.board {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  max-width: 820px;
}
.board li { background: rgba(26,23,20,.92); padding: 18px 20px; }
.board b { display: block; font-size: 1.6rem; color: var(--ember); line-height: 1.1; }
.board span { font-size: .88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--line); }
.intro { max-width: 70ch; color: var(--muted); }
.note {
  margin-top: 26px; padding: 14px 18px; border-left: 3px solid var(--lava);
  background: var(--bg-2); border-radius: 0 10px 10px 0; color: var(--text); max-width: 80ch;
}

/* ---------- Échelle des peines ---------- */
.ladder { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 10px; }
.ladder li {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center;
  padding: 18px 22px; background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--c); border-radius: 12px;
}
.ladder h3 { margin-bottom: .2em; }
.ladder p { margin: 0; color: var(--muted); font-size: .95rem; }
.max { color: var(--c); font-size: 1rem; white-space: nowrap; text-align: right; }
[data-level="low"] { --c: var(--low); }
[data-level="mid"] { --c: var(--mid); }
[data-level="high"] { --c: var(--high); }
[data-level="legal"] { --c: var(--legal); }
.tag {
  justify-self: start; display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c, var(--low)); border: 1px solid currentColor; border-radius: 999px; padding: .3em .8em;
}

/* ---------- Tests salivaires ---------- */
.sec-road { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.road {
  list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.road li {
  counter-increment: s; position: relative;
  padding: 56px 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.road li::before {
  content: counter(s); position: absolute; top: 16px; left: 20px;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--teal); color: #06221e; font-weight: 700; border-radius: 50%;
}
.road b { display: block; margin-bottom: .35em; }
.road span { color: var(--muted); font-size: .95rem; }

/* ---------- Outil « Qu'est-ce que je risque ? » ---------- */
.check { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.opts { display: grid; gap: 10px; margin-top: 24px; }
.opt {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.sw {
  flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line);
  position: relative; transition: background .2s;
}
.sw::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--text); transition: transform .2s;
}
.opt input:checked + .sw { background: var(--lava); }
.opt input:checked + .sw::after { transform: translateX(18px); }
.opt input:focus-visible + .sw { outline: 2px solid var(--ember); outline-offset: 3px; }
.verdict {
  position: sticky; top: 90px;
  padding: 28px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); border-top: 4px solid var(--c);
}
.verdict h3 { font-size: 1.5rem; margin: 14px 0 12px; color: var(--c); }
.verdict ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.verdict li { margin-bottom: .45em; }

/* ---------- Aide ---------- */
.sec-help { background: var(--bg-2); }
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tips { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tips li { padding-left: 28px; position: relative; color: var(--muted); }
.tips li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px;
  border-radius: 50%; background: radial-gradient(circle, var(--ember), var(--lava));
}
.cards { display: grid; gap: 12px; }
.card {
  display: block; padding: 18px 20px; border-radius: 12px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.card b { display: block; color: var(--text); font-size: 1.35rem; margin-bottom: .15em; }
.card-main { border-color: var(--teal); }
.card-main b { color: var(--teal); font-size: 1.7rem; }
a.card:hover { border-color: var(--ember); }

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  color: var(--lava); font-size: 1.5rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join {
  background:
    radial-gradient(70% 80% at 50% 120%, rgba(255,122,47,.35), transparent 70%),
    var(--bg);
  text-align: center;
}
.sec-join .intro { margin-inline: auto; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 36px auto 24px; max-width: 900px; }
.app {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 20px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); transition: transform .15s, border-color .15s;
}
.app:hover { transform: translateY(-3px); border-color: var(--ember); }
.app svg { flex: none; width: 38px; height: 38px; }
.app[data-app="telegram"] svg { fill: #2aabee; }
.app[data-app="whatsapp"] svg { fill: #25d366; }
.app[data-app="signal"] svg { fill: #3a76f0; }
.app b { display: block; }
.app small { color: var(--muted); font-size: .86rem; }
.rules { color: var(--muted); font-size: .92rem; max-width: 70ch; margin-inline: auto; }
.rules b { color: var(--text); }

/* ---------- Pied de page ---------- */
.foot { padding: 36px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot p { margin: 0 0 .5em; }
.foot b { color: var(--text); }

/* ---------- Vérification d'âge ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(10,8,7,.94); backdrop-filter: blur(6px);
}
.gate[hidden] { display: none; }
.gate-box {
  width: min(440px, 100%); padding: 32px 28px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
}
.gate-badge {
  width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--lava); color: var(--lava); font-weight: 700; font-size: 1.2rem;
}
.gate-box h2 { font-size: 1.6rem; }
.gate-box p { color: var(--muted); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.gate-no { margin-top: 16px; color: var(--high) !important; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check, .help { grid-template-columns: 1fr; gap: 32px; }
  .verdict { position: static; }
  .apps { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .coords { display: block; margin: .4em 0 0; }
  .ladder li { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .max { text-align: left; }
  .road { grid-template-columns: 1fr; }
  .contours { right: -160px; top: 30%; opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .app, .sw, .sw::after { transition: none; }
}
