/* ====================================================================
   PAGES LEGALES - feuille partagee
   --------------------------------------------------------------------
   Mentions legales, politique de confidentialite et CGV.

   Les jetons sont repris a l'identique de index.html : meme beige, meme
   encre navy, meme police. L'identite visuelle du site est verrouillee
   (CLAUDE.md §6) et n'est pas retouchee ici ; ces pages s'y conforment
   sans qu'aucune regle de index.html ne soit modifiee ou dupliquee.

   Chemins relatifs a assets/ : fonts/... et non assets/fonts/...
   ==================================================================== */

/* ---- Police auto-hebergee (voir le commentaire dans index.html) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink:        #0f056b;
  --ink-70:     rgba(15, 5, 107, 0.70);
  --ink-55:     rgba(15, 5, 107, 0.55);
  --line:       rgba(15, 5, 107, 0.14);
  --wash:       rgba(15, 5, 107, 0.04);
  --beige:      #FDF5E6;
  --panel:      #FEFBF4;
  --blue-sky:   #93C5FD;
  --page-x:     clamp(1.25rem, 0.5rem + 5vw, 7rem);
  --measure:    72ch;
  --ease-cine:  cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--beige);
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--beige);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
}

a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* ---------------------------------------------------- En-tete */
.doc-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--page-x);
  border-bottom: 1px solid var(--line);
}
.doc-home {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.doc-home img { display: block; width: 28px; height: 28px; }
.doc-back {
  font-size: 0.88rem;
  color: var(--ink-70);
  text-decoration: none;
  transition: color 0.25s var(--ease-cine);
}
.doc-back:hover { color: var(--ink); }

/* ---------------------------------------------------- Corps */
.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--page-x) clamp(3rem, 7vw, 6rem);
}
.doc-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 0.9rem;
}
.doc h1 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.doc-updated {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-55);
}
.doc-intro {
  margin-top: 1.8rem;
  font-size: 1.1rem;
  color: var(--ink-70);
}
.doc h2 {
  margin-top: 3rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.doc h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.doc p { margin-top: 0.9rem; color: var(--ink-70); }
.doc p strong, .doc li strong { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { margin: 0.9rem 0 0 1.2rem; color: var(--ink-70); }
.doc li { margin-top: 0.45rem; padding-left: 0.25rem; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* Bloc d'identite : un couple libelle / valeur par ligne, lisible en
   colonne unique des que la largeur manque. */
.doc-dl { margin-top: 1.4rem; display: grid; grid-template-columns: minmax(11rem, auto) 1fr; gap: 0.55rem 1.5rem; }
.doc-dl dt { font-weight: 600; color: var(--ink); }
.doc-dl dd { color: var(--ink-70); }

/* Tableau des traitements. Le wrapper porte le defilement : sans lui, un
   tableau de cinq colonnes force un scroll horizontal de toute la page
   sur telephone. */
.doc-table-wrap { margin-top: 1.4rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 34rem; }
.doc-table th, .doc-table td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-table thead th { font-weight: 600; color: var(--ink); background: var(--wash); white-space: nowrap; }
.doc-table tbody td { color: var(--ink-70); }
.doc-table tbody tr:last-child th, .doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table tbody th { font-weight: 600; color: var(--ink); }

/* Encart de mise en garde ou d'information saillante. */
.doc-callout {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 10px;
}
.doc-callout p { margin-top: 0; }
.doc-callout p + p { margin-top: 0.7rem; }

/* Marqueur des donnees manquantes. Volontairement criard : ces pages ne
   doivent pas pouvoir partir en production avec un marqueur restant. */
mark.todo {
  background: #FFD54A;
  color: #0f056b;
  font-weight: 700;
  padding: 0.05em 0.4em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------------------------------------------------- Pied */
.doc-foot {
  border-top: 1px solid var(--line);
  padding: 1.8rem var(--page-x);
  font-size: 0.85rem;
  color: var(--ink-55);
}
.doc-foot__inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.doc-foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.doc-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.doc-foot a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .doc-dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .doc-dl dd { margin-bottom: 0.7rem; }
}

/* --------------------------------------------------------------------
   Tableau des traitements sur ecran etroit.
   Le defilement horizontal masquait trois colonnes sur cinq, dont
   « Destinataire » et « Conservation » qui sont justement l'essentiel
   d'une information RGPD. Chaque ligne devient donc un bloc empile, et
   l'intitule de colonne est reporte devant chaque cellule via
   data-label. L'en-tete visuel est masque pour l'oeil mais conserve
   pour les technologies d'assistance.
   -------------------------------------------------------------------- */
@media (max-width: 720px) {
  .doc-table-wrap { overflow-x: visible; border: 0; border-radius: 0; background: transparent; }
  .doc-table { display: block; min-width: 0; font-size: 0.92rem; }
  .doc-table thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .doc-table tbody, .doc-table tr, .doc-table th, .doc-table td { display: block; width: 100%; }
  .doc-table tbody tr {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
  }
  .doc-table tbody tr:last-child { margin-bottom: 0; }
  .doc-table tbody th {
    padding: 0 0 0.7rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .doc-table tbody td { padding: 0.75rem 0 0; border-bottom: 0; }
  .doc-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-55);
  }
}
