/* =========================================================
   Bursa Weed Telegram Group — thème « théâtre d'ombres Karagöz et Hacivat »
   Écran de toile éclairé (perde) aux tons de parchemin chaud, figurines
   en couleurs translucides qui se balancent, montagne Uludağ enneigée,
   cadre de bois sombre ; l'outil est un dialogue entre les deux personnages.
   Une seule police : Gelasio.
   ========================================================= */
:root {
  --wood: #2a1d14;
  --wood-2: #3d2a1c;
  --screen: #fbe9c4;
  --screen-2: #f6d899;
  --paper: #fdf7ea;
  --ink: #2a1d14;
  --muted: #6a5644;
  --red: #b5372a;
  --green: #2f7a52;
  --indigo: #3b4a8f;
  --high: #b5372a;
  --font: "Gelasio", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--red); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.08; font-weight: 700; overflow-wrap: break-word; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); color: var(--wood-2); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); 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(--red); font-style: italic; font-weight: 600; letter-spacing: .06em; }
.intro { max-width: 62ch; color: var(--muted); font-size: 1.06rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .65em 1.3em; border-radius: 4px; border: 2px solid var(--wood); 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(--red); border-color: var(--red); color: #fff; }
.btn-line { background: var(--paper); color: var(--wood); }

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

/* ---------- Accueil : l'écran ---------- */
.hero { padding: clamp(36px, 6vw, 70px) 0 clamp(40px, 6vw, 70px); background: var(--wood-2); color: var(--screen); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center; }
.warning { margin: 0 0 20px; padding: 12px 16px; border-radius: 6px; background: var(--paper); border-left: 5px solid var(--green); color: var(--ink); max-width: 70ch; }
.warning b { color: var(--green); }
.hero .eyebrow { color: var(--screen-2); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); color: var(--screen); }
.hero h1 span { display: block; font-style: italic; color: var(--screen-2); }
.hero-sub { display: inline-block; margin: 0 0 14px; padding: .15em .8em; border: 1px solid var(--screen-2); color: var(--screen-2); border-radius: 4px; }
.lead { max-width: 56ch; color: #e6d3b0; font-size: 1.08rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.perde { padding: 14px; background: var(--wood); border-radius: 8px; box-shadow: inset 0 0 0 4px #5a3f2a; }
.perde svg { display: block; width: 100%; height: auto; border-radius: 4px; background: radial-gradient(circle at 50% 40%, #fff6dd, var(--screen) 50%, var(--screen-2) 100%); }
.mount { fill: rgba(59, 74, 143, .25); }
.snow { fill: #fff; }
.puppet { opacity: .85; }
.p1 { transform: translate(100px, 150px); animation: bob1 3s ease-in-out infinite alternate; }
.p2 { transform: translate(200px, 150px); animation: bob2 3.4s ease-in-out infinite alternate; }
.p1 circle, .p1 path { fill: rgba(181, 55, 42, .8); stroke: var(--wood); stroke-width: 1.5; }
.p2 circle, .p2 path { fill: rgba(47, 122, 82, .8); stroke: var(--wood); stroke-width: 1.5; }
@keyframes bob1 { from { transform: translate(100px, 150px) rotate(-4deg); } to { transform: translate(106px, 144px) rotate(4deg); } }
@keyframes bob2 { from { transform: translate(200px, 150px) rotate(3deg); } to { transform: translate(194px, 146px) rotate(-3deg); } }

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

/* ---------- Loi : les scènes ---------- */
.scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.scenes article { position: relative; padding: 22px 18px 18px; background: var(--screen); border: 8px solid var(--wood-2); border-radius: 6px; }
.scenes .n { position: absolute; top: -18px; left: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; }
.scenes p { margin: 0; color: var(--muted); }

/* ---------- Outil : le dialogue ---------- */
.qs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.qs button { padding: .5em 1em; border-radius: 4px; border: 2px solid var(--wood-2); background: var(--paper); font: 600 .98rem var(--font); color: var(--wood); cursor: pointer; }
.qs button[aria-pressed="true"] { background: var(--wood-2); color: var(--screen); }
.stage { display: grid; gap: 14px; padding: 22px; background: radial-gradient(circle at 50% 30%, #fff6dd, var(--screen) 60%, var(--screen-2)); border: 10px solid var(--wood); border-radius: 8px; }
.line { position: relative; max-width: 80%; padding: 14px 18px; border-radius: 14px; background: #fff; }
.line p { margin: 0; }
.who { display: block; font-weight: 700; font-style: italic; margin-bottom: 2px; }
.line-k { justify-self: start; border: 2px solid var(--red); }
.line-k .who { color: var(--red); }
.line-h { justify-self: end; border: 2px solid var(--green); }
.line-h .who { color: var(--green); }

/* ---------- 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: 18px 20px; background: var(--screen); border-left: 6px solid var(--wood-2); text-decoration: none; color: var(--muted); }
.contact b { display: block; font-size: 1.45rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-main { background: var(--wood-2); border-left-color: var(--red); color: #e6d3b0; }
.contact-main b { color: var(--screen); font-size: 1.75rem; }

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

/* ---------- Communauté ---------- */
.sec-join { background: var(--wood); color: var(--screen); }
.sec-join h2 { color: var(--screen); }
.sec-join .eyebrow { color: var(--screen-2); }
.sec-join .intro { color: #e6d3b0; }
.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: 6px; background: var(--screen); 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; }
.app small { color: var(--muted); }
.group-rules { color: #e6d3b0; max-width: 80ch; }
.group-rules b { color: var(--screen); }

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

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(42, 29, 20, .94); }
.gate-box { width: min(440px, 100%); padding: 30px 26px 26px; text-align: center; background: radial-gradient(circle at 50% 30%, #fff6dd, var(--screen) 70%); border: 10px solid var(--wood-2); border-radius: 8px; }
.gate-badge { width: 70px; height: 70px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 1.4rem; }
.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; }
  .hero-in, .help { grid-template-columns: minmax(0, 1fr); }
  .perde { max-width: 380px; }
  .scenes { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .apps { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 600px) {
  .scenes { grid-template-columns: 1fr; }
  .line { max-width: 100%; }
  .stage { padding: 14px; border-width: 6px; }
}
@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; }
  .p1, .p2 { animation: none; }
  .btn, .app { transition: none; }
}
