/* Feuille partagée par les pages légales : mentions-legales.html, confidentialite.html,
   cgu.html, cgu-partenaires.html.

   Pourquoi un fichier séparé alors que index.html porte son style en ligne : index.html est une
   page unique, les pages légales sont quatre. Recopier le même bloc de style quatre fois garantit
   qu'il divergera à la première retouche. Toujours pas de build : une feuille statique de plus
   dans public/, c'est tout.

   Les valeurs viennent de brand-assets/theplacetobe/DESIGN.md, ne rien inventer ici. Le gris
   tertiaire est #8A8A93 et non #6E6E77 : la règle de contraste du 2026-09-21 a relevé cette
   valeur, et une page légale est exactement le genre de texte qu'il faut pouvoir lire en entier. */

:root {
  --canvas: #08080a;
  --surface: #0b0b0e;
  --card: #151518;
  --elevated: #1c1c20;
  --border: #28282e;
  --text: #ffffff;
  --muted: #9e9ea7;
  --ghost: #8a8a93;
  --amber: #ffaa00;
  --orange: #ff5500;
  --magenta: #e1007a;
  --sunset: linear-gradient(135deg, #ffaa00 0%, #ff5500 50%, #e1007a 100%);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* Une ancre de sommaire qui atterrit sous l'en-tête collant plutôt que derrière. */
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family:
    "Hanken Grotesk",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Outfit", system-ui, sans-serif;
  margin: 0;
  text-wrap: balance;
}
p,
ul,
ol {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .wrap {
    padding-inline: 2rem;
  }
}

/* ---- En-tête, identique à celui de la page d'accueil ---- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 14, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand img {
  height: 34px;
  width: auto;
}
.brand span {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
/* Nom de la marque, comme sur le logo officiel : « The » et « Tobe » presque blancs, teintés
   chaud, « Place » dans le dégradé sunset. Couleur pleine pour les deux mots clairs : un dégradé
   imbriqué dans un autre texte découpé s'affiche mal sur Safari. */
.wordmark {
  color: #fff1e8;
}
.wordmark b {
  font-weight: 800;
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.header-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.header-link:hover {
  color: var(--text);
}

/* ---- Corps du document ----
   Largeur de lecture bien plus étroite que la page d'accueil : un texte juridique se lit en
   continu, une ligne de 110 caractères fait perdre le fil à chaque retour. */
.doc {
  max-width: 74ch;
  margin: 0 auto;
  padding-block: 2.5rem 4rem;
}
@media (min-width: 900px) {
  .doc {
    padding-block: 3.5rem 5rem;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.7rem;
}
h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
@media (min-width: 640px) {
  h1 {
    font-size: 40px;
  }
}
.doc-meta {
  color: var(--ghost);
  font-size: 14px;
  margin-top: 0.9rem;
}
.lede {
  color: var(--muted);
  margin-top: 1.1rem;
}

h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  h2 {
    font-size: 24px;
  }
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 1.9rem;
  color: var(--text);
}
.doc p,
.doc ul,
.doc ol {
  margin-top: 1rem;
  color: var(--muted);
}
.doc h2 + p,
.doc h3 + p {
  margin-top: 0.75rem;
}
.doc b,
.doc strong {
  color: var(--text);
  font-weight: 600;
}
.doc ul,
.doc ol {
  padding-left: 1.3rem;
}
.doc li + li {
  margin-top: 0.5rem;
}
.doc li::marker {
  color: var(--orange);
}
.doc a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}
.doc a:hover {
  text-decoration-color: var(--text);
}

/* ---- Sommaire ---- */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  margin-top: 2.25rem;
}
.toc h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ghost);
  font-family: "Hanken Grotesk", sans-serif;
  margin: 0;
  padding: 0;
  border: 0;
}
.toc ol {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
  font-size: 15px;
}
.toc li + li {
  margin-top: 0.35rem;
}
.toc a {
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
}

/* ---- Encarts ---- */
.callout {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  margin-top: 1.5rem;
}
.callout p {
  margin-top: 0;
  font-size: 15.5px;
}
.callout p + p {
  margin-top: 0.7rem;
}
.callout .callout-title {
  color: var(--text);
  font-weight: 600;
}

/* Marqueur d'information manquante. Volontairement criard : ces mentions ne doivent pas pouvoir
   partir en production sans qu'on les voie. La liste complète est dans apps/landing/README.md. */
.todo {
  display: inline-block;
  background: rgba(255, 170, 0, 0.16);
  border: 1px dashed var(--amber);
  border-radius: 0.4rem;
  padding: 0 0.4rem;
  color: var(--amber);
  font-size: 0.92em;
  font-weight: 600;
}

/* ---- Tableaux ----
   Un tableau de traitements est large par nature. Il défile horizontalement dans son propre
   conteneur, le corps de la page ne défile jamais de côté. */
.table-scroll {
  overflow-x: auto;
  margin-top: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: 14.5px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--elevated);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
td {
  color: var(--muted);
}
tbody tr:last-child td {
  border-bottom: 0;
}

/* ---- Bloc de contact en fin de document ---- */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.4rem;
  margin-top: 2.5rem;
}
.contact-card p {
  margin-top: 0.5rem;
}
.contact-card p:first-child {
  margin-top: 0;
}

/* ---- Navigation entre documents ---- */
.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.doc-nav a {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.5rem 0.9rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.doc-nav a:hover {
  color: var(--text);
  border-color: var(--ghost);
}
.doc-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--orange);
}

footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem 3rem;
  color: var(--ghost);
  font-size: 13.5px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Une page légale finit souvent imprimée ou classée en PDF. */
@media print {
  header,
  .doc-nav,
  footer,
  .toc {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .doc {
    max-width: none;
    padding: 0;
  }
  .doc p,
  .doc ul,
  .doc ol,
  td {
    color: #222;
  }
  .doc b,
  .doc strong,
  th {
    color: #000;
  }
  h2 {
    page-break-after: avoid;
  }
  .callout,
  .contact-card,
  .table-scroll {
    border: 1px solid #999;
  }
  .doc a {
    color: #000;
  }
}
