/* =========================================================
   Prague Weed Telegram Group — thème « horloge astronomique (Orloj) »
   Cadran bleu nuit et or, aiguille au soleil qui tourne, chiffres romains ;
   la loi en six heures, l'outil en cadran dont l'aiguille montre la
   situation, la communauté derrière les fenêtres des apôtres qui
   s'ouvrent quand l'horloge sonne. Une seule police : Libre Baskerville.
   ========================================================= */
:root {
  --night: #142047;
  --blue: #1f3c73;
  --sky: #3d6db3;
  --gold: #c9a03a;
  --gold2: #e6c76a;
  --earth: #6b4a2b;
  --rust: #8c3a2a;
  --parch: #f5efe2;
  --parch2: #ebe1cb;
  --ink: #1d1c24;
  --muted: #514c58;
  --legal: #2f7f52; --low: #6a8f2c; --mid: #c08414; --high: #c0442d; --max: #8b1f2b;
  --font: "Libre Baskerville", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; background: var(--parch); color: var(--ink); font: 400 16.5px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.12; font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); color: var(--night); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.eyebrow { margin: 0 0 12px; color: var(--rust); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; }
.intro { max-width: 62ch; color: var(--muted); font-size: 1.04rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.35em; border: 2px solid var(--gold); border-radius: 999px; font: 700 .95rem var(--font); text-decoration: none; cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-main { background: var(--gold); color: var(--night); }
.btn-line { background: transparent; color: var(--parch); border-color: var(--parch); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--night); color: #fff; border-bottom: 3px double var(--gold); }
.top-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.logo svg { width: 28px; height: 28px; fill: #2aabee; background: #fff; border-radius: 50%; }
.logo b { color: var(--gold2); }
.menu { display: flex; gap: 20px; margin-left: auto; }
.menu a { color: #d6dbea; text-decoration: none; font-size: .9rem; }
.menu a:hover { color: var(--gold2); }
.langs { display: flex; gap: 4px; }
.langs button { border: 1px solid #45507a; border-radius: 999px; background: none; color: #fff; font: 700 .72rem var(--font); padding: .3em .6em; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }

/* ---------- Accueil : le cadran ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 84px) 0; color: var(--parch); background: radial-gradient(circle at 80% 40%, var(--blue) 0%, var(--night) 65%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: center; }
.hero .eyebrow { color: var(--gold2); }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 4.4rem); }
.hero h1 span { display: block; color: var(--gold2); font-style: italic; font-weight: 400; }
.hero-sub { display: inline-block; margin: 0 0 16px; padding: .2em .9em; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold2); font-weight: 700; }
.lead { max-width: 56ch; color: #dfe3f0; font-size: 1.06rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.orloj { display: block; width: clamp(200px, 26vw, 300px); height: auto; }
.o-ring { fill: var(--gold); }
.o-ticks path { stroke: var(--night); stroke-width: 4; stroke-linecap: round; }
.o-day { fill: var(--sky); }
.o-night { fill: #0c1330; }
.o-zodiac { fill: none; stroke: var(--gold2); stroke-width: 3; stroke-dasharray: 6 5; animation: turn 60s linear infinite reverse; transform-origin: 130px 112px; }
.o-hand { fill: var(--gold2); transform-origin: 130px 130px; animation: turn 24s linear infinite; }
.o-sun { fill: #ffd76a; stroke: var(--gold); stroke-width: 2; }
.o-hub { fill: var(--gold); }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-alt { background: var(--parch2); }
[data-level="legal"] { --c: var(--legal); }
[data-level="low"] { --c: var(--low); }
[data-level="mid"] { --c: var(--mid); }
[data-level="high"] { --c: var(--high); }
[data-level="max"] { --c: var(--max); }

/* ---------- Loi : six heures ---------- */
.faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.faces article { position: relative; padding: 22px 22px 20px 78px; background: #fffaf0; border-radius: 16px; border: 1px solid var(--parch2); }
.faces article::before { content: attr(data-h); position: absolute; left: 18px; top: 20px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--night); color: var(--gold2); font-weight: 700; font-size: .9rem; box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px var(--c); }
.faces h3 { color: var(--night); }
.faces p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Outil : le cadran ---------- */
.clockwork { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; margin-top: 26px; padding: 22px; background: #fffaf0; border-radius: 20px; border: 1px solid var(--parch2); }
.dial { position: relative; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, var(--sky) 0 46%, #0c1330 47% 64%, var(--gold) 65% 72%, var(--night) 73%); box-shadow: 0 6px 18px rgba(20, 32, 71, .3); }
.dial-hand { position: absolute; left: 50%; bottom: 50%; width: 4px; height: 70px; margin-left: -2px; border-radius: 2px; background: var(--gold2); transform-origin: bottom center; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.dial-hand::after { content: ""; position: absolute; left: 50%; top: -6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #ffd76a; border: 2px solid var(--gold); }
.dial-hub { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--gold); }
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.hours button { display: flex; gap: 10px; align-items: center; padding: .55em .7em; border: 1px solid var(--parch2); border-radius: 12px; background: var(--parch); color: var(--ink); font: 400 .88rem/1.3 var(--font); text-align: left; cursor: pointer; }
.hours button span { flex: none; width: 34px; color: var(--rust); font-weight: 700; }
.hours button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.hours button[aria-pressed="true"] span { color: var(--gold2); }
.verdict { grid-column: 1 / -1; padding: 16px 18px; border-radius: 14px; background: var(--parch); border-left: 10px solid var(--c); }
.v-tag { display: inline-block; margin: 0 0 6px; padding: .1em .7em; border-radius: 999px; background: var(--c); color: #fff; font-weight: 700; font-size: .8rem; }
.verdict h3 { margin: 0 0 .3em; color: var(--night); font-size: 1.2rem; }
.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: 12px; }
.tips li { position: relative; padding-left: 30px; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--sky); box-shadow: inset 0 -8px 0 #0c1330, 0 0 0 2px var(--gold); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 18px 20px; background: #fffaf0; border-radius: 16px; border: 1px solid var(--parch2); text-decoration: none; color: var(--muted); }
.contact b { display: block; font-size: 1.35rem; color: var(--night); overflow-wrap: anywhere; }
.contact-main { background: var(--night); border-color: var(--night); color: #d6dbea; }
.contact-main b { color: var(--gold2); font-size: 1.6rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: #fffaf0; border-radius: 14px; border: 1px solid var(--parch2); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 50px 13px 18px; font-weight: 700; color: var(--night); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--rust); font-size: 1.4rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 15px; color: var(--muted); }

/* ---------- Communauté : les fenêtres des apôtres ---------- */
.sec-join { background: linear-gradient(180deg, var(--night), #0c1330); color: #fff; }
.sec-join h2 { color: #fff; }
.sec-join .eyebrow { color: var(--gold2); }
.sec-join .intro, .hint { color: #d6dbea; }
.apostles { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0 14px; padding: 34px 22px 22px; border-radius: 22px; background: var(--earth) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cpath d='M0 19h40M20 0v19' stroke='%23000' stroke-opacity='.15'/%3E%3C/svg%3E"); box-shadow: inset 0 0 0 4px var(--gold); }
.bell { position: absolute; left: 50%; top: -18px; width: 34px; height: 30px; margin-left: -17px; border-radius: 16px 16px 6px 6px; background: var(--gold); box-shadow: 0 8px 0 -4px var(--gold2); transform-origin: top center; }
.apostles.ring .bell { animation: ring .9s ease-in-out 1; }
@keyframes ring { 25% { transform: rotate(18deg); } 75% { transform: rotate(-18deg); } }
.win { position: relative; display: block; min-height: 220px; border-radius: 120px 120px 10px 10px; overflow: hidden; background: radial-gradient(circle at 50% 30%, var(--sky), var(--night)); color: #fff; text-decoration: none; box-shadow: 0 0 0 4px var(--gold), inset 0 0 0 2px rgba(0, 0, 0, .3); perspective: 700px; }
.pane { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 40px 14px 16px; text-align: center; }
.pane svg { width: 52px; height: 52px; padding: 8px; border-radius: 50%; background: #fff; }
.win[data-app="telegram"] svg { fill: #2aabee; }
.win[data-app="whatsapp"] svg { fill: #25d366; }
.win[data-app="signal"] svg { fill: #3a76f0; }
.pane b { font-size: 1.15rem; }
.pane small { color: #d6dbea; font-size: .82rem; line-height: 1.35; }
.win:hover .pane svg, .win:focus-visible .pane svg { transform: scale(1.08); }
/* les volets : fermés seulement quand le script est là (classe js-doors), puis ouverts un à un */
.win::before, .win::after { content: none; }
.js-doors .win::before, .js-doors .win::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1; background: #7a5532 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='60'%3E%3Cpath d='M6 0v60' stroke='%23000' stroke-opacity='.18' stroke-width='2'/%3E%3C/svg%3E"); border: 3px solid var(--gold); transition: transform .6s cubic-bezier(.4, 1.2, .5, 1); }
.js-doors .win::before { left: 0; transform-origin: left center; }
.js-doors .win::after { right: 0; transform-origin: right center; }
.js-doors .win.open::before { transform: rotateY(-105deg); }
.js-doors .win.open::after { transform: rotateY(105deg); }
.door-name { display: none; }
.js-doors .door-name { display: block; position: absolute; z-index: 2; left: 50%; top: 58%; transform: translate(-50%, -50%); padding: .25em .8em; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 700; font-size: .9rem; white-space: nowrap; transition: opacity .25s; }
.js-doors .win.open .door-name { opacity: 0; }
.go-pill { margin-top: 6px; padding: .2em .9em; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 700; font-size: .85rem; }
.win:hover .go-pill, .win:focus-visible .go-pill { background: #fff; }
.hint { font-size: .95rem; font-style: italic; }
.group-rules { color: #d6dbea; max-width: 80ch; }
.group-rules b { color: var(--gold2); }

/* ---------- Pied de page ---------- */
.foot { padding: 26px 0 36px; background: #0a1028; color: #a8b0c8; font-size: .88rem; border-top: 3px double var(--gold); }
.foot p { margin: 0 0 .4em; }
.foot b { color: #fff; }
.foot a { color: var(--gold2); }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(10, 16, 40, .95); }
.gate-box { width: min(440px, 100%); padding: 30px 26px 26px; text-align: center; background: var(--parch); border-radius: 26px; box-shadow: 0 0 0 4px var(--gold); }
.gate-badge { width: 88px; height: 88px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, var(--sky) 0 55%, var(--night) 56%); border: 5px solid var(--gold); color: #fff; font-weight: 700; font-size: 1.4rem; }
.gate-box h2 { font-size: 1.5rem; }
.gate-box p { color: var(--muted); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gate-actions .btn-line { color: var(--night); border-color: var(--night); }
.gate-no { margin: 14px 0 0; color: var(--high) !important; font-weight: 700; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 960px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .faces { grid-template-columns: 1fr 1fr; }
  .help { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .orloj { display: none; }
  .clockwork { grid-template-columns: minmax(0, 1fr); }
  .dial { margin-inline: auto; width: 140px; height: 140px; }
  .dial-hand { height: 56px; }
}
@media (max-width: 600px) {
  .faces { grid-template-columns: 1fr; }
  .hours { grid-template-columns: 1fr; }
  .apostles { grid-template-columns: 1fr; padding: 30px 14px 14px; }
  .win { min-height: 190px; }
}
@media (max-width: 360px) {
  .top-in { gap: 10px; }
  .logo { font-size: .85rem; gap: 6px; }
  .logo svg { width: 24px; height: 24px; }
  .langs { gap: 2px; }
  .langs button { padding: .2em .35em; }
  .clockwork { padding: 14px; }
  .faces article { padding-left: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .o-zodiac, .o-hand, .apostles.ring .bell { animation: none; }
  .dial-hand, .btn, .js-doors .win::before, .js-doors .win::after { transition: none; }
}
