/*
 * Feuille de style commune des pages statiques de public/ (contact, pages
 * légales, coming-soon). Reprend à l'identique la charte des pages Next.js
 * (app/page.tsx, components/marketing/) : fond encre, un seul bleu d'accent,
 * titres en Source Serif 4, libellés en JetBrains Mono.
 *
 * Polices auto-hébergées dans public/fonts/ (sous-ensemble latin, mêmes
 * fichiers que ceux servis par next/font) : aucun appel à Google Fonts, donc
 * aucune transmission de l'IP du visiteur à Google.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-serif-4-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --ink-950: #060a12;
  --ink-900: #0a0f1a;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --accent: #2563eb;
  --accent-hover: #3b82f6;
  --accent-text: #60a5fa;
  --amber: #fbbf24;
  --amber-text: #fcd34d;
  --error: #f87171;
  --success: #4ade80;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --container: 72rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink-950);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }
::selection { background: rgba(59, 130, 246, .35); color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow b { font-weight: 400; color: var(--accent-text); }
.eyebrow i { font-style: normal; color: #475569; margin: 0 8px; }

/* ── Bandeau bêta (même texte que components/ui/BetaBanner.tsx) ──────────── */
.beta-banner {
  background: var(--ink-900);
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 16px;
  text-align: center;
}
@media (min-width: 640px) { .beta-banner { font-size: 13px; } }
.beta-banner strong { font-weight: 500; color: var(--amber-text); }
.beta-banner .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); margin-right: 8px; vertical-align: middle; margin-top: -2px;
}
.beta-banner a {
  color: var(--text); white-space: nowrap;
  text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--faint);
}
.beta-banner a:hover { text-decoration-color: var(--text-2); }

/* ── En-tête ──────────────────────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .container {
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo img { width: 28px; height: 28px; display: block; }
.logo span { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.nav-main { display: none; gap: 32px; font-size: 13px; }
@media (min-width: 768px) { .nav-main { display: flex; } }
.nav-main a, .nav-account a.link { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-main a:hover, .nav-account a.link:hover { color: #fff; }
.nav-account { display: flex; align-items: center; gap: 16px; font-size: 13px; }
@media (min-width: 640px) { .nav-account { gap: 24px; } }
.nav-account a.link { color: var(--text-2); white-space: nowrap; }

/* ── Boutons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 6px;
  font: 500 14px/1 var(--font-sans); white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 0;
  transition: background-color .15s, border-color .15s, opacity .15s;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text-2); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .03); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.only-mobile { display: inline; }
.only-desktop { display: none; }
@media (min-width: 640px) {
  .only-mobile { display: none; }
  .only-desktop { display: inline; }
}

/* ── Pied de page (même contenu que components/marketing/SiteFooter.tsx) ──── */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 640px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer .cols { grid-template-columns: 6fr 3fr 3fr; } }
.site-footer .tagline { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 20rem; }
.site-footer .footer-title {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.site-footer ul a, .site-footer .legal-id a { color: var(--muted); text-decoration: none; transition: color .15s; }
.site-footer ul a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .06); }
.site-footer .bottom .container {
  display: flex; flex-direction: column; gap: 8px; justify-content: space-between;
  padding-top: 24px; padding-bottom: 24px; font-size: 12px; color: var(--muted);
}
@media (min-width: 640px) { .site-footer .bottom .container { flex-direction: row; } }

/* ── Pages de document (mentions légales, CGU, confidentialité) ──────────── */
/* width + min-width : sinon un tableau large élargit tout le document sur mobile */
.doc { width: 100%; min-width: 0; max-width: 46rem; margin: 0 auto; padding: 64px 20px 112px; }
@media (min-width: 640px) { .doc { padding: 96px 32px 128px; } }
.doc .back-link {
  display: inline-block; margin-bottom: 40px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.doc .back-link:hover { color: #fff; }
.doc h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em;
  color: #fff; margin-bottom: 16px;
}
.doc .updated {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 56px;
}
.doc h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.25;
  letter-spacing: -.01em; color: #fff;
  margin: 56px 0 16px; padding-top: 32px; border-top: 1px solid var(--line);
}
.doc h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 28px 0 8px; }
.doc p, .doc address, .doc ul, .doc ol { font-style: normal; color: var(--muted); margin-bottom: 14px; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--faint); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }
.doc a:hover { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.doc th {
  color: var(--text-2); font-weight: 400;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.doc .scroll { overflow-x: auto; max-width: 100%; }
.doc .updated:last-child { margin: 56px 0 0; text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-size: 14px; }

/* ── Bandeau cookies (coming-soon.html) ───────────────────────────────────── */
.cookie-banner {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--ink-900); border-top: 1px solid var(--line-strong);
  padding: 16px 20px; gap: 16px 24px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.cookie-banner p { flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--text-2); }
.cookie-banner .actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
