/* =========================================================
   Lübeck Weed Telegram Group — thème « ville hanséatique »
   Gothique de brique (rouge et brique vernissée noire), toits de cuivre
   vert-de-gris, pignons à redents (petit SVG répété), Holstentor
   et cogue qui navigue sur la Trave. Une seule police : Alegreya Sans.
   ========================================================= */
:root {
  --cream: #f5ecdc;
  --cream-2: #ebdec6;
  --card: #fffaf1;
  --ink: #2a1e19;
  --muted: #6a5850;
  --line: #dccbb0;
  --brick: #a33a24;
  --brick-2: #7f2a19;
  --glaze: #2b2320;
  --copper: #5f9e8f;
  --copper-2: #3f7a6c;
  --gold: #d6aa45;
  --ok: #3f7a6c;
  --font: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brick); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); color: var(--brick-2); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.kicker { font-size: .84rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-2); margin-bottom: .9em; }

/* Pignons à redents : petit SVG répété */
.gables {
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='34'%3E%3Cpath d='M2 34V20h4v-5h4v-5h4V5h12v5h4v5h4v5h4v14z' fill='%23a33a24'/%3E%3Cpath d='M44 34V24h4v-4h4v-4h4v-4h10v4h4v4h4v4h4v10z' fill='%237f2a19'/%3E%3Cpath d='M84 34V17h4v-5h4V7h4V2h8v5h4v5h4v5h4v17z' fill='%23c1543a'/%3E%3Cg fill='%23f5ecdc'%3E%3Crect x='18' y='14' width='4' height='7' rx='2'/%3E%3Crect x='59' y='19' width='4' height='6' rx='2'/%3E%3Crect x='98' y='10' width='4' height='7' rx='2'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 100% / 120px 34px;
  background-color: var(--glaze);
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .75em 1.4em; border-radius: 3px; font: 700 1.02rem var(--font); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-brick { background: var(--brick); color: #fff; box-shadow: 0 4px 0 var(--brick-2); }
.btn-brick:hover { background: #8f321f; }
.btn-line { background: transparent; color: var(--brick-2); border-color: var(--brick-2); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--glaze); }
.top-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font-weight: 800; letter-spacing: .14em; }
.brand svg { width: 30px; height: 30px; fill: #2aabee; background: #fff; border-radius: 50%; }
.brand b { color: var(--copper); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: #d9cbb4; text-decoration: none; font-weight: 700; }
.menu a:hover { color: #fff; }
.langs { display: flex; gap: 4px; }
.langs button { background: transparent; border: 1px solid #5a4c45; border-radius: 3px; color: #d9cbb4; font: 700 .8rem var(--font); padding: .3em .6em; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); color: var(--glaze); }

/* ---------- Accueil ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 0; background: linear-gradient(180deg, var(--cream) 70%, var(--cream-2)); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.hero-in > div { padding-bottom: clamp(36px, 6vw, 70px); }
.hero h1 { font-size: clamp(2.8rem, 7.6vw, 5.4rem); color: var(--glaze); margin-bottom: .1em; letter-spacing: -.01em; }
.hero h1 span { display: block; color: var(--brick); }
.hero-sub { font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--copper-2); }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.12rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.gate-svg { display: block; width: 100%; max-width: 440px; justify-self: center; }
.cog { animation: sail 38s linear infinite; }
@keyframes sail { from { transform: translateX(-70px); } to { transform: translateX(380px); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 9vw, 100px) 0; }
.sec-cream { background: var(--cream-2); }
.intro { max-width: 68ch; color: var(--muted); }

/* Sept tours */
.towers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 16px; margin-top: 34px; }
.tower { position: relative; padding: 104px 20px 22px; background: linear-gradient(transparent 80px, var(--card) 80px); border-bottom: 3px solid var(--line); border-radius: 0 0 4px 4px; }
.tower::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 80px; background: var(--copper); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tower::after { content: ""; position: absolute; top: 80px; left: -1px; right: -1px; height: 8px; background: repeating-linear-gradient(90deg, var(--brick) 0 16px, var(--glaze) 16px 20px); }
.roof { position: absolute; top: 48px; left: 50%; translate: -50% 0; z-index: 1; font-weight: 800; font-size: .95rem; color: #fff; }
.tower h3 { color: var(--brick-2); }
.tower p { margin: 0; color: var(--muted); }

/* ---------- Outil ---------- */
.sec-brick { background: var(--brick-2); color: var(--cream); }
.sec-brick h2 { color: #fff; }
.sec-brick .kicker { color: var(--gold); }
.sec-brick .intro { color: #ead8c2; }
.age { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.seg { margin: 20px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; margin-bottom: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--gold); }
.seg button { padding: .55em 1.1em; border-radius: 3px; border: 2px solid #c98a76; background: transparent; color: #fff; font: 700 1rem var(--font); cursor: pointer; }
.seg button:hover { border-color: #fff; }
.seg button[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--brick-2); }
.ledger { position: sticky; top: 110px; padding: 26px 26px 18px; background: var(--card); color: var(--ink); border-radius: 3px; box-shadow: 8px 8px 0 var(--glaze); background-image: repeating-linear-gradient(180deg, transparent 0 31px, #eadfca 31px 32px); }
.ledger-head { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 3px double var(--brick); font-weight: 800; font-size: 1.25rem; color: var(--brick-2); }
.ledger dl { margin: 0; }
.ledger dt { margin-top: 12px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-2); }
.ledger dd { margin: 2px 0 0; padding-bottom: 8px; border-bottom: 1px dotted var(--line); }
.ledger dd:last-child { border-bottom: 0; }
.ledger dd.warn { color: var(--brick); font-weight: 700; }

/* ---------- 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 { position: relative; padding-left: 26px; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 0; top: .4em; width: 14px; height: 9px; background: var(--brick); box-shadow: 0 0 0 2px var(--cream), 0 0 0 3px var(--glaze); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 20px 22px; border-radius: 3px; text-decoration: none; color: var(--muted); background: var(--card); border: 1px solid var(--line); }
.contact b { display: block; font-size: 1.4rem; color: var(--glaze); word-break: break-word; }
.contact-main { border: 2px solid var(--brick); }
.contact-main b { font-size: 1.75rem; color: var(--brick); }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 3px; border: 1px solid var(--line); border-left: 6px solid var(--copper); }
.faq details[open] { border-left-color: var(--brick); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "›"; position: absolute; right: 22px; top: 50%; translate: 0 -55%; font-size: 1.6rem; color: var(--brick); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 90deg; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { text-align: center; background: var(--cream); }
.sec-join .intro { 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: 18px 20px; border-radius: 3px; background: var(--card); color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-bottom: 5px solid var(--brick); transition: transform .15s, border-color .15s; }
.app:hover { transform: translateY(-3px); border-bottom-color: var(--copper); }
.app svg { flex: none; width: 36px; height: 36px; }
.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); }
.rules { color: var(--muted); font-size: .96rem; max-width: 74ch; margin-inline: auto; }
.rules b { color: var(--ink); }

/* ---------- Pied de page ---------- */
.foot { background: var(--glaze); color: #b7a798; font-size: .92rem; }
.foot .gables { background-color: var(--cream); }
.foot .wrap { padding: 26px 0 38px; }
.foot p { margin: 0 0 .5em; }
.foot b { color: var(--cream); }
.foot a { color: var(--copper); }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(43,35,32,.95); }
.gate[hidden] { display: none; }
.gate-box { position: relative; width: min(440px, 100%); padding: 34px 26px 28px; text-align: center; background: var(--cream); border-radius: 3px; border-top: 10px solid var(--brick); }
.gate-badge { width: 84px; height: 70px; margin: 0 auto 14px; padding-top: 20px; background: var(--copper); color: #fff; font-weight: 800; font-size: 1.35rem; clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); }
.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; margin-top: 8px; }
.gate-no { margin-top: 16px; color: var(--brick) !important; font-weight: 700; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 920px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .hero-in, .age, .help { grid-template-columns: 1fr; }
  .hero-in > div { padding-bottom: 0; }
  .gate-svg { max-width: 360px; }
  .ledger { position: relative; top: 0; }
  .apps { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .brand { letter-spacing: .07em; font-size: .95rem; white-space: nowrap; }
  .ledger { box-shadow: 5px 5px 0 var(--glaze); padding: 22px 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cog { transform: translateX(150px); }
}
