/* Prouve-le site: static, no script, no tracker, no external request.
   Same palette and typeface as the app (src/index.css, src/brand.css). */
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/SourceSans3.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f1ece1;
  --surface: #fffdf7;
  --surface-soft: #f8f2e7;
  --text: #1f1b15;
  --muted: #6d6558;
  --border: #e2d7c6;
  --accent: #2f4bbb;
  --accent-soft: #e9edfb;
  --on-accent: #fffdf7;
  --hint: #985808;
  --hint-soft: #fbf0d8;
  color-scheme: light dark;
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151411;
    --surface: #211f1a;
    --surface-soft: #29251e;
    --text: #f2ede3;
    --muted: #b1a897;
    --border: #3b352b;
    --accent: #b9c4ff;
    --accent-soft: #2b304d;
    --on-accent: #15162a;
    --hint: #f0c36d;
    --hint-soft: #3a2f17;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 20px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-link img { width: 36px; height: 36px; }

h1 { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.15; margin: 24px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin: 40px 0 12px; }
h3 { font-size: 1.15rem; margin: 24px 0 6px; }
p { margin: 0 0 14px; }

.lead { font-size: 1.25rem; color: var(--muted); }

.status {
  display: inline-block;
  margin: 8px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--hint-soft);
  color: var(--hint);
  font-size: 0.95rem;
  font-weight: 600;
}

.cards { display: grid; gap: 14px; margin: 16px 0; }
@media (min-width: 40rem) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.list { padding-left: 1.2em; }
.list li { margin-bottom: 6px; }

footer { margin: 56px 0 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }

/* Privacy page */
.policy table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 1rem; display: block; overflow-x: auto; }
.policy th, .policy td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.policy th { background: var(--surface-soft); }
.policy code { padding: 1px 5px; border-radius: 6px; background: var(--surface-soft); font-size: 0.92em; overflow-wrap: anywhere; }
.policy blockquote { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid var(--hint); background: var(--hint-soft); border-radius: 8px; }

.nowrap { white-space: nowrap; }

/* A table of three columns or more becomes a stack of labelled lines on a phone. */
@media (max-width: 40rem) {
  .policy table.stack, .policy table.stack tbody { display: block; overflow: visible; }
  .policy table.stack thead { display: none; }
  .policy table.stack tr { display: block; margin: 0 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  .policy table.stack td { display: block; border: 0; padding: 6px 12px; }
  .policy table.stack td + td { border-top: 1px solid var(--border); }
  .policy table.stack td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
}

/* Call to action: the Play Store link (or a note while the app is not published yet) */
.cta { margin: 20px 0 8px; }
.button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgb(47 75 187 / 0.18);
}
.button:hover { filter: brightness(1.05); }
.cta-soon {
  display: inline-block;
  padding: 14px 22px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
}
