/* 24H — liste d'attente. Mêmes couleurs, polices et formes que l'app (24H/DesignSystem/Theme.swift).
   Polices servies depuis ce site (aucun appel à Google Fonts) : Anton, Archivo, Roboto Mono, SIL OFL 1.1. */

@font-face { font-family: "Anton"; src: url("fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("fonts/RobotoMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #16171a;
  --sunken: #101114;
  --border: #26262a;
  --border-strong: #33343a;
  --accent: #ff5a1f;
  --accent-hover: #ff6d38;
  --accent-tint: rgba(255, 90, 31, 0.10);
  --ink: #f2f0ec;
  --ink-85: rgba(242, 240, 236, 0.85);
  --ink-70: rgba(242, 240, 236, 0.70);
  --ink-60: rgba(242, 240, 236, 0.60);
  --ink-45: rgba(242, 240, 236, 0.45);
  --ink-30: rgba(242, 240, 236, 0.30);
  --ink-25: rgba(242, 240, 236, 0.25);
  --ink-12: rgba(242, 240, 236, 0.12);
  --stripe-light: #1c1d21;
  --stripe-dark: #141518;
  --stripes: repeating-linear-gradient(135deg, var(--stripe-light) 0 8px, var(--stripe-dark) 8px 16px);
  --gutter: clamp(20px, 6vw, 28px);
  --radius: 4px;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-60);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
a { color: var(--ink); text-decoration-color: var(--ink-30); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ol, ul { margin: 0; padding: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Type — les trois voix de l'app */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--ink); line-height: 0.92; letter-spacing: 0; }
.meta { font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 1.5; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-45); }
.accent { color: var(--accent); }

/* Boutons — hauteur 56, rayon 4, Anton capitales */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  position: relative;
  height: 56px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--display); font-size: 17px; letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.985); }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink-25); }
.btn-outline:hover { border-color: var(--ink-60); }
.btn-block { width: 100%; }
.btn-small { height: 48px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.btn.is-loading { color: transparent; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--bg); border-right-color: transparent; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn {
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-45);
}
.link-btn:hover { color: var(--ink); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 11, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--ink); text-decoration: none; }
.header-cta { height: 40px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { padding: clamp(36px, 7vw, 96px) 0 clamp(72px, 10vw, 128px); }
.hero-grid { display: grid; gap: 64px; align-items: center; }
.hero-copy { container-type: inline-size; min-width: 0; }
/* « UNE JOURNÉE. » = 12 signes d'Anton, 0,47 em chacun : le titre prend la largeur de sa colonne, sans jamais la dépasser. */
.hero h1 { font-size: clamp(44px, 13vw, 88px); font-size: min(17cqi, 112px); margin-top: 18px; }
.hero .lead { font-size: clamp(16px, 2.3vw, 18px); color: var(--ink-70); max-width: 36ch; margin: 26px 0 32px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-note { margin-top: 26px; font-size: 14px; color: var(--ink-45); }
.hero-note a { color: var(--ink-70); }
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; }
}

/* L'affiche de la bande — une colonne par membre, comme le lobby (SES 01) */
.visual { position: relative; }
.poster { display: flex; gap: 3px; height: clamp(250px, 70vw, 380px); }
.slot { position: relative; flex: 1 1 0; min-width: 0; background: var(--stripes); overflow: hidden; isolation: isolate; }
.slot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 11, 0.72), rgba(10, 10, 11, 0) 42%); pointer-events: none; }
.slot-name {
  position: absolute; left: 4px; right: 4px; bottom: 12px; z-index: 1;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--display); font-size: clamp(13px, 3.5vw, 17px); text-transform: uppercase; color: var(--ink);
}
.slot-tag {
  position: absolute; top: 10px; left: 2px; right: 2px; z-index: 1;
  text-align: center; white-space: nowrap; overflow: hidden;
  font-family: var(--mono); font-weight: 500; font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-45);
}
.slot.is-me { box-shadow: inset 0 0 0 1px var(--accent); }
.slot.is-me .slot-tag { color: var(--accent); }
.slot.is-empty, .slot.is-pending { background: var(--sunken); border: 1px dashed var(--border-strong); }
.slot.is-empty::after, .slot.is-pending::after { display: none; }
.slot.is-pending .slot-name { color: var(--ink-45); }
.slot-plus { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.slot-plus b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; color: var(--border-strong); }
.slot-plus span { font-family: var(--mono); font-weight: 500; font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-30); }

/* La notification d'un drop (SES 03) */
.notif {
  position: absolute; left: 50%; top: 30%; transform: translateX(-50%); z-index: 2;
  width: min(92%, 360px);
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px;
  background: rgba(22, 23, 26, 0.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}
.notif-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: var(--bg); display: grid; place-items: center; font-family: var(--display); font-size: 15px; }
.notif-head { display: flex; justify-content: space-between; gap: 8px; font-size: 9.5px; }
.notif-text { margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--ink); }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -18px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(42px, 10vw, 84px); margin-top: 16px; max-width: 13ch; }
.intro { font-size: 17px; color: var(--ink-70); max-width: 46ch; margin-top: 22px; }

.grid-cards { list-style: none; display: grid; gap: 1px; margin-top: 48px; background: var(--border); border: 1px solid var(--border); }
.card { background: var(--bg); padding: 28px 24px 32px; }
.card h3 { font-size: clamp(25px, 5vw, 30px); line-height: 0.96; margin: 14px 0 12px; }
.card .meta:first-child + h3 { margin-top: 14px; }
.card > h3:first-child { margin-top: 0; }
@media (min-width: 780px) {
  .grid-cards.three { grid-template-columns: repeat(3, 1fr); }
  .grid-cards.two { grid-template-columns: repeat(2, 1fr); }
}

.mission-card {
  margin: 40px 0 0; max-width: 460px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.mission-card .display { font-size: clamp(25px, 5.4vw, 31px); line-height: 1.02; margin-top: 12px; }
.mission-card .bar { height: 3px; background: var(--ink-12); margin: 22px 0 14px; }
.mission-card .bar span { display: block; height: 100%; width: 62%; background: var(--accent); }

.howto-block { margin-top: 64px; }
.howto { list-style: none; display: grid; gap: 28px; margin: 22px 0 36px; }
.howto li { border-top: 2px solid var(--accent); padding-top: 16px; }
.howto .n { display: block; font-family: var(--display); font-size: 44px; line-height: 1; color: var(--accent); }
.howto h3 { font-size: clamp(24px, 4.6vw, 28px); line-height: 0.98; margin: 12px 0 8px; }
.howto p { color: var(--ink-70); }
@media (min-width: 820px) { .howto { grid-template-columns: repeat(3, 1fr); } }

/* Bandes fondatrices */
.founders { display: grid; gap: 44px; align-items: start; }
@media (min-width: 880px) { .founders { grid-template-columns: 1.2fr 0.8fr; } }
.perks { list-style: none; margin-top: 36px; border-top: 1px solid var(--border); }
.perks li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--ink-70); }
.perks strong { color: var(--ink); font-weight: 600; }
.counter { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px 24px; }
.counter .big { font-family: var(--display); font-size: clamp(96px, 24vw, 152px); line-height: 0.85; color: var(--accent); margin: 16px 0 12px; }
.counter-note { font-size: 14px; color: var(--ink-60); margin-bottom: 24px; }

/* FAQ */
.faq { margin-top: 40px; max-width: 780px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 40px 22px 0;
  font-family: var(--display); font-size: clamp(20px, 4.4vw, 24px); line-height: 1.05; text-transform: uppercase; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 20px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 62ch; padding-bottom: 22px; }

.final { text-align: left; }
.final h2 { max-width: 14ch; }
.final .btn { margin-top: 36px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 calc(44px + env(safe-area-inset-bottom)); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer a { color: var(--ink-60); font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* La feuille d'inscription — plein écran sur téléphone, carte au centre sur ordinateur */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sheet {
  width: 100%; height: 100dvh; max-width: 560px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg);
  padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) {
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { height: auto; max-height: calc(100dvh - 48px); border: 1px solid var(--border-strong); border-radius: 16px; padding-top: 16px; }
}
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 48px; }
.sheet-head [data-back] { justify-self: start; }
.sheet-head [data-close] { justify-self: end; grid-column: 3; }
.sheet-head .meta { text-align: center; font-size: 10px; }
.sheet h2 { font-size: clamp(42px, 11vw, 56px); margin-top: 20px; }
.sheet-sub { margin-top: 12px; color: var(--ink-70); }

.field { display: block; margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.field-label { display: block; margin: 0 0 10px; padding: 0; }
.field-label .opt { color: var(--ink-30); }
.input {
  width: 100%; height: 58px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--ink); font: 400 17px var(--body);
  outline: none; transition: border-color 0.15s ease;
}
.input::placeholder { color: var(--ink-30); }
.input:focus { border-color: var(--accent); }
.hint { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-45); }

.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: grid; place-items: center; height: 56px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--display); font-size: 24px; color: var(--ink-60);
}
.chip input:checked + span { background: var(--accent-tint); border-color: var(--accent); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.friends { display: grid; gap: 8px; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 18px; font-size: 14px; line-height: 1.45; color: var(--ink-70); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0;
  width: 22px; height: 22px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 3px;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--ink); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent-tint); color: var(--ink); font-size: 14px; }
.error:empty { display: none; }
.sheet form > .btn-block, .sheet [data-share] { margin-top: 28px; }

.poster-sheet { height: clamp(200px, 56vw, 280px); margin-top: 22px; }
.status { margin-top: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink-85); font-size: 15px; }
.status.is-founding { background: var(--accent-tint); border-color: var(--accent); color: var(--ink); }
.linkbox { display: flex; gap: 8px; margin-top: 12px; }
.linkbox code {
  flex: 1; min-width: 0; height: 48px; display: flex; align-items: center; padding: 0 14px;
  background: var(--sunken); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-70);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: all;
}
.pending { margin-top: 24px; }
.pending-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill {
  height: 40px; padding: 0 14px; cursor: pointer;
  background: transparent; border: 1px dashed var(--border-strong); border-radius: 999px;
  color: var(--ink-85); font: 600 13px var(--body);
}
.pill:hover { border-color: var(--accent); color: var(--ink); }
.after { margin-top: 26px; color: var(--ink-60); font-size: 15px; }
.danger { display: block; margin-top: 18px; }
.danger:hover { color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}

/* Pages légales */
.legal { max-width: 760px; padding: clamp(36px, 7vw, 80px) 0 96px; }
.legal h1 { font-size: clamp(44px, 10vw, 72px); margin-top: 16px; }
.legal h2 { font-size: clamp(22px, 4.6vw, 28px); line-height: 1; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--ink-70); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.todo { background: var(--accent-tint); color: var(--ink); border-bottom: 1px dashed var(--accent); padding: 0 4px; font-family: var(--mono); font-size: 0.85em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .notif { animation: none; }
  .btn, .input { transition: none; }
}

/* Page d'invitation (/j/CODE) */
.invite { padding: clamp(36px, 7vw, 96px) var(--gutter) 96px; max-width: 760px; }
.invite h1 { font-size: clamp(56px, 16vw, 112px); margin-top: 18px; }
.invite .lead { font-size: clamp(16px, 2.3vw, 18px); color: var(--ink-70); max-width: 40ch; margin: 26px 0 22px; }
.invite-code { font-size: clamp(64px, 20vw, 128px); color: var(--accent); letter-spacing: 0.04em; line-height: 1; margin: 0 0 30px; word-break: break-all; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.legal h3 { font-size: clamp(18px, 4vw, 22px); line-height: 1; margin: 30px 0 10px; }
.legal .intro { font-size: 17px; color: var(--ink-85); }
