/* =========================================================
   Bonn Weed Telegram Group — thème « tours de verre »
   Blanc, argent, bleu nuit et bleu électrique ; tours de verre où une
   voiture monte, tapis roulant (petit SVG répété), loi en fiche
   technique, configurateur. Une seule police : Urbanist.
   ========================================================= */
:root {
  --bg: #f6f8fb;
  --pale: #e9eef6;
  --card: #ffffff;
  --ink: #0e1f3d;
  --muted: #59657a;
  --line: #d8dee8;
  --blue: #2f6bff;
  --blue-2: #1d4fd6;
  --silver: #b9c3d1;
  --ok: #1e9e6a;
  --fine: #d99a00;
  --crime: #e0443e;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-2); }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; margin: 0 0 .5em; line-height: 1.04; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4.8vw, 3rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

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

/* Tapis roulant : petit SVG répété qui avance */
.conveyor { height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Crect width='28' height='14' fill='%230e1f3d'/%3E%3Ccircle cx='14' cy='7' r='4' fill='%23b9c3d1'/%3E%3Ccircle cx='14' cy='7' r='1.5' fill='%230e1f3d'/%3E%3C/svg%3E") repeat-x 0 0 / 28px 14px; animation: belt 3s linear infinite; }
@keyframes belt { to { background-position: 280px 0; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.45em; border-radius: 999px; font: 800 1rem var(--font); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--silver); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .12em; }
.brand svg { width: 30px; height: 30px; fill: #2aabee; background: #fff; border-radius: 50%; }
.brand b { color: var(--blue); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--muted); text-decoration: none; font-weight: 600; }
.menu a:hover { color: var(--blue); }
.langs { display: flex; gap: 4px; }
.langs button { background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 800 .76rem var(--font); padding: .3em .7em; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Accueil ---------- */
.hero { padding: clamp(40px, 7vw, 80px) 0; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.8vw, 4.9rem); margin-bottom: .1em; }
.hero h1 span { display: block; background: linear-gradient(90deg, var(--blue), #7aa2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--silver); }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.06rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.towers { width: 100%; max-width: 380px; justify-self: center; border-radius: 18px; }
.lift { animation: lift 7s ease-in-out infinite; }
@keyframes lift { 0%, 12% { transform: translateY(0); } 50%, 62% { transform: translateY(-160px); } 100% { transform: translateY(0); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 9vw, 100px) 0; }
.sec-pale { background: var(--pale); }
.intro { max-width: 66ch; color: var(--muted); }

/* Fiche technique */
.spec { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 26px; }
.spec div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec div:nth-last-child(-n+2) { border-bottom: 0; }
.spec dt { font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.spec dd { margin: 0; color: var(--muted); }

/* ---------- Outil ---------- */
.sec-dark { background: var(--ink); color: #e8eef9; }
.sec-dark .kicker { color: #7aa2ff; }
.sec-dark .intro { color: #b6c2d8; }
.cfg { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
.seg { margin: 16px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; margin-bottom: 6px; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #b6c2d8; }
.seg button { padding: .55em 1.05em; border-radius: 999px; border: 1px solid #3a4c70; background: #15294f; color: #fff; font: 600 .95rem var(--font); cursor: pointer; }
.seg button:hover { border-color: #7aa2ff; }
.seg button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }
.summary { --c: var(--ok); position: sticky; top: 100px; padding: 26px 24px; border-radius: 18px; background: #fff; color: var(--ink); border-top: 8px solid var(--c); }
.summary[data-level="fine"] { --c: var(--fine); }
.summary[data-level="crime"] { --c: var(--crime); }
.s-label { margin: 0 0 .3em; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.summary h3 { font-size: 1.55rem; color: var(--c); }
.summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.summary li { padding-left: 22px; position: relative; color: var(--muted); }
.summary li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--silver); }
.summary li.warn { color: var(--crime); font-weight: 600; }
.summary li.warn::before { background: var(--crime); }

/* ---------- 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 { position: relative; padding-left: 26px; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--blue), #7aa2ff); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 20px 22px; border-radius: 16px; text-decoration: none; color: var(--muted); background: var(--card); border: 1px solid var(--line); }
.contact b { display: block; font-size: 1.3rem; color: var(--ink); word-break: break-word; }
.contact-main { border: 2px solid var(--blue); }
.contact-main b { font-size: 1.65rem; color: var(--blue); }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 14px; border: 1px solid var(--line); }
.faq details[open] { border-color: var(--blue); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -52%; font-size: 1.4rem; color: var(--blue); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { text-align: center; }
.sec-join .intro { 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: 16px; background: var(--card); color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.app:hover { transform: translateY(-3px); border-color: var(--blue); }
.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: var(--muted); font-size: .94rem; max-width: 74ch; margin-inline: auto; }
.rules b { color: var(--ink); }

/* ---------- Pied de page ---------- */
.foot { background: var(--ink); color: #a9b5cb; font-size: .9rem; }
.foot .wrap { padding: 24px 0 38px; }
.foot p { margin: 0 0 .5em; }
.foot b { color: #fff; }
.foot a { color: #7aa2ff; }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(14,31,61,.95); }
.gate[hidden] { display: none; }
.gate-box { width: min(440px, 100%); padding: 32px 26px; text-align: center; background: #fff; border-radius: 22px; }
.gate-badge { width: 86px; height: 86px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 26px; background: linear-gradient(135deg, var(--blue), #7aa2ff); color: #fff; 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; margin-top: 8px; }
.gate-no { margin-top: 16px; color: var(--crime) !important; font-weight: 800; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 920px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .hero-in, .cfg, .help { grid-template-columns: minmax(0, 1fr); }
  .towers { max-width: 320px; }
  .spec { grid-template-columns: 1fr; }
  .spec div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .summary { position: relative; top: 0; }
  .apps { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand { letter-spacing: .05em; font-size: .9rem; white-space: nowrap; }
  .spec { padding: 6px 16px; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
