/* =========================================================
   Nuremberg Weed Telegram Group — thème « gravure d'Albrecht Dürer »
   Papier vergé crème, encre brun-noir, hachures croisées, château impérial gravé,
   monogramme « AD », rouge de la ville ; la loi en planches numérotées en chiffres
   romains, l'outil en tampon « autorisé / interdit ».
   Une seule police : Crimson Pro.
   ========================================================= */
:root {
  --vellum: #f5efe1;
  --paper: #fbf7ee;
  --ink: #2b2420;
  --muted: #5e544b;
  --sepia: #8c6a43;
  --red: #b0262b;
  --line: #d9cdb6;
  --legal: #3d6b3f; --mid: #b07a12; --high: #b0262b;
  --font: "Crimson Pro", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; background: var(--vellum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40' stroke='%238c6a43' stroke-opacity='.06'/%3E%3C/svg%3E"); color: var(--ink); font: 400 19px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--red); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.08; font-weight: 800; overflow-wrap: break-word; }
h2 { font-size: clamp(2rem, 4.8vw, 3.1rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.eyebrow { margin: 0 0 10px; color: var(--red); font-style: italic; font-weight: 600; letter-spacing: .06em; }
.intro { max-width: 62ch; color: var(--muted); font-size: 1.12rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .5em 1.3em; border: 1.5px solid var(--ink); font: 600 1.1rem var(--font); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-main { background: var(--ink); color: var(--paper); }
.btn-main:hover { background: var(--red); border-color: var(--red); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: rgba(43, 36, 32, .08); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 3px double var(--ink); }
.top-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.3rem; }
.logo svg { width: 28px; height: 28px; fill: #2aabee; }
.logo b { color: var(--red); font-style: italic; }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--muted); text-decoration: none; }
.menu a:hover { color: var(--red); }
.langs { display: flex; border: 1.5px solid var(--ink); }
.langs button { border: 0; background: none; color: var(--ink); font: 600 .9rem var(--font); padding: .2em .65em; cursor: pointer; }
.langs button + button { border-left: 1.5px solid var(--ink); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- Accueil : la gravure ---------- */
.hero { padding: clamp(48px, 7vw, 86px) 0 clamp(46px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.2rem); }
.hero h1 span { display: block; font-style: italic; font-weight: 600; color: var(--sepia); }
.hero-sub { display: inline-block; margin: 0 0 16px; padding: .05em .8em; border: 1.5px solid var(--red); color: var(--red); font-style: italic; }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.15rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.engraving { margin: 0; padding: 14px; background: var(--paper); border: 1.5px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 5px; position: relative; }
.engraving svg { display: block; width: 100%; height: auto; }
.engraving .rock { fill: url(#hatch); stroke: var(--ink); stroke-width: 1.5; }
.engraving .wall, .engraving .tower { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.engraving .shade { fill: url(#hatch); }
.engraving .roof { fill: var(--red); stroke: var(--ink); stroke-width: 1.5; }
.engraving .crenel { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.engraving .win { fill: var(--ink); }
.engraving .draw { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 2.4s ease-out .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.engraving figcaption { position: absolute; right: 18px; bottom: 16px; }
.mono { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--ink); background: var(--paper); font-weight: 800; font-size: 1.15rem; letter-spacing: -.12em; }
.mono b { color: var(--red); }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Loi : les planches ---------- */
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.plates article { position: relative; padding: 20px 20px 16px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--line); }
.plates article::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c); }
.plates .no { margin: 0 0 4px; font-weight: 800; color: var(--c); font-size: 1.3rem; }
.plates p:last-child { margin: 0; color: var(--muted); }
[data-level="legal"] { --c: var(--legal); }
[data-level="mid"] { --c: var(--mid); }
[data-level="high"] { --c: var(--high); }

/* ---------- Outil : le tampon ---------- */
.place-check { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.places button { text-align: left; padding: 10px 14px; border: 1.5px solid var(--ink); background: var(--vellum); font: 600 1.02rem var(--font); color: var(--ink); cursor: pointer; }
.places button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.verdict { padding: 26px; background: var(--vellum); border: 1.5px solid var(--ink); text-align: center; }
.v-stamp { display: inline-block; margin: 0 0 14px; padding: .15em .9em; border: 4px double var(--c); color: var(--c); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .06em; transform: rotate(-6deg); animation: stamp .35s ease-out; }
@keyframes stamp { from { transform: rotate(-6deg) scale(1.4); opacity: 0; } }
.verdict p:last-child { margin: 0; color: var(--muted); }

/* ---------- 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: 26px; color: var(--muted); }
.tips li::before { content: "☙"; position: absolute; left: 0; top: 0; color: var(--red); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 16px 20px; background: var(--paper); border: 1.5px solid var(--ink); text-decoration: none; color: var(--muted); }
.contact b { display: block; font-size: 1.45rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-main { background: var(--ink); color: #d8cdb8; }
.contact-main b { color: var(--paper); font-size: 1.7rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 14px 0; font-weight: 600; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { background: var(--ink); color: var(--paper); }
.sec-join .eyebrow { color: #e4a3a5; }
.sec-join .intro { color: #d8cdb8; }
.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: 16px 20px; background: var(--paper); color: var(--ink); text-decoration: none; border: 1.5px solid var(--paper); transition: transform .15s; }
.app:hover { transform: translateY(-2px); }
.app svg { width: 38px; height: 38px; flex: none; }
.app-tg { background: #2aabee; border-color: #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.15rem; }
.app small { color: var(--muted); font-size: .95rem; }
.group-rules { color: #d8cdb8; max-width: 80ch; }
.group-rules b { color: var(--paper); }

/* ---------- Pied de page ---------- */
.foot { padding: 26px 0 36px; background: #1d1815; color: #a99d8c; font-size: .95rem; }
.foot p { margin: 0 0 .4em; }
.foot b { color: var(--paper); }
.foot a { color: #e4a3a5; }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(43, 36, 32, .9); }
.gate-box { width: min(440px, 100%); padding: 30px 26px 26px; text-align: center; background: var(--paper); border: 1.5px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px; }
.gate-badge { width: 70px; height: 70px; margin: 0 auto 12px; display: grid; place-items: center; border: 4px double var(--red); color: var(--red); font-weight: 800; font-size: 1.5rem; transform: rotate(-6deg); }
.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; }
.gate-no { margin: 14px 0 0; color: var(--red) !important; font-weight: 600; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 960px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .hero-in, .place-check, .help { grid-template-columns: minmax(0, 1fr); }
  .engraving { max-width: 380px; }
  .plates { grid-template-columns: 1fr 1fr; }
  .apps { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .plates, .places { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .top-in { gap: 10px; }
  .logo { font-size: 1.05rem; gap: 7px; }
  .langs button { padding: .2em .45em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .engraving .draw { animation: none; stroke-dashoffset: 0; }
  .v-stamp { animation: none; }
  .app { transition: none; }
}
