/* =====================================================================
   Convivia — Site vitrine · Feuille de style
   Charte 2026 : Sora (titres) + Plus Jakarta Sans (texte) + JetBrains Mono.
   Mode clair par défaut, mode sombre via [data-theme="dark"].
   ===================================================================== */

/* ------------------------------ Tokens ------------------------------ */
:root {
  --brand-start: #3B6FF6;
  --brand-end: #8B5CF6;
  --brand-grad: linear-gradient(135deg, #3B6FF6 0%, #8B5CF6 100%);
  --brand-grad-strong: linear-gradient(135deg, #3B6FF6 0%, #7641E8 52%, #9B5CF6 100%);

  --bg: #F7F8FB;
  --header: rgba(247, 248, 251, .82);
  --surface: #FFFFFF;
  --card-border: #E2E5EE;
  --hair: #EFF1F6;

  --ink: #12141C;
  --ink2: #20242F;
  --fg2: #4A5160;
  --fg3: #6B7385;
  --faint: #9BA2B5;

  --tint-blue: #EBF1FF;
  --tint-purple: #F3EEFF;
  --tint-amber: #FEF3E0;
  --tint-green: #E6F8EF;

  --badge-bg: #F3EEFF;
  --badge-fg: #5F30C4;

  --ok-fg: #16A058;
  --warn-fg: #DB8E12;

  --footer-bg: #12141C;
  --footer-fg: #9BA2B5;
  --footer-link: #B5BCCB;
  --footer-faint: #5C6377;
  --footer-hair: #262A36;

  --maxw: 1180px;
  --radius-card: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(18, 20, 28, .05);
  --shadow-md: 0 8px 22px rgba(18, 20, 28, .12);
  --shadow-brand: 0 10px 28px rgba(59, 111, 246, .34);

  --font-head: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #0A0B11;
  --header: rgba(10, 11, 17, .82);
  --surface: #14161F;
  --card-border: #262A36;
  --hair: #20242F;

  --ink: #F7F8FB;
  --ink2: #E2E5EE;
  --fg2: #B5BCCB;
  --fg3: #9BA2B5;
  --faint: #828AA0;

  --tint-blue: rgba(59, 111, 246, .16);
  --tint-purple: rgba(139, 92, 246, .18);
  --tint-amber: rgba(219, 142, 18, .16);
  --tint-green: rgba(31, 190, 107, .16);

  --badge-bg: rgba(139, 92, 246, .18);
  --badge-fg: #C4A8FF;

  --footer-bg: #05060A;
  --footer-hair: #1B1E29;
}

/* ------------------------------ Base ------------------------------ */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.visually-hidden:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  margin: 0; padding: 10px 16px;
  clip: auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  z-index: 200;
}

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Indicateur de focus clavier cohérent et visible (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-start);
  outline-offset: 2px;
  border-radius: 6px;
}

@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background: var(--brand-grad);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(59, 111, 246, .42); }

.btn-ghost {
  color: var(--ink2);
  background: var(--surface);
  border-color: var(--card-border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand-start); }

.btn-light {
  color: var(--ink2);
  background: var(--hair);
  border-color: var(--card-border);
}

/* Badge Google Play (sombre) */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #12141C;
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(18, 20, 28, .18);
  transition: transform .12s ease, box-shadow .2s ease;
}
.play-badge:hover { box-shadow: 0 12px 30px rgba(18, 20, 28, .26); }
.play-badge:active { transform: translateY(1px); }
.play-badge .pb-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play-badge .pb-small { font-size: 10px; letter-spacing: .1em; color: #9BA2B5; font-weight: 600; }
.play-badge .pb-big { font-family: var(--font-head); font-weight: 700; font-size: 18px; }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  border-radius: 11px;
  display: block;
  box-shadow: 0 4px 12px rgba(110, 91, 246, .28);
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.02em;
  color: var(--ink);
}

.main-nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--fg2);
  transition: color .15s ease;
}
.nav-link:hover { color: var(--ink); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  color: var(--ink2);
  cursor: pointer;
  transition: border-color .15s ease;
}
.theme-toggle:hover { border-color: var(--brand-start); }
.theme-toggle svg { width: 20px; height: 20px; }
.t-moon { display: inline-flex; align-items: center; }
.t-sun  { display: none; }
[data-theme="dark"] .t-moon { display: none; }
[data-theme="dark"] .t-sun  { display: inline-flex; align-items: center; }

/* Menu hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink2);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ------------------------------ Hero ------------------------------ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  color: var(--badge-fg);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: var(--radius-pill);
  background: var(--brand-end);
  animation: pulseDot 2s ease-in-out infinite;
}
.hero h1 {
  font-weight: 800;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 22px 0 0;
  color: var(--ink);
}
.hero-tagline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink2);
  margin: 22px 0 0;
  max-width: 440px;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg2);
  margin: 16px 0 0;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 28px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg2);
  font-weight: 500;
}
.hero-trust svg { width: 18px; height: 18px; color: var(--ok-fg); }

/* Mockup téléphone */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 320px;
  height: 650px;
  background: #12141C;
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 40px 80px rgba(18, 20, 28, .28);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 26px;
  background: #12141C;
  border-radius: var(--radius-pill);
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #F7F8FB;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ps-top {
  background: var(--brand-grad);
  padding: 46px 22px 20px;
  color: #fff;
}
.ps-label { font-size: 11px; letter-spacing: .12em; font-weight: 600; opacity: .85; }
.ps-title { font-family: var(--font-head); font-weight: 700; font-size: 22px; margin-top: 4px; }
.ps-meta  { font-family: var(--font-mono); font-size: 12px; opacity: .9; margin-top: 6px; }
.ps-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ps-section-label {
  font-size: 10px;
  letter-spacing: .1em;
  font-weight: 700;
  color: #9BA2B5;
  margin-bottom: 10px;
}
.ps-list { display: flex; flex-direction: column; gap: 8px; }
.ps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #EFF1F6;
  border-radius: 12px;
  padding: 9px 12px;
}
.ps-avatar {
  width: 30px; height: 30px;
  border-radius: var(--radius-pill);
  background: #EBF1FF;
  color: #2347B8;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-avatar.a2 { background: #F3EEFF; color: #5F30C4; }
.ps-avatar.a3 { background: #FEF3E0; color: #DB8E12; }
.ps-name { font-size: 13px; font-weight: 600; flex: 1; color: #12141C; }
.ps-pill { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); }
.ps-pill.ok   { color: #16A058; background: #E6F8EF; }
.ps-pill.wait { color: #DB8E12; background: #FEF3E0; }
.ps-card {
  background: #fff;
  border: 1px solid #EFF1F6;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ps-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #12141C;
}
.ps-item.todo { color: #9BA2B5; }
.ps-check {
  width: 18px; height: 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-start);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 auto;
}
.ps-check svg { width: 12px; height: 12px; }
.ps-check.empty { background: transparent; border: 2px solid #CBD0DE; }

/* ------------------------------ Sections ------------------------------ */
.section { padding-top: 88px; padding-bottom: 88px; }
.section.surface {
  background: var(--surface);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.section-head { max-width: 620px; }
.section-head.center { margin: 0 auto 52px; text-align: center; }
.eyebrow {
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--brand-start);
  text-transform: uppercase;
}
.section-head h2 {
  font-weight: 700;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 14px 0 0;
  color: var(--ink);
}
.section-head p {
  font-size: 16px;
  color: var(--fg2);
  margin: 16px 0 0;
}

/* Fonctionnalités */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--tint-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brand-start);
}
.feature-icon.tint-purple { background: var(--tint-purple); color: var(--brand-end); }
.feature-icon.tint-amber  { background: var(--tint-amber);  color: var(--warn-fg); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
}
.feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg2);
  margin: 0;
}

/* Vie privée */
.privacy-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.privacy-aside {
  background: linear-gradient(150deg, #3B6FF6 0%, #7641E8 100%);
  border-radius: 24px;
  padding: 34px;
  color: #fff;
  box-shadow: 0 20px 44px rgba(59, 111, 246, .28);
}
.pa-flag { font-size: 34px; line-height: 1; }
.privacy-aside h3 {
  font-weight: 700;
  font-size: 21px;
  margin: 18px 0 0;
  color: #fff;
}
.privacy-aside p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
  margin: 12px 0 22px;
}
.privacy-aside a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  padding-bottom: 2px;
}
.privacy-points { display: flex; flex-direction: column; gap: 14px; }
.privacy-point {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.pp-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--tint-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ok-fg);
}
.pp-icon svg { width: 20px; height: 20px; }
.privacy-point h3 {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--ink);
}
.privacy-point p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg2);
  margin: 0;
}

/* CTA final */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--brand-grad-strong);
  border-radius: 32px;
  padding: 80px 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 28px 64px rgba(59, 111, 246, .32);
}
.cta h2 {
  font-weight: 800;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 auto;
  max-width: 640px;
  color: #fff;
}
.cta p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  margin: 18px auto 0;
  max-width: 520px;
}
.cta-actions { margin-top: 32px; display: flex; justify-content: center; }
.cta .play-badge { box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }

/* ------------------------------ Footer ------------------------------ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-top: 64px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 10px; display: block; }
.footer-brand .wordmark { color: #fff; font-size: 20px; }
.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: #828AA0;
  margin: 18px 0 0;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--footer-faint);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 14px;
}
.footer-col a { color: var(--footer-link); transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.cookie-settings-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  color: var(--footer-link);
  text-decoration: underline;
  cursor: pointer;
}
.cookie-settings-link:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--footer-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--footer-faint);
}
.footer-bottom a, .footer-bottom strong {
  color: var(--footer-link);
  font-weight: 700;
}
.footer-bottom .copyright { font-family: var(--font-mono); }

/* ------------------------------ Cookie banner ------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  justify-content: center;
  padding: 20px;
}
.cookie-banner.show { display: flex; }
.cookie-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: 0 28px 64px rgba(18, 20, 28, .22);
  max-width: 540px;
  width: 100%;
  padding: 22px 24px;
}
.cookie-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--ink);
}
.cookie-card > p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg2);
  margin: 0 0 16px;
}
.cookie-card > p a { color: var(--brand-start); font-weight: 600; }

.cookie-prefs { display: none; margin-bottom: 16px; }
.cookie-prefs.open { display: block; }
.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
}
.cookie-pref-row .info { display: flex; flex-direction: column; gap: 2px; }
.cookie-pref-row .info strong { font-size: 14px; color: var(--ink); }
.cookie-pref-row .info span { font-size: 12.5px; color: var(--fg3); line-height: 1.45; }

.switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 44px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--card-border);
  border-radius: var(--radius-pill);
  transition: background .2s ease;
}
.switch .slider::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.switch input:checked + .slider { background: var(--brand-start); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { opacity: .6; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-actions .btn {
  flex: 1 1 0;
  min-width: 120px;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 12px;
}

/* ------------------------------ Pages légales ------------------------------ */
.legal { padding-top: 56px; padding-bottom: 80px; }
.legal-inner {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 44px;
}
.legal-inner h1 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -.02em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-updated {
  color: var(--fg3);
  font-size: 15px;
  margin: 8px 0 0;
}
.legal-inner h2 {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.01em;
  margin: 34px 0 0;
  color: var(--ink);
}
.legal-inner h3 {
  font-weight: 700;
  font-size: 17px;
  margin: 22px 0 0;
  color: var(--ink);
}
.legal-inner p,
.legal-inner li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg2);
}
.legal-inner p { margin: 12px 0 0; }
.legal-inner ul { margin: 12px 0 0; padding-left: 22px; }
.legal-inner li { margin: 6px 0; }
.legal-inner a { color: var(--brand-start); font-weight: 600; }
.legal-inner code {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--hair);
  padding: 2px 6px;
  border-radius: 6px;
}

.legal-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--tint-amber);
  border-left: 4px solid var(--warn-fg);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink2);
}
.legal-note svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--warn-fg); margin-top: 1px; }
.legal-note strong { color: var(--ink); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 0;
  font-size: 14px;
}
.legal-table thead th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  background: var(--hair);
  padding: 12px 14px;
}
.legal-table thead th:first-child { border-top-left-radius: 10px; }
.legal-table thead th:last-child { border-top-right-radius: 10px; }
.legal-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--hair);
  color: var(--fg2);
  vertical-align: top;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-start);
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; padding-bottom: 56px; }
  .hero h1 { font-size: 44px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 24px 22px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .site-header { position: relative; }
  .theme-toggle { align-self: flex-start; }
  .features { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 36px; }
  .cta { padding: 56px 22px; }
  .cta h2 { font-size: 30px; }
  .section-head h2 { font-size: 30px; }
  .legal-inner { padding: 32px 22px; border-radius: 18px; }
  .legal-inner h1 { font-size: 30px; }
  /* tables responsive : labels en colonnes */
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin: 10px 0;
    padding: 6px 4px;
  }
  .legal-table td { border-top: 0; padding: 6px 12px; }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    color: var(--faint);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
