/* Toolkit, les pages légales (conditions, confidentialité) : le ciel en blocs des bannières du bot
   en tête, un corps clair qui se lit, des aplats nets. Le reste du site garde poulpi.css.
   Outfit : © The Outfit Project Authors, licence SIL Open Font License 1.1. Hébergée ici : aucune requête vers Google. */
@font-face { font-family: Outfit; src: url(/fonts/Outfit-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Outfit; src: url(/fonts/Outfit-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Outfit; src: url(/fonts/Outfit-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  /* Le ciel des bannières, du plus foncé au plus clair */
  --ciel-1: #2848a8; --ciel-2: #2b4fbf; --ciel-3: #2e55cd; --ciel-4: #3460e6; --ciel-5: #4069e6; --ciel-6: #4a72e0;
  --nuit: #141d52;      /* l'ombre du logo, le texte, le pied */
  --page: #eef2fb;      /* le fond du corps */
  --carte: #fff;
  --trait: #d3dbf1;     /* les bordures fines */
  --doux: #46507a;      /* le texte secondaire (7,6:1 sur blanc) */
  --lien: #2848a8;      /* 8,3:1 sur blanc */
  --pastille: #e4ebfc;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--page); color: var(--nuit);
  font: 500 1.0625rem/1.65 Outfit, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lien); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
code { padding: 1px 6px; background: var(--pastille); color: var(--nuit); border-radius: 6px; font: 700 .88em/1.3 ui-monospace, Consolas, Menlo, monospace; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:focus-visible { outline: 3px solid var(--nuit); outline-offset: 3px; }
.ciel :focus-visible, .pied :focus-visible { outline-color: #fff; }

.evitement { position: absolute; left: 12px; top: -100px; z-index: 10; padding: 10px 16px; background: #fff; color: var(--nuit); border-radius: 8px; font-weight: 700; }
.evitement:focus { top: 12px; }
.large { width: min(1180px, 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 760px) { .large { padding-inline: 32px; } }

/* ─── Le haut : le ciel en blocs (8 × 8, images/toolkit-ciel.svg) ─── */
.ciel { background: var(--ciel-3) url(/images/toolkit-ciel.svg) center / 100% 100% no-repeat; color: #fff; }
.barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 16px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.45rem; font-weight: 800; text-decoration: none; }
.marque img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.barre-liens { display: flex; flex-wrap: wrap; gap: 10px; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px;
  background: #fff; color: var(--nuit); border-radius: 10px; font-weight: 800; line-height: 1.15; text-align: center; text-decoration: none;
}
.bouton:hover { background: var(--pastille); }
.bouton-nuit { background: var(--nuit); color: #fff; }
.bouton-nuit:hover { background: #0b1238; }
@media (max-width: 559px) {
  .barre-liens { width: 100%; }
  .barre-liens .bouton { flex: 1 1 0; padding-inline: 8px; font-size: .95rem; }
}

.titre { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; padding-block: 28px 56px; }
.surtitre { font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .95; }
.titre h1 { margin-top: 10px; font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); line-height: 1.02; text-shadow: 3px 3px 0 rgba(20, 29, 82, .45); }
.maj { margin-top: 14px; font-weight: 700; }
.onglets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.onglets a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(20, 29, 82, .38); color: #fff; font-weight: 700; text-decoration: none; }
.onglets a:hover { background: rgba(20, 29, 82, .6); }
.onglets a[aria-current="page"] { background: #fff; color: var(--nuit); }
.logo-geant { width: clamp(96px, 22vw, 250px); filter: drop-shadow(5px 5px 0 rgba(20, 29, 82, .45)); }
@media (max-width: 559px) {
  .titre { grid-template-columns: 1fr; padding-block: 12px 40px; }
  .logo-geant { display: none; }
}

/* ─── Le corps ─── */
.grille { display: grid; gap: 28px; padding-block: 32px 56px; }
.sommaire { padding: 18px 20px; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; }
.sommaire-titre { font-size: 1.15rem; font-weight: 800; }
.sommaire ol { margin: 8px 0 0; padding: 0; list-style: none; }
.sommaire a { display: block; padding-block: 6px; color: var(--nuit); font-weight: 700; line-height: 1.3; text-decoration: none; }
.sommaire a:hover { color: var(--lien); text-decoration: underline; }
@media (min-width: 980px) {
  .grille { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
  .sommaire { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
}

.doc { min-width: 0; }
.resume { padding: 20px 22px; background: var(--nuit); color: #fff; border-radius: 14px; }
.resume a { color: #fff; font-weight: 700; }
.resume code { background: rgba(255, 255, 255, .16); color: #fff; }
.resume ul { margin: 10px 0 0; padding-left: 1.2em; }
.resume li + li { margin-top: .35em; }
.bloc { margin-top: 44px; scroll-margin-top: 16px; }
.bloc > h2 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
.bloc > h2 .num { flex: none; display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding-inline: .3em; border-radius: 8px; background: var(--ciel-4); color: #fff; font-size: .8em; }
.bloc-corps { margin-top: 14px; padding: 20px; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; overflow-wrap: break-word; }
@media (min-width: 980px) { .bloc-corps { padding: 24px 28px; } }
.bloc-corps > :first-child { margin-top: 0; }
.doc p, .doc ul, .doc dl { margin-top: .8em; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: .5em; }
.doc li::marker { color: var(--ciel-4); }
.bloc h3 { margin-top: 1.4em; font-size: 1.2rem; }

/* Une donnée gardée : quoi, pourquoi, combien de temps, qui la voit, comment l'effacer */
.fiche { margin-top: 18px; padding: 16px 18px; background: var(--page); border-radius: 12px; border-left: 5px solid var(--ciel-4); }
.fiche h3 { margin-top: 0; }
.fiche > p { margin-top: .4em; }
.fiche dl { display: grid; gap: 4px; }
.fiche dt { margin-top: 8px; color: var(--ciel-1); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.fiche dd { margin: 0; }
@media (min-width: 760px) {
  .fiche dl { grid-template-columns: 170px minmax(0, 1fr); gap: 8px 18px; }
  .fiche dt { margin-top: .32em; }
}
.note { margin-top: 1em; padding: 12px 14px; background: #fff7e0; border-radius: 10px; color: #4a3a00; }

/* ─── Le pied ─── */
.pied { background: var(--nuit); color: #dfe5fb; font-size: 1rem; }
.pied a { color: #fff; }
.pied-grille { display: grid; gap: 20px; padding-block: 32px 40px; }
.pied-marque { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 1.4rem; font-weight: 800; text-decoration: none; }
.pied-marque img { width: 40px; height: 40px; border-radius: 10px; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.pied-liens a { display: inline-block; padding-block: 6px; }
.pied-mentions { display: grid; gap: 6px; max-width: 56em; font-size: .94rem; }
.pied h2 { font-size: 1rem; color: #fff; }
.pied-ciel { height: 14px; background: url(/images/toolkit-ciel.svg) center / 100% 100% no-repeat; }
/* Une fiche à la longue liste : les intitulés au-dessus, sur toute la largeur */
@media (min-width: 760px) { .fiche-pile dl { grid-template-columns: minmax(0, 1fr); gap: 4px; } .fiche-pile dt { margin-top: 10px; } }
.fiche dd > ul { margin-top: .5em; }
