/* =========================================================
   Helsinki Weed Telegram Group — thème « fleurs nordiques » (esprit Marimekko)
   Blanc, rouge, rose, bleu Helsinki, noir ; grandes fleurs qui tournent lentement ;
   « fleur des risques » dont les pétales s'allument. Une seule police : Poppins.
   ========================================================= */
:root {
  --white: #ffffff;
  --pink-bg: #fff0f3;
  --ink: #111111;
  --muted: #505050;
  --line: #ececec;
  --red: #e3263a;
  --pink: #ff4f7b;
  --blue: #0047ba;
  --yellow: #ffb020;
  --ok: #1d8a55;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.5em; border-radius: 999px; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; border: 3px solid var(--ink); transition: transform .15s; }
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-black { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 3px solid var(--ink); }
.top-in { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.15rem; font-weight: 400; }
.brand svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.brand b { font-weight: 800; color: var(--red); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--red); }
.langs { display: flex; gap: 4px; }
.langs button { background: none; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); font: 800 .75rem var(--font); padding: .3em .65em; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Accueil ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 120px) 0 clamp(70px, 10vw, 120px); }
.hero-in { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { font-size: clamp(2.7rem, 8vw, 5.6rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: .1em; }
.hero h1 span { display: block; color: var(--red); }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 600; color: var(--blue); }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.08rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bloom { position: absolute; z-index: 0; animation: spin 70s linear infinite; }
.bloom-a { width: min(560px, 70vw); height: min(560px, 70vw); right: -140px; top: -80px; }
.bloom-b { width: 220px; height: 220px; right: 28%; bottom: -70px; animation-duration: 50s; animation-direction: reverse; }
.bloom-c { width: 130px; height: 130px; right: 6%; bottom: 40px; animation-duration: 40s; }
@keyframes spin { to { rotate: 360deg; } }

.band { background: var(--ink); padding: 0; }
.facts { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 26px 22px; color: #fff; }
.facts b { display: block; font-size: 1.9rem; font-weight: 800; }
.facts span { font-size: .95rem; opacity: .9; }
.f-red { background: var(--red); }
.f-blue { background: var(--blue); }
.f-pink { background: var(--pink); }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 9vw, 100px) 0; }
.sec-pink { background: var(--pink-bg); }
.intro { max-width: 66ch; color: var(--muted); }
.note { margin-top: 26px; padding: 16px 22px; border-radius: 22px; border: 3px solid var(--ink); max-width: 86ch; font-weight: 600; }

.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.block { position: relative; border-radius: 28px; padding: 26px 24px 22px; color: #fff; overflow: hidden; }
.block p { margin: 0; opacity: .95; }
.num { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 8px; opacity: .55; }
.b-pink { background: var(--pink); }
.b-blue { background: var(--blue); }
.b-red { background: var(--red); }
.b-black { background: var(--ink); }

/* ---------- Fleur des risques ---------- */
.flower-tool { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { padding: .7em 1.2em; border-radius: 999px; border: 3px solid var(--ink); background: #fff; font: 600 .98rem var(--font); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.result { --c: var(--ok); text-align: center; background: #fff; border-radius: 32px; border: 3px solid var(--ink); padding: 26px 24px 22px; }
.result[data-level="mid"] { --c: #c47f00; }
.result[data-level="high"] { --c: var(--red); }
.risk { width: 190px; height: 190px; animation: spin 90s linear infinite; }
.risk ellipse { fill: #f3dbe1; transition: fill .3s; }
.risk ellipse.on-mid { fill: var(--yellow); }
.risk ellipse.on-high { fill: var(--red); }
.risk .heart { fill: var(--ink); }
.result-tag { margin: 10px 0 .3em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--c); }
.result h3 { font-size: 1.4rem; }
.result ul { margin: 0; padding: 0; list-style: none; color: var(--muted); display: grid; gap: 6px; }

/* ---------- Aide ---------- */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tips { margin: 8px 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: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--pink-bg), 0 0 0 5px var(--red); transform: scale(.7); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 20px 22px; border-radius: 24px; text-decoration: none; color: var(--muted); border: 3px solid var(--ink); background: #fff; }
.contact b { display: block; font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.contact-main { background: var(--blue); border-color: var(--blue); color: #dbe6ff; }
.contact-main b { color: #fff; font-size: 1.7rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 22px; border: 3px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--pink); transition: background .2s, transform .2s; }
.faq details[open] summary::after { background: var(--red); transform: scale(1.2); }
.faq details p { margin: 0; padding: 0 22px 18px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { background: var(--red); color: #fff; text-align: center; }
.sec-join .kicker { color: #ffe0e6; }
.sec-join .intro { color: #ffe0e6; margin-inline: auto; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px auto 22px; max-width: 900px; }
.app { display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 20px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; border: 3px solid var(--ink); 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); }
.rules { color: #ffe0e6; font-size: .92rem; max-width: 76ch; margin-inline: auto; }
.rules b { color: #fff; }

/* ---------- Pied de page ---------- */
.foot { padding: 30px 0 40px; background: var(--ink); color: #b5b5b5; font-size: .88rem; }
.foot p { margin: 0 0 .5em; }
.foot b { color: #fff; }
.foot a { color: var(--pink); }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(17,17,17,.88); }
.gate[hidden] { display: none; }
.gate-box { width: min(440px, 100%); padding: 30px 26px; text-align: center; background: #fff; border-radius: 32px; border: 3px solid var(--ink); }
.gate-flower { width: 80px; height: 80px; animation: spin 20s linear infinite; }
.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(--red) !important; font-weight: 800; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 920px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .blocks { grid-template-columns: 1fr 1fr; }
  .flower-tool, .help { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; max-width: 440px; }
  .bloom-a { opacity: .35; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .facts, .blocks { grid-template-columns: 1fr; }
  .bloom-b { display: none; }
  .bloom-a { right: -200px; top: -60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
