/*
  Feuille de style COMMUNE aux pages légales publiques (confidentialité, CGU).

  Servie par notre propre serveur, comme les pages : aucune ressource tierce,
  aucune police distante — une politique de confidentialité qui appellerait un
  CDN pour s'afficher se contredirait elle-même.
*/
  :root {
    --accent: #DA3743;
    --text: #2B2B2B;
    --muted: #6B6B6B;
    --border: #E6E6E6;
    --surface: #F7F6F5;
    --bg: #FFFFFF;
  }

  * { box-sizing: border-box; }

  html { -webkit-text-size-adjust: 100%; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
  }

  .wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem 5rem; }

  header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    padding: 3.5rem 0 2rem;
  }

  .brand { margin: 0 0 1.75rem; }

  /* Repli : le nom en toutes lettres, si le navigateur ne sait pas masquer. */
  .brand-name {
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .brand-mark { display: none; }

  /*
    Le vrai wordmark. Le PNG est un MASQUE : ses pixels sont blancs sur fond
    transparent, exactement comme l'attend le `tintColor` de l'app. On le
    recolore donc de la même façon ici — `mask` + `background-color` — plutôt
    que de fabriquer une seconde image rouge qui divergerait un jour.
  */
  @supports ((-webkit-mask-image: url("subsah-wordmark.png")) or (mask-image: url("subsah-wordmark.png"))) {
    .brand-mark {
      background-color: var(--accent);
      display: block;
      height: 87px; /* 190 × 456/995, le ratio du fichier */
      -webkit-mask: url("subsah-wordmark.png") no-repeat center / contain;
      mask: url("subsah-wordmark.png") no-repeat center / contain;
      width: 190px;
    }

    /* Gardé pour les lecteurs d'écran, retiré de l'affichage. */
    .brand-name {
      clip-path: inset(50%);
      height: 1px;
      overflow: hidden;
      position: absolute;
      white-space: nowrap;
      width: 1px;
    }
  }

  h1 { font-size: 2.1rem; font-weight: 800; line-height: 1.2; margin: 0 0 0.75rem; }

  .updated { color: var(--muted); font-size: 0.95rem; margin: 0; }

  h2 {
    border-top: 1px solid var(--border);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 3rem 0 1rem;
    padding-top: 2rem;
  }

  h3 { font-size: 1.05rem; font-weight: 700; margin: 2rem 0 0.5rem; }

  p, li { margin: 0 0 1rem; }

  ul { padding-left: 1.25rem; }

  li { margin-bottom: 0.6rem; }

  a { color: var(--accent); }

  strong { font-weight: 650; }

  .lead { color: var(--muted); font-size: 1.05rem; }

  /* Encadré : ce qu'il faut retenir d'une section. */
  .note {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem;
  }

  .note p:last-child { margin-bottom: 0; }

  /* À COMPLÉTER — impossible à rater. */
  .todo {
    background: #FFF3B0;
    border-radius: 3px;
    font-weight: 650;
    padding: 0.1em 0.35em;
  }

  table { border-collapse: collapse; font-size: 0.95rem; margin: 1.5rem 0; width: 100%; }

  th, td { border-bottom: 1px solid var(--border); padding: 0.7rem 0.6rem; text-align: left; vertical-align: top; }

  th { font-weight: 700; }

  td:first-child, th:first-child { padding-left: 0; }

  footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
  }

  @media (max-width: 32rem) {
    body { font-size: 16px; }
    h1 { font-size: 1.7rem; }
    table, thead, tbody, th, td, tr { display: block; }
    thead { display: none; }
    td { border: none; padding: 0.15rem 0; }
    tr { border-bottom: 1px solid var(--border); display: block; padding: 0.8rem 0; }
    td:first-child { font-weight: 700; }
  }
