@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url('/figtree-400.f9ffe71503.woff') format('woff'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url('/figtree-600.9339fad7d6.woff') format('woff'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url('/bricolage-700.036ea600cf.woff') format('woff'); }

/* Palette des écrans Art déco de l'app (fond noir, or des médailles). */
:root {
  --bg: #0b0a07;
  --surface: #17140e;
  --line: rgba(215, 178, 92, 0.28);
  --hairline: rgba(255, 255, 255, 0.1);
  --gold: #f2c14e;
  --gold-soft: #d7b25c;
  --ink: #f5eedc;
  --ink-muted: #b8ad94;
  --danger: #f2847a;
  --danger-line: rgba(242, 132, 122, 0.55);
  --ok: #7fd3a4;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

header {
  display: flex; align-items: center; gap: 12px;
  max-width: 720px; margin: 0 auto; padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
}
header a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
header img { width: 36px; height: 36px; border-radius: 9px; }
header span { font: 700 20px/1 'Bricolage Grotesque', 'Figtree', sans-serif; color: var(--gold); letter-spacing: 0.02em; }

main { max-width: 720px; margin: 0 auto; padding: 28px 16px 48px; }
h1 { font: 700 30px/1.15 'Bricolage Grotesque', 'Figtree', sans-serif; margin: 0 0 6px; color: var(--ink); }
h2 { font: 600 16px/1.35 'Figtree', sans-serif; margin: 0 0 6px; color: var(--gold); }
p { margin: 0 0 10px; }
.lead { color: var(--ink-muted); margin-bottom: 24px; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; }

.section { padding: 18px 0; border-top: 1px solid var(--hairline); }
.section:last-of-type { border-bottom: 1px solid var(--hairline); }

.links { display: grid; gap: 12px; margin-top: 28px; }
.links a {
  display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600;
}
.links a::after { content: '›'; color: var(--gold); font-size: 22px; line-height: 1; }

#compte { display: grid; gap: 14px; }
.google { min-height: 44px; }
.block { padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); }
.block p:last-child { margin-bottom: 0; }
.block.danger { border-color: var(--danger-line); }
.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.who p { margin: 0; }
.name { font-weight: 600; color: var(--gold); font-size: 18px; }

label.field { font-weight: 600; font-size: 15px; margin-bottom: -6px; }
textarea {
  width: 100%; min-height: 84px; padding: 12px; resize: vertical;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit;
}
textarea::placeholder { color: var(--ink-muted); }
label.check { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 4px 0; cursor: pointer; }
label.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }

button { font: 600 16px/1.2 'Figtree', sans-serif; cursor: pointer; }
button:disabled { opacity: 0.6; cursor: progress; }
button.danger, button.secondary {
  min-height: 52px; padding: 0 20px; border-radius: 14px; background: transparent;
}
button.danger { border: 1.5px solid var(--danger); color: var(--danger); }
button.secondary { border: 1px solid var(--line); color: var(--ink); }
button.link { background: none; border: 0; padding: 12px 0; min-height: 48px; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-weight: 400; font-size: 14px; white-space: nowrap; }

.error { color: var(--danger); font-weight: 600; margin: 0; }
.ok { color: var(--ok); font-weight: 600; margin: 0; }

footer { max-width: 720px; margin: 0 auto; padding: 0 16px 32px; color: var(--ink-muted); font-size: 14px; }
footer a { color: var(--ink-muted); }
