/* SkyTrash — page de lancement.
   Mise en page : récit vertical (accroche + globe, chiffres, étapes, certificat sur papier, FAQ).
   Palette : nuit orbitale, braise de rentrée atmosphérique (ambre), papier pour le certificat. */
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url('fonts/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-display: swap; src: url('fonts/sora-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --night: #070b17;
  --night-2: #0d1426;
  --line: #1d2740;
  --ink: #edf1f7;
  --muted: #929db2;
  --ember: #ffad4d;
  --ember-deep: #e8892a;
  --orbit: #8fb8e8;
  --paper: #f4f0e6;
  --paper-line: #d9d1bf;
  --paper-ink: #1d1f24;
  --paper-muted: #6b6558;
  --f-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1120px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
img, svg, canvas { max-width: 100%; }
a { color: var(--ember); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Barre du haut */
.top { padding-block: 18px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.logo svg { width: 28px; height: 28px; }
.top-links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top-links a { color: var(--muted); text-decoration: none; }
.top-links a:hover { color: var(--ink); }
.top-links a.btn, .top-links a.btn:hover { color: #1a1206; }

/* Bouton */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--ember); color: #1a1206; font-weight: 600; font-size: 16.5px; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: #ffbd6e; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn-small { padding: 8px 16px; font-size: 14.5px; white-space: nowrap; }

/* Accroche */
.hero { padding-block: 32px 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); }
.hero h1 em { font-style: normal; color: var(--ember); }
.lead { font-size: 19px; color: #c5cdda; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.price { font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.price b { color: var(--ink); font-weight: 500; }
.fineprint { font-size: 13.5px; color: var(--muted); max-width: 40em; }
.fineprint a { color: var(--muted); }

.globe-box { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: center; }
.globe-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.tag { position: absolute; left: 0; top: 0; transform: translate(14px, -50%); pointer-events: none; font-family: var(--f-mono); font-size: 12px; line-height: 1.35; color: var(--ink); background: rgba(7, 11, 23, 0.82); border: 1px solid rgba(255, 173, 77, 0.55); border-radius: 6px; padding: 5px 8px; white-space: nowrap; transition: opacity .2s ease; }
.tag.flip { transform: translate(calc(-100% - 14px), -50%); }
.tag b { color: var(--ember); font-weight: 500; display: block; }
.globe-note { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }

/* Chiffres */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--night-2); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding-block: 28px; padding-right: 24px; display: flex; flex-direction: column; gap: 6px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding-block: 88px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 40em; margin-bottom: 44px; }
.section h2 { font-size: clamp(30px, 3.8vw, 44px); }
.section-head p { color: #c5cdda; font-size: 18px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, var(--night-2), var(--night)); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: 13px; color: var(--ember); }
.step h3 { font-size: 20px; }
.step p { color: #b8c1d0; font-size: 16px; }

/* Certificat */
.cert-section { background: radial-gradient(ellipse at 70% 30%, #131d36 0%, var(--night) 60%); }
.cert-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.cert-grid .section-head { margin-bottom: 0; }
.cert { position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 40px 40px 32px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); transform: rotate(-1.2deg); }
.cert::before { content: ''; position: absolute; inset: 12px; border: 1px solid var(--paper-line); border-radius: 3px; pointer-events: none; }
.cert-stamp { position: absolute; top: 22px; right: 26px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #b4441c; border: 1.5px solid #b4441c; padding: 3px 8px; border-radius: 3px; transform: rotate(6deg); }
.cert-kicker { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-muted); }
.cert-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); margin: 6px 0 22px; letter-spacing: -0.01em; }
.cert-small { font-size: 14px; color: var(--paper-muted); }
.cert-name { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 34px); margin: 2px 0 10px; }
.cert-object { font-family: var(--f-display); font-weight: 600; font-size: 20px; margin: 2px 0 18px; }
.cert dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 18px; padding: 14px 0; border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); font-size: 14px; }
.cert dt { color: var(--paper-muted); }
.cert dd { margin: 0; font-family: var(--f-mono); font-size: 13.5px; }
.cert-story { font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.cert-foot { font-size: 12px; color: var(--paper-muted); line-height: 1.5; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-family: var(--f-display); font-weight: 600; font-size: 18.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-family: var(--f-mono); font-size: 22px; color: var(--ember); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; color: #c5cdda; max-width: 44em; }

/* Appel final */
.final { text-align: center; padding-block: 96px; border-top: 1px solid var(--line); }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final h2 { font-size: clamp(30px, 4vw, 46px); max-width: 16em; }
.final p { color: #c5cdda; max-width: 34em; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding-block: 28px 36px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* Pages légales */
.legal { padding-block: 40px 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 28px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p, .legal li { color: #c5cdda; font-size: 16px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.todo { background: rgba(255, 173, 77, 0.14); color: var(--ember); padding: 0 4px; border-radius: 3px; }

@media (max-width: 880px) {
  .hero .wrap, .cert-grid { grid-template-columns: 1fr; }
  .globe-box { max-width: 460px; }
  .steps { grid-template-columns: 1fr; }
  .cert { transform: none; padding: 32px 24px 26px; }
  .cert-grid { gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 18px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .section { padding-block: 64px; }
  .top .wrap { flex-wrap: wrap; row-gap: 12px; }
  .top-links { width: 100%; justify-content: space-between; gap: 8px; font-size: 13.5px; }
  .top-links .btn-small { padding: 7px 12px; font-size: 13.5px; }
  .logo { flex: 1 0 100%; }
  .cert dl { grid-template-columns: 1fr; gap: 0; }
  .cert dd { margin-bottom: 8px; }
  .cert-stamp { position: static; display: inline-block; transform: none; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn:hover { transform: none; } }

/* ---------- Navigation : page en cours ---------- */
.top-links a[aria-current="page"] { color: var(--ink); }

/* ---------- En-tête des pages intérieures ---------- */
.page-head { padding-block: 40px 56px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 18px; }
.page-head h1 { font-size: clamp(36px, 5vw, 58px); max-width: 14em; }
.source-line { font-size: 13.5px; color: var(--muted); padding-block: 14px 0; }
.source-line a { color: var(--muted); }

/* ---------- Club (accueil) ---------- */
.club { border-top: 1px solid var(--line); }
.club-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.club-text .section-head { margin-bottom: 28px; }
.club-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.club-list li { padding-left: 22px; border-left: 2px solid var(--ember); }
.club-list h3 { font-size: 18.5px; margin-bottom: 4px; }
.club-list p { color: #b8c1d0; font-size: 16px; }
.club-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-weight: 500; }
.club-links a { text-decoration: none; }
.club-links a:hover { text-decoration: underline; }
.club-art { width: 100%; max-width: 460px; height: auto; justify-self: center; }

/* ---------- Apprendre ---------- */
.learn { padding-top: 56px; }
.learn-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 24px; }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toc a { display: flex; flex-direction: column; padding: 8px 0 8px 14px; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc a span { font-family: var(--f-mono); font-size: 11.5px; color: var(--ember); letter-spacing: 0.04em; }
.toc a:hover { color: var(--ink); border-left-color: var(--ember); }
.stories { display: flex; flex-direction: column; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) 200px; grid-template-areas: "year year" "body nums"; gap: 10px 40px; padding-block: 44px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.story:first-child { border-top: 0; padding-top: 0; }
.story-year { grid-area: year; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); }
.story-body { grid-area: body; display: flex; flex-direction: column; gap: 14px; }
.story-body h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 4px; }
.story-body p { color: #c5cdda; max-width: 38em; }
.story-nums { grid-area: nums; display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.story-nums div { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line); }
.story-nums b { font-family: var(--f-display); font-size: 24px; letter-spacing: -0.02em; }
.story-nums span { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- Actualités ---------- */
.news-inits { padding-top: 24px; }
.inits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.init { border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; background: var(--night-2); }
.init-where { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.init h3 { font-size: 19px; }
.init p { color: #b8c1d0; font-size: 15.5px; }
.init-link { margin-top: auto; padding-top: 6px; font-size: 14.5px; text-decoration: none; }
.init-link:hover { text-decoration: underline; }
.news-feed { border-top: 1px solid var(--line); }
.news-list { list-style: none; margin: 0; padding: 0; max-width: 820px; display: flex; flex-direction: column; }
.news-item { padding-block: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.news-lang { color: var(--ember); }
.news-item h3 { font-size: 19.5px; line-height: 1.3; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--ember); text-decoration: underline; }
.news-item p:last-child { color: #b8c1d0; font-size: 15.5px; }
.news-empty, .news-updated { color: var(--muted); font-size: 14.5px; }
.news-updated { margin-top: 24px; font-family: var(--f-mono); font-size: 12.5px; }

@media (max-width: 880px) {
  .club-grid { grid-template-columns: 1fr; gap: 32px; }
  .learn-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .story { grid-template-columns: 1fr; grid-template-areas: "year" "body" "nums"; }
  .story-nums { flex-direction: row; flex-wrap: wrap; gap: 14px 28px; }
  .inits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .inits { grid-template-columns: 1fr; }
}

/* ---------- Comment l'offrir (accueil) ---------- */
.give { border-top: 1px solid var(--line); }
.formats { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.format { border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px; background: var(--night-2); }
.format:nth-child(2) { border-color: rgba(255, 173, 77, 0.55); }
.format-tag { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.format h3 { font-size: 21px; }
.format-price { font-family: var(--f-display); font-weight: 600; font-size: 26px; color: var(--ember); letter-spacing: -0.02em; }
.format p:last-child { color: #b8c1d0; font-size: 15.5px; }
.give-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.give-h3 { font-size: 22px; margin-bottom: 20px; }
.reveal { list-style: none; margin: 0; padding: 0; counter-reset: rv; display: flex; flex-direction: column; gap: 18px; }
.reveal li { counter-increment: rv; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
.reveal li::before { content: counter(rv); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ember); color: var(--ember); font-family: var(--f-mono); font-size: 14px; display: grid; place-items: center; }
.reveal h4 { margin: 4px 0 2px; font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.reveal p { color: #b8c1d0; font-size: 15.5px; }
.occasions { margin: 0; display: flex; flex-direction: column; }
.occasions div { padding-block: 12px; border-top: 1px solid var(--line); }
.occasions div:first-child { border-top: 0; padding-top: 0; }
.occasions dt { font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.occasions dd { margin: 2px 0 0; color: #b8c1d0; font-size: 15.5px; }
@media (max-width: 880px) {
  .formats { grid-template-columns: 1fr; margin-bottom: 40px; }
  .give-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Club ---------- */
.club-head h1 { font-size: clamp(48px, 8vw, 96px); letter-spacing: -0.03em; }
.question { background: var(--ember); color: #1a1206; }
.question p { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 4vw, 44px); line-height: 1.15; letter-spacing: -0.02em; padding-block: 40px; text-wrap: balance; }
.hist-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.hist-grid .section-head { margin-bottom: 0; }
.hist { display: flex; flex-direction: column; gap: 16px; }
.hist p { color: #c5cdda; font-size: 18px; }
.acts-section { border-top: 1px solid var(--line); background: var(--night-2); }
.acts { list-style: none; margin: 0; padding: 0; counter-reset: act; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.acts li { counter-increment: act; border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--night); display: flex; flex-direction: column; gap: 8px; }
.acts li::before { content: counter(act); font-family: var(--f-display); font-weight: 700; font-size: 34px; color: var(--ember); line-height: 1; }
.acts h3 { font-size: 20px; }
.acts p { color: #b8c1d0; font-size: 15.5px; }

/* ---------- Rejoindre ---------- */
.join { padding-block: 0 88px; }
.join-card { max-width: 720px; border: 1px solid var(--line); border-radius: 16px; background: var(--night-2); padding: 12px; overflow: hidden; }
.join-card iframe { display: block; width: 100%; border: 0; border-radius: 10px; min-height: 420px; }
.join-note { margin-top: 16px; }
.news-nophp { color: var(--muted); font-size: 15.5px; border: 1px dashed var(--line); border-radius: 12px; padding: 18px 20px; max-width: 820px; }

@media (max-width: 880px) {
  .hist-grid { grid-template-columns: 1fr; gap: 24px; }
}
