/* =========================================================
   Christchurch Weed Telegram Group — thème « Garden City »
   Crème, vert forêt, mousse, rouge brique. Étiquette de jardin botanique.
   Une seule police : Fraunces.
   ========================================================= */
:root {
  --bg: #fbf8f1;
  --paper: #ffffff;
  --ink: #1d2b22;
  --muted: #5d6b60;
  --forest: #1f4d34;
  --leaf: #6a9a5b;
  --moss: #eef3e6;
  --line: #dde4d3;
  --brass: #b08d4a;
  --low: #2f6f8f;
  --mid: #a8741b;
  --high: #b5402b;
  --legal: #2f7d4f;
  --font: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17.5px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest); }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.8vw, 3rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.overline {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--leaf); margin-bottom: 1em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 4px;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--forest); transition: background .15s, color .15s;
}
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: #16392a; }
.btn-quiet { background: transparent; color: var(--forest); }
.btn-quiet:hover { background: var(--moss); }

/* ---------- En-tête ---------- */
.head { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.12rem; }
.mark svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.mark i { color: var(--leaf); font-weight: 600; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .98rem; }
.nav a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.langs { display: flex; gap: 2px; }
.langs button {
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted);
  font: 600 .85rem var(--font); padding: .3em .45em; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--forest); border-bottom-color: var(--forest); }

/* ---------- Accueil ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 7.6vw, 5.4rem); letter-spacing: -.03em; margin-bottom: .2em; }
.hero h1 em { display: block; color: var(--forest); font-weight: 400; font-style: italic; }
.hero-sub { font-size: clamp(1.15rem, 2.6vw, 1.45rem); color: var(--leaf); font-weight: 600; }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.1rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.leaf {
  position: absolute; border-radius: 0 100% 0 100%; background: var(--moss);
  pointer-events: none;
}
.leaf-a { width: 260px; height: 260px; right: -70px; top: -60px; transform: rotate(10deg); }
.leaf-b { width: 140px; height: 140px; left: -50px; bottom: -40px; transform: rotate(-30deg); }

/* Étiquette de jardin botanique */
.plaque {
  position: relative; padding: 26px 26px 18px;
  background: var(--forest); color: #e9f0e3; border-radius: 6px;
  outline: 1px solid rgba(255,255,255,.35); outline-offset: -8px;
  box-shadow: 0 18px 40px -22px rgba(31,77,52,.8);
}
.plaque::before, .plaque::after {
  content: ""; position: absolute; top: 14px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 0 2px rgba(0,0,0,.15) inset;
}
.plaque::before { left: 14px; }
.plaque::after { right: 14px; }
.plaque-name { font-size: 1.7rem; font-weight: 600; margin: 6px 0 0; color: #fff; text-align: center; }
.plaque-family { text-align: center; font-size: .85rem; color: #b9cdb0; letter-spacing: .06em; margin-bottom: 16px; }
.plaque dl { margin: 0; border-top: 1px solid rgba(255,255,255,.25); }
.plaque dl div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.plaque dt { font-size: .82rem; color: #b9cdb0; }
.plaque dd { margin: 0; font-weight: 600; font-size: .9rem; text-align: right; color: #fff; }
.plaque-foot { margin: 12px 0 0; text-align: center; font-size: .78rem; color: #b9cdb0; letter-spacing: .05em; }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--line); }
.sec-moss { background: var(--moss); }
.intro { max-width: 68ch; color: var(--muted); }
.note { margin-top: 18px; font-style: italic; color: var(--muted); }

/* ---------- Tableau de la loi ---------- */
[data-level="low"] { --c: var(--low); }
[data-level="mid"] { --c: var(--mid); }
[data-level="high"] { --c: var(--high); }
[data-level="legal"] { --c: var(--legal); }
.law { width: 100%; margin-top: 32px; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.law th {
  text-align: left; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); padding: 14px 18px; border-bottom: 2px solid var(--ink);
}
.law td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.law td:first-child { font-weight: 600; border-left: 4px solid var(--c); width: 32%; }
.law td:nth-child(2) { color: var(--muted); }
.law td:last-child { color: var(--c); font-weight: 800; white-space: nowrap; text-align: right; }
.law tbody tr:nth-child(even) { background: #fbfcf8; }

.road {
  margin-top: 40px; padding: 26px 28px; border: 1px solid var(--line); border-left: 4px solid var(--high);
  background: var(--paper);
}
.road ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.road li { margin-bottom: .35em; }

/* ---------- Outil oui / non ---------- */
.check { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.qs { list-style: none; counter-reset: q; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.qs li {
  counter-increment: q; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
}
.qs li > span:first-child::before { content: counter(q) ". "; color: var(--leaf); font-weight: 800; }
.yn { flex: none; display: inline-flex; border: 1.5px solid var(--forest); border-radius: 4px; overflow: hidden; }
.yn button {
  background: transparent; border: 0; color: var(--forest); cursor: pointer;
  font: 600 .9rem var(--font); padding: .45em .9em;
}
.yn button + button { border-left: 1.5px solid var(--forest); }
.yn button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.result {
  position: sticky; top: 92px; padding: 28px;
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 6px;
}
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.meter span { display: block; height: 100%; width: 33%; background: var(--c); transition: width .3s; }
[data-level="mid"] .meter span { width: 66%; }
[data-level="high"] .meter span { width: 100%; }
.result-tag { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--c); margin-bottom: .4em; }
.result h3 { font-size: 1.5rem; color: var(--c); }
.result ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.result li { margin-bottom: .4em; }

/* ---------- Aide ---------- */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tips { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tips li { padding-left: 26px; position: relative; color: var(--muted); }
.tips li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px;
  border-radius: 0 100% 0 100%; background: var(--leaf);
}
.contacts { display: grid; gap: 12px; }
.contact {
  display: block; padding: 18px 20px; text-decoration: none; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
}
.contact:hover { border-color: var(--forest); }
.contact b { display: block; color: var(--ink); font-size: 1.4rem; }
.contact-local { background: var(--forest); border-color: var(--forest); color: #d6e5cf; }
.contact-local b { color: #fff; font-size: 1.7rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; color: var(--leaf); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 0 18px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { background: var(--forest); color: #e9f0e3; text-align: center; border-top: 0; }
.sec-join .overline { color: #b9cdb0; }
.sec-join .intro { color: #c9d9c1; margin-inline: auto; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px auto 24px; max-width: 900px; }
.app {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 20px; border-radius: 6px; text-decoration: none; color: var(--ink);
  background: var(--bg); transition: transform .15s;
}
.app:hover { transform: translateY(-3px); }
.app svg { flex: none; width: 36px; height: 36px; }
.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: #c9d9c1; font-size: .93rem; max-width: 70ch; margin-inline: auto; }
.rules b { color: #fff; }

/* ---------- Pied de page ---------- */
.foot { padding: 34px 0 42px; background: #173a27; color: #a9bfa0; font-size: .88rem; }
.foot p { margin: 0 0 .5em; }
.foot b { color: #fff; }
.foot a { color: #d7e6cf; }

/* ---------- Vérification d'âge ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(23,58,39,.92);
}
.gate[hidden] { display: none; }
.gate-box {
  width: min(440px, 100%); padding: 32px 28px; text-align: center;
  background: var(--bg); border-radius: 6px; outline: 1px solid var(--line); outline-offset: -8px;
}
.gate-badge {
  width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center;
  border-radius: 0 50% 0 50%; background: var(--forest); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.gate-box h2 { font-size: 1.7rem; }
.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; font-weight: 600; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 920px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .hero-in, .check, .help { grid-template-columns: 1fr; gap: 36px; }
  .result { position: static; }
  .apps { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .law thead { display: none; }
  .law, .law tbody, .law tr, .law td { display: block; width: 100%; }
  .law tr { border-left: 4px solid var(--c); border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .law td { padding: 2px 0; border: 0; }
  .law td:first-child { border: 0; width: auto; }
  .law td:last-child { text-align: left; }
  .qs li { flex-direction: column; align-items: flex-start; }
  .leaf-a { width: 160px; height: 160px; right: -60px; top: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app, .meter span { transition: none; }
}
