/* Limerick Weed Telegram Group : pierre calcaire du château du roi Jean, eaux de la Shannon */
:root {
  --stone: #ece7dc;
  --stone-2: #ddd5c4;
  --slate: #24323a;
  --ink: #1d272d;
  --muted: #56626a;
  --shannon: #17636b;
  --shannon-2: #0f4a51;
  --green: #1f6b45;
  --gold: #c69a3a;
  --white: #fffdf8;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 17px/1.6 "Vollkorn", Georgia, serif; }
a { color: var(--shannon); }
img, svg { max-width: 100%; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.kicker { margin: 0 0 .4rem; font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.intro { max-width: 680px; color: var(--muted); margin: 0 0 1.6rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #17573a; }
.btn-line { background: transparent; border-color: var(--slate); color: var(--slate); }
.btn-line:hover { background: var(--slate); color: #fff; }

/* Fenêtre 18+ */
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(20, 30, 34, .82); }
.gate-box { width: min(440px, 100%); background: var(--white); border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; border-top: 8px solid var(--green); }
.gate-badge { display: inline-grid; place-items: center; width: 74px; height: 74px; margin: 0 0 1rem; border-radius: 50%; background: var(--slate); color: #fff; font-size: 1.5rem; font-weight: 700; box-shadow: 0 0 0 5px var(--gold); }
.gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }
.gate-no { color: #a3332a; font-weight: 700; }

/* En-tête avec créneaux */
.top { position: sticky; top: 0; z-index: 20; background: var(--slate); color: #fff; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='9'%3E%3Cpath d='M0 0h24v9h-12v-9z' fill='%2324323a'/%3E%3C/svg%3E") repeat-x; }
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 62px; }
.brand { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; fill: #fff; }
.brand b { color: var(--gold); }
.menu { display: flex; gap: 1.2rem; margin-left: auto; }
.menu a { color: #e8eef0; text-decoration: none; }
.menu a:hover { color: var(--gold); }
.langs { display: flex; gap: .3rem; }
.langs button { padding: .3rem .55rem; border: 1px solid #6c7d86; border-radius: 6px; background: transparent; color: #fff; font: inherit; font-size: .85rem; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }

/* Accueil */
.hero { padding: 3.5rem 0 3rem; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); color: var(--slate); }
.hero h1 span { display: block; color: var(--shannon); }
.hero-sub { margin: 0 0 1rem; font-size: 1.2rem; font-weight: 700; color: var(--green); }
.lead { margin: 0 0 1.6rem; font-size: 1.1rem; }
.ctas { display: flex; flex-wrap: wrap; gap: .7rem; }
.castle { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 14px 30px rgba(36, 50, 58, .18); }
.waves path { animation: flow 6s linear infinite; }
.waves path + path { animation-duration: 9s; }
.flag { transform-origin: 260px 46px; animation: wave 2.4s ease-in-out infinite; }
.gull { animation: glide 7s ease-in-out infinite; }
.gull.g2 { animation-delay: -3s; }
@keyframes flow { to { transform: translateX(40px); } }
@keyframes wave { 50% { transform: skewY(-6deg) scaleX(.92); } }
@keyframes glide { 50% { transform: translate(14px, -6px); } }

/* Sections */
.sec { padding: 4rem 0; }
.sec-stone { background: var(--stone-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cpath d='M0 .5h80M0 20.5h80M40 0v20M.5 20v20' stroke='%23cbc1ad' fill='none'/%3E%3C/svg%3E"); }

/* Six pierres */
.stones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stone { position: relative; background: var(--white); border-radius: 6px 6px var(--radius) var(--radius); padding: 1.4rem 1.3rem 1.2rem; border-bottom: 5px solid #b5ab96; box-shadow: 0 6px 14px rgba(36, 50, 58, .08); }
.stone h3 { font-size: 1.25rem; color: var(--slate); }
.stone p { margin: 0; }
.mark { display: inline-block; margin-bottom: .6rem; padding: .1rem .6rem; border-radius: 4px; background: var(--slate); color: var(--gold); font-weight: 700; letter-spacing: .1em; }

/* Outil */
.sec-river { background: var(--shannon-2); color: #eaf4f2; }
.sec-river .kicker { color: var(--gold); }
.sec-river h2 { color: #fff; }
.sec-river .intro { color: #bcd8d4; }
.picks { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.picks button { padding: .7rem 1.1rem; border: 2px solid #4f9a9f; border-radius: 999px; background: transparent; color: #fff; font: inherit; cursor: pointer; transition: background .2s; }
.picks button:hover { background: rgba(255, 255, 255, .08); }
.picks button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.board { display: grid; grid-template-columns: 240px 1fr; gap: 1.4rem; background: var(--shannon); border-radius: var(--radius); padding: 1.4rem; }
.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: .45rem; }
.ladder li { padding: .6rem .8rem; border-radius: 8px; background: rgba(0, 0, 0, .18); color: #9cc3bf; font-weight: 600; transition: background .3s, color .3s; }
.ladder li.on { background: var(--stone); color: var(--slate); }
.ladder li.on.top-step { background: var(--gold); color: var(--ink); }
.verdicts { min-height: 150px; }
.verdict h3 { color: #fff; font-size: 1.35rem; }
.verdict p { margin: 0; }
.verdict { animation: rise .35s ease-out; }
.empty { margin: 0; color: #bcd8d4; font-style: italic; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Aide */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.tips { margin: 0; padding-left: 1.2rem; }
.tips li { margin-bottom: .7rem; }
.contacts { display: grid; gap: .7rem; }
.contact { display: block; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--white); border-left: 6px solid var(--shannon); color: var(--ink); text-decoration: none; }
.contact b { display: block; font-size: 1.2rem; color: var(--shannon-2); }
.contact span { color: var(--muted); }
.contact-main { border-left-color: var(--green); }

/* FAQ */
.faq details { margin-bottom: .6rem; background: var(--white); border-radius: 10px; padding: .9rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--slate); }
.faq details p { margin: .6rem 0 0; }

/* Communauté */
.sec-join { background: var(--slate); color: #eef2f3; }
.sec-join .kicker { color: var(--gold); }
.sec-join h2 { color: #fff; }
.sec-join .intro { color: #b9c6cc; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.app { display: flex; align-items: center; gap: .8rem; padding: 1.1rem; border-radius: var(--radius); background: #2f414a; color: #fff; text-decoration: none; border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.app:hover { border-color: var(--gold); transform: translateY(-2px); }
.app svg { flex: none; width: 36px; height: 36px; fill: #fff; }
.app[data-app="telegram"] svg { fill: #2aabee; }
.app[data-app="whatsapp"] svg { fill: #25d366; }
.app[data-app="signal"] svg { fill: #6f9cff; }
.app b { display: block; font-size: 1.1rem; }
.app small { color: #b9c6cc; font-size: .9rem; }
.rules { margin: 1.4rem 0 0; color: #b9c6cc; }
.rules b { color: var(--gold); }

/* Pied de page */
.foot { padding: 2rem 0; background: var(--ink); color: #a9b5bb; font-size: .9rem; }
.foot a { color: #d6dfe3; }
.foot b { color: #fff; }

/* Tablette et mobile */
@media (max-width: 900px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .hero-in, .help { grid-template-columns: 1fr; }
  .stones { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: 1fr; }
  .ladder { flex-direction: row; flex-wrap: wrap; }
  .ladder li { flex: 1 1 40%; font-size: .9rem; }
  .apps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand { font-size: .9rem; letter-spacing: .04em; }
  .brand svg { width: 24px; height: 24px; }
  .langs button { padding: .25rem .45rem; }
  .hero { padding-top: 2.2rem; }
  .stones { grid-template-columns: 1fr; }
  .sec { padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
