/* =========================================================
   Esbjerg Weed Telegram Group — thème « Mennesket ved Havet »
   Quatre géants blancs assis face à la mer du Nord, éoliennes qui tournent,
   gris-bleu du ciel et sable clair ; la loi en panneaux, l'outil en comparateur
   Danemark / Allemagne.
   Une seule police : Sora.
   ========================================================= */
:root {
  --sky: #dfe7ec;
  --sea: #4b6b7f;
  --sea-dark: #2f4858;
  --sand: #efe7d6;
  --white: #ffffff;
  --ink: #1d2830;
  --muted: #55636c;
  --red: #c8102e;
  --gold: #e0b03a;
  --low: #3c7d5d; --mid: #c98a12; --high: #c23b2f; --legal: #3a6ea5;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; background: #f6f7f5; color: var(--ink); font: 400 16.5px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--sea-dark); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.08; font-weight: 800; overflow-wrap: break-word; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); color: var(--sea-dark); }
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.eyebrow { margin: 0 0 10px; color: var(--sea); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; }
.intro { max-width: 62ch; color: var(--muted); font-size: 1.04rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .75em 1.3em; border-radius: 0; border: 2px solid var(--sea-dark); font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-main { background: var(--sea-dark); color: #fff; }
.btn-line { background: var(--white); color: var(--sea-dark); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid #d5dde2; }
.top-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.logo svg { width: 28px; height: 28px; fill: #2aabee; }
.logo b { color: var(--sea); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.menu a:hover { color: var(--sea-dark); }
.langs { display: flex; border: 2px solid var(--sea-dark); }
.langs button { border: 0; background: var(--white); color: var(--sea-dark); font: 600 .76rem var(--font); padding: .35em .6em; cursor: pointer; }
.langs button + button { border-left: 2px solid var(--sea-dark); }
.langs button[aria-pressed="true"] { background: var(--sea-dark); color: #fff; }

/* ---------- Accueil : les géants et les éoliennes ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 84px) 0 0; background: linear-gradient(180deg, #c9d6de 0%, var(--sky) 70%); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); color: var(--sea-dark); }
.hero h1 span { display: block; color: var(--muted); font-weight: 400; }
.hero-sub { display: inline-block; margin: 0 0 16px; padding: .25em .9em; background: var(--white); color: var(--sea-dark); font-weight: 600; }
.lead { max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.shore { display: block; width: 100%; height: clamp(150px, 18vw, 220px); margin-top: 20px; }
.sea { fill: var(--sea); }
.sand { fill: var(--sand); }
.giants path { fill: var(--white); stroke: #c9d2d8; stroke-width: 1.5; }
.mast { stroke: var(--white); stroke-width: 3; }
.blades path { fill: var(--white); }
.blades { animation: spin 5s linear infinite; }
.t1 { transform: translate(180px, 44px); }
.t2 { transform: translate(300px, 66px); }
.t3 { transform: translate(980px, 86px); }
.t2 .blades { animation-duration: 6.5s; }
.t3 .blades { animation-duration: 4.2s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-alt { background: var(--sand); }

/* ---------- Loi : les panneaux ---------- */
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 30px; background: #d5dde2; border: 2px solid #d5dde2; }
.panels article { padding: 22px 20px 20px; background: var(--white); }
.panels article::before { content: ""; display: block; width: 34px; height: 6px; margin-bottom: 12px; background: var(--c); }
.panels p { margin: 0; color: var(--muted); }
[data-level="low"] { --c: var(--low); }
[data-level="mid"] { --c: var(--mid); }
[data-level="high"] { --c: var(--high); }
[data-level="legal"] { --c: var(--legal); }

/* ---------- Outil : comparateur ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 20px; }
.topics button { padding: .55em 1em; border: 2px solid var(--sea-dark); background: var(--white); color: var(--sea-dark); font: 600 .9rem var(--font); cursor: pointer; }
.topics button[aria-pressed="true"] { background: var(--sea-dark); color: #fff; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.side { padding: 22px 22px 18px; background: var(--white); }
.side p:last-child { margin: 0; color: var(--muted); }
.flag { display: inline-block; margin: 0 0 10px; padding: .2em .9em; font-weight: 800; color: #fff; }
.side-dk { border-top: 8px solid var(--red); }
.side-dk .flag { background: var(--red); }
.side-de { border-top: 8px solid; border-image: linear-gradient(90deg, #000 0 33.3%, #dd0000 0 66.6%, #ffce00 0) 1; }
.side-de .flag { background: #2b2b2b; }

/* ---------- Aide ---------- */
.help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tips li { position: relative; padding-left: 28px; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 6px; background: var(--sea); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 18px 20px; background: var(--white); border-left: 6px solid var(--sea); text-decoration: none; color: var(--muted); }
.contact b { display: block; font-size: 1.25rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-main { background: var(--sea-dark); color: #cdd9e0; border-left-color: var(--gold); }
.contact-main b { color: #fff; font-size: 1.45rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; }
.faq details { border-bottom: 1px solid #cbbfa6; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 14px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--sea-dark); color: var(--sea-dark); }
.faq details[open] summary::after { content: "−"; background: var(--sea-dark); color: #fff; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { background: var(--sea-dark); color: #fff; }
.sec-join h2 { color: #fff; }
.sec-join .eyebrow { color: var(--gold); }
.sec-join .intro { color: #cdd9e0; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0 20px; }
.app { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--white); color: var(--ink); text-decoration: none; transition: transform .15s; }
.app:hover { transform: translateY(-2px); }
.app svg { width: 38px; height: 38px; flex: none; }
.app-tg { background: #2aabee; color: #fff; }
.app-tg svg { fill: #fff; }
.app-tg small { color: #e6f6ff; }
.app-wa svg { fill: #25d366; }
.app-sig svg { fill: #3a76f0; }
.app b { display: block; }
.app small { color: var(--muted); }
.group-rules { color: #cdd9e0; max-width: 80ch; }
.group-rules b { color: var(--gold); }

/* ---------- Pied de page ---------- */
.foot { padding: 26px 0 36px; background: #1f303b; color: #a5b5bf; font-size: .9rem; }
.foot p { margin: 0 0 .4em; }
.foot b { color: #fff; }
.foot a { color: var(--gold); }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(47, 72, 88, .92); }
.gate-box { width: min(440px, 100%); padding: 30px 26px 26px; text-align: center; background: var(--white); border-top: 8px solid var(--sea); }
.gate-badge { width: 66px; height: 96px; margin: 0 auto 12px; display: grid; place-items: end center; padding-bottom: 14px; background: var(--white); border: 2px solid #c9d2d8; border-radius: 33px 33px 10px 10px; color: var(--sea-dark); font-weight: 800; font-size: 1.2rem; }
.gate-box h2 { font-size: 1.55rem; }
.gate-box p { color: var(--muted); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gate-no { margin: 14px 0 0; color: var(--high) !important; font-weight: 600; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 960px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .panels { grid-template-columns: 1fr 1fr; }
  .help { grid-template-columns: minmax(0, 1fr); }
  .apps { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 600px) {
  .panels, .compare { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .top-in { gap: 10px; }
  .logo { font-size: .95rem; gap: 7px; }
  .langs button { padding: .35em .45em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blades { animation: none; }
  .btn, .app { transition: none; }
}
