/* ==========================================================================
   O P'tit Chien ! — feuille de style du site vitrine
   --------------------------------------------------------------------------
   Les jetons ci-dessous sont recopiés à l'identique de
   App_iOS/OPtitChien/Design/Brand.swift (« Carnet de Bord Atlantique ») et de
   Design/MapAppearance.swift pour les couleurs posées sur la carte. Une
   couleur écrite en dur ailleurs dans ce fichier signale un jeton manquant
   ici — comme dans l'app.
   Aucune dépendance externe : ni police téléchargée, ni CDN, ni script.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Marque */
  --primary: #155b7a;
  --primary-pressed: #0c3e56;
  --primary-fill: #155b7a;
  --primary-fill-pressed: #0c3e56;
  --primary-soft: #ddecf2;
  --on-primary: #ffffff;

  /* Surfaces */
  --canvas: #f4f7f8;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --divider: #d7e1e5;

  /* Encre */
  --text-primary: #14242e;
  --text-secondary: #596a73;

  /* Corail : aplat d'un côté, texte lisible de l'autre */
  --accent: #e76f51;
  --accent-text: #b84226;
  --accent-soft: #fbe3da;

  /* États */
  --success: #2e7156;
  --success-soft: #e3f0e9;

  /* Le grand aplat bleu d'une section pleine largeur */
  --deep: #0c3e56;
  --deep-ink: #f1f6f8;
  --deep-muted: #cfe4ee;
  --deep-divider: rgba(255, 255, 255, 0.24);
  --deep-soft: rgba(255, 255, 255, 0.09);
  --deep-eyebrow: #ffc7b6;


  /* Géométrie — BrandRadius / BrandMetrics */
  --radius-control: 12px;
  --radius-chip: 16px;
  --radius-card: 16px;
  --radius-sheet: 20px;
  /* Hors échelle de l'app : le coin d'un iPhone dessiné, pas d'un composant. */
  --radius-device: 30px;
  --action-height: 52px;
  --touch: 44px;

  --shadow-card: 0 7px 15px rgba(20, 36, 46, 0.09);
  --shadow-float: 0 10px 26px rgba(20, 36, 46, 0.14);
  --focus-ring: rgba(21, 91, 122, 0.26);

  --shell: min(100% - 32px, 1080px);
  --measure: 62ch;

  /* SF Rounded quand le système l'a (iPhone, Mac), sinon la police système. */
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #63b7db;
    --primary-pressed: #8bcce7;
    --primary-fill: #2b7896;
    --primary-fill-pressed: #246a86;
    --primary-soft: #183e4e;

    --canvas: #0f171b;
    --surface: #182126;
    --surface-raised: #202b31;
    --divider: #34434a;

    --text-primary: #f1f6f8;
    --text-secondary: #afbec5;

    --accent: #f08b71;
    --accent-text: #f08b71;
    --accent-soft: #4a2923;

    --success: #79c49f;
    --success-soft: #1f4937;

    --deep: #183e4e;
    --deep-ink: #f1f6f8;
    --deep-muted: #cce4ed;
    --deep-divider: rgba(255, 255, 255, 0.2);
    --deep-soft: rgba(255, 255, 255, 0.07);
    --deep-eyebrow: #ffc7b6;


    --shadow-card: 0 7px 15px rgba(0, 0, 0, 0.34);
    --shadow-float: 0 10px 26px rgba(0, 0, 0, 0.46);
    --focus-ring: rgba(99, 183, 219, 0.3);
  }
}

/* --------------------------------------------------------------------------
   Socle
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.95rem, 7vw, 3.1rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.16;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  overflow-wrap: break-word;
}

a {
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 0.2em;
  text-decoration-thickness: from-font;
}

a:hover {
  color: var(--primary-pressed);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-ring);
  border-radius: 6px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  min-height: var(--touch);
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--divider);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-float);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Grammaire commune : pastille, capsule, carte, bouton, surtitre
   -------------------------------------------------------------------------- */

/* La pastille d'icône de BrandSheetHeader : 46 pt, arrondi « chip ». */
.pastille {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-chip);
}

.pastille svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pastille--accent {
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* La capsule de l'app : aplat doux, liseré discret, jamais un bouton. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 13px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.3;
}

.chip svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip--accent {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.chip--success {
  background: var(--success-soft);
  color: var(--success);
}

.chip--quiet {
  background: transparent;
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 1px var(--divider);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* brandCard() : surface, liseré d'un point, arrondi 16. */
.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
}

.card--raised {
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-bottom: 6px;
}

.card > p {
  color: var(--text-secondary);
}

/* brandActionLabel(.filled) */
.button {
  min-height: var(--action-height);
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary-fill);
  color: var(--on-primary);
  border-radius: var(--radius-chip);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-fill-pressed);
  color: var(--on-primary);
}

.button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* brandActionLabel(.soft) */
.button--soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.button--soft:hover {
  background: var(--primary-soft);
  color: var(--primary-pressed);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lede {
  max-width: var(--measure);
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.62;
}

.section {
  padding-block: clamp(52px, 8vw, 92px);
}

/* Une section posée sur la surface plutôt que sur le fond de page : c'est ce
   qui donne son rythme à la page, sans changer de couleur de marque. */
.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--divider);
}

/* Un objet posé sous une grille, à la distance d'une gouttière. */
.stacked {
  margin-top: 16px;
}

.brand__tagline {
  margin-top: 8px;
}

.section__head {
  max-width: 40ch;
  margin-bottom: clamp(26px, 4vw, 40px);
}

.section__head h2 + p {
  margin-top: 12px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   En-tête et pied de page
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
}

.site-header__inner {
  min-height: 68px;
  padding-block: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}

.brand {
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.site-nav a {
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer {
  padding-block: clamp(30px, 5vw, 44px);
  border-top: 1px solid var(--divider);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.site-footer__grid {
  display: grid;
  gap: 26px;
}

.site-footer h2 {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 2px;
}

.site-footer a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.site-footer .source-note + .source-note,
.site-footer p + .source-note {
  margin-top: 8px;
}

.site-footer__legalese {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   Accueil — bandeau d'ouverture
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(36px, 6vw, 68px) clamp(48px, 7vw, 84px);
}

.hero__grid {
  display: grid;
  gap: clamp(34px, 6vw, 56px);
  align-items: center;
}

.hero h1 .accent {
  color: var(--accent-text);
}

.hero__lede {
  max-width: 46ch;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: clamp(1.03rem, 2.2vw, 1.16rem);
  line-height: 1.6;
}

.hero__chips {
  margin-top: 24px;
}

.hero__note {
  margin-top: 22px;
  padding: 15px 17px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.hero__note svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__note strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Les captures d'écran, et l'emplacement de celle qui manque
   --------------------------------------------------------------------------
   Le cadre est volontairement sobre : un rectangle arrondi, un liseré d'un
   point, une ombre. Pas d'encoche dessinée, pas de reflet, pas de main qui
   tient le téléphone — le contenu du cadre est le pixel réel de l'app, et
   c'est lui qu'on regarde.
   -------------------------------------------------------------------------- */

.shot {
  margin: 0;
}

.shot__frame {
  position: relative;
  width: min(100%, 300px);
  margin-inline: auto;
  /* Proportions d'un iPhone 17 Pro (1206 × 2622). Le cadre les garde que la
     capture soit là ou pas : installer la vraie image ne décale rien. */
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  background: var(--deep);
  border: 1px solid var(--divider);
  border-radius: var(--radius-device);
  box-shadow: var(--shadow-float);
}

.shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* L'aplat de marque qui tient la place de la capture manquante. */
.shot__pending {
  position: absolute;
  inset: 0;
  padding: 28px 24px;
  display: grid;
  align-content: center;
  gap: 14px;
  background: var(--deep);
  color: var(--deep-ink);
  text-align: center;
}

/* Le tracé de la marque, en filigrane. Sorti du flux pour ne pas devenir un
   élément de la grille : la place du texte ne dépend pas de lui. */
.shot__pending-mark {
  position: absolute;
  top: 11%;
  left: 50%;
  width: 62%;
  height: auto;
  transform: translateX(-50%);
  fill: none;
  stroke: var(--deep-ink);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.14;
}

.shot__pending p {
  position: relative;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

/* Sélecteur volontairement aussi spécifique que `.shot__pending p` : sinon la
   note secondaire hérite du gras de la phrase principale. */
.shot__pending .shot__pending-note {
  padding-top: 14px;
  border-top: 1px solid var(--deep-divider);
  color: var(--deep-muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.shot__caption {
  max-width: 40ch;
  margin: 16px auto 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-align: center;
}

.shot__caption strong {
  color: var(--text-primary);
  font-weight: 700;
}

.shot-grid {
  display: grid;
  gap: clamp(34px, 5vw, 48px);
}

/* --------------------------------------------------------------------------
   Accueil — ce que l'app fait
   -------------------------------------------------------------------------- */

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

.feature {
  display: grid;
  gap: 14px;
}

.feature h3 {
  margin: 0;
}

.feature p {
  margin-top: 6px;
  color: var(--text-secondary);
}

.feature__aside {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Accueil — ce qu'on sait, ce qu'on ignore
   -------------------------------------------------------------------------- */

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

.ledger {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.ledger li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  font-size: 0.97rem;
}

.ledger svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ledger--known svg {
  stroke: var(--success);
}

.ledger--unknown svg {
  stroke: var(--text-secondary);
}

.ledger p {
  color: var(--text-secondary);
}

.ledger strong {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
}

.figures {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.figure-tile {
  padding: 18px 20px;
  background: var(--primary-soft);
  border-radius: var(--radius-card);
}

.figure-tile b {
  display: block;
  color: var(--primary);
  font-size: 1.62rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.figure-tile span {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Accueil — l'aplat bleu des données
   -------------------------------------------------------------------------- */

.deep {
  background: var(--deep);
  color: var(--deep-ink);
}

.deep h2,
.deep h3 {
  color: var(--deep-ink);
}

.deep .eyebrow {
  color: var(--deep-eyebrow);
}

.deep .section__head p {
  color: var(--deep-muted);
}

.privacy-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.privacy-list > div {
  padding-block: 20px;
  border-top: 1px solid var(--deep-divider);
}

.privacy-list > div:last-child {
  border-bottom: 1px solid var(--deep-divider);
}

.privacy-list dt {
  font-size: 1.06rem;
  font-weight: 750;
  letter-spacing: -0.012em;
}

.privacy-list dd {
  max-width: 56ch;
  margin: 5px 0 0;
  color: var(--deep-muted);
}

.deep__footer {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.deep .button--soft {
  background: var(--deep-soft);
  color: var(--deep-ink);
  box-shadow: inset 0 0 0 1px var(--deep-divider);
}

.deep .button--soft:hover {
  background: var(--deep-soft);
  color: var(--deep-ink);
}

.deep__footer p {
  color: var(--deep-muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Accueil — la bêta, puis l'index des documents
   -------------------------------------------------------------------------- */

.beta {
  display: grid;
  gap: 20px;
}

.beta__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

/* La pastille numérotée est POSITIONNÉE, pas mise en grille : le <li> mêle un
   <strong> et du texte nu, et une grille en ferait deux éléments distincts —
   le texte se retrouverait dans la colonne de 30 px, un mot par ligne. */
.beta__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 43px;
  color: var(--text-secondary);
}

.beta__steps li::before {
  content: counter(step);
  position: absolute;
  /* 30 px de pastille contre 25,6 px d'interligne : on recentre sur la
     première ligne au lieu de l'aligner sur son sommet. */
  top: -2px;
  left: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.beta__steps strong {
  color: var(--text-primary);
}

.doc-rail {
  display: grid;
  gap: 12px;
}

.doc-rail a {
  min-height: 74px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  column-gap: 16px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  color: var(--text-primary);
  text-decoration: none;
}

.doc-rail a:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.doc-rail b {
  grid-column: 1;
  grid-row: 1;
  font-size: 1.04rem;
  font-weight: 700;
}

.doc-rail p {
  grid-column: 1;
  grid-row: 2;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 0.89rem;
  font-weight: 400;
}

.doc-rail svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Pages de lien profond (/mot-de-passe, /connexion, /verification)
   -------------------------------------------------------------------------- */

.handoff {
  min-height: 60svh;
  padding-block: clamp(44px, 8vw, 80px);
  display: grid;
  align-content: center;
  justify-items: start;
}

.handoff__card {
  width: 100%;
  max-width: 620px;
  padding: clamp(22px, 4vw, 32px);
  display: grid;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-card);
}

.handoff__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.handoff__head h1 {
  font-size: clamp(1.5rem, 5vw, 1.95rem);
}

.handoff__card p {
  color: var(--text-secondary);
}

.handoff__card ol {
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 9px;
  color: var(--text-secondary);
}

.handoff__card ol strong {
  color: var(--text-primary);
}

.handoff__aside {
  padding: 15px 17px;
  background: var(--canvas);
  border-radius: var(--radius-card);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Pages légales générées depuis les Markdown de l'app
   -------------------------------------------------------------------------- */

.legal-main {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
  padding-block: clamp(32px, 6vw, 60px) clamp(52px, 8vw, 84px);
}

.legal-intro {
  margin-bottom: 34px;
  padding-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  border-bottom: 1px solid var(--divider);
}

.back-link {
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.source-note {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.legal-content {
  font-size: 1rem;
}

.legal-content h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.9rem, 6.4vw, 2.6rem);
}

.legal-content h2 {
  margin: 2.7rem 0 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
  font-size: clamp(1.3rem, 3.4vw, 1.6rem);
}

.legal-content h1 + h2 {
  border-top: 0;
  padding-top: 0;
  margin-top: 2rem;
}

.legal-content h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.1rem;
}

.legal-content h4,
.legal-content h5,
.legal-content h6 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin: 0 0 1.1rem;
  color: var(--text-secondary);
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.35rem;
}

.legal-content li {
  margin-block: 0.4rem;
}

.legal-content li::marker {
  color: var(--accent-text);
  font-weight: 700;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.legal-content blockquote {
  margin: 1.5rem 0;
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
}

.legal-content blockquote > :last-child {
  margin-bottom: 0;
}

.legal-content blockquote p {
  color: var(--text-primary);
}

.legal-content hr {
  height: 1px;
  margin: 2.2rem 0;
  background: var(--divider);
  border: 0;
}

.legal-content code {
  padding: 0.1em 0.36em;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.legal-content pre {
  margin: 1.3rem 0;
  padding: 16px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
}

.legal-content pre code {
  padding: 0;
  background: transparent;
  color: var(--text-primary);
}

.table-scroll {
  margin: 1.4rem 0;
  overflow-x: auto;
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.legal-content th,
.legal-content td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--divider);
  color: var(--text-secondary);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.legal-content tr:last-child td {
  border-bottom: 0;
}

.legal-nav {
  width: min(100% - 32px, 760px);
  margin: 0 auto clamp(52px, 8vw, 80px);
  padding-top: 22px;
  border-top: 1px solid var(--divider);
  display: grid;
  gap: 10px;
}

.legal-nav a {
  min-height: var(--touch);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-control);
  color: var(--text-secondary);
  font-size: 0.93rem;
  text-decoration: none;
}

.legal-nav a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.legal-nav a[aria-current="page"] {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Paliers larges
   -------------------------------------------------------------------------- */

@media (min-width: 620px) {
  :root {
    --shell: min(100% - 48px, 1080px);
  }

  .feature-grid,
  .honesty-grid,
  .figures,
  .doc-rail,
  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature {
    grid-template-columns: 46px 1fr;
    align-items: start;
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .legal-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-main,
  .legal-nav {
    width: min(100% - 48px, 760px);
  }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(40px, 5vw, 72px);
  }

  .hero {
    padding-block: clamp(52px, 6vw, 84px) clamp(60px, 7vw, 96px);
  }

  /* À deux colonnes, le cadre peut reprendre toute la hauteur d'un iPhone. */
  .shot__frame {
    width: min(100%, 318px);
  }

  .honesty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

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

  .beta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .deep__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(36px, 5vw, 68px);
    align-items: start;
  }

  .deep .section__head {
    margin-bottom: 0;
  }

  .legal-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Préférences système
   -------------------------------------------------------------------------- */

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

@media (prefers-contrast: more) {
  .card,
  .doc-rail a,
  .shot__frame,
  .handoff__card {
    border-color: var(--text-secondary);
  }

  .chip--quiet {
    box-shadow: inset 0 0 0 1px var(--text-secondary);
  }
}

/* Les documents légaux s'impriment : on les lit parfois sur papier. */
@media print {
  :root {
    color-scheme: light;
    --canvas: #ffffff;
    --surface: #ffffff;
    --text-primary: #101010;
    --text-secondary: #333333;
    --divider: #c9c9c9;
    --primary: #0c3e56;
    --accent-text: #8f321e;
    --primary-soft: #eef4f7;
  }

  body {
    background: #ffffff;
    font-size: 10.5pt;
  }

  .site-header,
  .site-footer,
  .legal-intro,
  .legal-nav,
  .skip-link {
    display: none !important;
  }

  .legal-main {
    width: auto;
    padding: 0;
  }

  .legal-content h2,
  .legal-content h3 {
    break-after: avoid;
  }

  .legal-content table,
  .legal-content blockquote,
  .legal-content pre {
    break-inside: avoid;
  }
}
