/* =========================================================
   Duisburg Weed Telegram Group — thème « Landschaftspark la nuit et port »
   Acier sombre, haut fourneau qui s'illumine (vert, orange, rouge selon
   l'outil), lingots pour les règles, et la communauté en trois conteneurs
   du port posés par une grue (moins d'une seconde, puis immobiles).
   Une seule police : Urbanist.
   ========================================================= */
:root {
  --night: #120f1d;
  --steel: #1d1a2c;
  --steel2: #2a2640;
  --rust: #c4622d;
  --violet: #8f5cff;
  --cyan: #2ec5d3;
  --paper: #f3f1f7;
  --paper2: #e6e2ef;
  --white: #fdfcff;
  --ink: #17141f;
  --muted: #4e4a5c;
  --legal: #27a35a; --fine: #e19a1a; --crime: #d23c3c;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: #5a3cc4; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.05; font-weight: 800; overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(1.9rem, 4.8vw, 3.1rem); color: var(--steel); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.eyebrow { margin: 0 0 12px; color: var(--rust); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.intro { max-width: 62ch; color: var(--muted); font-size: 1.06rem; }
[data-level="legal"] { --c: var(--legal); }
[data-level="fine"] { --c: var(--fine); }
[data-level="crime"] { --c: var(--crime); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .78em 1.35em; border: 2px solid var(--cyan); border-radius: 10px; font: 800 1rem 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(--cyan); color: var(--night); }
.btn-line { background: transparent; color: #fff; border-color: #fff; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--night); color: #fff; border-bottom: 3px solid var(--rust); }
.top-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.logo svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.logo b { color: var(--cyan); }
.menu { display: flex; gap: 20px; margin-left: auto; }
.menu a { color: #cfc8e6; text-decoration: none; font-weight: 600; font-size: .93rem; }
.menu a:hover { color: var(--cyan); }
.langs { display: flex; gap: 4px; }
.langs button { border: 1px solid #4a4466; border-radius: 8px; background: none; color: #fff; font: 800 .76rem var(--font); padding: .25em .55em; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--night); }

/* ---------- Accueil : le haut fourneau la nuit ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(46px, 7vw, 80px) 0 0; color: #fff; background: radial-gradient(120% 90% at 80% 10%, #2b2350 0%, var(--night) 60%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
.hero-in > div { padding-bottom: clamp(40px, 6vw, 70px); }
.hero .eyebrow { color: var(--cyan); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
.hero h1 span { display: block; color: var(--cyan); }
.hero-sub { display: inline-block; margin: 0 0 16px; padding: .2em .9em; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 800; }
.lead { max-width: 56ch; color: #ddd7ee; font-size: 1.1rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.furnace { display: block; width: clamp(230px, 30vw, 350px); height: auto; --glow: var(--violet); }
.f-glow circle { fill: var(--glow); opacity: .35; filter: blur(28px); transition: fill .6s; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.f-stack { fill: #0b0914; stroke: var(--glow); stroke-width: 1.5; transition: stroke .6s; }
.f-pipe { fill: #0b0914; stroke: #3d3760; stroke-width: 1; }
.f-frame { stroke: #3d3760; stroke-width: 2; fill: none; }
.f-lights circle { fill: var(--glow); transition: fill .6s; }
.f-water { fill: #1a1630; }
.hero::after { content: ""; display: block; height: 18px; background: repeating-linear-gradient(90deg, var(--rust) 0 40px, #a24e22 40px 80px); }

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

/* ---------- Loi : six lingots ---------- */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.rules article { position: relative; padding: 20px 22px; background: var(--white); border-radius: 14px; border-left: 6px solid var(--c); box-shadow: 0 6px 16px rgba(18, 15, 29, .07); }
.ingot { display: inline-block; margin-bottom: 10px; padding: .15em .7em; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); background: var(--c); color: #fff; font-weight: 800; font-size: .95rem; }
.rules h3 { color: var(--steel); }
.rules p { margin: 0; color: var(--muted); }

/* ---------- Outil : la lumière du haut fourneau ---------- */
.light-check { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 30px; align-items: start; }
.sits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.sits button { padding: .65em .8em; border: 2px solid var(--paper2); border-radius: 12px; background: var(--white); color: var(--ink); font: 600 .92rem/1.3 var(--font); text-align: left; cursor: pointer; }
.sits button[aria-pressed="true"] { background: var(--steel); border-color: var(--steel); color: #fff; }
.lamp { position: sticky; top: 84px; padding: 24px; border-radius: 18px; background: var(--night); color: #ddd7ee; border-top: 6px solid var(--c); }
.bulb { display: block; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 34px 6px var(--c); transition: background .4s, box-shadow .4s; }
.l-tag { display: inline-block; margin: 0 0 8px; padding: .12em .7em; border-radius: 999px; background: var(--c); color: #fff; font-weight: 800; font-size: .82rem; }
.lamp h3 { color: #fff; font-size: 1.25rem; }
.lamp p:last-child { margin: 0; }

/* ---------- 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: 12px; }
.tips li { position: relative; padding-left: 28px; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 3px; background: var(--rust); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 18px 20px; background: var(--white); border-radius: 14px; text-decoration: none; color: var(--muted); border-left: 6px solid var(--cyan); }
.contact b { display: block; font-size: 1.4rem; color: var(--steel); overflow-wrap: anywhere; }
.contact-main { background: var(--steel); color: #cfc8e6; }
.contact-main b { color: var(--cyan); font-size: 1.6rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 12px; border-left: 6px solid var(--violet); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 50px 13px 18px; font-weight: 800; color: var(--steel); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--rust); font-size: 1.4rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 15px; color: var(--muted); }

/* ---------- Communauté : trois conteneurs du port ---------- */
.sec-join { background: var(--night); color: #fff; }
.sec-join h2 { color: #fff; }
.sec-join .eyebrow { color: var(--cyan); }
.sec-join .intro { color: #cfc8e6; }
.yard { position: relative; margin: 30px 0 22px; padding-top: 40px; }
.crane { position: absolute; left: 0; right: 0; top: 0; height: 12px; border-radius: 6px; background: repeating-linear-gradient(45deg, #e9b33a 0 12px, #2a2640 12px 24px); }
.boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.box { display: grid; gap: 4px; align-content: start; padding: 20px 18px 16px; border-radius: 6px; color: #fff; text-decoration: none; background: var(--bc) repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 3px, transparent 3px 18px); border: 3px solid rgba(0, 0, 0, .25); transition: translate .15s; }
.box:hover, .box:focus-visible { translate: 0 -4px; }
.box[data-app="telegram"] { --bc: #1f7fb8; }
.box[data-app="whatsapp"] { --bc: #1c8f4e; }
.box[data-app="signal"] { --bc: #3a5bd0; }
.b-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.b-ico svg { width: 28px; height: 28px; }
.box[data-app="telegram"] .b-ico svg { fill: #2aabee; }
.box[data-app="whatsapp"] .b-ico svg { fill: #25d366; }
.box[data-app="signal"] .b-ico svg { fill: #3a76f0; }
.box b { margin-top: 8px; font-size: 1.25rem; }
.box small { color: rgba(255, 255, 255, .85); line-height: 1.3; }
.go { justify-self: start; margin-top: 8px; padding: .3em .95em; border-radius: 999px; background: #fff; color: var(--night); font-weight: 800; font-size: .85rem; }
/* les conteneurs descendent de la grue en arrivant (classe ajoutée par le script), en moins d'une seconde */
.js-yard .box { opacity: 0; transform: translateY(-46px); }
.js-yard.on .box { animation: drop .45s cubic-bezier(.3, 1.3, .5, 1) forwards; }
.js-yard.on .box:nth-child(2) { animation-delay: .12s; }
.js-yard.on .box:nth-child(3) { animation-delay: .24s; }
@keyframes drop { to { opacity: 1; transform: none; } }
.group-rules { color: #cfc8e6; max-width: 80ch; }
.group-rules b { color: var(--cyan); }

/* ---------- Pied de page ---------- */
.foot { padding: 26px 0 36px; background: #0b0914; color: #a9a3c0; font-size: .9rem; border-top: 3px solid var(--rust); }
.foot p { margin: 0 0 .4em; }
.foot b { color: #fff; }
.foot a { color: var(--cyan); }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(11, 9, 20, .95); }
.gate-box { width: min(440px, 100%); padding: 30px 26px 26px; text-align: center; background: var(--white); border-radius: 18px; border-top: 8px solid var(--rust); }
.gate-badge { width: 84px; height: 84px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--night); color: var(--cyan); box-shadow: 0 0 24px rgba(46, 197, 211, .5); font-weight: 800; font-size: 1.5rem; }
.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-actions .btn-line { color: var(--steel); border-color: var(--steel); }
.gate-no { margin: 14px 0 0; color: var(--crime) !important; font-weight: 800; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 960px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .rules { grid-template-columns: 1fr 1fr; }
  .help, .light-check { grid-template-columns: minmax(0, 1fr); }
  .lamp { position: relative; top: 0; }
}
@media (max-width: 700px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .furnace { display: none; }
}
@media (max-width: 600px) {
  .rules { grid-template-columns: 1fr; }
  .sits { grid-template-columns: 1fr; }
  .boxes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .box { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding: 14px; }
  .b-ico { grid-row: span 3; }
  .box b { margin-top: 0; }
  .go { margin-top: 4px; }
}
@media (max-width: 360px) {
  .top-in { gap: 10px; }
  .logo { font-size: .9rem; gap: 6px; }
  .logo svg { width: 24px; height: 24px; }
  .langs { gap: 2px; }
  .langs button { padding: .2em .35em; }
  .lamp { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .f-glow circle { animation: none; }
  .js-yard .box, .js-yard.on .box { opacity: 1; transform: none; animation: none; }
  .btn, .box, .bulb, .f-stack, .f-lights circle, .f-glow circle { transition: none; }
}
