/* =========================================================
   Bielefeld Weed Telegram Group — thème « céramique Della Robbia » (repris du site de Pistoia)
   Émail blanc, bleu cobalt, guirlande de feuilles, citrons et raisins
   (celle de l'Ospedale del Ceppo), rayures de marbre vert et blanc des églises.
   La guirlande du médaillon tourne lentement.
   Une seule police : Josefin Sans.
   ========================================================= */
:root {
  --glaze: #f7f4ec;
  --pale: #e8eef7;
  --card: #fffefa;
  --ink: #1d2a44;
  --muted: #55607a;
  --line: #d5dbe7;
  --cobalt: #1f4f9a;
  --cobalt-2: #163a73;
  --leaf: #4f8a3c;
  --lemon: #e7b923;
  --serp: #2f4a3a;
  --ok: #3f7a31;
  --mid: #a67c0c;
  --high: #a23b46;
  --font: "Josefin Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--glaze); color: var(--ink); font: 400 19px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--cobalt); }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; margin: 0 0 .45em; line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.8vw, 3.1rem); color: var(--cobalt-2); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 2px; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.kicker { font-size: .85rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--leaf); margin-bottom: .8em; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .7em 1.45em .55em; border-radius: 999px; font: 700 1.02rem var(--font); text-decoration: none; cursor: pointer; border: 2px solid var(--cobalt); transition: background .2s, color .2s; }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; margin-top: -.15em; }
.btn-blue { background: var(--cobalt); color: #fff; }
.btn-blue:hover { background: var(--cobalt-2); border-color: var(--cobalt-2); }
.btn-line { background: var(--card); color: var(--cobalt); }
.btn-line:hover { background: var(--pale); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--cobalt); color: #fff; box-shadow: 0 3px 0 var(--lemon); }
.top-in { display: flex; align-items: center; gap: 22px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.22rem; }
.brand svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.brand i { color: var(--lemon); font-style: normal; }
.menu { display: flex; gap: 24px; margin-left: auto; }
.menu a { color: #dbe5f5; text-decoration: none; font-weight: 600; }
.menu a:hover { color: #fff; }
.langs { display: flex; gap: 4px; }
.langs button { width: 36px; height: 30px; padding-top: 3px; background: transparent; border: 1.5px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; font: 700 .75rem var(--font); cursor: pointer; }
.langs button[aria-pressed="true"] { background: #fff; color: var(--cobalt); border-color: #fff; }

/* ---------- Accueil ---------- */
.hero { padding: clamp(44px, 7vw, 88px) 0; background: radial-gradient(60% 80% at 20% 50%, #dfe7f4, transparent 70%), var(--glaze); }
.hero-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 54px; align-items: center; }
.hero-text { order: 2; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.7rem); margin: .1em 0 .1em; color: var(--ink); }
.hero h1 span { display: block; color: var(--cobalt); }
.hero-sub { font-size: 1rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mid); }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.1rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
/* Le médaillon */
.tondo { order: 1; display: block; width: min(420px, 100%); height: auto; margin-inline: auto; filter: drop-shadow(0 16px 22px rgba(22,58,115,.25)); }
.tondo .rim { fill: #fbfaf5; stroke: #d9d3c3; stroke-width: 2; }
.tondo .band { fill: none; stroke: #2e5e2a; stroke-width: 50; }
.tondo .garland { animation: turn 90s linear infinite; }
.tondo .disc { fill: var(--cobalt); }
.tondo .disc-in { fill: none; stroke: #fff; stroke-opacity: .28; stroke-width: 3; transform: scale(.92); }
.tondo .relief { fill: #fbfaf5; font: 700 112px var(--font); text-anchor: middle; filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); }
.tondo .relief-sm { fill: #fbfaf5; font: 600 22px var(--font); letter-spacing: .4em; text-anchor: middle; }
@keyframes turn { to { transform: rotate(360deg); } }

/* Rayures de marbre vert et blanc */
.stripes { height: 24px; background: #fbfaf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='24'%3E%3Crect width='10' height='6' fill='%232f4a3a'/%3E%3Crect y='12' width='10' height='6' fill='%232f4a3a'/%3E%3C/svg%3E") repeat-x; }

/* ---------- Sections ---------- */
.sec { padding: clamp(54px, 8vw, 96px) 0; }
.sec-blue, .sec-pale { background: var(--pale); }
.intro { max-width: 66ch; color: var(--muted); }

/* Médaillons de la loi */
.medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px 20px; margin-top: 66px; }
.medal { --c: var(--mid); position: relative; padding: 50px 24px 22px; text-align: center; background: var(--card); border-radius: 22px; border: 1.5px solid var(--line); }
.medal[data-tone="ok"] { --c: var(--ok); }
.medal[data-tone="high"] { --c: var(--high); }
.medal-n { position: absolute; left: 50%; top: -34px; width: 68px; height: 68px; margin-left: -34px; display: grid; place-items: center; padding-top: 4px; border-radius: 50%; background: var(--cobalt); color: #fff; font-size: 1.35rem; font-weight: 700; border: 6px solid var(--c); box-shadow: 0 0 0 4px var(--card); }
.medal h3 { color: var(--cobalt-2); }
.medal p { margin: 0; color: var(--muted); }

/* ---------- Outil : préfet ou juge ? ---------- */
.sorter { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-top: 28px; }
.chips { display: grid; gap: 8px; }
.chip { padding: .75em 1.1em .6em; text-align: left; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 1rem var(--font); cursor: pointer; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--cobalt); }
.chip[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.outcome { position: sticky; top: 84px; padding: 28px 26px 22px; border-radius: 26px; background: var(--cobalt-2); color: #dbe5f5; }
.dests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 20px; text-align: center; }
.dest { display: grid; justify-items: center; gap: 8px; opacity: .45; transition: opacity .3s; }
.dest i { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fbfaf5; background: transparent; transition: transform .3s, background .3s; }
.dest b { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: #fff; }
.dest.on { opacity: 1; }
.dest.on i { transform: scale(1.15); }
.dest[data-dest="none"].on i { background: var(--leaf); }
.dest[data-dest="pref"].on i { background: var(--lemon); }
.dest[data-dest="dep"].on i { background: #8aa6d6; }
.dest[data-dest="judge"].on i { background: #d0606b; }
.outcome h3 { color: #fff; font-size: 1.55rem; }
.outcome p { margin: 0; }

/* ---------- 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: 30px; position: relative; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--lemon); box-shadow: inset -3px -3px 0 rgba(0,0,0,.12); }
.tips li:nth-child(even)::before { background: var(--leaf); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 18px 22px 14px; text-decoration: none; color: var(--muted); background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; }
.contact b { display: block; font-size: 1.45rem; color: var(--ink); }
.contact-main { background: var(--cobalt); border-color: var(--cobalt); color: #dbe5f5; }
.contact-main b { color: #fff; font-size: 1.85rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 17px 52px 13px 20px; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 14px; top: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--cobalt); color: #fff; font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 16px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { background: var(--cobalt-2); color: #fff; text-align: center; }
.sec-join h2 { color: #fff; }
.sec-join .kicker { color: var(--lemon); }
.sec-join .intro { color: #c8d6ee; 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: 15px 20px; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; transition: transform .15s; }
.app:hover { transform: translateY(-3px); }
.app svg { flex: none; width: 34px; height: 34px; }
.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: .92rem; }
.rules { color: #c8d6ee; font-size: 1rem; max-width: 74ch; margin-inline: auto; }
.rules b { color: #fff; }

/* ---------- Pied de page ---------- */
.foot { padding: 30px 0 40px; background: #10284f; color: #a9bbd9; font-size: .97rem; }
.foot p { margin: 0 0 .5em; }
.foot b { color: #fff; }
.foot a { color: var(--lemon); }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(16,40,79,.9); }
.gate[hidden] { display: none; }
.gate-box { width: min(440px, 100%); padding: 32px 28px; text-align: center; background: var(--card); border-radius: 28px; border: 6px solid var(--lemon); }
.gate-badge { width: 80px; height: 80px; margin: 0 auto 14px; display: grid; place-items: center; padding-top: 4px; border-radius: 50%; background: var(--cobalt); color: #fff; font-weight: 700; font-size: 1.6rem; border: 6px solid var(--leaf); }
.gate-box h2 { font-size: 1.8rem; }
.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: 700; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 920px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .hero-in, .sorter, .help { grid-template-columns: minmax(0, 1fr); }
  .hero-text { order: 1; }
  .tondo { order: 2; width: min(300px, 80%); }
  .medals { grid-template-columns: 1fr 1fr; }
  .outcome { position: relative; top: 0; }
  .apps { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .medals { grid-template-columns: 1fr; }
  .brand { font-size: 1.08rem; }
  .dest i { width: 38px; height: 38px; }
  .dest b { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
