/* =========================================================
   Dundalk Weed Telegram Group — thème « pierre oghamique et monts Cooley »
   Granit, mousse, brume ; les encoches oghamiques se gravent une à une,
   la loi en six encoches, l'outil compare les deux côtés de la frontière.
   Une seule police : Public Sans.
   ========================================================= */
:root {
  --mist: #e6ebe6;
  --mist-2: #d8dfd8;
  --card: #fbfcfa;
  --granite: #6e7470;
  --moss: #2f4a3a;
  --moss-2: #1f3328;
  --lichen: #a7b88a;
  --peat: #6b4a32;
  --ink: #1d2420;
  --muted: #56605a;
  --line: #c9d1c8;
  --ok: #3c7d4c;
  --mid: #b37d17;
  --high: #b8452f;
  --font: "Public Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 18px/1.62 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--moss); }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); color: var(--moss-2); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lichen); outline-offset: 2px; }

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

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .64em 1.35em; border-radius: 4px; font: 800 1rem var(--font); text-decoration: none; cursor: pointer; border: 2px solid var(--moss); transition: background .2s, color .2s; }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-moss { background: var(--moss); color: #fff; }
.btn-moss:hover { background: var(--moss-2); border-color: var(--moss-2); }
.btn-line { background: var(--card); color: var(--moss-2); }
.btn-line:hover { background: var(--mist-2); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--moss-2); color: #fff; border-bottom: 3px solid var(--lichen); }
.top-in { display: flex; align-items: center; gap: 22px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.2rem; }
.brand svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.brand i { color: var(--lichen); font-style: normal; }
.menu { display: flex; gap: 24px; margin-left: auto; }
.menu a { color: #c3d0c3; text-decoration: none; font-weight: 600; }
.menu a:hover { color: #fff; }
.langs { display: flex; gap: 4px; }
.langs button { background: none; border: 1.5px solid rgba(255,255,255,.3); border-radius: 4px; color: #c3d0c3; font: 800 .8rem var(--font); padding: .2em .55em; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--lichen); border-color: var(--lichen); color: var(--moss-2); }

/* ---------- Accueil ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(#c9d3cd, var(--mist) 70%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: end; padding-top: clamp(46px, 7vw, 86px); }
.hero-in > div { padding-bottom: clamp(46px, 7vw, 86px); }
.hero h1 { font-size: clamp(2.6rem, 6.8vw, 4.9rem); margin: .05em 0 .1em; color: var(--moss-2); }
.hero h1 span { display: block; color: var(--peat); }
.hero-sub { font-size: 1rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--granite); }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.1rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.stone { display: block; width: min(260px, 100%); height: auto; margin-inline: auto; }
.stone .hills { fill: var(--moss); opacity: .85; }
.stone .rock { fill: #9ea39d; stroke: var(--granite); stroke-width: 3; }
.stone .edge { stroke: #7d827c; stroke-width: 2; }
.stone .notches path { stroke: var(--moss-2); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: carve 1s ease forwards; }
.stone .notches path:nth-child(2) { animation-delay: .9s; }
.stone .notches path:nth-child(3) { animation-delay: 1.8s; }
.stone .notches path:nth-child(4) { animation-delay: 2.7s; }
@keyframes carve { to { stroke-dashoffset: 0; } }
.mist { position: absolute; left: -20%; right: -20%; bottom: 0; height: 120px; background: radial-gradient(50% 50% at 50% 100%, rgba(255,255,255,.75), transparent 70%); animation: drift 12s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translateX(8%); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(54px, 8vw, 96px) 0; }
.sec-moss { background: var(--moss); color: #fff; }
.sec-moss h2 { color: #fff; }
.sec-moss .kicker { color: var(--lichen); }
.sec-moss .intro { color: #c3d0c3; }
.sec-mist { background: var(--mist-2); }
.intro { max-width: 66ch; color: var(--muted); }

/* Six encoches */
.notches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.notch { --c: var(--mid); position: relative; padding: 22px 22px 18px 44px; background: var(--card); border: 1.5px solid var(--line); border-radius: 4px; }
.notch::before { content: ""; position: absolute; left: 18px; top: 18px; bottom: 18px; width: 3px; background: var(--granite); }
.notch::after { content: ""; position: absolute; left: 12px; top: 30px; width: 15px; height: 22px; background: repeating-linear-gradient(var(--c) 0 3px, transparent 3px 8px); }
.notch[data-tone="ok"] { --c: var(--ok); }
.notch[data-tone="high"] { --c: var(--high); }
.notch h3 { color: var(--c); }
.notch p:last-child { margin: 0; color: var(--muted); }

/* ---------- Outil : les deux côtés ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.topic { padding: .55em 1.1em; border-radius: 999px; border: 2px solid rgba(255,255,255,.25); background: transparent; color: #e3ebe3; font: 600 .98rem var(--font); cursor: pointer; transition: background .2s, border-color .2s; }
.topic:hover { border-color: var(--lichen); }
.topic[aria-pressed="true"] { background: var(--lichen); border-color: var(--lichen); color: var(--moss-2); }
.sides { display: grid; grid-template-columns: 1fr 14px 1fr; gap: 0 22px; margin-top: 22px; padding: 26px; border-radius: 10px; background: var(--card); color: var(--ink); }
.divide { background: repeating-linear-gradient(var(--granite) 0 12px, transparent 12px 20px); width: 3px; justify-self: center; }
.side-name { margin: 0 0 .5em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--peat); }
.side p:last-child { margin: 0; color: var(--muted); }

/* ---------- 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: 6px; top: .2em; width: 3px; height: 20px; background: var(--granite); box-shadow: 5px 6px 0 -1px var(--lichen), -5px 12px 0 -1px var(--lichen); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 18px 22px; text-decoration: none; color: var(--muted); background: var(--card); border: 1.5px solid var(--line); border-radius: 4px; }
.contact b { display: block; font-size: 1.45rem; color: var(--ink); }
.contact-main { background: var(--moss); border-color: var(--moss); color: #c3d0c3; }
.contact-main b { color: #fff; font-size: 1.85rem; }

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

/* ---------- Communauté ---------- */
.sec-join { background: var(--moss-2); color: #fff; text-align: center; }
.sec-join h2 { color: #fff; }
.sec-join .kicker { color: var(--lichen); }
.sec-join .intro { color: #c3d0c3; 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: 15px 18px; border-radius: 4px; background: var(--card); color: var(--ink); text-decoration: none; transition: transform .15s; }
.app:hover { transform: translateY(-3px); }
.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: .92rem; }
.rules { color: #c3d0c3; font-size: .98rem; max-width: 74ch; margin-inline: auto; }
.rules b { color: #fff; }

/* ---------- Pied de page ---------- */
.foot { padding: 30px 0 40px; background: #141f19; color: #93a397; font-size: .95rem; }
.foot p { margin: 0 0 .5em; }
.foot b { color: #fff; }
.foot a { color: var(--lichen); }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(20,31,25,.9); }
.gate[hidden] { display: none; }
.gate-box { width: min(440px, 100%); padding: 32px 28px; text-align: center; background: var(--card); border-radius: 6px; border-top: 8px solid var(--granite); }
.gate-badge { width: 70px; height: 92px; margin: 0 auto 14px; display: grid; place-items: center; background: #9ea39d; color: var(--moss-2); font-weight: 800; font-size: 1.5rem; border-radius: 40% 40% 6px 6px; border: 3px solid var(--granite); }
.gate-box h2 { font-size: 1.8rem; }
.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(--high) !important; font-weight: 800; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 920px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .hero-in, .help { grid-template-columns: 1fr; }
  .hero-in > div { padding-bottom: 0; }
  .stone { width: min(170px, 50%); }
  .notches-grid { grid-template-columns: 1fr 1fr; }
  .apps { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .notches-grid { grid-template-columns: 1fr; }
  .sides { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .divide { width: 100%; height: 3px; background: repeating-linear-gradient(90deg, var(--granite) 0 12px, transparent 12px 20px); }
  .brand { font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stone .notches path { stroke-dashoffset: 0; }
}
