/* =========================================================
   Buenos Aires Weed Telegram Group — thème « ciel celeste » (repris du site de Prešov)
   Bleu ciel, toits de la ville en 3 couches avec l'Obelisco, nuages qui défilent.
   Une seule police : Nunito.
   ========================================================= */
:root {
  --sky: #dceefe;
  --sky-2: #f2f8fe;
  --paper: #ffffff;
  --ink: #1d2b3a;
  --muted: #566577;
  --line: #d6e3ef;
  --m1: #2f4a66;
  --m2: #4f7092;
  --m3: #8fb0cd;
  --red: #d52b1e;
  --blue: #0b4ea2;
  --ok: #2e7d4f;
  --mid: #c27c0e;
  --bad: #c62828;
  --font: "Nunito", 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(--paper); color: var(--ink); font: 400 17.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 4.8vw, 3rem); font-weight: 900; color: var(--m1); }
h3 { font-size: 1.15rem; font-weight: 900; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.kicker { font-size: .82rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 1em; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.45em; border-radius: 999px; font: 700 1rem var(--font); text-decoration: none; cursor: pointer; border: 0; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-main { background: var(--red); color: #fff; box-shadow: 0 10px 22px -10px rgba(213,43,30,.7); }
.btn-soft { background: #fff; color: var(--blue); box-shadow: 0 6px 18px -10px rgba(11,78,162,.5); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--m1); font-weight: 900; font-size: 1.15rem; }
.brand svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.brand b { color: var(--red); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--muted); text-decoration: none; font-weight: 700; }
.menu a:hover { color: var(--red); }
.langs { display: flex; background: var(--sky-2); border-radius: 999px; padding: 3px; }
.langs button { background: none; border: 0; border-radius: 999px; color: var(--muted); font: 900 .8rem var(--font); padding: .4em .75em; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* ---------- Accueil ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #a9d3f5 0%, var(--sky) 55%, var(--sky-2) 100%); padding: clamp(56px, 9vw, 104px) 0 clamp(150px, 18vw, 220px); }
.hero-in { position: relative; z-index: 2; text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 900; color: var(--m1); margin-bottom: .1em; letter-spacing: -.02em; }
.hero h1 span { display: block; color: var(--blue); font-weight: 700; }
.hero-sub { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 900; color: var(--red); }
.lead { max-width: 58ch; margin-inline: auto; color: var(--muted); font-size: 1.1rem; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.mountains { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(120px, 16vw, 220px); z-index: 1; }
.m3 { fill: var(--m3); }
.m2 { fill: var(--m2); }
.m1 { fill: var(--m1); }

/* Nuages : formes CSS qui défilent lentement */
.cloud { position: absolute; z-index: 1; width: 160px; height: 46px; border-radius: 999px; background: rgba(255,255,255,.85); animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 70px; height: 70px; left: 26px; top: -34px; }
.cloud::after { width: 56px; height: 56px; left: 80px; top: -24px; }
.cloud-a { top: 14%; animation-duration: 60s; animation-delay: -10s; }
.cloud-b { top: 34%; transform: scale(.7); animation-duration: 80s; animation-delay: -45s; opacity: .8; }
.cloud-c { top: 8%; transform: scale(.5); animation-duration: 95s; animation-delay: -70s; opacity: .7; }
@keyframes drift { from { left: -220px; } to { left: 105%; } }

.facts-wrap { background: var(--m1); padding: 0 0 36px; }
.facts { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.facts li { background: var(--paper); border-radius: 18px; padding: 18px 20px; box-shadow: 0 12px 28px -18px rgba(0,0,0,.6); }
.facts b { display: block; font-size: 1.8rem; font-weight: 900; color: var(--red); }
.facts span { color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 9vw, 100px) 0; }
.sec-sky { background: var(--sky-2); }
.intro { max-width: 68ch; color: var(--muted); }
.note { margin-top: 26px; padding: 16px 20px; border-radius: 16px; background: #fff3f2; border: 2px solid #f6c9c5; max-width: 86ch; font-weight: 700; color: #8c1d14; }

[data-level="ok"] { --c: var(--ok); }
[data-level="mid"] { --c: var(--mid); }
[data-level="bad"] { --c: var(--bad); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.card { background: var(--paper); border-radius: 20px; padding: 22px; box-shadow: 0 14px 34px -24px rgba(29,43,58,.6); border: 1px solid var(--line); }
.card p { margin: 0; color: var(--muted); }
.tag { display: inline-block; margin-bottom: 10px; padding: .25em .75em; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Comparateur ---------- */
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0; }
.picker label { font-weight: 900; }
.picker select { flex: 1; min-width: 240px; max-width: 460px; padding: .75em 1em; border-radius: 14px; border: 2px solid var(--line); font: 700 1rem var(--font); color: var(--ink); background: #fff; cursor: pointer; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.side { background: var(--paper); border-radius: 20px; padding: 0 24px 22px; overflow: hidden; border: 2px solid color-mix(in srgb, var(--c) 40%, #fff); transition: border-color .3s; }
.side h3 { color: var(--c); font-size: 1.4rem; margin-top: 16px; }
.side p:last-child { margin: 0; color: var(--muted); }
.flag { display: flex; align-items: center; gap: 12px; margin: 0 -24px; padding: 14px 24px; font-weight: 900; color: var(--ink); background: var(--sky-2); border-bottom: 1px solid var(--line); }
.flag::before { content: ""; flex: none; width: 32px; height: 22px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.flag-ar::before { background: radial-gradient(circle at 50% 50%, #f6b40e 0 2.6px, transparent 3px), linear-gradient(180deg, #74acdf 0 33.3%, #fff 33.3% 66.6%, #74acdf 66.6%); }
.flag-uy::before { background: radial-gradient(circle at 22% 28%, #f6b40e 0 2.4px, transparent 2.8px), linear-gradient(#fff, #fff) 0 0 / 44% 55% no-repeat, repeating-linear-gradient(180deg, #fff 0 11.1%, #0038a8 11.1% 22.2%); }

/* ---------- 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: 28px; position: relative; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 0; top: .4em; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 13px solid var(--m2); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 20px 22px; border-radius: 18px; text-decoration: none; color: var(--muted); background: var(--sky-2); }
.contact b { display: block; font-size: 1.45rem; color: var(--m1); }
.contact-main { background: var(--m1); color: #d3e2f0; }
.contact-main b { color: #fff; font-size: 1.7rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: 16px; box-shadow: 0 10px 26px -22px rgba(29,43,58,.7); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 900; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--blue); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; background: var(--red); color: #fff; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { background: linear-gradient(180deg, var(--m2), var(--m1)); color: #fff; text-align: center; }
.sec-join h2 { color: #fff; }
.sec-join .kicker { color: #ffd5d1; }
.sec-join .intro { color: #d3e2f0; 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: 18px 20px; border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .15s; }
.app:hover { transform: translateY(-3px); }
.app svg { flex: none; width: 36px; height: 36px; }
.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); }
.rules { color: #d3e2f0; font-size: .94rem; max-width: 74ch; margin-inline: auto; }
.rules b { color: #fff; }

/* ---------- Pied de page ---------- */
.foot { padding: 30px 0 40px; background: #16273a; color: #9fb3c7; font-size: .9rem; }
.foot p { margin: 0 0 .5em; }
.foot b { color: #fff; }
.foot a { color: #ffd5d1; }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(22,39,58,.88); }
.gate[hidden] { display: none; }
.gate-box { width: min(440px, 100%); padding: 32px 26px; text-align: center; background: #fff; border-radius: 24px; }
.gate-badge { width: 72px; height: 72px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--red); font-weight: 900; font-size: 1.35rem; }
.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; margin-top: 8px; }
.gate-no { margin-top: 16px; color: var(--bad) !important; font-weight: 900; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 920px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .help { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .facts, .cards, .duo { grid-template-columns: 1fr; }
  .cloud { width: 110px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
