/* ============================================================
   BIMO — Feuille de style
   Direction « bleu confiance » : le bleu de marque #2456E6 sur
   un fond bleuté très clair, vert pour le rassurant, et une
   échelle de risque réservée aux données. Aucun emoji, du SVG.
   ============================================================ */

/* ------------------------------------------------------------
   JETONS
   ------------------------------------------------------------ */
:root {
  /* Fonds */
  --sky-50:   #F4F6FB;
  --sky-100:  #EAF0FE;
  --sky-200:  #DCE6FD;
  --sky-300:  #C7D6FB;
  --paper:    #FFFFFF;
  --paper-2:  #F8FAFE;

  /* Encre */
  --ink-900:  #14213D;
  --ink-800:  #1D2C4E;
  --ink-700:  #2C3D63;
  --ink-500:  #4A5878;
  --ink-400:  #7C88A4;

  /* Bleu de marque — la couleur de la confiance, celle de l'app */
  --brand-50:  #EEF2FE;
  --brand-100: #E3EAFE;
  --brand-200: #C6D4FC;
  --brand-300: #9DB4FA;
  --brand-500: #2456E6;
  --brand-600: #1D46C2;
  --brand-700: #16368F;

  /* Vert « tout va bien » */
  --go-500: #17925A;
  --go-100: #DDF3E7;

  /* Échelle de risque (réservée aux données, jamais à la marque) */
  --risk-none:    #1E9E5A;
  --risk-caution: #DFA104;
  --risk-suspect: #E8642C;
  --risk-scam:    #D6362B;

  /* Doré du premium */
  --gold-500: #C99A2E;
  --gold-100: #F8EFD8;

  --line:       #DCE2EC;
  --line-soft:  #E8EDF6;

  --radius-card: 22px;
  --radius-cta:  14px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(20,33,61,.04), 0 10px 28px rgba(20,33,61,.06);
  --shadow-card: 0 2px 6px rgba(20,33,61,.05), 0 22px 50px rgba(20,33,61,.12);
  --shadow-cta:  0 12px 28px rgba(36,86,230,.30);

  /* Aucune police téléchargée : la pile système, rendue nativement sur
     chaque plateforme (San Francisco, Segoe UI, Roboto). Rien à charger,
     rien à héberger, aucune requête tierce. */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky-50:   #0B1120;
    --sky-100:  #101A2E;
    --sky-200:  #16233C;
    --sky-300:  #1E2E4C;
    --paper:    #151E33;
    --paper-2:  #101A2E;

    --ink-900:  #EAEEF7;
    --ink-800:  #DCE3F1;
    --ink-700:  #C6D0E4;
    --ink-500:  #A6B1C9;
    --ink-400:  #8492AF;

    --brand-50:  #16233F;
    --brand-100: #1B2C50;
    --brand-200: #263F78;
    --brand-300: #6E93FF;
    --brand-500: #6E93FF;
    --brand-600: #89A8FF;
    --brand-700: #AFC4FF;

    --go-500: #4CC98A;
    --go-100: #14312A;

    --risk-none:    #4CC98A;
    --risk-caution: #E9BC3F;
    --risk-suspect: #F08653;
    --risk-scam:    #F0716A;

    --gold-500: #E3C167;
    --gold-100: #2A2413;

    --line:      #28334E;
    --line-soft: #1E2942;

    --shadow-soft: 0 1px 2px rgba(0,0,0,.30), 0 10px 28px rgba(0,0,0,.32);
    --shadow-card: 0 2px 6px rgba(0,0,0,.35), 0 22px 50px rgba(0,0,0,.45);
    --shadow-cta:  0 12px 28px rgba(36,86,230,.38);
  }
}

/* --- Reset / base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink-700);
  background: var(--sky-50);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--brand-500); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* --- Conteneur --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

.section-pad { padding-block: 5rem; }
@media (min-width: 768px) { .section-pad { padding-block: 7rem; } }

/* --- Dégradé de texte --- */
.gradient-text {
  background: linear-gradient(115deg, #2456E6 0%, #4A7BF5 50%, #17925A 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: dark) {
  .gradient-text { background: linear-gradient(115deg, #6E93FF 0%, #8FB0FF 55%, #4CC98A 130%); -webkit-background-clip: text; background-clip: text; }
}

/* --- Boutons --- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--radius-cta);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3A6BF0 0%, #1D46C2 100%);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-secondary {
  color: var(--ink-900);
  background: var(--paper);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { transform: translateY(-1px); border-color: var(--brand-300); color: var(--brand-600); }

/* --- Badge --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-pill);
}
.eyebrow svg { color: var(--brand-500); }

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 700ms cubic-bezier(.16,1,.3,1);
}
.fade-up.visible { opacity: 1; transform: none; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.float-anim { animation: float 7s ease-in-out infinite; }

/* La respiration de Bimo — la mascotte n'existe que si elle paraît vivante. */
@keyframes breathe {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .85; transform: scale(1.05); }
}
@keyframes bimo-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.028); }
}
.bimo-breathe { animation: bimo-breathe 5.5s ease-in-out infinite; transform-origin: 50% 88%; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .float-anim, .phone-halo, .bimo-breathe { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--sky-50) 82%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
@media (min-width: 768px) { .site-header .container { height: 80px; } }

.logo { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; }
/* Le logotype, c'est la mascotte : détourée, sans cadre ni fond. */
.logo img {
  height: 40px; width: 40px;
  object-fit: contain;
}
.logo .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  white-space: nowrap;
}
@media (min-width: 768px) { .logo img { height: 46px; width: 46px; } .logo .wordmark { font-size: 1.2rem; } }

.header-right { display: flex; align-items: center; gap: .75rem; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.lang-switch a {
  padding: .3rem .7rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--ink-400);
  border-radius: var(--radius-pill);
  transition: background 200ms, color 200ms;
}
.lang-switch a:hover { color: var(--ink-900); }
.lang-switch a[aria-current="true"] { background: var(--brand-500); color: #fff; }

.header-cta { display: none; }
@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    padding: .55rem 1.15rem;
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    background: var(--ink-900);
    border-radius: var(--radius-cta);
    transition: background 200ms;
  }
  .header-cta:hover { background: var(--brand-600); }
}
@media (prefers-color-scheme: dark) {
  .header-cta { color: var(--sky-100); background: var(--brand-500); }
  .header-cta:hover { background: var(--brand-600); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: 3rem; }
@media (min-width: 768px) { .hero { padding-top: 4.5rem; } }

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 82% 6%,  rgba(36,86,230,.20), transparent 62%),
    radial-gradient(ellipse 65% 50% at 12% 22%, rgba(23,146,90,.13), transparent 60%),
    radial-gradient(ellipse 80% 60% at 55% 0%,  rgba(110,147,255,.22), transparent 68%),
    linear-gradient(180deg, var(--sky-100) 0%, var(--sky-50) 72%);
}
@media (prefers-color-scheme: dark) {
  .hero-sky {
    background:
      radial-gradient(ellipse 70% 55% at 82% 8%,  rgba(36,86,230,.26), transparent 62%),
      radial-gradient(ellipse 65% 50% at 12% 22%, rgba(23,146,90,.14), transparent 60%),
      linear-gradient(180deg, var(--sky-200) 0%, var(--sky-50) 72%);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; padding-bottom: 6rem; }
}

.hero-copy { min-width: 0; }
.hero-copy h1 {
  margin-top: 1.5rem;
  font-size: 2.5rem;
  line-height: 1.06;
}
@media (min-width: 768px)  { .hero-copy h1 { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero-copy h1 { font-size: 3.9rem; } }

.hero-copy .lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-500);
}
@media (min-width: 768px) { .hero-copy .lede { font-size: 1.2rem; } }

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--ink-400);
}

.hero-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 1.25rem;
  margin-top: 2.25rem;
  font-size: .9rem;
  color: var(--ink-500);
  list-style: none;
}
@media (min-width: 640px) { .hero-checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero-checklist li { display: flex; align-items: center; gap: .5rem; font-weight: 600; min-width: 0; }
.hero-checklist .check { color: var(--brand-500); flex-shrink: 0; }

/* ============================================================
   MOCKUP TÉLÉPHONE — l'écran est dessiné, pas photographié
   ============================================================ */
.hero-phone-wrap { display: flex; justify-content: center; }
@media (min-width: 1024px) { .hero-phone-wrap { justify-content: flex-end; } }

.phone-stage { position: relative; }

.phone-halo {
  position: absolute;
  inset: -3rem;
  z-index: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(36,86,230,.55), rgba(110,147,255,.45), rgba(23,146,90,.40));
  filter: blur(48px);
  animation: breathe 9s ease-in-out infinite;
}

/* Châssis de l'appareil. Deux arrondis concentriques : le rayon extérieur
   reprend celui de l'écran augmenté de l'épaisseur du cadre, sans quoi la
   tranche paraît plus épaisse dans les angles que sur les côtés. */
.phone-frame {
  --cadre: 11px;
  --rayon-ecran: 38px;

  position: relative;
  z-index: 1;
  width: 288px;
  max-width: 100%;
  padding: var(--cadre);
  border-radius: calc(var(--rayon-ecran) + var(--cadre));
  background: linear-gradient(150deg,
    #6a7796 0%, #3a4460 5%, #222a41 13%,
    #161c2d 38%, #131828 62%,
    #222a41 87%, #3a4460 95%, #6a7796 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 1px 1px rgba(255, 255, 255, .22),
    0 2px 5px rgba(20, 33, 61, .30),
    0 26px 50px -14px rgba(20, 33, 61, .50);
}
@media (max-width: 359px) { .phone-frame { width: 100%; } }
@media (min-width: 640px) { .phone-frame { width: 306px; } }

/* Boutons de tranche, purement décoratifs. */
.phone-frame::before,
.phone-frame::after,
.phone-side {
  content: "";
  position: absolute;
  width: 3px;
  background: linear-gradient(90deg, #46516e, #232b40);
  pointer-events: none;
}
.phone-frame::before { left: -2px; top: 116px; height: 19px; border-radius: 2px 0 0 2px; }
.phone-frame::after  { left: -2px; top: 150px; height: 41px; border-radius: 2px 0 0 2px; box-shadow: 0 51px 0 #2b3349; }
.phone-side          { right: -2px; top: 150px; height: 64px; border-radius: 0 2px 2px 0; background: linear-gradient(90deg, #232b40, #46516e); }

.phone-screen {
  position: relative;
  border-radius: var(--rayon-ecran);
  overflow: hidden;
  background: #1B3FA8;
  box-shadow:
    inset 0 0 0 1px rgba(8, 14, 28, .55),
    0 0 0 1px rgba(255, 255, 255, .07);
}

/* --- L'écran d'accueil de Bimo, reconstitué --------------------------- */
.app-home {
  position: relative;
  padding: 1.6rem 1rem .9rem;
  background: linear-gradient(180deg, #1B3FA8 0%, #2456E6 46%, #3A6BF0 100%);
  font-family: var(--font-body);
  color: #fff;
}
.app-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; padding: 0 .35rem .1rem;
}
.app-bar .app-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.app-tagline { margin: .35rem .35rem 0; font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.82); }

/* LE bouton : un grand carré blanc, façon icône géante */
.app-cta {
  position: relative;
  margin: 1.1rem .35rem 0;
  aspect-ratio: 1 / 1;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 14px 30px -10px rgba(8, 20, 60, .55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem;
  overflow: hidden;
}
.app-cta img { width: 74%; height: auto; margin-top: .3rem; }
.app-cta .app-cta-pill {
  position: absolute; bottom: 12px;
  padding: .3rem .9rem;
  border-radius: 999px;
  background: var(--brand-500);
  color: #fff;
  font-size: .72rem; font-weight: 800;
  box-shadow: 0 6px 14px -4px rgba(36,86,230,.7);
}

/* La nappe blanche du bas */
.app-sheet {
  margin: 1rem -1rem -0.9rem;
  padding: 1rem .85rem 1.3rem;
  border-radius: 24px 24px 0 0;
  background: #F4F6F9;
}
.app-row { display: flex; gap: .5rem; }
.app-card {
  flex: 1;
  padding: .6rem .55rem;
  border-radius: 14px;
  background: #E3EAFE;
  color: #16368F;
}
.app-card .k { font-size: .55rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; opacity: .72; }
.app-card .v { margin-top: .15rem; font-size: .72rem; font-weight: 700; line-height: 1.25; }
.app-card.family { background: linear-gradient(135deg, #2456E6, #16368F); color: #fff; }
.app-card.family .k { opacity: .8; }

/* ============================================================
   BANDE DE CONFIANCE
   ============================================================ */
.trust {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--paper) 60%, transparent);
}
.trust .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 2.5rem; padding-block: 1.5rem; text-align: center;
}
.trust .item { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--ink-500); }
.trust .item svg { color: var(--brand-500); flex-shrink: 0; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section-head { max-width: 44rem; margin-inline: auto; text-align: center; margin-bottom: 3.5rem; }
.section-head h2 { font-size: 2rem; }
@media (min-width: 768px) { .section-head h2 { font-size: 2.6rem; } }
.section-head p { margin-top: 1rem; font-size: 1.075rem; line-height: 1.7; color: var(--ink-500); }

.features { background: var(--sky-50); }

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px)  { .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--brand-200); }
.feature-ic {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 15px;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p { font-size: .95rem; line-height: 1.65; color: var(--ink-500); }
/* --- Étapes --- */
.steps { background: var(--sky-50); }
.step-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .step-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-soft);
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: linear-gradient(135deg, #3A6BF0, #1D46C2);
  color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-cta);
}
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { font-size: .95rem; line-height: 1.65; color: var(--ink-500); }

/* ============================================================
   AVERTISSEMENT — la limite, dite avant qu'on la cherche
   ============================================================ */
.promise { background: var(--sky-50); }
.promise-card {
  max-width: 48rem; margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--risk-caution);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .promise-card { padding: 2.25rem; } }
.promise-card h2 { font-size: 1.35rem; margin-bottom: .75rem; }
.promise-card p { font-size: .98rem; line-height: 1.7; color: var(--ink-500); margin-bottom: .75rem; }
.promise-card p:last-child { margin-bottom: 0; }
.promise-card a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.75); }
@media (prefers-color-scheme: dark) { .site-footer { background: #070D1B; } }
.footer-simple {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.25rem; padding-block: 2.75rem; text-align: center;
}
.footer-simple .logo .wordmark { color: #fff; }
.footer-simple .logo img { height: 42px; width: 42px; }
.footer-simple p { font-size: .875rem; color: rgba(255,255,255,.6); }
.footer-simple p a { color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 3px; transition: color 200ms; }
.footer-simple p a:hover { color: #9DB4FA; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.footer-legal a { font-size: .78rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; transition: color 200ms; }
.footer-legal a:hover { color: #9DB4FA; }
.footer-attrib { font-size: .74rem; color: rgba(255,255,255,.42); line-height: 1.6; max-width: 46rem; }
.footer-attrib a { color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   PAGES LÉGALES
   ============================================================ */
.legal-page { background: var(--sky-50); }

.legal-back {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .875rem; font-weight: 600; color: var(--ink-400);
  transition: color 200ms;
}
.legal-back:hover { color: var(--brand-600); }

.legal-header { margin-bottom: 3rem; }
.legal-header h1 { margin-top: 1.5rem; font-size: 2.1rem; }
@media (min-width: 768px) { .legal-header h1 { font-size: 2.9rem; } }
.legal-header .updated { margin-top: .75rem; font-size: .875rem; color: var(--ink-400); }

.prose { color: var(--ink-700); font-size: 1rem; line-height: 1.75; }
.prose h2 { font-size: 1.45rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.75rem; margin-bottom: .5rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul { margin-bottom: 1rem; padding-left: 1.25rem; list-style: disc; }
.prose ol { margin-bottom: 1rem; padding-left: 1.25rem; list-style: decimal; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--ink-900); font-weight: 700; }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-700); }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--brand-50); padding: .1em .35em; border-radius: 5px; }

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.info-card p:last-child { margin-bottom: 0; }
.info-card.accent { border-color: var(--brand-200); background: var(--brand-50); }
.info-card.warn { border-color: rgba(232,100,44,.35); background: rgba(232,100,44,.07); }
.info-card.danger { border-color: rgba(214,54,43,.38); background: rgba(214,54,43,.07); }

.table-wrap { overflow-x: auto; margin-block: 1.5rem; -webkit-overflow-scrolling: touch; }
.legal-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.legal-table th, .legal-table td { padding: .7rem .85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.legal-table th { background: var(--brand-50); color: var(--ink-900); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.legal-table tr:last-child td { border-bottom: none; }

/* Sommaire */
.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-soft);
}
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-400); margin: 0 0 .75rem; font-family: var(--font-body); font-weight: 800; }
.toc ol { columns: 1; margin: 0; padding-left: 1.1rem; font-size: .9rem; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 2rem; } }
.toc li { margin-bottom: .3rem; break-inside: avoid; }
.toc a { color: var(--ink-500); text-decoration: none; }
.toc a:hover { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   CONTACT / SUPPORT
   ============================================================ */
.support-hero { background: var(--sky-100); padding: 4rem 0 5rem; }
@media (min-width: 768px) { .support-hero { padding: 5.5rem 0 6.5rem; } }
@media (prefers-color-scheme: dark) { .support-hero { background: var(--sky-200); } }

.contact-card {
  margin-top: 3rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--brand-50), var(--paper));
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .contact-card { padding: 2.5rem; } }
.contact-card-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
@media (min-width: 768px) { .contact-card-inner { flex-direction: row; align-items: flex-start; text-align: left; gap: 2rem; } }
.contact-icon {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 4rem; height: 4rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #3A6BF0, #1D46C2);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.contact-card h2 { font-size: 1.2rem; }
.contact-card p { margin-top: .5rem; line-height: 1.6; color: var(--ink-500); }
.contact-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1rem; padding: .75rem 1.25rem;
  font-weight: 700; color: #fff;
  background: var(--ink-900);
  border-radius: var(--radius-cta);
  transition: background 200ms;
}
.contact-btn:hover { background: var(--brand-600); }
@media (prefers-color-scheme: dark) { .contact-btn { background: var(--brand-500); color: #0B1120; } }

/* Encart d'urgence — sur une app anti-arnaque, il doit être trouvable */
.emergency {
  margin-top: 2rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(214,54,43,.30);
  background: rgba(214,54,43,.06);
  padding: 1.5rem 1.75rem;
}
.emergency h2 { font-size: 1.05rem; margin-bottom: .6rem; color: var(--ink-900); }
.emergency p { font-size: .92rem; line-height: 1.7; color: var(--ink-500); margin-bottom: .6rem; }
.emergency p:last-child { margin-bottom: 0; }
.emergency strong { color: var(--ink-900); }
.emergency a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }

.support-faq { background: var(--sky-50); padding: 4rem 0 6rem; }
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
details.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: border-color 200ms, box-shadow 200ms;
}
details.faq-item[open] { border-color: var(--brand-200); box-shadow: var(--shadow-card); }
details.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer; list-style: none;
  font-size: 1rem; font-weight: 700; color: var(--ink-900);
}
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { flex-shrink: 0; width: 20px; height: 20px; color: var(--brand-500); transition: transform 200ms; }
details.faq-item[open] .faq-chevron { transform: rotate(180deg); }
details.faq-item p { padding-bottom: 1.5rem; line-height: 1.7; color: var(--ink-500); }
details.faq-item p a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.faq-footer {
  margin-top: 3rem; padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  text-align: center; font-size: .9rem; color: var(--ink-500);
  box-shadow: var(--shadow-soft);
}
.faq-footer a { font-weight: 700; color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   404
   ============================================================ */
.notfound {
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.25rem;
}
.notfound img { width: 148px; height: 148px; margin-bottom: 1rem; }
.notfound .code {
  font-family: var(--font-display);
  font-size: 5.5rem; font-weight: 600; line-height: 1;
  background: linear-gradient(115deg, #2456E6, #4A7BF5, #17925A);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.notfound h1 { font-size: 1.7rem; margin-top: 1rem; }
.notfound p { margin-top: .75rem; color: var(--ink-500); max-width: 28rem; }
.notfound .btn-primary { margin-top: 2rem; }

/* --- Accessibilité --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: fixed; width: auto; height: auto;
  top: 1rem; left: 1rem; z-index: 50;
  padding: .5rem 1rem; margin: 0; overflow: visible;
  clip: auto; white-space: normal;
  background: var(--brand-600); color: #fff;
  border-radius: .5rem; box-shadow: var(--shadow-card);
}
