/* =========================================================
   Izmir Weed Telegram Group — thème « le Kordon au coucher du soleil »
   Bleu de l'Égée, soleil orange qui descend, palmiers et tour de l'horloge
   de Konak ; bandeau d'avertissement, la loi en vagues, l'outil en quiz.
   Une seule police : Nunito Sans.
   ========================================================= */
:root {
  --aegean: #0e5c8a;
  --deep: #083b5a;
  --sunset: #ff8a3d;
  --sand: #fbf4e8;
  --foam: #e8f3f8;
  --ink: #12283a;
  --muted: #4e6272;
  --high: #c9302c;
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--aegean); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.06; font-weight: 800; overflow-wrap: break-word; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); color: var(--deep); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sunset); 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(--sunset); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .76rem; }
.intro { max-width: 62ch; color: var(--muted); font-size: 1.05rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .75em 1.35em; border-radius: 999px; border: 2px solid var(--aegean); font: 800 .98rem 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(--aegean); color: #fff; }
.btn-line { background: #fff; color: var(--aegean); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 244, 232, .94); backdrop-filter: blur(8px); border-bottom: 3px solid var(--sunset); }
.top-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--deep); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.logo svg { width: 28px; height: 28px; fill: #2aabee; }
.logo b { color: var(--sunset); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--aegean); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid #e3d8c4; }
.langs button { border: 0; background: none; border-radius: 999px; padding: .3em .65em; font: 800 .78rem var(--font); color: var(--muted); cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--aegean); color: #fff; }

/* ---------- Accueil : le Kordon ---------- */
.hero { overflow: hidden; padding: clamp(36px, 6vw, 70px) 0 0; background: linear-gradient(180deg, #ffd9b8 0%, #ffe9d4 40%, var(--sand) 100%); }
.warning { margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; background: #fff; border-left: 5px solid var(--aegean); color: var(--ink); max-width: 74ch; }
.warning b { color: var(--aegean); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); color: var(--deep); }
.hero h1 span { display: block; color: var(--aegean); }
.hero-sub { display: inline-block; margin: 0 0 14px; padding: .25em .9em; border-radius: 999px; background: var(--sunset); color: #fff; font-weight: 800; }
.lead { max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.kordon { display: block; width: 100%; height: clamp(140px, 18vw, 220px); margin-top: 20px; }
.sun { fill: var(--sunset); animation: set 14s ease-in-out infinite alternate; }
@keyframes set { from { transform: translateY(0); } to { transform: translateY(30px); } }
.sea { fill: var(--aegean); }
.glow { stroke: #ffc79e; stroke-width: 4; stroke-linecap: round; }
.clock path, .clock circle { fill: #e9d6b8; stroke: var(--deep); stroke-width: 2; }
.palms path { fill: none; stroke: var(--deep); stroke-width: 5; stroke-linecap: round; }
.promenade { stroke: #e9d6b8; stroke-width: 6; }

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

/* ---------- Loi : vagues ---------- */
.waves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.waves article { position: relative; padding: 22px 18px 34px; background: #fff; border-radius: 18px; overflow: hidden; border-top: 6px solid var(--high); }
.waves article::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16'%3E%3Cpath d='M0 10q10-10 20 0t20 0v6H0z' fill='%230e5c8a' fill-opacity='.25'/%3E%3C/svg%3E") repeat-x; }
.waves p { margin: 0; color: var(--muted); }

/* ---------- Outil : le quiz ---------- */
.quiz { margin-top: 24px; padding: 28px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 18px 36px -26px rgba(8, 59, 90, .7); border-bottom: 8px solid var(--sunset); }
.q-count { margin: 0 0 6px; color: var(--sunset); font-weight: 800; }
.q-text { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; color: var(--deep); }
.q-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.q-verdict { font-weight: 800; font-size: 1.15rem; }
.quiz[data-state="right"] .q-verdict { color: #1f8a5b; }
.quiz[data-state="wrong"] .q-verdict { color: var(--high); }
.q-answer p:not(.q-verdict) { 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: 10px; }
.tips li { position: relative; padding-left: 28px; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 50% 100%, var(--sunset) 50%, transparent 52%); border-bottom: 3px solid var(--aegean); }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 18px 20px; background: #fff; border-radius: 16px; text-decoration: none; color: var(--muted); }
.contact b { display: block; font-size: 1.45rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-main { background: var(--aegean); color: #d5e7f2; }
.contact-main b { color: #ffd0a8; font-size: 1.75rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 50px 14px 18px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--aegean); color: #fff; }
.faq details[open] summary::after { content: "−"; background: var(--sunset); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { background: var(--deep); color: #fff; }
.sec-join h2 { color: #fff; }
.sec-join .intro { color: #c8dbe6; }
.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: 16px; background: #fff; 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: #c8dbe6; max-width: 80ch; }
.group-rules b { color: #ffd0a8; }

/* ---------- Pied de page ---------- */
.foot { padding: 26px 0 36px; background: #062c43; color: #9fb7c6; font-size: .9rem; }
.foot p { margin: 0 0 .4em; }
.foot b { color: #fff; }
.foot a { color: #ffd0a8; }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(8, 59, 90, .93); }
.gate-box { width: min(440px, 100%); padding: 30px 26px 26px; text-align: center; background: var(--sand); border-radius: 24px; }
.gate-badge { width: 74px; height: 74px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--sunset); color: #fff; font-weight: 800; font-size: 1.4rem; box-shadow: 0 10px 0 -4px var(--aegean); }
.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: 800; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 960px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .waves { grid-template-columns: 1fr 1fr; }
  .help { grid-template-columns: minmax(0, 1fr); }
  .apps { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 600px) {
  .waves { grid-template-columns: 1fr; }
  .quiz { padding: 22px 16px; }
}
@media (max-width: 360px) {
  .top-in { gap: 10px; }
  .logo { font-size: 1rem; gap: 7px; }
  .langs button { padding: .3em .45em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun { animation: none; }
  .btn, .app { transition: none; }
}
