/* Styles partagés des pages secondaires (la page d'accueil garde ses styles en ligne). */
:root {
  --fond: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --ligne: #262626;
  --ligne-forte: #363636;
  --texte: #ffffff;
  --texte-2: #b5b5b5;
  --texte-3: #7a7a7a;
  --accent: #c6ff3d;
  --sur-accent: #0a0a0a;
  --violet: #9b7bff;
  --alerte: #ffb23d;
  --gouttiere: clamp(20px, 5vw, 72px);
  --display: 'Unbounded', sans-serif;
  --mono: 'Geist Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  color: var(--texte);
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}
main { flex: 1; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* En-tête */
.fp-header { position: sticky; top: 0; z-index: 10; background: var(--fond); border-bottom: 1px solid var(--ligne); }
.fp-header-in { display: flex; align-items: center; gap: 32px; padding: 20px var(--gouttiere); }
.fp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.fp-logo img { width: 30px; height: 30px; }
.fp-wordmark { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; color: var(--texte); }
.fp-wordmark span { color: var(--accent); }
.fp-nav { flex: 1; display: flex; justify-content: center; gap: 32px; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.fp-nav a { color: var(--texte-2); text-decoration: none; padding: 10px 0; }
.fp-nav a:hover, .fp-nav a[aria-current] { color: var(--accent); }
.fp-header .fp-btn { margin-left: auto; }
@media (max-width: 900px) { .fp-nav { display: none; } }

/* Boutons */
.fp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 500; font-size: 13px; line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
.fp-btn:hover { transform: translateY(-2px); }
.fp-btn-lg { padding: 16px 26px; font-size: 15px; }
.fp-btn-accent { background: var(--accent); color: var(--sur-accent); }
.fp-btn-accent:hover { filter: brightness(.95); color: var(--sur-accent); }
.fp-btn-ghost { background: var(--surface-2); border-color: var(--ligne-forte); color: var(--texte); }
.fp-btn-ghost:hover { border-color: var(--accent); }
.fp-btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .fp-btn, .fp-btn:hover { transition: none; transform: none; } }

/* Typographie */
.fp-eyebrow { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.fp-label { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texte-3); }
.fp-h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.fp-h2 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.fp-muted { color: var(--texte-3); }

/* Contenu */
.fp-page { display: flex; flex-direction: column; gap: 40px; padding: clamp(48px, 6vw, 72px) var(--gouttiere) 96px; max-width: 1440px; margin: 0 auto; width: 100%; }
.fp-head { display: flex; flex-direction: column; gap: 14px; }
.fp-card { background: var(--surface); border: 1px solid var(--ligne); border-radius: 20px; padding: 28px; }

/* À renseigner : contenu que l'équipe doit fournir avant publication */
.fp-todo {
  display: inline-flex; align-self: flex-start; padding: 4px 9px; border: 1px solid var(--alerte); border-radius: 8px;
  background: var(--fond); color: var(--alerte); font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.08em;
}

/* Pied de page */
.fp-footer { border-top: 1px solid var(--ligne); }
.fp-footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 32px var(--gouttiere); font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texte-3); }
.fp-footer .fp-wordmark { font-size: 18px; }
.fp-footer-links { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.fp-footer-links a, .fp-footer-links button { color: inherit; text-decoration: none; padding: 8px 0; background: none; border: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.fp-footer-links a:hover, .fp-footer-links button:hover { color: var(--accent); }
@media (max-width: 760px) { .fp-footer-links { justify-content: flex-start; } }
.fp-footer .fp-wordmark { text-transform: none; letter-spacing: -0.03em; }

.fp-show-sm { display: none; }
@media (max-width: 560px) {
  .fp-hide-sm { display: none; }
  .fp-show-sm { display: inline; }
  .fp-header-in { gap: 16px; }
}

/* Pages légales : sommaire à gauche, articles numérotés */
.legal-warn { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--alerte); border-radius: 14px; background: var(--fond); color: var(--alerte); font-weight: 500; font-size: 14px; }
.legal-warn strong { font-family: var(--display); font-size: 16px; }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.legal-toc a { font-weight: 500; font-size: 14px; color: var(--texte-2); text-decoration: none; }
.legal-toc a:hover, .legal-toc a[aria-current] { color: var(--accent); }
.legal-body { display: flex; flex-direction: column; gap: 36px; max-width: 972px; }
.legal-intro { font-size: 17px; line-height: 26px; color: var(--texte-2); }
.legal-body section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 112px; }
.legal-body section > p { font-size: 16px; line-height: 25px; color: var(--texte-2); }
.legal-rows { margin: 0; }
.legal-rows div { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.legal-rows dt { flex: none; width: 220px; font-weight: 500; font-size: 14px; color: var(--texte-3); }
.legal-rows dd { flex: 1; margin: 0; font-weight: 500; font-size: 15px; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
}
@media (max-width: 560px) {
  .legal-rows div { flex-direction: column; align-items: flex-start; gap: 6px; }
  .legal-rows dt { width: auto; }
}
.fp-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
