/* Perennial — site vitrine
 * Tokens repris du design system de l'app (constants/perennial.ts) :
 * flat design, pas d'ombres, pas de noir/blanc purs, pas de dégradés.
 * Thème clair uniquement. */

:root {
  --paper: #FBF8F3;      /* fond — jamais blanc pur */
  --card: #FFFFFF;       /* carte / champ */
  --ink: #33302B;        /* texte principal — jamais noir pur */
  --ink-2: #8A857C;      /* dates, labels, texte de support */
  --hairline: #E4DFD5;   /* filets 0.5–1px */

  --butter: #F4E4AF;     /* strate — utilisée pour l'encadré "à faire" */

  --space-5: 20px;
  --space-6: 24px;
  --radius-card: 16px;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ── Bascule de langue EN / FR ────────────────────────────────── */
/* Par défaut (anglais), le FR est masqué ; pas de flash au chargement. */
.lang-fr { display: none; }
html[lang="fr"] .lang-en { display: none; }
html[lang="fr"] .lang-fr { display: revert; }

.langswitch {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.langswitch button {
  appearance: none;
  border: none;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink-2);
  cursor: pointer;
  padding: 4px 4px;
  border-radius: 6px;
}
.langswitch button:hover { color: var(--ink); }
.langswitch button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 500;
}
.langswitch .sep { color: var(--hairline); }

/* ── Hero plein écran avec les strates en fond ───────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6);
  overflow: hidden;
}

/* Les strates : image carrée en object-fit cover, centrée — exactement
 * comme sur le splash de l'app. Pleine couleur, aucun voile par-dessus. */
.hero__strata {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  /* halo paper doux derrière le texte, pour la lisibilité sans voiler la scène */
  padding: 8px 12px;
}

/* Nom de l'app en overline, comme sur l'écran "hook" de l'onboarding
 * (Label date : capitales, couleur secondaire, lettres espacées). */
.hero__overline {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-shadow: 0 1px 2px rgba(251, 248, 243, 0.6);
}

.hero__title {
  margin: 0;
  font-size: clamp(34px, 6.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-shadow: 0 1px 2px rgba(251, 248, 243, 0.6);
}

.hero__tagline {
  margin: var(--space-5) 0 0;
  font-size: clamp(18px, 3.2vw, 22px);
  line-height: 1.35;
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(251, 248, 243, 0.6);
}

/* Bouton App Store */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
  background: var(--ink);
  color: var(--paper);
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn-appstore:hover { transform: translateY(-1px); }
.btn-appstore svg { width: 18px; height: 18px; fill: currentColor; }

.hero__note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  text-shadow: 0 1px 2px rgba(251, 248, 243, 0.6);
}

/* ── Liens de pied de hero ───────────────────────────────────── */
.hero__links {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  font-size: 13px;
  color: var(--ink-2);
}

.hero__links a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
  text-shadow: 0 1px 2px rgba(251, 248, 243, 0.6);
}
.hero__links a:hover { color: var(--ink); border-color: var(--hairline); }
.hero__links .sep { opacity: 0.5; }

/* ── Pages de contenu (privacy, terms) ───────────────────────── */
.doc {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--space-5) 96px;
}

.doc__back {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.doc__back:hover { color: var(--ink); }

.doc h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.doc__updated {
  margin: 0 0 40px;
  font-size: 13px;
  color: var(--ink-2);
}

.doc h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 40px 0 12px;
  line-height: 1.3;
}

.doc p, .doc li { color: var(--ink); }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 0 0 8px; }

.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.doc .todo {
  background: color-mix(in srgb, var(--butter) 40%, var(--paper));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink);
}

/* Paragraphe d'intro, avant les cartes */
.doc .lead {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 62ch;
}

/* Sections en cartes — reprend les cartes « années passées » de l'app :
 * une teinte de strate par section, coin 16px, label meta teinté. */
.cards { display: flex; flex-direction: column; gap: 14px; }

.card { border-radius: var(--radius-card); padding: 18px 20px; }
.card h2 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 0 0 9px;
}
.card p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.6; }
.card li { margin: 0 0 4px; }
.card a { text-underline-offset: 2px; }

/* Teintes des strates (année) — fond / label / texte, identiques à l'app */
.h-sage     { background: #C9DCC4; } .h-sage h2     { color: #4C6647; } .h-sage p,     .h-sage li,     .h-sage a     { color: #33402F; }
.h-sky      { background: #C3DAEC; } .h-sky h2      { color: #476785; } .h-sky p,      .h-sky li,      .h-sky a      { color: #2D4459; }
.h-butter   { background: #F4E4AF; } .h-butter h2   { color: #8A7431; } .h-butter p,   .h-butter li,   .h-butter a   { color: #5C4D1E; }
.h-blush    { background: #F6CBD6; } .h-blush h2    { color: #9A5A70; } .h-blush p,    .h-blush li,    .h-blush a    { color: #6B3549; }
.h-lavender { background: #D3CBEF; } .h-lavender h2 { color: #6D5FA3; } .h-lavender p, .h-lavender li, .h-lavender a { color: #453A70; }
.h-peach    { background: #F8CDB4; } .h-peach h2    { color: #A0623C; } .h-peach p,    .h-peach li,    .h-peach a    { color: #6E3F22; }

.doc__footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-2);
}
