/* =========================================================
   Aarhus Weed Telegram Group — thème « panorama arc-en-ciel » (toit du musée ARoS)
   Blanc de musée, anneau arc-en-ciel qui tourne au-dessus d'un cube de brique,
   la loi en spectre de couleurs, l'outil en cadran à six couleurs avec une flèche.
   Une seule police : Manrope.
   ========================================================= */
:root {
  --white: #ffffff;
  --gallery: #f5f5f3;
  --ink: #161616;
  --muted: #575757;
  --brick: #9c3b2c;
  --rainbow: conic-gradient(#2bb673 0 60deg, #9acb3b 0 120deg, #f2c31b 0 180deg, #f39223 0 240deg, #e9493f 0 300deg, #8e54c4 0 360deg);
  --font: "Manrope", 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(--white); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.05; font-weight: 800; overflow-wrap: break-word; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-size: 1.12rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8e54c4; outline-offset: 2px; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--muted); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .76rem; }
.eyebrow::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--rainbow); }
.intro { max-width: 62ch; color: var(--muted); font-size: 1.05rem; }

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

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid #e6e6e6; }
.top-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.logo svg { width: 28px; height: 28px; fill: #2aabee; }
.logo b { background: linear-gradient(90deg, #2bb673, #f2c31b, #e9493f, #8e54c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.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(--ink); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--gallery); }
.langs button { border: 0; background: none; border-radius: 999px; font: 800 .78rem var(--font); padding: .35em .65em; cursor: pointer; color: var(--muted); }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Accueil : l'anneau sur le cube ---------- */
.hero { padding: clamp(46px, 7vw, 84px) 0 clamp(46px, 7vw, 84px); background: linear-gradient(180deg, #f4f7fb, #fff); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
.hero h1 span { display: block; color: var(--muted); font-weight: 600; }
.hero-sub { display: inline-block; margin: 0 0 16px; padding: .3em .9em; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.1rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.halo { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin-inline: auto; }
.ring { position: absolute; inset: 0 0 26%; border-radius: 50%; background: var(--rainbow); -webkit-mask: radial-gradient(farthest-side, transparent 72%, #000 73%); mask: radial-gradient(farthest-side, transparent 72%, #000 73%); transform: perspective(500px) rotateX(64deg); animation: turn 16s linear infinite; }
@keyframes turn { to { transform: perspective(500px) rotateX(64deg) rotateZ(360deg); } }
.cube { position: absolute; left: 18%; right: 18%; top: 50%; bottom: 4%; background: repeating-linear-gradient(0deg, var(--brick) 0 10px, #8a3326 10px 12px); box-shadow: inset -22px 0 0 rgba(0, 0, 0, .18); }

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

/* ---------- Loi : le spectre ---------- */
.spectrum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 30px; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 40px -32px rgba(0, 0, 0, .6); }
.spectrum article { padding: 24px 22px; background: #fff; border-top: 10px solid var(--c); }
.spectrum article:nth-child(n+4) { border-top-width: 0; border-bottom: 10px solid var(--c); }
.spectrum p { margin: 0; color: var(--muted); }

/* ---------- Outil : cadran ---------- */
.walk { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.dial { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin-inline: auto; }
.dial-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--rainbow); -webkit-mask: radial-gradient(farthest-side, transparent 58%, #000 59%); mask: radial-gradient(farthest-side, transparent 58%, #000 59%); }
.needle { position: absolute; left: 50%; top: 50%; width: 6px; height: 46%; margin-left: -3px; background: var(--ink); border-radius: 3px; transform-origin: 50% 0; transform: rotate(30deg); transition: transform .5s cubic-bezier(.4, 1.6, .5, 1); translate: 0 0; }
.needle::before { content: ""; position: absolute; left: 50%; top: -12px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--ink); }
.needle { top: 50%; rotate: 180deg; }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.colors button { position: relative; text-align: left; padding: 12px 14px 12px 38px; border-radius: 14px; border: 2px solid transparent; background: #fff; font: 600 .95rem var(--font); color: var(--ink); cursor: pointer; }
.colors button::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--c); }
.colors button[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.answer { margin-top: 16px; padding: 18px 20px; border-radius: 16px; background: #fff; border-left: 8px solid var(--c, #2bb673); }
.a-tag { margin: 0 0 4px; font-weight: 800; font-size: 1.15rem; }
.answer 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: 10px; }
.tips li { position: relative; padding-left: 28px; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 0; top: .4em; width: 14px; height: 14px; border-radius: 50%; border: 4px solid; border-color: #2bb673 #f2c31b #e9493f #8e54c4; }
.contacts { display: grid; gap: 12px; }
.contact { display: block; padding: 18px 20px; border-radius: 18px; background: var(--gallery); text-decoration: none; color: var(--muted); }
.contact b { display: block; font-size: 1.3rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-main { background: var(--ink); color: #cfcfcf; }
.contact-main b { color: #fff; font-size: 1.5rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 50px 14px 20px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--rainbow); transition: transform .4s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 16px; color: var(--muted); }

/* ---------- Communauté ---------- */
.sec-join { background: var(--ink); color: #fff; }
.sec-join .eyebrow { color: #cfcfcf; }
.sec-join .intro { color: #cfcfcf; }
.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: 18px; background: #262626; color: #fff; text-decoration: none; transition: transform .15s; }
.app:hover { transform: translateY(-2px); }
.app svg { width: 38px; height: 38px; flex: none; }
.app-tg { background: #2aabee; }
.app-tg svg { fill: #fff; }
.app-wa svg { fill: #25d366; }
.app-sig svg { fill: #8fb0ff; }
.app b { display: block; font-size: 1.05rem; }
.app small { color: #dedede; }
.group-rules { color: #cfcfcf; max-width: 80ch; }
.group-rules b { color: #fff; }

/* ---------- Pied de page ---------- */
.foot { padding: 26px 0 36px; background: #0d0d0d; color: #9a9a9a; font-size: .9rem; border-top: 6px solid transparent; border-image: linear-gradient(90deg, #2bb673, #9acb3b, #f2c31b, #f39223, #e9493f, #8e54c4) 1; }
.foot p { margin: 0 0 .4em; }
.foot b { color: #fff; }
.foot a { color: #f2c31b; }

/* ---------- Vérification d'âge ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(22, 22, 22, .9); }
.gate-box { width: min(440px, 100%); padding: 30px 26px 26px; text-align: center; background: #fff; border-radius: 26px; }
.gate-badge { width: 84px; height: 84px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(#fff 0 56%, transparent 57%), var(--rainbow); font-weight: 800; font-size: 1.3rem; }
.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: #c0392b !important; font-weight: 800; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 960px) {
  .menu { display: none; }
  .langs { margin-left: auto; }
  .hero-in, .walk, .help { grid-template-columns: minmax(0, 1fr); }
  .halo { width: min(260px, 80%); }
  .spectrum { grid-template-columns: 1fr 1fr; }
  .spectrum article:nth-child(n+4) { border-top-width: 10px; border-bottom: 0; }
  .apps { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 600px) {
  .spectrum, .colors { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .top-in { gap: 10px; }
  .logo { font-size: 1rem; gap: 7px; }
  .langs button { padding: .35em .45em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring { animation: none; }
  .needle, .btn, .app, .faq summary::after { transition: none; }
}
