/* Tokens copied from design/tokens.json (light theme only). */
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --fond: #ffffff;
  --fond-doux: #eaf2f7;
  --fond-accent: #fbeeec;
  --trait: #cee1ec;
  --trait-fort: #a1c8dd;
  --bordure-champ: #698999;
  --encre: #151f24;
  --encre-2: #3f535e;
  --encre-3: #546e7c;
  --corail: #df6f50;
  --corail-clair: #f5d4cf;
  --action: #9d4d36;
  --action-encre: #7a3a28;
  --nuit: #2a3941;
  --sur-action: #ffffff;
  --font-titre: "Fraunces", Georgia, serif;
  --font-texte: "Figtree", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--fond); color: var(--encre); }
body { font-family: var(--font-texte); font-size: 17px; line-height: 24px; min-height: 100vh; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

.entete { height: 56px; display: flex; align-items: center; justify-content: center; font-family: var(--font-titre); font-size: 18px; font-weight: 600; color: var(--encre-2); border-bottom: 1px solid var(--trait); }
.contenu { max-width: 480px; margin: 0 auto; padding: 24px 16px 40px; min-height: calc(100vh - 57px); display: flex; flex-direction: column; }
.centre { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.vide { gap: 16px; }

.surtitre { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--encre-3); text-transform: uppercase; letter-spacing: 0.04em; }
.photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 1px solid var(--trait); background: var(--fond-doux); }
.mot { margin: 0; font-family: var(--font-titre); font-weight: 600; font-size: 56px; line-height: 60px; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.titre-l { margin: 0; font-family: var(--font-titre); font-weight: 600; font-size: 28px; line-height: 34px; }
.texte-2 { margin: 0; color: var(--encre-2); }
.ligne-age { font-size: 16px; }
.meta { margin: 0; font-size: 14px; line-height: 20px; color: var(--encre-3); }
.pied { padding: 24px 20px 0; }

.lire { width: 72px; height: 72px; border-radius: 999px; border: 0; background: var(--action); color: var(--sur-action); display: inline-flex; align-items: center; justify-content: center; margin-top: 24px; cursor: pointer; }
.lire:focus-visible, .bouton:focus-visible { outline: 3px solid var(--corail-clair); outline-offset: 3px; }
.lire svg { width: 28px; height: 28px; }

.onde-bloc { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.onde { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.onde i { flex: 1; min-width: 2px; background: var(--trait-fort); border-radius: 2px; }
.onde i.lu { background: var(--corail); }
.duree-ligne { display: flex; justify-content: space-between; }
.duree { font-size: 14px; color: var(--encre-3); font-variant-numeric: tabular-nums; }

.squelette { width: 60%; background: var(--fond-doux); border-radius: 8px; }
.squelette:nth-child(1) { width: 30%; }
.squelette:nth-child(3) { width: 70%; }
.squelette.rond { width: 88px; height: 88px; border-radius: 999px; }

.pastille { width: 88px; height: 88px; border-radius: 999px; background: var(--fond-accent); color: var(--action); display: inline-flex; align-items: center; justify-content: center; }
.bouton { margin-top: 8px; min-height: 44px; padding: 10px 24px; border-radius: 999px; border: 0; background: var(--action); color: var(--sur-action); font: inherit; font-weight: 600; cursor: pointer; }

@media (min-width: 768px) {
  .contenu { padding-top: 48px; }
  .mot { font-size: 72px; line-height: 76px; }
  .lire { width: 88px; height: 88px; }
}

/* Legal pages (terms.html, privacy.html): same tokens, reading layout. */
.legal { max-width: 680px; padding-top: 24px; text-align: left; }
.legal-langues { display: flex; justify-content: center; gap: 8px; margin: 0 0 16px; }
.legal-langues button { min-height: 44px; min-width: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--bordure-champ); background: var(--fond); color: var(--encre-2); font: inherit; font-weight: 600; cursor: pointer; }
.legal-langues button[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--sur-action); }
.legal-langues button:focus-visible, .legal a:focus-visible { outline: 3px solid var(--corail-clair); outline-offset: 3px; }
.legal h1 { margin: 0 0 8px; font-family: var(--font-titre); font-weight: 600; font-size: 30px; line-height: 36px; }
.legal h2 { margin: 32px 0 8px; font-family: var(--font-titre); font-weight: 600; font-size: 21px; line-height: 28px; scroll-margin-top: 72px; }
.legal p, .legal li { margin: 0 0 12px; color: var(--encre); }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.legal .meta { margin-bottom: 20px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; line-height: 22px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--trait); }
.legal th { color: var(--encre-2); font-weight: 600; }
.legal .sommaire { background: var(--fond-doux); border-radius: 12px; padding: 16px 20px; margin: 0 0 8px; }
.legal .sommaire p { margin: 0 0 8px; font-weight: 600; color: var(--encre-2); }
.legal .sommaire ol { margin: 0; padding-left: 22px; }
.legal .sommaire li { margin: 0 0 4px; }
.legal .bloc-note { background: var(--fond-accent); border-radius: 12px; padding: 12px 16px; }
.legal .placeholder { background: var(--fond-accent); color: var(--action-encre); font-weight: 600; padding: 0 4px; border-radius: 4px; }
.legal-retour { display: block; margin: 40px 0 0; text-align: center; font-size: 14px; color: var(--encre-3); }
.liens-legaux { margin: 32px 0 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--encre-3); margin-top: auto; padding-top: 24px; }
.liens-legaux a { color: var(--encre-2); text-decoration: underline; text-underline-offset: 3px; }
