/* =========================================================
   Düsseldorf Weed Telegram Group — thème « Rheinturm et horloge de lumière »
   Nuit bleu-noir sur le Rhin, la tour de télévision dont les points lumineux
   donnent l'heure (Lichtzeitpegel), reflets dans l'eau ; la loi en afficheurs
   lumineux, l'outil en horloge de la vieille ville.
   Une seule police : Jost.
   ========================================================= */
:root {
  --night: #0f1720;
  --night-2: #182432;
  --panel: #1e2c3c;
  --line: #2c3e52;
  --text: #e8eef5;
  --muted: #a3b2c3;
  --amber: #ffbf3c;
  --cyan: #5fd3ff;
  --red: #ff5b5b;
  --legal: #5fd38a; --mid: #ffbf3c; --high: #ff5b5b;
  --font: "Jost", 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: var(--night); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.06; font-weight: 700; overflow-wrap: break-word; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-size: 1.12rem; font-weight: 500; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.eyebrow { margin: 0 0 10px; color: var(--amber); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; font-size: .76rem; }
.intro { max-width: 62ch; color: var(--muted); font-size: 1.05rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .75em 1.3em; border-radius: 6px; border: 1.5px solid var(--amber); font: 500 1rem var(--font); text-decoration: none; cursor: pointer; transition: box-shadow .2s; }
.btn:hover { box-shadow: 0 0 18px -4px var(--amber); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-main { background: var(--amber); color: #1d1406; }
.btn-line { background: transparent; color: var(--text); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15, 23, 32, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.logo svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.logo b { color: var(--amber); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--muted); text-decoration: none; }
.menu a:hover { color: var(--amber); }
.langs { display: flex; gap: 4px; }
.langs button { border: 1px solid var(--line); background: none; color: var(--text); border-radius: 6px; font: 500 .8rem var(--font); padding: .3em .6em; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #1d1406; }

/* ---------- Accueil : la tour ---------- */
.hero { overflow: hidden; padding: clamp(48px, 7vw, 84px) 0 0; background: radial-gradient(60% 70% at 75% 20%, #22344a, var(--night) 70%); }
.hero-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: end; }
.hero-in > div:first-child { padding-bottom: clamp(40px, 6vw, 70px); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
.hero h1 span { display: block; color: var(--muted); font-weight: 400; }
.hero-sub { display: inline-block; margin: 0 0 16px; padding: .2em .8em; border: 1px solid var(--cyan); color: var(--cyan); border-radius: 6px; }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.08rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tower { position: relative; height: clamp(300px, 40vw, 440px); display: flex; flex-direction: column; align-items: center; }
.pod { width: 70px; height: 34px; border-radius: 40% 40% 50% 50%; background: #3a4a5c; box-shadow: 0 0 0 4px #2a3848; position: relative; }
.pod::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 4px; height: 60px; margin-left: -2px; background: #8295a8; }
.pod::after { content: ""; position: absolute; left: 50%; top: -66px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.shaft { flex: 1; width: 34px; background: linear-gradient(90deg, #2a3848, #3a4a5c 60%, #2a3848); display: flex; justify-content: center; padding-top: 14px; }
.lights { display: flex; flex-direction: column; gap: 9px; }
.grp { display: flex; flex-direction: column; gap: 4px; }
.lights i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #2c3a48; }
.lights i.on { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.river { width: 100vw; height: 40px; background: linear-gradient(180deg, #143049, #0d2134); border-top: 1px solid #2b4a66; }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-alt { background: var(--night-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Loi : afficheurs ---------- */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.rules article { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.led { display: inline-block; margin-bottom: 10px; padding: .05em .45em; border-radius: 4px; background: #0a1118; color: var(--c); font-weight: 700; font-size: 1.6rem; letter-spacing: .06em; text-shadow: 0 0 10px var(--c); font-variant-numeric: tabular-nums; }
.rules p { margin: 0; color: var(--muted); }
[data-level="legal"] { --c: var(--legal); }
[data-level="mid"] { --c: var(--mid); }
[data-level="high"] { --c: var(--high); }

/* ---------- Outil : l'horloge ---------- */
.clock-check { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.where { display: grid; gap: 8px; margin-top: 18px; }
.where button { text-align: left; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 500 .98rem var(--font); cursor: pointer; }
.where button[aria-pressed="true"] { border-color: var(--amber); box-shadow: inset 4px 0 0 var(--amber); }
.time-label { display: block; margin-top: 16px; font-weight: 500; }
.slider { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.slider input { flex: 1; min-width: 0; accent-color: var(--amber); height: 28px; }
.slider output { min-width: 74px; text-align: center; padding: .15em .5em; border-radius: 4px; background: #0a1118; color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 0 8px var(--amber); }
.minors { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.minors input { width: 20px; height: 20px; accent-color: var(--amber); }
.result { padding: 24px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.r-light { display: flex; justify-content: center; gap: 12px; margin: 0 0 12px; }
.r-light span { width: 34px; height: 34px; border-radius: 50%; background: #2a3846; }
.result[data-level="legal"] .r-light span:last-child { background: var(--legal); box-shadow: 0 0 20px var(--legal); }
.result[data-level="high"] .r-light span:first-child { background: var(--high); box-shadow: 0 0 20px var(--high); }
.r-tag { margin: 0 0 6px; font-weight: 700; font-size: 1.4rem; color: var(--c); }
.result p:last-child { margin: 0; color: var(--muted); }

/* ---------- 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: 26px; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 18px 20px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.contact b { display: block; font-size: 1.35rem; color: var(--text); overflow-wrap: anywhere; }
.contact-main { border-color: var(--amber); }
.contact-main b { color: var(--amber); font-size: 1.6rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 50px 14px 18px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #2c3a48; }
.faq details[open] summary::after { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { background: radial-gradient(60% 70% at 50% 0%, #22344a, var(--night) 70%); }
.sec-join .intro { color: var(--muted); }
.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; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s; }
.app:hover { border-color: var(--amber); }
.app svg { width: 38px; height: 38px; flex: none; }
.app-tg { background: #2aabee; border-color: #2aabee; }
.app-tg svg { fill: #fff; }
.app-wa svg { fill: #25d366; }
.app-sig svg { fill: #8fb0ff; }
.app b { display: block; }
.app small { color: #dfe8f1; }
.group-rules { color: var(--muted); max-width: 80ch; }
.group-rules b { color: var(--amber); }

/* ---------- Pied de page ---------- */
.foot { padding: 26px 0 36px; background: #090e14; color: #8394a6; font-size: .9rem; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 .4em; }
.foot b { color: var(--text); }
.foot a { color: var(--amber); }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(9, 14, 20, .94); }
.gate-box { width: min(440px, 100%); padding: 30px 26px 26px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.gate-badge { width: 76px; height: 76px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: #0a1118; color: var(--amber); font-weight: 700; font-size: 1.5rem; text-shadow: 0 0 10px var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.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; }
.gate-no { margin: 14px 0 0; color: var(--red) !important; font-weight: 500; }

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