/* =========================================================
   Eindhoven Weed Telegram Group — thème « De Stijl / Dutch Design »
   Blanc, lignes noires épaisses, blocs rouge, bleu et jaune.
   Une seule police : Archivo.
   ========================================================= */
:root {
  --white: #ffffff;
  --paper: #f4f3ef;
  --ink: #111111;
  --muted: #4a4a4a;
  --red: #d7261e;
  --blue: #1d4f9c;
  --yellow: #f6c200;
  --rule: 5px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.02; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--white); padding: .3em .7em; margin-bottom: 1.1em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.3em; border: 3px solid var(--ink);
  font: 800 .95rem var(--font); text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.btn-red { background: var(--red); color: var(--white); }
.btn-plain { background: var(--white); color: var(--ink); }

/* ---------- Barre du haut ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: var(--rule) solid var(--ink); }
.bar-in { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.brand svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.brand b { color: var(--red); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; }
.nav a:hover { color: var(--red); }
.langs { display: flex; border: 3px solid var(--ink); }
.langs button {
  background: var(--white); border: 0; color: var(--ink); font: 800 .78rem var(--font);
  padding: .4em .65em; cursor: pointer;
}
.langs button + button { border-left: 3px solid var(--ink); }
.langs button[aria-pressed="true"] { background: var(--yellow); }

/* ---------- Accueil : grille De Stijl ---------- */
.hero { padding: clamp(28px, 5vw, 56px) 0; }
.grid {
  display: grid; gap: var(--rule); background: var(--ink); border: var(--rule) solid var(--ink);
  grid-template-columns: 1.6fr .55fr 1fr;
  grid-template-areas:
    "title title red"
    "lead  blue  yellow"
    "lead  blue  white";
}
.cell { background: var(--white); padding: clamp(18px, 3vw, 34px); }
.cell-title { grid-area: title; }
.cell-red { grid-area: red; background: var(--red); min-height: 120px; }
.cell-lead { grid-area: lead; }
.cell-blue { grid-area: blue; background: var(--blue); color: var(--white); }
.cell-yellow { grid-area: yellow; background: var(--yellow); }
.cell-white { grid-area: white; }
.cell-blue, .cell-yellow, .cell-white { display: flex; flex-direction: column; justify-content: flex-end; }
.cell > b { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1; font-weight: 800; }
.cell > span { font-weight: 600; font-size: .95rem; }
.hero h1 { font-size: clamp(2.5rem, 7.4vw, 5.6rem); text-transform: uppercase; margin-bottom: .15em; }
.hero h1 span { display: block; color: var(--blue); }
.hero-sub { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 800; color: var(--red); margin: 0; text-transform: uppercase; letter-spacing: .03em; }
.cell-lead p { font-size: 1.08rem; color: var(--muted); max-width: 52ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 9vw, 100px) 0; border-top: var(--rule) solid var(--ink); }
.sec-grey { background: var(--paper); }
.intro { max-width: 70ch; color: var(--muted); }
.note { margin-top: 24px; padding: 16px 20px; border: 3px solid var(--ink); background: var(--white); max-width: 86ch; }

/* ---------- Toléré / illégal / légal ---------- */
.cols { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: var(--rule); background: var(--ink); border: var(--rule) solid var(--ink); margin-top: 34px; }
.col { background: var(--white); padding: 24px 24px 18px; }
.col h3 { display: inline-block; padding: .25em .6em; margin-bottom: 14px; }
.col-blue h3 { background: var(--blue); color: var(--white); }
.col-red h3 { background: var(--red); color: var(--white); }
.col-yellow h3 { background: var(--yellow); }
.col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.col li { padding-left: 20px; position: relative; color: var(--muted); }
.col li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--ink); }
.col-blue li::before { background: var(--blue); }
.col-red li::before { background: var(--red); }
.col-yellow li::before { background: var(--yellow); outline: 1px solid var(--ink); }

/* ---------- Règles des coffeeshops ---------- */
.rules-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--rule); background: var(--ink); border: var(--rule) solid var(--ink); margin-top: 30px; }
.rule { background: var(--white); padding: 22px; }
.rule b { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; margin-bottom: 8px; }
.rule:nth-child(1) b { color: var(--red); }
.rule:nth-child(2) b { color: var(--blue); }
.rule:nth-child(4) b { color: var(--blue); }
.rule p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Outil ---------- */
.check { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; margin-top: 28px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  text-align: left; padding: 16px 18px; min-height: 74px; cursor: pointer;
  font: 600 1rem var(--font); color: var(--ink); background: var(--white);
  border: 3px solid var(--ink); transition: background .12s, color .12s;
}
.tile:hover { background: var(--paper); }
.tile[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.tile[aria-pressed="true"]::after { content: " ✓"; color: var(--yellow); }
.verdict {
  --c: var(--blue);
  position: sticky; top: 90px; border: var(--rule) solid var(--ink); background: var(--white);
}
.verdict[data-level="mid"] { --c: var(--yellow); }
.verdict[data-level="high"] { --c: var(--red); }
.verdict-tag {
  margin: 0; padding: 12px 20px; background: var(--c); color: var(--white);
  font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem;
  border-bottom: var(--rule) solid var(--ink);
}
.verdict[data-level="mid"] .verdict-tag { color: var(--ink); }
.verdict h3 { margin: 20px 20px 10px; font-size: 1.4rem; }
.verdict ul { margin: 0 20px 20px; padding-left: 1.1em; color: var(--muted); }
.verdict li { margin-bottom: .45em; }

/* ---------- 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: 24px; position: relative; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--red); }
.tips li:nth-child(2n)::before { background: var(--blue); }
.tips li:nth-child(3n)::before { background: var(--yellow); }
.contacts { display: grid; gap: var(--rule); background: var(--ink); border: var(--rule) solid var(--ink); }
.contact { display: block; padding: 20px 22px; background: var(--white); color: var(--muted); text-decoration: none; }
.contact:hover { background: var(--paper); }
.contact b { display: block; font-size: 1.45rem; color: var(--ink); }
.contact-main { background: var(--blue); color: #dbe5f5; }
.contact-main:hover { background: #18447f; }
.contact-main b { color: var(--white); font-size: 1.8rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; border: var(--rule) solid var(--ink); }
.faq details + details { border-top: 3px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0; bottom: 0; width: 48px;
  display: grid; place-items: center; background: var(--yellow); border-left: 3px solid var(--ink);
  font-size: 1.4rem;
}
.faq details[open] summary::after { content: "−"; background: var(--red); color: var(--white); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { background: var(--blue); color: var(--white); }
.sec-join .tag { background: var(--yellow); color: var(--ink); }
.sec-join .intro { color: #dbe5f5; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rule); background: var(--ink); border: var(--rule) solid var(--ink); margin: 32px 0 22px; }
.app { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--white); color: var(--ink); text-decoration: none; }
.app:hover { background: var(--yellow); }
.app svg { flex: none; width: 38px; height: 38px; }
.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: .86rem; }
.group-rules { color: #dbe5f5; font-size: .93rem; max-width: 76ch; }
.group-rules b { color: var(--white); }

/* ---------- Pied de page ---------- */
.foot { padding: 32px 0 40px; background: var(--ink); color: #bdbdbd; font-size: .88rem; }
.foot p { margin: 0 0 .5em; }
.foot b { color: var(--white); }
.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(17,17,17,.9); }
.gate[hidden] { display: none; }
.gate-box { width: min(440px, 100%); padding: 30px 26px; text-align: center; background: var(--white); border: var(--rule) solid var(--ink); box-shadow: 10px 10px 0 var(--red); }
.gate-badge { width: 70px; height: 70px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--yellow); border: 3px solid var(--ink); font-weight: 800; font-size: 1.3rem; }
.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(--red) !important; font-weight: 800; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 940px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "lead  lead"
      "blue  yellow"
      "red   white";
  }
  .cell-red { min-height: 0; }
  .cols, .help { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr 1fr; }
  .check { grid-template-columns: 1fr; }
  .verdict { position: static; }
  .apps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --rule: 4px; }
  .brand span { font-size: .92rem; }
  .rules-grid, .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile { transition: none; }
}
