/* =========================================================
   Aalborg Weed Telegram Group — thème « navires de pierre de Lindholm Høje »
   Granit gris, mousse verte, ciel du Limfjord, runes gravées ;
   la loi en runes, l'outil en pierres runiques qui se retournent.
   Une seule police : Spectral.
   ========================================================= */
:root {
  --sky: #e9eef0;
  --granite: #6f7672;
  --granite-dark: #3e4440;
  --moss: #2f3b33;
  --grass: #5e7a4f;
  --fjord: #3e6a7d;
  --bone: #f4f1ea;
  --ink: #1e2320;
  --muted: #545b56;
  --amber: #c88a2a;
  --low: #4f7d47; --mid: #c88a2a; --high: #a33a2a; --legal: #3e6a7d;
  --font: "Spectral", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 17.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--fjord); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.08; font-weight: 800; overflow-wrap: break-word; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); color: var(--moss); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.eyebrow { margin: 0 0 10px; color: var(--granite); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; }
.eyebrow::before { content: "ᚱ "; color: var(--amber); letter-spacing: 0; }
.intro { max-width: 62ch; color: var(--muted); font-size: 1.08rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .7em 1.3em; border-radius: 3px; border: 2px solid var(--moss); font: 600 1rem var(--font); text-decoration: none; cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn-main { background: var(--moss); color: var(--bone); }
.btn-line { background: var(--bone); color: var(--moss); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--moss); color: var(--bone); border-bottom: 4px solid var(--granite); }
.top-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.logo svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.logo b { color: var(--amber); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: #d4dbd5; text-decoration: none; }
.menu a:hover { color: var(--amber); }
.langs { display: flex; gap: 4px; }
.langs button { border: 1px solid rgba(244, 241, 234, .4); background: none; color: var(--bone); border-radius: 3px; font: 600 .8rem var(--font); padding: .25em .55em; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--moss); }

/* ---------- Accueil : le navire de pierre ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 84px) 0 0; background: linear-gradient(180deg, #cfdbe0 0%, var(--sky) 60%, #e8ece6 100%); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); color: var(--moss); }
.hero h1 span { display: block; color: var(--granite); font-weight: 600; }
.hero-sub { display: inline-block; margin: 0 0 16px; padding: .2em .9em; background: var(--granite-dark); color: var(--bone); border-radius: 40% 46% 42% 48% / 60% 55% 62% 58%; }
.lead { max-width: 58ch; color: var(--muted); font-size: 1.12rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ship { display: block; width: 100%; height: clamp(120px, 15vw, 170px); margin-top: 20px; }
.hill { fill: var(--grass); }
.stones ellipse { fill: var(--granite); stroke: var(--granite-dark); stroke-width: 2; animation: rise .8s ease-out both; }
.stones ellipse:nth-child(odd) { animation-delay: .15s; }
.stones ellipse:nth-child(3n) { animation-delay: .3s; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.fjord { fill: var(--fjord); }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-alt { background: #e6e3da; }

/* ---------- Loi : les runes ---------- */
.runes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.runes article { position: relative; padding: 22px 20px 18px 70px; background: #fff; border-radius: 30px 12px 26px 14px; box-shadow: inset 0 0 0 2px #dad6cb; }
.runes .glyph { position: absolute; left: 18px; top: 18px; width: 38px; height: 46px; display: grid; place-items: center; background: var(--c); color: #fff; border-radius: 40% 40% 30% 30%; font-size: 1.4rem; }
.runes p { margin: 0; color: var(--muted); }
[data-level="low"] { --c: var(--low); }
[data-level="mid"] { --c: var(--mid); }
[data-level="high"] { --c: var(--high); }
[data-level="legal"] { --c: var(--legal); }

/* ---------- Outil : les pierres à retourner ---------- */
.turned { margin: 4px 0 18px; color: var(--granite-dark); font-style: italic; }
.stoneset { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stone { position: relative; min-height: 190px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 800px; font: inherit; color: inherit; text-align: center; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; border-radius: 46% 42% 38% 44% / 40% 44% 36% 42%; backface-visibility: hidden; transition: transform .6s; }
.front { background: radial-gradient(circle at 30% 25%, #8b928d, var(--granite) 45%, var(--granite-dark)); color: var(--bone); box-shadow: inset -8px -10px 0 rgba(0, 0, 0, .15); }
.front .glyph { font-size: 2.2rem; color: var(--amber); }
.back { background: var(--bone); color: var(--ink); border: 3px solid var(--c); transform: rotateY(180deg); font-size: .95rem; }
.back b { color: var(--c); }
.stone.open .front { transform: rotateY(180deg); }
.stone.open .back { transform: rotateY(360deg); }

/* ---------- Aide ---------- */
.help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tips li { position: relative; padding-left: 28px; color: var(--muted); }
.tips li::before { content: "ᛜ"; position: absolute; left: 0; top: 0; color: var(--amber); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 18px 20px; background: #fff; border-radius: 22px 10px 20px 12px; text-decoration: none; color: var(--muted); }
.contact b { display: block; font-size: 1.3rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-main { background: var(--moss); color: #d4dbd5; }
.contact-main b { color: var(--amber); font-size: 1.5rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; }
.faq details { border-bottom: 1px solid #cfcabd; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 14px 0; font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "ᛉ"; position: absolute; right: 6px; top: 14px; color: var(--granite); transition: transform .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(180deg); color: var(--amber); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { background: var(--moss); color: var(--bone); }
.sec-join h2 { color: var(--bone); }
.sec-join .eyebrow { color: #c9d1ca; }
.sec-join .intro { color: #d4dbd5; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0 20px; }
.app { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px 10px 18px 12px; background: var(--bone); color: var(--ink); text-decoration: none; transition: transform .15s; }
.app:hover { transform: translateY(-2px); }
.app svg { width: 38px; height: 38px; flex: none; }
.app-tg { background: #2aabee; color: #fff; }
.app-tg svg { fill: #fff; }
.app-tg small { color: #e6f6ff; }
.app-wa svg { fill: #25d366; }
.app-sig svg { fill: #3a76f0; }
.app b { display: block; font-size: 1.1rem; }
.app small { color: var(--muted); }
.group-rules { color: #d4dbd5; max-width: 80ch; }
.group-rules b { color: var(--amber); }

/* ---------- Pied de page ---------- */
.foot { padding: 26px 0 36px; background: #1f2722; color: #a3ada6; font-size: .92rem; }
.foot p { margin: 0 0 .4em; }
.foot b { color: var(--bone); }
.foot a { color: var(--amber); }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(47, 59, 51, .92); }
.gate-box { width: min(440px, 100%); padding: 30px 26px 26px; text-align: center; background: var(--bone); border-radius: 40px 18px 36px 20px; }
.gate-badge { width: 76px; height: 90px; margin: 0 auto 12px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #8b928d, var(--granite) 45%, var(--granite-dark)); color: var(--amber); font-weight: 800; font-size: 1.4rem; border-radius: 46% 42% 38% 44% / 40% 44% 36% 42%; }
.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; }
.gate-no { margin: 14px 0 0; color: var(--high) !important; font-weight: 600; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 960px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .runes, .stoneset { grid-template-columns: 1fr 1fr; }
  .help { grid-template-columns: minmax(0, 1fr); }
  .apps { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 600px) {
  .runes, .stoneset { grid-template-columns: 1fr; }
  .stone { min-height: 160px; }
}
@media (max-width: 360px) {
  .top-in { gap: 10px; }
  .logo { font-size: 1rem; gap: 7px; }
  .langs button { padding: .25em .45em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stones ellipse { animation: none; }
  .face, .btn, .app { transition: none; }
}
