/* Site daidero.fr — charte Bleu encre / Ivoire (mêmes couleurs que l'app,
   lib/utils/app_typography.dart). Mobile d'abord, puis élargi au-delà de 760 px. */

:root {
  --ivoire: #FAF6ED;
  --surface: #FFFFFF;
  --bordure: #EAE2D0;
  --encre: #12324A;
  --gris: #5B6B78;
  --ambre: #C88719;
  --ambre-clair: #F7EAD2;
  --ambre-fonce: #94610F;
  --largeur: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 14px; }

a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ambre); outline-offset: 4px; }

::selection { background: var(--ambre-clair); }

.page { width: min(100% - 40px, var(--largeur)); margin-inline: auto; }

.kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ambre-fonce);
  margin-bottom: 14px;
}

/* ── En-tête ─────────────────────────────── */
.site-header { border-bottom: 1px solid var(--bordure); }
.site-header .page {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: block; line-height: 0; }
.logo img { width: 112px; height: auto; }

/* ── Boutons des stores ──────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  flex: 1 1 160px;
  max-width: 220px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--encre);
  color: #FFFFFF;
  border-radius: 14px;
  text-decoration: none;
}
.store:hover { opacity: 0.9; }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; }
.store strong { font-size: 16px; font-weight: 600; }
.note { font-size: 14px; color: var(--gris); margin-top: 14px; }

/* ── Accueil ─────────────────────────────── */
.hero { padding: 56px 0 64px; }
.hero h1 { font-size: clamp(38px, 9vw, 72px); line-height: 1.05; max-width: 15ch; margin-bottom: 20px; }
.hero h1 em { color: var(--ambre); font-style: italic; }
.hero .lead { font-size: 18px; color: var(--gris); max-width: 560px; margin-bottom: 28px; }

.features { padding: 56px 0 64px; border-top: 1px solid var(--bordure); }
.features h2 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 32px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.feature-list li { padding: 22px 0; border-top: 1px solid var(--bordure); }
.feature-list h3 { font-size: 23px; margin-bottom: 6px; }
.feature-list p { color: var(--gris); margin: 0; }

.pro { background: var(--encre); color: var(--ivoire); padding: 56px 0 60px; }
.pro .kicker { color: #E7C58A; }
.pro h2 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 16px; max-width: 18ch; }
.pro p { color: #D5DEE5; max-width: 560px; }
.pro ul { color: #D5DEE5; padding-left: 20px; margin: 0 0 26px; max-width: 560px; }
.pro li { margin-bottom: 6px; }
.pro { position: relative; overflow: hidden; }
.pro .page { position: relative; }
/* Flamme en filigrane, à droite, derrière le texte. */
.pro-flamme {
  position: absolute;
  right: -90px;
  bottom: -40px;
  height: 320px;
  width: auto;
  opacity: 0.12;
  pointer-events: none;
}
.stores-light .store { background: var(--ivoire); color: var(--encre); }

/* ── Pied de page ────────────────────────── */
.site-footer { border-top: 1px solid var(--bordure); padding: 36px 0 40px; font-size: 14px; color: var(--gris); }
.site-footer .page { display: flex; flex-direction: column; gap: 18px; }
.site-footer .logo img { width: 96px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-underline-offset: 3px; text-decoration-color: var(--bordure); }
.footer-links a:hover { color: var(--encre); text-decoration-color: currentColor; }

/* ── Pages légales ───────────────────────── */
.legal { padding: 44px 0 72px; }
.legal-head { border-bottom: 1px solid var(--bordure); padding-bottom: 28px; margin-bottom: 28px; }
.legal-head h1 { font-size: clamp(36px, 8vw, 60px); line-height: 1.05; margin-bottom: 14px; }
.legal-head .lead { color: var(--gris); max-width: 620px; margin: 0; }
.updated { font-size: 14px; color: var(--gris); margin-bottom: 14px; }

.toc {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 16px;
  margin-bottom: 32px;
}
.toc summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--ambre); }
.toc[open] summary::after { content: '−'; }
.toc ol { margin: 0; padding: 0 18px 16px 40px; }
.toc li { padding: 4px 0; }
.toc a { color: var(--gris); text-decoration: none; }
.toc a:hover { color: var(--encre); text-decoration: underline; }

.legal-body section { padding: 4px 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--bordure); scroll-margin-top: 20px; }
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 { font-size: clamp(25px, 5vw, 32px); line-height: 1.15; margin-bottom: 14px; }
.legal-body h2 .num { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: var(--ambre-fonce); margin-right: 10px; letter-spacing: 0; vertical-align: middle; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 0 0 14px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { text-underline-offset: 3px; }

.box {
  background: var(--ambre-clair);
  border-left: 3px solid var(--ambre);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 18px 0;
}
.box p:last-child { margin: 0; }

.services { display: grid; gap: 10px; margin: 16px 0; }
.service {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 14px 16px;
}
.service strong { display: block; }
.service .who { display: block; font-size: 13px; color: var(--gris); margin-bottom: 4px; }
.service p { margin: 0; font-size: 15px; }

/* ── Page Télécharger ────────────────────── */
.app-page { padding: 64px 0 80px; max-width: 620px; }
.app-page h1 { font-size: clamp(38px, 9vw, 60px); line-height: 1.05; margin-bottom: 18px; }
.app-page .lead { font-size: 18px; color: var(--gris); margin-bottom: 28px; }

/* ── Écrans larges ───────────────────────── */
@media (min-width: 760px) {
  .page { width: min(100% - 80px, var(--largeur)); }
  .site-header .page { min-height: 84px; }
  .logo img { width: 128px; }
  .hero { padding: 96px 0 104px; }
  .hero .lead { font-size: 20px; }
  .features, .pro { padding: 88px 0 96px; }
  .feature-list { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .pro-flamme { right: 6%; top: 50%; bottom: auto; transform: translateY(-50%); height: 440px; opacity: 0.16; }
  .site-footer .page { flex-direction: row; align-items: center; justify-content: space-between; }

  .legal { padding: 72px 0 104px; }
  .legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }
  .legal-layout .toc { position: sticky; top: 24px; }
  .services { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Page légale sans sommaire (Suppression de compte) : lignes de longueur lisible. */
.legal > .legal-body { max-width: 760px; }
