/* CIVICAP — site public. Charte : celle de l'application mobile (src/theme). */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #08245c;
  --navy-2: #0d3278;
  --blue: #0066ff;
  --blue-dark: #0052cc;
  --blue-soft: #eff5ff;
  --surface: #f8faff;
  --white: #ffffff;
  --text: #25324b;
  --muted: #61718b;
  --border: #dce4ef;
  --green: #16803c;
  --mint: #e7f6ec;
  --red: #e53945;
  --rose: #fff0f1;
  --lavender: #eeeafe;
  --amber: #fff4dc;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(8, 36, 92, 0.06);
  --shadow: 0 12px 32px rgba(8, 36, 92, 0.08);
  --shadow-lg: 0 30px 60px rgba(8, 36, 92, 0.16);
  --header-h: 68px;
  --gutter: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.container-narrow {
  max-width: 820px;
}

/* Icônes ------------------------------------------------------------------ */

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.icon-sm {
  width: 20px;
  height: 20px;
}

.icon-xs {
  width: 16px;
  height: 16px;
}

/* Boutons ----------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
}

.button-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.button-ghost {
  border-color: var(--border);
  background: var(--white);
  color: var(--navy);
}

.button-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.button-small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.95rem;
}

/* Badges des stores (proportions des badges officiels, fond noir) ----------- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  height: 56px;
  padding: 0 18px 0 14px;
  border: 1px solid #a6a6a6;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

a.store-badge:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.store-logo {
  width: 28px;
  height: 28px;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-text small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.store-text strong {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-badge.is-soon {
  opacity: 0.55;
  cursor: default;
}

.soon-tag {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.store-badges-compact .store-badge {
  min-width: 150px;
  height: 48px;
}

.store-badges-compact .store-logo {
  width: 24px;
  height: 24px;
}

.store-badges-compact .store-text strong {
  font-size: 1.1rem;
}

/* Le store du téléphone du visiteur passe en premier (site.js). */
.store-badges .is-preferred {
  order: -1;
}

/* En-tête ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav {
  position: fixed;
  inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 auto 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 12px var(--gutter) 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav a:not(.button) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav-cta {
  margin-top: 8px;
}

/* Héros ------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 56px;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(0, 102, 255, 0.12), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(229, 57, 69, 0.06), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--white));
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.highlight {
  background: linear-gradient(90deg, var(--blue), #3d8bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 18px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.65;
}

.hero-badges {
  margin-top: 28px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-points .icon {
  color: var(--green);
}

/* Maquette du téléphone (purement décorative, construite en HTML) */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0 24px;
}

.glow {
  position: absolute;
  inset: 10% 10% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.22), transparent 65%);
  filter: blur(20px);
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18.5;
  padding: 12px;
  border-radius: 44px;
  background: #0b1530;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #263354;
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  width: 90px;
  height: 26px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 52px 16px 18px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--surface);
  font-size: 0.78rem;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.mock-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mock-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
}

.mock-progress span {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.mock-theme {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-question {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.mock-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  font-weight: 600;
}

.mock-option span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.7rem;
}

.mock-option .icon {
  margin-left: auto;
}

.mock-option.is-correct {
  border-color: var(--green);
  background: var(--mint);
  color: var(--green);
}

.mock-option.is-correct span {
  background: var(--green);
  color: var(--white);
}

.mock-explain {
  padding: 10px;
  border-radius: 12px;
  background: var(--white);
  color: var(--muted);
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}

.mock-explain strong {
  display: block;
  color: var(--green);
}

.mock-button {
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  animation: float 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  color: var(--navy);
  line-height: 1.2;
}

.float-card small {
  color: var(--muted);
}

.float-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.float-green {
  background: var(--mint);
  color: var(--green);
}

.float-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

/* Cartes posées sur le téléphone, dans les zones vides de l'écran. */
.float-score {
  right: -56px;
  bottom: 21%;
}

.float-course {
  top: -22px;
  left: -48px;
  animation-delay: -3s;
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

/* Chiffres clés ----------------------------------------------------------- */

.facts {
  background: var(--navy);
  color: var(--white);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.fact strong {
  display: block;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fact span {
  color: #b9c7e6;
  font-size: 0.92rem;
}

/* Sections ---------------------------------------------------------------- */

.section {
  padding: 64px 0;
}

.section-compact {
  padding: 40px 0 64px;
}

.section-tint {
  background: var(--surface);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 800;
}

.section-head p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-card h3 {
  margin-top: 18px;
  font-size: 1.15rem;
}

.feature-card p {
  margin-top: 8px;
  color: var(--muted);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-green { background: var(--mint); color: var(--green); }
.tone-amber { background: var(--amber); color: #a15c00; }
.tone-violet { background: var(--lavender); color: #5b3fd1; }
.tone-rose { background: var(--rose); color: #c42532; }
.tone-navy { background: #e6ebf5; color: var(--navy); }

/* Étapes */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
}

.step h3 {
  margin-top: 16px;
  font-size: 1.15rem;
}

.step p {
  margin-top: 6px;
  color: var(--muted);
}

.tracks {
  margin-top: 32px;
  padding: 22px 24px;
  border: 1px dashed #b8c4d6;
  border-radius: var(--radius-lg);
  text-align: center;
}

.tracks-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
}

.track-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.track-list li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Tarifs */

.plan-grid {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.plan-card.is-featured {
  border: 2px solid var(--blue);
  box-shadow: 0 20px 44px rgba(0, 102, 255, 0.14);
}

.plan-tag {
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}

.plan-card h3 {
  font-size: 1.15rem;
}

.plan-price {
  margin-top: 12px;
  color: var(--navy);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-credits {
  margin-top: 10px;
  color: var(--text);
  font-weight: 600;
}

.plan-credits span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.plan-text {
  margin-top: 12px;
  color: var(--muted);
}

.plan-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 0.95rem;
}

.plan-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-list .icon {
  color: var(--green);
}

.fine-print {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.2s;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-chevron {
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-more {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
}

.faq-more a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

/* Appel final */

.cta-section {
  padding-top: 24px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(0, 102, 255, 0.45), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  text-align: center;
}

.cta-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-card h2 {
  max-width: 620px;
  margin: 0 auto;
  color: var(--white);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 800;
}

.cta-card p {
  margin-top: 12px;
  color: #c9d6f2;
}

.cta-badges {
  justify-content: center;
  margin-top: 28px;
}

.cta-card .soon-tag {
  background: var(--blue);
  color: var(--white);
}

/* Pages intérieures -------------------------------------------------------- */

.page-hero {
  padding: 48px 0 32px;
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(0, 102, 255, 0.1), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-hero-center {
  padding: 80px 0;
  text-align: center;
  border-bottom: 0;
}

.page-hero-center .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* Support */

.support-grid {
  display: grid;
  gap: 16px;
}

.support-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.support-card-primary {
  border: 2px solid var(--blue);
  box-shadow: 0 20px 44px rgba(0, 102, 255, 0.1);
}

.badge-recommended {
  position: absolute;
  top: 28px;
  right: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.support-card h2 {
  margin-top: 18px;
  font-size: 1.35rem;
}

.support-card > p {
  margin-top: 10px;
}

.how-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}

.how-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  counter-increment: how;
}

.how-list li::before {
  content: counter(how);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
}

.muted-text {
  color: var(--muted);
  font-size: 0.93rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 48px;
  margin: 16px 0;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  color: #10662f;
  box-shadow: var(--shadow-sm);
}

.topic-grid {
  display: grid;
  gap: 16px;
}

.topic-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.topic-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.topic-card h3 {
  margin-top: 14px;
  font-size: 1.05rem;
}

.topic-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pages juridiques */

.legal-version {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.legal-layout {
  display: grid;
  gap: 32px;
}

.legal-toc {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-toc-title {
  color: var(--navy);
  font-weight: 800;
}

.legal-toc ol {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.legal-toc li {
  padding: 5px 0;
  line-height: 1.4;
}

.legal-toc a {
  display: inline;
  color: var(--text);
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a.is-active {
  color: var(--blue);
}

.legal-content {
  min-width: 0;
  max-width: 760px;
}

.legal-content section + section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
}

.legal-number {
  color: var(--blue);
}

.legal-content p,
.legal-content ul {
  margin-top: 14px;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-facts {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.legal-facts div {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.legal-facts dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.legal-facts dd {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-wrap table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-wrap tbody tr:last-child > * {
  border-bottom: 0;
}

.table-wrap thead th {
  background: var(--surface);
  color: var(--navy);
  font-weight: 700;
}

.table-wrap tbody th {
  color: var(--navy);
  font-weight: 600;
}

/* Pied de page ------------------------------------------------------------ */

.site-footer {
  margin-top: 64px;
  padding: 56px 0 calc(24px + env(safe-area-inset-bottom));
  background: var(--navy);
  color: #c9d6f2;
}

.page-home .site-footer {
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

.brand-light,
.brand-light:hover {
  color: var(--white);
}

.footer-brand p {
  margin: 14px 0 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.footer-links a,
.footer-links span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #c9d6f2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.site-footer .soon-tag {
  background: var(--blue);
  color: var(--white);
}

.site-footer :focus-visible {
  outline-color: var(--white);
}

/* Apparition au défilement (désactivée si l'utilisateur réduit les animations) */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Grands écrans ----------------------------------------------------------- */

@media (min-width: 560px) {
  :root {
    --gutter: 24px;
  }

  .feature-grid,
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-count-2,
  .plan-count-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-card {
    padding: 64px 40px;
  }
}

@media (min-width: 860px) {
  :root {
    --header-h: 76px;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a:not(.button) {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.95rem;
  }

  .nav-cta {
    margin: 0 0 0 10px;
  }

  .hero {
    padding: 72px 0 96px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }

  .facts-grid {
    grid-template-columns: repeat(4, 1fr);
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section {
    padding: 96px 0;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .plan-count-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .support-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
  }

  .topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .legal-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  }

  .page-hero {
    padding: 72px 0 48px;
  }
}

@media (max-width: 559px) {
  /* Tableau juridique : une fiche par ligne, sans défilement horizontal. */
  .table-wrap {
    overflow: visible;
    border: 0;
  }

  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block;
    min-width: 0;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .table-wrap tbody th {
    background: var(--surface);
  }

  .table-wrap td {
    border-bottom: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
  }

  .float-score {
    display: none;
  }
}

@media (max-width: 380px) {
  .store-badge {
    flex: 1 1 100%;
    justify-content: center;
  }

  .float-card {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .legal-toc,
  .store-badges {
    display: none;
  }

  .legal-layout {
    display: block;
  }
}
