/* =========================================================
   Manukau Weed Telegram Group — thème « Pasifika » clair
   Sable, brun tapa, corail, bleu océan, bandes à motifs tapa en CSS.
   Une seule police : Outfit.
   ========================================================= */
:root {
  --bg: #f7f0e6;
  --sand: #efe3d2;
  --paper: #fffaf3;
  --ink: #2a1c13;
  --muted: #6b5747;
  --line: #e2d2bd;
  --coral: #d6452b;
  --ocean: #155e75;
  --gold: #d99a2b;
  --low: #155e75;
  --mid: #b5761a;
  --high: #c2321c;
  --legal: #2f7d4f;
  --radius: 20px;
  --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(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--coral); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Bande à motifs tapa (triangles, petit SVG répété) ---------- */
.tapa {
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18'%3E%3Crect width='24' height='18' fill='%23d99a2b'/%3E%3Cpath d='M0 0h24L12 7z' fill='%23d6452b'/%3E%3Cpath d='M0 18 12 9l12 9z' fill='%232a1c13'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 18px;
}
.tapa-flip { transform: scaleY(-1); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9em 1.4em; border-radius: 14px;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 0 #9e2c17; }
.btn-coral:hover { box-shadow: 0 8px 0 #9e2c17; }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--ink); }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,240,230,.94); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.top-in { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.logo svg { width: 30px; height: 30px; fill: #2aabee; background: #fff; border-radius: 50%; }
.logo em { font-style: normal; color: var(--coral); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--coral); }
.langs { display: flex; gap: 4px; }
.langs button {
  background: transparent; border: 2px solid var(--ink); color: var(--ink);
  font: 800 .78rem var(--font); padding: .35em .6em; border-radius: 8px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- Accueil ---------- */
.hero { background: var(--paper); text-align: center; }
.hero-in { padding: clamp(52px, 9vw, 104px) 0; }
.eyebrow {
  font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ocean); margin-bottom: 1em;
}
.hero h1 { font-size: clamp(2.6rem, 8.5vw, 5.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .15em; }
.hero h1 span { display: block; color: var(--coral); }
.hero-sub { font-size: clamp(1.15rem, 2.8vw, 1.5rem); font-weight: 600; color: var(--ocean); }
.lead { max-width: 60ch; margin-inline: auto; color: var(--muted); font-size: 1.1rem; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 30px 0 36px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pills li {
  padding: .5em 1em; border-radius: 999px; background: var(--sand); border: 2px solid var(--line);
  font-size: .95rem; color: var(--muted);
}
.pills b { color: var(--ink); }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 9vw, 100px) 0; }
.sec-sand { background: var(--sand); }
.intro { max-width: 68ch; color: var(--muted); }
.note {
  margin: 30px 0 0; padding: 16px 20px; border-radius: 14px;
  background: var(--paper); border: 2px dashed var(--line); max-width: 82ch;
}

/* ---------- Six points de loi ---------- */
[data-level="low"] { --c: var(--low); }
[data-level="mid"] { --c: var(--mid); }
[data-level="high"] { --c: var(--high); }
[data-level="legal"] { --c: var(--legal); }
.six { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.thing {
  position: relative; padding: 26px 24px 22px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--c);
}
.num { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--c); margin-bottom: 12px; }
.thing p { color: var(--muted); margin: 0; }
.stamp {
  position: absolute; top: 22px; right: 18px; transform: rotate(4deg);
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c); border: 2px solid currentColor; border-radius: 6px; padding: .25em .6em;
}

/* ---------- Outil « Choisis ta situation » ---------- */
.sit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.choices { display: grid; gap: 10px; margin-top: 24px; }
.choice {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 14px 18px; background: var(--paper); border: 2px solid var(--line); border-radius: 14px;
  font-weight: 600; transition: border-color .15s;
}
.choice input {
  flex: none; appearance: none; width: 22px; height: 22px; margin: 0;
  border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; cursor: pointer;
}
.choice input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); transform: scale(0); transition: transform .15s; }
.choice input:checked::before { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--ink); background: #fff; }
.ticket {
  position: sticky; top: 96px; overflow: hidden;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--c); padding: 0 28px 26px;
}
.ticket .tapa { margin: 0 -28px 26px; }
.ticket .stamp { position: static; display: inline-block; transform: rotate(-3deg); font-size: .78rem; }
.ticket-max { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; color: var(--c); margin: 14px 0 4px; line-height: 1.1; }
.ticket h3 { font-size: 1.3rem; }
.ticket p:last-child { color: var(--muted); margin: 0; }

/* ---------- Aide ---------- */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 32px 0 30px; }
.line {
  display: block; padding: 20px 22px; border-radius: 16px; text-decoration: none; color: var(--muted);
  background: var(--paper); border: 2px solid var(--line); transition: border-color .15s;
}
.line:hover { border-color: var(--ink); }
.line b { display: block; font-size: 1.5rem; color: var(--ink); line-height: 1.15; }
.line strong { display: block; color: var(--ocean); margin: 2px 0 6px; }
.line-main { grid-column: span 2; background: var(--ocean); border-color: var(--ocean); color: #d9eef4; }
.line-main b { color: #fff; font-size: 2rem; }
.line-main strong { color: #ffd38a; }
.line-sos b { color: var(--high); }
.tips { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.tips li { padding-left: 30px; position: relative; color: var(--muted); }
.tips li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px;
  background: var(--coral); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq details { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 3px solid var(--coral); border-bottom: 3px solid var(--coral); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { background: var(--ink); color: var(--paper); text-align: center; padding-top: 0; }
.sec-join .tapa { margin-bottom: clamp(48px, 8vw, 88px); }
.sec-join .eyebrow { color: var(--gold); }
.sec-join .intro { color: #d8c8b6; margin-inline: auto; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px auto 24px; max-width: 900px; }
.app {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 20px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 2px solid var(--paper); transition: transform .15s;
}
.app:hover { transform: translateY(-3px); }
.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; }
.rules { color: #d8c8b6; font-size: .93rem; max-width: 70ch; margin-inline: auto; }
.rules b { color: #fff; }

/* ---------- Pied de page ---------- */
.foot { padding: 34px 0 42px; background: #1e140d; color: #bfae9b; font-size: .88rem; }
.foot p { margin: 0 0 .5em; }
.foot b { color: var(--paper); }
.foot a { color: var(--gold); }

/* ---------- Vérification d'âge ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(42,28,19,.88); backdrop-filter: blur(6px);
}
.gate[hidden] { display: none; }
.gate-box {
  width: min(440px, 100%); overflow: hidden; text-align: center; padding: 0 28px 30px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 22px;
}
.gate-box .tapa { margin: 0 -28px 26px; }
.gate-badge {
  width: 66px; height: 66px; margin: 0 auto 14px; display: grid; place-items: center;
  border-radius: 50%; background: var(--coral); color: #fff; font-weight: 800; font-size: 1.25rem;
}
.gate-box h2 { font-size: 1.7rem; }
.gate-box p { color: var(--muted); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.gate-no { margin-top: 16px; color: var(--high) !important; font-weight: 600; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 960px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sit { grid-template-columns: 1fr; gap: 30px; }
  .ticket { position: static; }
  .lines { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .six, .lines, .tips { grid-template-columns: 1fr; }
  .line-main { grid-column: auto; }
  .thing { box-shadow: 4px 4px 0 var(--c); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .app, .choice input::before, .faq summary::after { transition: none; }
}
