/* ═══════════════════════════════════════════════════════════════════════════
   Majord'Home — feuille de style du site de présentation

   Les jetons de couleur reprennent exactement DesignSystem.swift côté iOS
   (DS.Color), y compris les valeurs du mode sombre. La typographie utilise la
   pile système arrondie : sur Apple, c'est SF Pro Rounded — la police de
   l'application elle-même. Aucune ressource externe n'est chargée, ce qui
   permet une CSP fermée et évite tout appel à un tiers.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Jetons ───────────────────────────────────────────────────────────────── */
:root {
  --rose-700: #AA4465;
  --rose-500: #D57582;
  --rose-300: #FFA69E;
  --rose-100: #EED3CB;

  --teal-900: #7ABAB2;
  --teal-700: #86CDC4;
  --teal-500: #93E1D8;
  --teal-300: #B8F0E8;
  --teal-100: #DDFFF7;

  --success: #52C9A0;
  --warning: #F5A623;

  --ink:   #1A2126;
  --ink-2: #4A5C65;
  --ink-3: #7A9099;
  --border: #C8D8DC;

  --bg:      #F7FAFA;
  --card:    #FFFFFF;
  --subtle:  #EEF4F5;
  --surface: #DDFFF7;
  --rose-bg: #EED3CB;

  --shadow-sm: 0 1px 2px rgba(26, 33, 38, .06), 0 2px 8px rgba(26, 33, 38, .04);
  --shadow-md: 0 2px 6px rgba(26, 33, 38, .07), 0 12px 32px rgba(26, 33, 38, .07);
  --shadow-lg: 0 8px 24px rgba(26, 33, 38, .10), 0 32px 64px rgba(26, 33, 38, .12);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --gutter: clamp(20px, 4vw, 40px);
  --measure: 1140px;

  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
          "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --rose-700: #D57582;
    --rose-500: #D57582;
    --rose-300: #C0605A;
    --rose-100: #3A1F24;

    --teal-900: #5A9C95;
    --teal-700: #6AAFA8;
    --teal-500: #6AAEA6;
    --teal-300: #2E6A63;
    --teal-100: #1E3A35;

    --success: #3AA880;
    --warning: #CC8810;

    --ink:   #F0F8F6;
    --ink-2: #9BBEC7;
    --ink-3: #5A7A85;
    --border: #2D4049;

    --bg:      #0F1A1F;
    --card:    #1C2B30;
    --subtle:  #1A2830;
    --surface: #1E3A35;
    --rose-bg: #3A1F24;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .30);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .40), 0 32px 64px rgba(0, 0, 0, .45);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.022em; font-weight: 800; }
p { margin: 0; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--rose-700); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--rose-700);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Lisible par les lecteurs d'écran, invisible à l'œil. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Utilitaires de structure ─────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--subtle { background: var(--subtle); }
.section--ink {
  background: var(--card);
  border-block: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--teal-900);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

.h2 { font-size: clamp(1.85rem, 1.25rem + 2.2vw, 2.75rem); }
.h3 { font-size: 1.2rem; font-weight: 800; }

.lede {
  margin-top: 16px;
  font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem);
  color: var(--ink-2);
  line-height: 1.6;
}

.accent { color: var(--rose-700); }
.nowrap { white-space: nowrap; }

/* ── Boutons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--rose-700);
  color: #fff;
  box-shadow: 0 2px 10px rgba(170, 68, 101, .28);
}
.btn--primary:hover { background: var(--rose-500); box-shadow: 0 6px 20px rgba(170, 68, 101, .32); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--teal-900); background: var(--card); }

.btn--small { font-size: 14px; padding: 11px 20px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ── Barre de navigation ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.03em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand__apos { color: var(--rose-700); }

.nav__links { display: flex; align-items: center; gap: 4px; }
/* Le « :not(.btn) » est indispensable : sans lui ces règles, plus spécifiques
   que .btn--primary, repeindraient le bouton d'appel à l'action. */
.nav__links a:not(.btn) {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color .15s, background-color .15s;
}
.nav__links a:not(.btn):hover { color: var(--ink); background: var(--subtle); }

.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 9px;
  cursor: pointer;
  color: var(--ink);
}
.nav__toggle svg { width: 20px; height: 20px; display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav__links[hidden] { display: none; }
  .nav__links a:not(.btn) { padding: 13px 14px; font-size: 16px; }
  .nav__cta { margin: 10px 0 0; }
}

/* ── Héros ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 96px) clamp(60px, 8vw, 110px);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.hero__glow--a { width: 520px; height: 520px; background: var(--teal-500); top: -180px; right: -140px; }
.hero__glow--b { width: 420px; height: 420px; background: var(--rose-300); bottom: -200px; left: -160px; opacity: .32; }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-100);
  color: var(--teal-900);
  border: 1px solid color-mix(in srgb, var(--teal-900) 30%, transparent);
  border-radius: 999px;
  padding: 7px 15px 7px 11px;
  font-size: 13.5px;
  font-weight: 700;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.3rem, 1.35rem + 3.6vw, 3.9rem);
  font-weight: 900;
  letter-spacing: -.035em;
}
.hero__sub {
  margin-top: 20px;
  max-width: 34em;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__note svg { width: 16px; height: 16px; flex: none; color: var(--teal-900); }

/* ── Maquette iPhone ──────────────────────────────────────────────────────── */
.phone {
  --phone-w: 300px;
  width: var(--phone-w);
  margin-inline: auto;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #3A4A52, #17222A 55%, #2C3A42);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.phone--sm { --phone-w: 260px; }

.phone__screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 300 / 630;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.4;
}
.phone__notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 24px;
  border-radius: 999px;
  background: #10181D;
  z-index: 3;
}
.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}
.phone__status-icons { display: flex; gap: 4px; align-items: center; }
.phone__status-icons i {
  display: block;
  width: 12px; height: 9px;
  border-radius: 2px;
  background: var(--ink);
  opacity: .75;
  font-style: normal;
}
.phone__status-icons i:last-child { width: 18px; border-radius: 3px; }

.phone__body {
  flex: 1;
  overflow: hidden;
  padding: 10px 14px 4px;
  background: linear-gradient(170deg, var(--bg) 45%, color-mix(in srgb, var(--teal-500) 40%, var(--bg)));
}

.phone__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 9px 6px 13px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, transparent);
}
.phone__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 8.5px;
  text-align: center;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink-3);
}
.phone__tab svg { width: 19px; height: 19px; }
.phone__tab.is-active { color: var(--rose-700); }

/* ── Contenu simulé des écrans ────────────────────────────────────────────────
   Ces classes reproduisent des vues réelles de l'application, pas une idée de
   ce à quoi elle pourrait ressembler : quatre onglets et non cinq, les tuiles
   En retard / Aujourd'hui / Cette semaine du tableau de bord, les cartes
   d'activité avec leur filet de couleur, et la charge mentale en heures — c'est
   l'unité affichée, la minute cognitive restant interne au calcul.
   ─────────────────────────────────────────────────────────────────────────── */

.ui-title { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.ui-muted { color: var(--ink-3); font-size: 11px; font-weight: 600; }

/* En-tête de section : filet framboise + libellé capitales, comme DetailSectionHeader */
.ui-secthead {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 2px 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ui-secthead::before {
  content: "";
  width: 3px; height: 11px;
  border-radius: 2px;
  background: var(--rose-700);
  flex: none;
}
.ui-secthead .ui-secthead__end { margin-left: auto; text-transform: none; letter-spacing: 0; }

.ui-card {
  background: var(--card);
  border-radius: 16px;
  padding: 11px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.ui-card--flat { padding: 0; overflow: hidden; }

/* Tuiles de cadrage du tableau de bord */
.ui-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.ui-tile {
  background: var(--card);
  border-radius: 16px;
  padding: 9px 4px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.ui-tile svg { width: 15px; height: 15px; }
.ui-tile b { display: block; font-size: 19px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.ui-tile span { display: block; font-size: 9px; font-weight: 600; color: var(--ink-3); }
.ui-tile--overdue svg { color: var(--rose-700); }
.ui-tile--today   svg { color: var(--warning); }
.ui-tile--week    svg { color: var(--teal-700); }
.ui-tile.is-selected { background: color-mix(in srgb, var(--rose-700) 8%, var(--card)); }

/* Ligne compacte d'activité : filet, icône, nom, échéance */
.ui-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--card);
  border-radius: 12px;
  margin-bottom: 4px;
  box-shadow: var(--shadow-sm);
}
.ui-line__rule { width: 3px; height: 26px; border-radius: 999px; background: var(--teal-700); flex: none; }
.ui-line__rule--late { background: var(--rose-700); }
.ui-line__rule--due  { background: var(--warning); }
.ui-line__icon {
  width: 24px; height: 24px;
  flex: none;
  border-radius: 8px;
  background: var(--subtle);
  color: var(--ink-2);
  display: grid;
  place-items: center;
}
.ui-line__icon svg { width: 14px; height: 14px; }
.ui-line__name {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-line__due { font-size: 9.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.ui-line__due--late { color: var(--rose-700); }

.ui-seeall {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--rose-700);
  padding: 6px 0 2px;
}

/* Le sélecteur segmenté et les puces de filtre qui coiffent l'onglet Activités */
.ui-segmented {
  display: flex;
  gap: 2px;
  background: color-mix(in srgb, var(--ink-3) 14%, transparent);
  border-radius: 8px;
  padding: 2px;
  margin: 8px 0 7px;
}
.ui-segmented span {
  flex: 1;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 4px 2px;
  border-radius: 6px;
}
.ui-segmented span.is-active { background: var(--card); font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); }

.ui-chips { display: flex; gap: 5px; margin-bottom: 9px; overflow: hidden; }
.ui-chips span {
  font-size: 9px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.ui-chips span.is-active { background: var(--rose-700); color: #fff; font-weight: 700; }

/* Carte d'activité complète, telle que l'onglet Activités la dessine */
.ui-act {
  display: flex;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.ui-act__rule { width: 4px; flex: none; background: var(--warning); }
.ui-act__rule--late { background: var(--rose-700); }
.ui-act__body { flex: 1; min-width: 0; padding: 9px 11px; }
.ui-act__head { display: flex; align-items: flex-start; gap: 9px; }
.ui-act__icon {
  width: 32px; height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--rose-bg);
  color: var(--rose-700);
  display: grid;
  place-items: center;
}
.ui-act__icon svg { width: 18px; height: 18px; }
.ui-act__icon--teal { background: var(--surface); color: var(--teal-900); }
.ui-act__text { flex: 1; min-width: 0; }
.ui-act__name {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-act__meta { font-size: 10px; color: var(--ink-3); font-weight: 600; }
.ui-act__chev { color: var(--ink-3); flex: none; font-size: 11px; font-weight: 700; }
.ui-act__sep { height: 1px; background: var(--border); opacity: .6; margin: 8px 0 7px; }
.ui-act__foot { display: flex; align-items: center; gap: 7px; }
.ui-act__action { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--rose-700); white-space: nowrap; }

.badge-count {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--warning) 22%, transparent);
  color: var(--warning);
  margin-left: 5px;
  vertical-align: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill svg { width: 9px; height: 9px; }
.pill--todo { background: color-mix(in srgb, var(--warning) 20%, transparent); color: var(--warning); }
.pill--late { background: var(--rose-bg); color: var(--rose-700); }
.pill--done { background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }

.ui-avatars { display: flex; }
.ui-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  background: var(--rose-500);
  border: 1.5px solid var(--card);
}
.ui-avatar + .ui-avatar { margin-left: -6px; background: var(--teal-700); }

/* Compteurs de la fiche objet */
.ui-stats { display: flex; }
.ui-stat { flex: 1; text-align: center; }
.ui-stat svg { width: 13px; height: 13px; }
.ui-stat b { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.ui-stat span { font-size: 8.5px; font-weight: 600; color: var(--ink-3); }
.ui-stat--rose svg { color: var(--rose-700); }
.ui-stat--muted svg { color: var(--ink-3); }
.ui-stat--teal svg { color: var(--teal-700); }

/* Lignes de caractéristiques */
.ui-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 11px;
}
.ui-fact svg { width: 13px; height: 13px; color: var(--ink-3); flex: none; }
.ui-fact__label { color: var(--ink-2); font-weight: 600; }
.ui-fact__value { margin-left: auto; font-weight: 700; text-align: right; }
.ui-fact__value--missing { color: var(--rose-700); }
.ui-fact__chev { color: var(--ink-3); font-size: 10px; font-weight: 700; flex: none; }

/* Jauge de garantie — le composant DetailWarrantyRow */
.ui-warranty__head { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.ui-warranty__head svg:first-child { width: 13px; height: 13px; flex: none; }
.ui-warranty__label { color: var(--ink-2); font-weight: 600; }
.ui-warranty__left { margin-left: auto; font-weight: 700; }
.ui-warranty__bar {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-3) 18%, transparent);
  margin: 8px 0 6px;
  overflow: hidden;
}
.ui-warranty__bar > span { display: block; height: 100%; border-radius: 999px; }
.ui-warranty__dates {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.is-ok    .ui-warranty__head svg:first-child,
.is-ok    .ui-warranty__left { color: var(--success); }
.is-ok    .ui-warranty__bar > span { background: var(--success); width: 24%; }
.is-soon  .ui-warranty__head svg:first-child,
.is-soon  .ui-warranty__left { color: var(--warning); }
.is-soon  .ui-warranty__bar > span { background: var(--warning); width: 93%; }

/* Répartition de la charge mentale, en heures */
.ui-share { padding: 3px 0; }
.ui-share__head { display: flex; align-items: baseline; gap: 6px; font-size: 11px; font-weight: 700; }
.ui-share__head b { margin-left: auto; font-size: 12px; }
.ui-share__bar { height: 7px; border-radius: 999px; background: var(--subtle); margin: 5px 0 3px; overflow: hidden; }
.ui-share__bar > span { display: block; height: 100%; border-radius: 999px; background: var(--rose-700); }
.ui-share--second .ui-share__bar > span { background: var(--teal-700); }
.ui-share__bar--62 > span { width: 62%; }
.ui-share__bar--38 > span { width: 38%; }

.ui-index { display: flex; align-items: center; gap: 8px; }
.ui-index__value { font-size: 22px; font-weight: 800; color: var(--rose-700); line-height: 1; }
.ui-index__text { font-size: 10px; color: var(--ink-2); font-weight: 600; line-height: 1.35; }

/* Histogramme de la semaine */
/* Le graphique occupe environ un tiers de l'écran dans l'app : le rendre plus
   court laisserait un vide qui n'existe pas. */
.ui-bars { display: flex; align-items: flex-end; gap: 5px; height: 96px; margin-top: 4px; }
.ui-bars > i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--teal-500); display: block; }
.ui-bars > i.is-strong { background: var(--rose-700); }
.ui-bar-30 { height: 30%; } .ui-bar-38 { height: 38%; } .ui-bar-45 { height: 45%; }
.ui-bar-55 { height: 55%; } .ui-bar-60 { height: 60%; } .ui-bar-75 { height: 75%; }
.ui-bar-90 { height: 90%; } .ui-bar-100 { height: 100%; }
.ui-days { display: flex; gap: 5px; margin-top: 4px; }
.ui-days > span { flex: 1; text-align: center; font-size: 8px; font-weight: 700; color: var(--ink-3); }
/* ── Bandeau de chiffres ──────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { background: var(--card); padding: 26px 22px; text-align: center; }
.stat__value {
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--rose-700);
  line-height: 1;
}
.stat__label { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

/* ── Grilles de cartes ────────────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(16px, 2vw, 22px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--teal-900) 45%, var(--border));
}
.card h3 { font-size: 1.12rem; margin-bottom: 9px; }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

.card__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--teal-900);
  margin-bottom: 16px;
}
.card__icon svg { width: 23px; height: 23px; }
.card__icon--rose { background: var(--rose-bg); color: var(--rose-700); }

.card__tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-900);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ── Chaîne du modèle de données ──────────────────────────────────────────── */
.chain {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.chain__node {
  flex: 1 1 150px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 14px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.chain__node svg { width: 24px; height: 24px; color: var(--teal-900); margin-bottom: 8px; }
.chain__node b { display: block; font-size: 14.5px; font-weight: 800; }
.chain__node span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.chain__node--last { border-color: var(--rose-700); }
.chain__node--last svg { color: var(--rose-700); }

.chain__arrow {
  align-self: center;
  color: var(--ink-3);
  flex: none;
}
.chain__arrow svg { width: 18px; height: 18px; display: block; }
@media (max-width: 720px) {
  .chain__arrow { transform: rotate(90deg); margin-inline: auto; }
  .chain { flex-direction: column; }
}

.pull {
  border-left: 3px solid var(--rose-700);
  padding: 4px 0 4px 22px;
  margin: 30px 0 0;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.015em;
}
.pull span { color: var(--ink-3); font-weight: 600; display: block; font-size: .85em; margin-top: 6px; letter-spacing: 0; }

/* ── Charge mentale ───────────────────────────────────────────────────────── */
/* Six couches : trois par rangée sur grand écran, pour ne pas laisser la
   dernière seule sur sa ligne. */
.layers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 880px) { .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .layers { grid-template-columns: 1fr; } }
.layer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.layer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal-700);
}
.layer--derived::before { background: var(--rose-700); }
.layer__key {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--teal-900);
  letter-spacing: -.04em;
}
.layer--derived .layer__key { color: var(--rose-700); }
.layer__name { font-weight: 800; font-size: 15px; margin: 6px 0 5px; }
.layer__src { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

.split-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--teal-900) 30%, transparent);
}
.split-note svg { width: 22px; height: 22px; flex: none; color: var(--teal-900); margin-top: 2px; }
.split-note p { font-size: 15px; color: var(--ink-2); }
.split-note strong { color: var(--ink); }

/* ── Tableau comparatif ───────────────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th, .compare td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare thead th {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--ink-2);
  background: var(--subtle);
  white-space: nowrap;
}
.compare thead th:first-child { width: 30%; }
.compare tbody th {
  font-weight: 700;
  color: var(--ink);
  font-size: 14.5px;
}
.compare tbody th small { display: block; font-weight: 600; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }

.col-us { background: color-mix(in srgb, var(--teal-100) 60%, transparent); }
.compare thead .col-us { background: var(--teal-100); color: var(--teal-900); }
.compare .col-us { font-weight: 700; }

.mark { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.mark svg { width: 17px; height: 17px; flex: none; }
.mark--yes { color: var(--success); }
.mark--no { color: var(--ink-3); }
.mark--part { color: var(--warning); }

.table-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

/* ── Galerie d'écrans ─────────────────────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.shot { text-align: center; }
.shot__caption { margin-top: 20px; }
.shot__caption b { display: block; font-size: 16px; font-weight: 800; }
.shot__caption span { display: block; margin-top: 5px; font-size: 14px; color: var(--ink-2); }

/* ── Feuille de route ─────────────────────────────────────────────────────── */
.roadmap { display: grid; gap: 14px; }
.lot {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
@media (max-width: 700px) {
  .lot { grid-template-columns: 1fr; gap: 12px; }
}
.lot__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--ink-3);
  white-space: nowrap;
}
.lot__state--done { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.lot__state--now { background: var(--rose-bg); color: var(--rose-700); }
.lot h3 { font-size: 1.15rem; margin-bottom: 8px; }
.lot p { color: var(--ink-2); font-size: 15.5px; }
.lot ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.lot li {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--subtle);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ── Confiance / vie privée ───────────────────────────────────────────────── */
.privacy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.privacy__item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.privacy__item svg { width: 22px; height: 22px; flex: none; color: var(--teal-900); margin-top: 3px; }
.privacy__item b { display: block; font-size: 15.5px; font-weight: 800; margin-bottom: 3px; }
.privacy__item span { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

/* ── Bêta + formulaire ────────────────────────────────────────────────────── */
.beta {
  background:
    radial-gradient(80% 120% at 12% 0%, color-mix(in srgb, var(--teal-500) 34%, transparent), transparent 62%),
    radial-gradient(70% 110% at 100% 100%, color-mix(in srgb, var(--rose-300) 26%, transparent), transparent 60%),
    var(--card);
  border-block: 1px solid var(--border);
}
.beta__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .beta__grid { grid-template-columns: 1fr; } }

.checklist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--success); margin-top: 2px; }
.checklist b { color: var(--ink); font-weight: 700; }

.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
  align-items: start;
  font-size: 15px;
  color: var(--ink-2);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--rose-700);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 36px);
  box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 1.3rem; }
.form-card > p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

.field { margin-top: 20px; }
.field > label,
.fieldset__legend {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.field__hint { font-weight: 600; color: var(--ink-3); font-size: 13px; }

.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--rose-700);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose-700) 16%, transparent);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--rose-700);
  background: color-mix(in srgb, var(--rose-bg) 40%, var(--bg));
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.fieldset { border: none; margin: 20px 0 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink-2);
  transition: all .15s;
  user-select: none;
}
.chip input:checked + span {
  border-color: var(--rose-700);
  background: var(--rose-bg);
  color: var(--rose-700);
  font-weight: 700;
}
.chip input:focus-visible + span { outline: 3px solid var(--rose-700); outline-offset: 2px; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.consent input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--rose-700);
  cursor: pointer;
}

/* Champ appât : invisible pour l'humain, atteignable par un robot. */
.trap {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-actions { margin-top: 26px; }
.form-legal { margin-top: 14px; font-size: 13px; color: var(--ink-3); line-height: 1.55; }

.alert {
  margin-top: 20px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert[hidden] { display: none; }
.alert--ok {
  background: color-mix(in srgb, var(--success) 15%, transparent);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--success) 45%, transparent);
}
.alert--ok svg { color: var(--success); }
.alert--ko {
  background: var(--rose-bg);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--rose-700) 45%, transparent);
}
.alert--ko svg { color: var(--rose-700); }

.spinner {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, #fff 45%, transparent);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 22px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px; height: 10px;
  flex: none;
  border-right: 2.5px solid var(--ink-3);
  border-bottom: 2.5px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details[open] summary { color: var(--rose-700); }
.faq p { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.5px; }
.faq p + p { padding-top: 0; margin-top: -6px; }

/* ── Pied de page ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding-block: 48px 34px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__pitch { max-width: 380px; margin-top: 14px; color: var(--ink-2); font-size: 14.5px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer__links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.footer__links a:hover { color: var(--rose-700); }
.footer__bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ── Pages de contenu (légal, résultat) ───────────────────────────────────── */
.page-plain { background: var(--bg); }

.doc { max-width: 760px; margin-inline: auto; padding-block: clamp(40px, 6vw, 72px); }
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.doc h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.doc h3 { font-size: 1.05rem; margin-top: 26px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.doc p { margin-top: 14px; }
.doc ul, .doc ol { margin-top: 14px; padding-left: 22px; }
.doc li { margin-top: 7px; }
.doc__meta { margin-top: 10px; color: var(--ink-3); font-size: 14.5px; }
.doc__back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 26px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.doc__back svg { width: 15px; height: 15px; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.doc th, .doc td {
  padding: 11px 13px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
}
.doc th { background: var(--subtle); color: var(--ink); font-weight: 700; }

/* ── Page de résultat de confirmation ─────────────────────────────────────── */
.outcome {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 40px 20px;
  text-align: center;
}
.outcome__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.03em;
}
.outcome__brand img { border-radius: 11px; box-shadow: var(--shadow-sm); }
.outcome__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(30px, 5vw, 46px);
  max-width: 520px;
  box-shadow: var(--shadow-md);
}
.outcome__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.is-success .outcome__icon { background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }
.is-error .outcome__icon { background: var(--rose-bg); color: var(--rose-700); }
.outcome__title { font-size: 1.6rem; }
.outcome__body { margin: 14px 0 26px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.outcome__legal { font-size: 13.5px; color: var(--ink-3); }
.outcome__legal a { color: var(--ink-3); }

/* ── Apparition au défilement ─────────────────────────────────────────────── */
/* La classe « js » est posée par site.js. Sans JavaScript, rien n'est masqué :
   le contenu reste intégralement lisible. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s ease;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
