/* =========================================================
   Christchurch Weed Telegram Group — thème « ville-conteneurs (Re:START) »
   (nouveau design du 2026-10-30, à la demande de l'utilisateur)
   Conteneurs maritimes colorés et ondulés, portes de conteneur au pochoir,
   béton et bandes de chantier ; deux conteneurs descendent au bout d'une grue.
   Une seule police : Encode Sans.
   ========================================================= */
:root {
  --concrete: #e4e1da;
  --concrete-2: #d6d2c9;
  --card: #fbfaf7;
  --ink: #1e1f22;
  --muted: #56585d;
  --line: #c9c4b9;
  --red: #d1462f;
  --teal: #1f8a8a;
  --mustard: #e2a52b;
  --cobalt: #2c5aa0;
  --low: #2c5aa0;
  --mid: #e2a52b;
  --high: #d1462f;
  --legal: #2f8a4c;
  --font: "Encode Sans", "Segoe UI", Arial, sans-serif;
  --ribs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Crect width='7' height='10' fill='%23000' fill-opacity='.14'/%3E%3C/svg%3E");
  --hazard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect width='28' height='28' fill='%23e2a52b'/%3E%3Cpath d='M0 28L28 0H14L0 14ZM28 14V28H14Z' fill='%231e1f22'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--concrete); color: var(--ink); font: 400 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--cobalt); }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.8vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.overline { font-size: .82rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: .8em; }
[data-level="low"] { --c: var(--low); }
[data-level="mid"] { --c: var(--mid); }
[data-level="high"] { --c: var(--high); }
[data-level="legal"] { --c: var(--legal); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .66em 1.4em; border-radius: 2px; font: 800 1rem var(--font); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; cursor: pointer; border: 3px solid var(--ink); transition: transform .15s, box-shadow .15s; }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-forest { background: var(--red); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-forest:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-quiet { background: var(--card); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-quiet:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

/* ---------- En-tête ---------- */
.head { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: var(--hazard); background-size: 28px 28px; }
.head-in { display: flex; align-items: center; gap: 22px; height: 58px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; }
.mark svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.mark i { font-style: normal; color: var(--mustard); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: #c9c6be; text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--mustard); }
.langs { display: flex; gap: 4px; }
.langs button { background: #34363b; border: 0; border-radius: 2px; color: #c9c6be; font: 800 .8rem var(--font); padding: .3em .6em; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--mustard); color: var(--ink); }

/* ---------- Accueil : la ville-conteneurs ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 8vw, 100px) 0 clamp(50px, 7vw, 90px); background: linear-gradient(#c9dbe6, var(--concrete) 75%); }
.leaf { position: absolute; width: 230px; height: 92px; border: 3px solid var(--ink); background: var(--ribs) repeat, var(--teal); background-size: 14px 10px, auto; animation: lower 9s ease-in-out infinite; }
.leaf::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 3px; height: 400px; background: var(--ink); }
.leaf-a { right: 6%; top: -10px; }
.leaf-b { right: 22%; top: 40px; width: 180px; background-color: var(--mustard); animation-delay: -4.5s; }
@keyframes lower { 0%, 100% { transform: translateY(-30px); } 50% { transform: translateY(12px); } }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); margin: .05em 0 .1em; text-transform: uppercase; }
.hero h1 em { display: block; font-style: normal; color: var(--red); }
.hero-sub { font-size: 1rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--cobalt); }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.1rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
/* Porte de conteneur au pochoir */
.plaque { position: relative; padding: 26px 26px 20px 46px; color: #fff; background: var(--ribs) repeat, var(--red); background-size: 14px 10px, auto; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.plaque::before, .plaque::after { content: ""; position: absolute; top: 10px; bottom: 10px; width: 6px; background: #3a3c41; border-radius: 3px; }
.plaque::before { left: 14px; }
.plaque::after { left: 26px; }
.plaque-name { margin: 0; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.plaque-family { margin: 0 0 12px; font-size: .9rem; opacity: .9; }
.plaque dl { margin: 0; display: grid; gap: 8px; }
.plaque dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 8px; border-top: 2px dashed rgba(255,255,255,.4); }
.plaque dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.plaque dd { margin: 0; font-weight: 800; }
.plaque-foot { margin: 12px 0 0; font-size: .82rem; opacity: .85; }

/* ---------- Sections ---------- */
.sec { padding: clamp(54px, 8vw, 96px) 0; }
.sec-moss { background: var(--ink); color: #fff; }
.sec-moss h2 { color: #fff; }
.sec-moss .overline { color: var(--mustard); }
.sec-moss .intro { color: #c9c6be; }
.intro { max-width: 66ch; color: var(--muted); }
.note { margin-top: 18px; padding: 14px 18px; background: var(--card); border: 3px solid var(--ink); color: var(--muted); }

/* La loi, conteneur par conteneur */
.law { width: 100%; margin-top: 28px; border-collapse: separate; border-spacing: 0 8px; }
.law th { padding: 0 14px 4px; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.law td { padding: 14px; background: var(--ribs) repeat, var(--card); background-size: 14px 10px, auto; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.law td:first-child { border-left: 14px solid var(--c); font-weight: 800; }
.law td:last-child { border-right: 3px solid var(--ink); font-weight: 800; color: var(--c); white-space: nowrap; }
.law tr[data-level="mid"] td:last-child { color: #a8780f; }
.road { margin-top: 26px; padding: 22px 24px 18px; background: var(--card); border: 3px solid var(--ink); position: relative; }
.road::before { content: ""; position: absolute; left: -3px; right: -3px; top: -16px; height: 13px; background: var(--hazard); background-size: 28px 28px; border: 3px solid var(--ink); border-bottom: 0; }
.road ul { margin: 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 6px; }
.road p { color: var(--muted); }

/* ---------- Outil : oui / non ---------- */
.check { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.qs { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: q; }
.qs li { counter-increment: q; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px 12px 50px; position: relative; background: #2a2c31; border-left: 6px solid var(--teal); }
.qs li::before { content: counter(q); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; background: var(--mustard); color: var(--ink); font-weight: 800; font-size: .8rem; }
.yn { display: flex; gap: 6px; flex: none; }
.yn button { padding: .35em .9em; border: 2px solid #5a5d63; background: transparent; color: #e4e1da; font: 800 .85rem var(--font); text-transform: uppercase; cursor: pointer; }
.yn button[aria-pressed="true"] { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }
.result { --c: var(--low); position: sticky; top: 86px; padding: 24px; background: var(--card); color: var(--ink); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--c); }
.meter { height: 14px; margin-bottom: 18px; background: var(--hazard); background-size: 28px 28px; border: 2px solid var(--ink); overflow: hidden; }
.meter span { display: block; height: 100%; width: 33%; background: var(--c); transition: width .3s; }
.result[data-level="mid"] .meter span { width: 66%; }
.result[data-level="high"] .meter span { width: 100%; }
.result-tag { margin: 0 0 .4em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c); font-size: .85rem; }
.result h3 { font-size: 1.5rem; }
.result ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }

/* ---------- 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: 30px; position: relative; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 14px; border: 2px solid var(--ink); background: var(--teal); }
.tips li:nth-child(2)::before { background: var(--red); }
.tips li:nth-child(3)::before { background: var(--mustard); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 16px 20px; text-decoration: none; color: var(--muted); background: var(--card); border: 3px solid var(--ink); }
.contact b { display: block; font-size: 1.45rem; color: var(--ink); }
.contact-local { background: var(--ribs) repeat, var(--teal); background-size: 14px 10px, auto; color: #e3f3f2; }
.contact-local b { color: #fff; font-size: 1.8rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { background: #2a2c31; border-left: 6px solid var(--red); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 50px 15px 18px; font-weight: 800; font-size: 1.05rem; position: relative; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 9px; font-size: 1.6rem; color: var(--mustard); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: #c9c6be; }

/* ---------- Communauté ---------- */
.sec-join { position: relative; background: var(--ribs) repeat, var(--cobalt); background-size: 14px 10px, auto; color: #fff; text-align: center; }
.sec-join h2 { color: #fff; }
.sec-join .overline { color: var(--mustard); }
.sec-join .intro { color: #d8e2f2; 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: 14px 18px; background: var(--card); color: var(--ink); text-decoration: none; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.app:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.app svg { flex: none; width: 34px; height: 34px; }
.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: #d8e2f2; font-size: .98rem; max-width: 74ch; margin-inline: auto; }
.rules b { color: #fff; }

/* ---------- Pied de page ---------- */
.foot { position: relative; padding: 38px 0 40px; background: var(--ink); color: #9d9a92; font-size: .95rem; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--hazard); background-size: 28px 28px; }
.foot p { margin: 0 0 .5em; }
.foot b { color: #fff; }
.foot a { color: var(--mustard); }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(30,31,34,.92); }
.gate[hidden] { display: none; }
.gate-box { width: min(440px, 100%); padding: 32px 28px; text-align: center; background: var(--card); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--mustard); }
.gate-badge { width: 110px; height: 60px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--ribs) repeat, var(--teal); background-size: 14px 10px, auto; color: #fff; font-weight: 800; font-size: 1.5rem; border: 3px solid var(--ink); }
.gate-box h2 { font-size: 1.7rem; text-transform: uppercase; }
.gate-box p { color: var(--muted); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.gate-no { margin-top: 16px; color: var(--high) !important; font-weight: 800; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 920px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .hero-in, .check, .help { grid-template-columns: 1fr; }
  .leaf-b { display: none; }
  .leaf-a { opacity: .35; }
  .result { position: relative; top: 0; }
  .apps { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .law thead { display: none; }
  .law, .law tbody, .law tr, .law td { display: block; }
  .law tr { margin-bottom: 10px; border: 3px solid var(--ink); border-left: 14px solid var(--c); background: var(--card); }
  .law td, .law td:first-child, .law td:last-child { border: 0; padding: 8px 12px; background: none; }
  .qs li { flex-direction: column; align-items: flex-start; }
  .plaque dl div { grid-template-columns: 1fr; gap: 2px; }
  .mark { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
