/* ============================================================
   Budget Coach — Design System
   Couleurs synchronisées avec le thème Sombre de l'app
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* ── Fonds : anthracite uni ── */
  --bg: #1F2329;              /* fond principal — anthracite chaud */
  --bg-elevated: #262B32;     /* surfaces légèrement surélevées */
  --surface: #2D333B;         /* cards et conteneurs */
  --surface-hover: #353B44;
  --bg-deep: #181B20;         /* zones plus sombres (footer, mockup intérieur) */
  --border: #383E47;          /* bordures principales */
  --border-strong: #474E58;
  --fg: #E5E9EE;              /* texte principal */
  --fg-muted: #9AA3AE;        /* texte secondaire */
  --fg-subtle: #6E7681;       /* texte tertiaire / placeholders */

  /* ── Accents Budget Coach (inchangés) ── */
  --primary: #3D6DB5;         /* primary — bleu signature */
  --primary-hover: #4F7FC9;
  --primary-fg: #FFFFFF;
  --tint: #5B8BD4;            /* tint — bleu lumineux pour highlights */
  --secondary: #2EBF8A;       /* income — vert */
  --accent: #E85535;          /* expense / accent — orange-rouge */

  /* Sémantique finance */
  --income: #2EBF8A;
  --expense: #E85535;
  --warning: #F59E0B;
  --success: #4CAF50;

  /* Typographie */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;

  /* Layout */
  --container: min(1180px, 92vw);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--tint); }

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 350;
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--tint);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 400;
}

h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--tint);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: var(--font-body);
}

p { color: var(--fg-muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tint);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--tint);
}

/* ============================================================
   Header / Nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(31, 35, 41, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.brand:hover { color: var(--fg); }

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(91, 139, 212, 0.18), transparent);
}

.brand-mark svg { width: 18px; height: 18px; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--fg-muted);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover { color: var(--fg); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 4px 16px rgba(61, 109, 181, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--primary-fg);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61, 109, 181, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--tint);
  color: var(--tint);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}

.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  width: var(--container);
  margin: 0 auto;
  padding: 7rem 0 6rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 4rem 0 3rem; gap: 3rem; }
}

.hero-text .eyebrow { margin-bottom: 1.4rem; }

.hero h1 { margin-bottom: 1.6rem; }

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 2.2rem;
  line-height: 1.55;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-meta {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--fg-subtle);
}

.hero-meta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--income);
  box-shadow: 0 0 12px var(--income);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   Hero visual mockup — réplique fidèle de l'app
   ============================================================ */

.hero-visual {
  position: relative;
  aspect-ratio: 9/16;
  perspective: 1200px;
}

.phone-mockup {
  position: absolute;
  inset: 0;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(91, 139, 212, 0.08) inset,
    0 0 80px rgba(61, 109, 181, 0.18);
  transform: rotate(-2deg);
}

/* Top blue header — solde global */
.mockup-header-blue {
  background: linear-gradient(180deg, var(--primary) 0%, #355FA1 100%);
  padding: 1.2rem 1.2rem 1.4rem;
  position: relative;
}

.mockup-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.95);
}

.mockup-toolbar-left,
.mockup-toolbar-right {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.mockup-icon-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.mockup-account-title {
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mockup-balance-big {
  font-family: var(--font-body);
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.mockup-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 auto;
  width: fit-content;
  padding: 0.25rem 0.7rem;
  font-size: 0.65rem;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
}

/* Tabs Dépenses / Revenus */
.mockup-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0;
  background: var(--bg-deep);
}

.mockup-tab {
  padding: 0.6rem 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.mockup-tab.active-expense {
  background: var(--expense);
  color: #fff;
}

.mockup-tab.inactive-revenue {
  background: rgba(91, 139, 212, 0.25);
  color: rgba(255,255,255,0.6);
}

/* Period filter */
.mockup-period {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  background: var(--bg-deep);
  font-size: 0.66rem;
  color: var(--fg-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mockup-period span.active {
  background: var(--primary);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Month nav */
.mockup-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.9rem;
  background: var(--bg);
}

.mockup-month-arrow {
  color: var(--tint);
  font-size: 0.9rem;
  width: 20px;
}

.mockup-month-info {
  text-align: center;
  flex: 1;
}

.mockup-month-name {
  font-size: 0.8rem;
  color: var(--fg);
  font-weight: 600;
}

.mockup-month-total {
  font-size: 0.82rem;
  color: var(--expense);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 0.1rem;
}

.mockup-add-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--income);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 300;
  box-shadow: 0 4px 12px rgba(46, 191, 138, 0.4);
}

/* Budget cylinders */
.mockup-budgets {
  display: grid;
  grid-template-columns: 24px 1fr 1fr 1fr;
  gap: 0.5rem;
  align-items: end;
  padding: 0.8rem 0.9rem 0.6rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mockup-bud-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.68rem;
  color: var(--tint);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  align-self: center;
}

.mockup-cylinder {
  height: 95px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.mockup-cyl-bar {
  position: relative;
  width: 100%;
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.mockup-cyl-fill {
  width: 100%;
  background: var(--cyl-color, var(--primary));
  border-radius: 0 0 2px 2px;
  position: relative;
  z-index: 1;
}

.mockup-cyl-name {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.mockup-cyl-pct {
  font-size: 0.7rem;
  color: var(--fg);
  font-weight: 600;
  margin-top: 0.2rem;
}

.mockup-cyl-amt {
  font-size: 0.6rem;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

/* Transactions list */
.mockup-transactions {
  flex: 1;
  background: var(--bg);
  padding: 0.3rem 0.9rem 0.6rem;
  display: flex;
  flex-direction: column;
}

.mockup-tx {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
}

.mockup-tx:last-child { border-bottom: none; }

.mockup-tx-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  background: var(--surface);
}

.mockup-tx-label {
  color: var(--fg);
  font-weight: 500;
}

.mockup-tx-pct {
  color: var(--fg-muted);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.mockup-tx-amt {
  color: var(--fg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 880px) {
  .hero-visual { max-width: 320px; margin: 0 auto; aspect-ratio: 9/17; }
  .phone-mockup { transform: rotate(0); }
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 6rem 0;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}

@media (max-width: 880px) {
  .section-header { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
  .section { padding: 4rem 0; }
}

.section-header .eyebrow { margin-bottom: 1rem; }

.section-intro {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 540px;
}

/* ============================================================
   Features grid
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 880px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background 0.3s var(--ease);
}

.feature:hover { background: var(--bg-elevated); }

.feature-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--fg-subtle);
  letter-spacing: 0.05em;
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--tint);
  fill: none;
  stroke-width: 1.5;
}

.feature h3 { margin-top: 0.4rem; color: var(--fg); }

.feature p { font-size: 0.95rem; }

/* ============================================================
   How it works
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}

.step {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.4rem;
  font-weight: 300;
  color: var(--tint);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.step h3 { margin-bottom: 0.6rem; color: var(--fg); }

.step p { font-size: 0.95rem; }

/* ============================================================
   Pricing
   ============================================================ */

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .pricing { grid-template-columns: 1fr; }
}

.plan {
  padding: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

.plan.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(61, 109, 181, 0.12) 0%, var(--surface) 100%);
  box-shadow: 0 0 0 1px rgba(61, 109, 181, 0.3), 0 20px 50px rgba(0,0,0,0.3);
}

.plan.featured::before {
  content: 'Recommandé';
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--fg);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--fg);
}

.plan-price .amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.plan-price .period {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.plan-price .currency {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--fg-muted);
  align-self: flex-start;
  margin-top: 0.6rem;
}

.plan-yearly-note {
  font-size: 0.85rem;
  color: var(--income);
  font-weight: 600;
  margin-top: -0.5rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.plan-features li {
  font-size: 0.92rem;
  color: var(--fg-muted);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.plan-features li::before {
  content: '✓';
  color: var(--income);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-features li.disabled { opacity: 0.4; }
.plan-features li.disabled::before { content: '—'; color: var(--fg-subtle); }

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
  cursor: pointer;
}

.faq details[open] summary { color: var(--tint); }

.faq summary {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s var(--ease);
  color: var(--fg);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  transition: transform 0.3s var(--ease);
  color: var(--tint);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details > p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 92%;
}

/* ============================================================
   CTA banner
   ============================================================ */

.cta-banner {
  width: var(--container);
  margin: 4rem auto 6rem;
  padding: 4rem 3rem;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: 
    radial-gradient(ellipse at top, rgba(61, 109, 181, 0.18) 0%, transparent 60%),
    var(--surface);
}

.cta-banner h2 { margin-bottom: 1rem; color: var(--fg); }
.cta-banner p { max-width: 540px; margin: 0 auto 2rem; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  background: var(--bg-deep);
}

.footer-content {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 720px) {
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-subtle);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--fg-muted);
}

.footer-bottom {
  width: var(--container);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--fg-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   Legal pages (privacy, terms, support)
   ============================================================ */

.legal-page {
  width: min(820px, 92vw);
  margin: 0 auto;
  padding: 5rem 0 4rem;
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-header .eyebrow { margin-bottom: 1.2rem; }

.legal-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
  color: var(--fg);
}

.legal-meta {
  font-size: 0.88rem;
  color: var(--fg-subtle);
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.legal-meta strong { color: var(--fg-muted); font-weight: 500; }

.legal-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg-muted);
}

.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.legal-content h2::before {
  content: counter(section, decimal-leading-zero);
  counter-increment: section;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--tint);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.legal-content { counter-reset: section; }

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}

.legal-content p { margin-bottom: 1.1rem; }

.legal-content ul {
  margin: 0 0 1.4rem 0;
  padding-left: 1.4rem;
}

.legal-content li { margin-bottom: 0.5rem; }

.legal-content strong { color: var(--fg); font-weight: 600; }

.legal-content a {
  color: var(--tint);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.legal-content a:hover { border-bottom-color: var(--tint); }

.callout {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p { margin: 0; color: var(--fg); font-size: 0.95rem; }

.callout.warn { border-left-color: var(--warning); }

table.subprocessors {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

table.subprocessors th,
table.subprocessors td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

table.subprocessors th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

table.subprocessors td { color: var(--fg-muted); }

table.subprocessors tr:hover td { background: var(--surface); }

@media (max-width: 600px) {
  table.subprocessors { font-size: 0.85rem; }
  table.subprocessors th,
  table.subprocessors td { padding: 0.6rem 0.5rem; }
}

/* ============================================================
   Store badges (App Store / Google Play)
   ============================================================ */

.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.store-badge {
  display: inline-block;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 20px rgba(91, 139, 212, 0.35));
}

.store-badge svg {
  display: block;
  height: 52px;
  width: auto;
}

/* Tag Premium sur les fonctionnalités */
.feature-tag {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--tint) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(61, 109, 181, 0.4);
}

/* "Et aussi" — petite ligne sous la grille features */
.features-extras {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--fg-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(91, 139, 212, 0.04);
}

.features-extras strong {
  color: var(--tint);
  font-weight: 600;
}

/* ============================================================
   Animations on load
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text > * { animation: fadeUp 0.7s var(--ease) backwards; }
.hero-text .eyebrow { animation-delay: 0.1s; }
.hero-text h1 { animation-delay: 0.2s; }
.hero-text .hero-lede { animation-delay: 0.3s; }
.hero-text .hero-cta { animation-delay: 0.4s; }
.hero-text .hero-meta { animation-delay: 0.5s; }
.hero-visual { animation: fadeUp 0.9s var(--ease) 0.4s backwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
