/* =========================================================
   Potsdam Weed Telegram Group — thème « Sanssouci »
   Jaune du palais, vert des terrasses de vigne qui montent une à une,
   bleu de Prusse ; loi en six terrasses en escalier, frise du temps.
   Une seule police : Crimson Pro.
   ========================================================= */
:root {
  --cream: #fbf7ea;
  --cream-2: #f1ead3;
  --card: #fffdf5;
  --ink: #22283a;
  --muted: #5e6475;
  --line: #e6dfc9;
  --yellow: #f2c94c;
  --ochre: #d9a62e;
  --vine: #4f7a3a;
  --vine-2: #5d8a45;
  --blue: #1f3a5f;
  --blue-2: #2c4f7f;
  --font: "Crimson Pro", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 19px/1.58 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-2); }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; margin: 0 0 .45em; line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--blue); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.kicker { font-size: .85rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--vine); margin-bottom: .8em; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .6em 1.35em; border-radius: 4px; font: 600 1.08rem 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.1em; height: 1.1em; fill: currentColor; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }
.btn-line { background: var(--yellow); color: var(--ink); border-color: var(--ochre); }

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

/* ---------- Accueil ---------- */
.hero { padding: clamp(40px, 7vw, 80px) 0; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 7.2vw, 5.2rem); color: var(--blue); margin-bottom: .1em; }
.hero h1 span { display: block; color: var(--ochre); }
.hero-sub { font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--vine); }
.lead { max-width: 54ch; color: var(--muted); font-size: 1.12rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.palace { width: 100%; max-width: 400px; justify-self: center; border-radius: 20px; box-shadow: 0 20px 34px -22px rgba(31,58,95,.7); }
.terr { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .7s ease-out both; }
.t1 { animation-delay: 1.4s; } .t2 { animation-delay: 1.1s; } .t3 { animation-delay: .8s; } .t4 { animation-delay: .5s; } .t5 { animation-delay: .2s; }
.pal { animation: appear .8s 1.8s ease-out both; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes appear { from { opacity: 0; transform: translateY(10px); } }

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

/* Terrasses en escalier */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; align-items: start; }
.step { position: relative; padding: 22px 22px 20px; background: var(--card); border: 1px solid var(--line); border-bottom: 8px solid var(--vine); border-radius: 4px 4px 0 0; }
.step:nth-child(2), .step:nth-child(5) { margin-top: 28px; }
.step:nth-child(3), .step:nth-child(6) { margin-top: 56px; }
.step > span { display: inline-block; margin-bottom: 6px; padding: 0 10px; background: var(--yellow); color: var(--ink); font-weight: 700; border-radius: 3px; }
.step h3 { color: var(--blue); }
.step p { margin: 0; color: var(--muted); }

/* ---------- Outil ---------- */
.sec-blue { background: var(--blue); color: #eef2f8; }
.sec-blue h2 { color: #fff; }
.sec-blue .kicker { color: var(--yellow); }
.sec-blue .intro { color: #c9d4e6; }
.time input { width: 100%; margin: 26px 0 6px; accent-color: var(--yellow); }
.marks { list-style: none; margin: 0 0 22px; padding: 0; display: flex; justify-content: space-between; font-size: .95rem; color: #c9d4e6; }
.marks li { flex: 1; text-align: center; cursor: pointer; }
.marks li:first-child { text-align: left; }
.marks li:last-child { text-align: right; }
.marks li.on { color: var(--yellow); font-weight: 700; }
.era-card { padding: 26px 28px; background: var(--card); color: var(--ink); border-radius: 4px; border-left: 10px solid var(--yellow); max-width: 820px; }
.era-year { margin: 0 0 .2em; font-size: 2.2rem; font-weight: 700; color: var(--ochre); }
.era-card h3 { font-size: 1.5rem; color: var(--blue); }
.era-card p:last-child { margin: 0; color: var(--muted); }

/* ---------- 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: .55em; width: 14px; height: 8px; background: var(--vine); border-radius: 0 0 8px 8px; }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 20px 22px; border-radius: 4px; text-decoration: none; color: var(--muted); background: var(--card); border: 1px solid var(--line); }
.contact b { display: block; font-size: 1.45rem; color: var(--ink); word-break: break-word; }
.contact-main { border: 2px solid var(--blue); border-top: 6px solid var(--yellow); }
.contact-main b { font-size: 1.75rem; color: var(--blue); }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 4px; border: 1px solid var(--line); }
.faq details[open] { border-color: var(--ochre); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -52%; font-size: 1.5rem; color: var(--vine); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { text-align: center; background: linear-gradient(180deg, var(--cream), #f5e7b8); }
.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: 4px; background: var(--card); color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-bottom: 6px solid var(--vine); transition: transform .15s; }
.app:hover { transform: translateY(-3px); }
.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); font-size: .95rem; }
.rules { color: var(--muted); max-width: 74ch; margin-inline: auto; }
.rules b { color: var(--ink); }

/* ---------- Pied de page ---------- */
.foot { background: var(--blue); color: #b9c6db; font-size: .98rem; border-top: 5px solid var(--yellow); }
.foot .wrap { padding: 26px 0 38px; }
.foot p { margin: 0 0 .5em; }
.foot b { color: #fff; }
.foot a { color: var(--yellow); }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(31,58,95,.95); }
.gate[hidden] { display: none; }
.gate-box { width: min(440px, 100%); padding: 32px 26px; text-align: center; background: var(--card); border-radius: 6px; border-top: 10px solid var(--yellow); }
.gate-badge { width: 92px; height: 70px; margin: 0 auto 14px; padding-top: 22px; background: var(--vine); color: #fff; font-weight: 700; font-size: 1.5rem; border-radius: 46px 46px 4px 4px; }
.gate-box h2 { font-size: 1.7rem; }
.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: #b03a3a !important; font-weight: 700; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 920px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .hero-in, .help { grid-template-columns: 1fr; }
  .palace { max-width: 330px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(n) { margin-top: 0; }
  .apps { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .brand { letter-spacing: .06em; font-size: .98rem; white-space: nowrap; }
  .steps { grid-template-columns: 1fr; }
  .marks { font-size: .78rem; }
  .era-card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
