/* =========================================================
   Ostrava Weed Telegram Group — thème « affiche de festival à Dolní Vítkovice »
   (nouveau design du 2026-10-30, à la demande de l'utilisateur)
   Esprit Colours of Ostrava : affiche colorée, faisceaux de scène et égaliseur
   devant les hauts fourneaux (Bolt Tower, gazomètre Gong) ;
   panneaux en forme de billets, zones en bracelets de festival.
   Une seule police : Outfit.
   ========================================================= */
:root {
  --paper: #faf6ee;
  --card: #ffffff;
  --ink: #17141f;
  --ink-2: #241f30;
  --text: #17141f;
  --muted: #5b5666;
  --line: #e4ddd0;
  --pink: #ff3d7f;
  --orange: #ff8a1f;
  --yellow: #ffd23f;
  --teal: #00a6a6;
  --purple: #6c3ce0;
  --ok: #13896b;
  --mid: #e07a00;
  --bad: #d6223d;
  --festival: linear-gradient(90deg, var(--pink) 0 20%, var(--orange) 20% 40%, var(--yellow) 40% 60%, var(--teal) 60% 80%, var(--purple) 80%);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--purple); }
h1, h2, h3 { line-height: 1.02; margin: 0 0 .45em; font-weight: 800; letter-spacing: -.02em; overflow-wrap: break-word; }
h2 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.kicker { display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: .9em; }
.kicker::before { content: ""; flex: none; width: 34px; height: 8px; border-radius: 4px; background: var(--festival); }

/* Bande aux couleurs du festival */
.stripes { height: 6px; background: var(--festival); }

/* Panneau en forme de billet (deux encoches) */
.panel { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; }
.panel::before, .panel::after {
  content: ""; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--ink);
}
.panel::before { left: -9px; clip-path: inset(0 0 0 50%); }
.panel::after { right: -9px; clip-path: inset(0 50% 0 0); }
.sec-dark .panel::before, .sec-dark .panel::after { background: var(--ink); }
.sec-alt .panel::before, .sec-alt .panel::after { background: #f2ecdf; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.35em; border: 2px solid var(--ink); border-radius: 999px;
  font: 800 1rem var(--font); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-rust { background: var(--pink); color: #fff; }
.btn-steel { background: var(--card); color: var(--ink); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.top-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .04em; font-size: 1.15rem; }
.logo svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.logo b { color: var(--yellow); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: #d4cfe0; text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--yellow); }
.langs { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--ink-2); }
.langs button { background: none; color: #d4cfe0; border: 0; border-radius: 999px; font: 800 .8rem var(--font); padding: .4em .7em; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }

/* ---------- Accueil : l'affiche ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(52px, 8vw, 96px) 0 0;
  background:
    radial-gradient(circle at 86% 20%, var(--yellow) 0 150px, transparent 151px),
    radial-gradient(circle at 4% 78%, rgba(255, 61, 127, .2) 0 190px, transparent 191px),
    radial-gradient(circle at 62% 6%, rgba(0, 166, 166, .18) 0 70px, transparent 71px),
    var(--paper);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; padding-bottom: 36px; }
.hero h1 { font-size: clamp(2.9rem, 8.6vw, 6rem); line-height: .92; margin-bottom: .2em; letter-spacing: -.035em; }
.hero h1 span { display: block; color: var(--pink); }
.hero-sub { display: inline-block; padding: .1em .45em; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 800; background: var(--yellow); transform: rotate(-1.5deg); }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.1rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.gauges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gauges li { padding: 22px 20px 16px; }
.gauges li:nth-child(1) { transform: rotate(-2deg); }
.gauges li:nth-child(2) { transform: rotate(1.5deg); }
.gauges li:nth-child(3) { transform: rotate(1deg); }
.gauges li:nth-child(4) { transform: rotate(-1.5deg); }
.gauges b { display: block; font-size: 2.6rem; line-height: 1; color: var(--teal); font-weight: 800; }
.gauges li:nth-child(2) b { color: var(--purple); }
.gauges li:nth-child(3) b { color: var(--orange); }
.gauges span { font-weight: 600; color: var(--muted); font-size: .96rem; }
.gauges .panel-red b { color: var(--bad); }

/* La scène devant les hauts fourneaux */
.stage { display: block; width: 100%; height: 150px; }
.stage .beams path { transform-box: fill-box; transform-origin: 50% 100%; opacity: .32; animation: sway 6s ease-in-out infinite alternate; }
.stage .b1 { fill: var(--pink); }
.stage .b2 { fill: var(--yellow); animation-delay: -2s; }
.stage .b3 { fill: var(--teal); animation-delay: -4s; }
.stage .b4 { fill: var(--purple); animation-delay: -1s; }
@keyframes sway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.stage .plant path, .stage .plant rect { fill: var(--ink); }
.stage .ribs { fill: none; stroke: var(--paper); stroke-opacity: .35; stroke-width: 2; }
.stage .eq rect { transform-box: fill-box; transform-origin: 50% 100%; animation: beat 1.1s ease-in-out infinite alternate; fill: var(--pink); }
.stage .eq rect:nth-child(4n+2) { fill: var(--orange); animation-delay: -.3s; animation-duration: .9s; }
.stage .eq rect:nth-child(4n+3) { fill: var(--teal); animation-delay: -.6s; animation-duration: 1.3s; }
.stage .eq rect:nth-child(4n) { fill: var(--purple); animation-delay: -.15s; animation-duration: 1s; }
@keyframes beat { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 9vw, 100px) 0; border-top: 2px solid var(--ink); }
.sec-concrete { background: #f2ecdf; }
.sec-concrete .panel::before, .sec-concrete .panel::after { background: #f2ecdf; }
.sec-dark { background: var(--ink); color: #fff; }
.sec-dark .intro { color: #bcb6c9; }
.sec-dark .kicker { color: var(--yellow); }
.intro { max-width: 70ch; color: var(--muted); }
.note { margin-top: 24px; padding: 14px 18px; border-radius: 12px; border: 2px dashed var(--bad); background: #fff3f5; max-width: 86ch; font-weight: 600; }

/* ---------- Zones : bracelets de festival ---------- */
.zones { margin-top: 32px; padding: 26px; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; }
.zone-row { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.zone-name { margin: 0; font-weight: 800; font-size: 1rem; }
.zone-bar { display: grid; grid-template-columns: 3fr 2fr 2fr; gap: 6px; }
.z { position: relative; padding: 10px 12px; border-radius: 999px; color: #fff; font-weight: 800; text-align: center; white-space: nowrap; border: 2px solid var(--ink); }
.z-ok { background: var(--ok); }
.z-mid { background: var(--yellow); color: var(--ink); }
.z-bad { background: var(--bad); }
.legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.legend li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); }
.legend b { color: var(--text); }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid var(--ink); }
.dot-ok { background: var(--ok); }
.dot-mid { background: var(--yellow); }
.dot-bad { background: var(--bad); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.card { padding: 24px 22px 18px; border-top-width: 10px; }
.card p { margin: 0; color: var(--muted); }
.card-ok { border-top-color: var(--ok); }
.card-mid { border-top-color: var(--orange); }
.card-bad { border-top-color: var(--bad); }

/* ---------- Calculatrice ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; margin-top: 28px; color: var(--text); }
.controls { padding: 28px 26px 24px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field-label { font-weight: 800; font-size: .98rem; }
.range { display: flex; align-items: center; gap: 14px; }
.range input { flex: 1; min-width: 0; accent-color: var(--pink); height: 28px; }
.range output { min-width: 70px; text-align: center; padding: .2em .6em; font-weight: 800; font-size: 1.15rem; background: var(--ink); color: var(--yellow); border-radius: 999px; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; justify-self: start; }
.seg button { background: var(--card); border: 0; padding: .5em 1.1em; font: 800 .95rem var(--font); cursor: pointer; color: var(--ink); }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--pink); margin: 0; flex: none; }
.result { --c: var(--ok); padding: 0 0 22px; overflow: hidden; position: sticky; top: 96px; }
.result[data-level="mid"] { --c: var(--mid); }
.result[data-level="bad"] { --c: var(--bad); }
.result-tag { margin: 0 0 18px; padding: 14px 26px; background: var(--c); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; border-bottom: 2px dashed var(--ink); }
.result h3 { margin: 0 26px 10px; font-size: 1.5rem; color: var(--c); }
.result ul { margin: 0 26px; padding-left: 1.1em; color: var(--muted); }
.result li { margin-bottom: .45em; }
.result::before, .result::after { top: 70%; }

/* ---------- Aide ---------- */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tips { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tips li { padding-left: 26px; position: relative; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); border: 2px solid var(--ink); }
.tips li:nth-child(2)::before { background: var(--orange); }
.tips li:nth-child(3)::before { background: var(--yellow); }
.tips li:nth-child(4)::before { background: var(--teal); }
.tips li:nth-child(5)::before { background: var(--purple); }
.lines { display: grid; gap: 14px; }
.line { display: block; padding: 22px 24px 18px; color: var(--muted); text-decoration: none; transition: transform .15s; }
.line:hover { transform: translateY(-2px); }
.line b { display: block; font-size: 1.5rem; color: var(--text); }
.line-main { background: var(--ink); color: #bcb6c9; }
.line-main b { color: var(--yellow); font-size: 1.75rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; display: grid; gap: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 16px 24px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-size: 1.1rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; background: var(--pink); color: #fff; }
.faq summary > * { pointer-events: none; }
.faq details p { margin: 0; padding: 0 24px 18px; color: var(--muted); }
.faq details[open] { border-color: var(--pink); }
.faq details::before, .faq details::after { top: 30px; }

/* ---------- Communauté ---------- */
.sec-join { text-align: center; background: radial-gradient(60% 70% at 50% 0%, rgba(108, 60, 224, .35), transparent 70%), var(--ink); }
.sec-join .kicker { justify-content: center; }
.sec-join .intro { margin-inline: auto; }
.sec-join .panel::before, .sec-join .panel::after { background: #1d1828; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px auto 22px; max-width: 900px; }
.app { display: flex; align-items: center; gap: 14px; text-align: left; padding: 22px 22px 18px; color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.app:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--yellow); }
.app svg { flex: none; width: 38px; height: 38px; }
.app[data-app="telegram"] { box-shadow: 0 0 0 3px #2aabee; }
.app[data-app="telegram"]:hover { box-shadow: 0 0 0 3px #2aabee, 5px 5px 0 var(--yellow); }
.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: .9rem; }
.rules { color: #bcb6c9; font-size: .95rem; max-width: 74ch; margin-inline: auto; }
.rules b { color: #fff; }

/* ---------- Pied de page ---------- */
.foot { background: #0f0d14; color: #a19bb0; font-size: .92rem; }
.foot .wrap { padding: 28px 0 38px; }
.foot p { margin: 0 0 .5em; }
.foot b { color: #fff; }
.foot a { color: var(--yellow); }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(23, 20, 31, .93); }
.gate[hidden] { display: none; }
.gate-box { width: min(440px, 100%); padding: 34px 28px 28px; text-align: center; }
.gate-box::before, .gate-box::after { background: #1d1a24; }
.gate-badge { width: 76px; height: 76px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); font-weight: 800; font-size: 1.4rem; transform: rotate(-8deg); box-shadow: 4px 4px 0 var(--pink); }
.gate-box h2 { font-size: 1.7rem; }
.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(--bad) !important; font-weight: 800; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 940px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .hero-in, .calc, .help { grid-template-columns: 1fr; gap: 32px; }
  .result { position: relative; top: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .apps { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .hero { background: radial-gradient(circle at 92% 6%, var(--yellow) 0 90px, transparent 91px), radial-gradient(circle at 0% 60%, rgba(255, 61, 127, .2) 0 130px, transparent 131px), var(--paper); }
  .stage { height: 110px; }
  .zone-row { grid-template-columns: 1fr; gap: 8px; }
  .zone-bar { gap: 4px; }
  .z { padding: 8px 4px; font-size: .88rem; }
  .cards { grid-template-columns: 1fr; }
  .zones { padding: 18px 16px; }
  .controls { padding: 24px 18px 20px; }
}
@media (max-width: 380px) {
  .top-in { gap: 12px; }
  .logo { font-size: 1rem; gap: 8px; }
  .logo svg { width: 24px; height: 24px; }
  .langs button { padding: .4em .55em; }
  .gauges { gap: 10px; }
  .gauges li { padding: 18px 14px 14px; }
  .gauges b { font-size: 2.1rem; }
}
@media (max-width: 340px) {
  .logo { font-size: .9rem; letter-spacing: .01em; }
  .langs { gap: 0; }
  .langs button { padding: .4em .45em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .app, .line { transition: none; }
  .stage .beams path, .stage .eq rect { animation: none; }
}
