/* Pages légales (mentions légales, confidentialité) : mêmes couleurs et polices que la page d'accueil.
   Bandeau noir avec le vrai logo (blanc et rouge), texte sur fond craie, colonne de lecture étroite.
   Pas de mode sombre : la page d'accueil n'en a pas. */
:root {
  --ink: #0f0e0e;
  --ink-2: #1c1a19;
  --chalk: #f3f2ef;
  --chalk-2: #e6e4df;
  --red: #d3202a;
  --red-deep: #a8141d;
  --mute-dark: #6e6a66;
  --mute-light: #a9a49e;
  --white: #ffffff;
  --display: "Anton", "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --read: 44rem; /* environ 70 caractères de Montserrat ; en rem pour que tous les blocs s'alignent */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--chalk); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Lien d'évitement */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--white); color: var(--ink); font-weight: 700; padding: 10px 14px; border-radius: 3px; text-decoration: none; }
.skip:focus { top: 12px; }

/* En-tête */
.top { background: var(--ink); color: var(--white); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 40px; width: auto; }
.back { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); text-decoration: none; white-space: nowrap; }
.back svg { width: 1.1em; height: 1.1em; flex: none; }
.back:hover { color: var(--chalk-2); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 719px) { .logo img { height: 32px; } }

/* Contenu */
.doc { padding: clamp(36px, 7vw, 88px) var(--gutter) clamp(56px, 8vw, 104px); }
.doc > * { max-width: var(--read); margin-inline: auto; }
.banner { display: inline-flex; align-items: center; background: var(--ink); color: var(--white); font-family: var(--display); font-weight: 400; font-synthesis: none; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; padding: .45em .9em .4em; border-left: 6px solid var(--red); }
h1, h2 { font-family: var(--display); font-weight: 400; font-synthesis: none; text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7.4vw, 4.4rem); line-height: .95; margin: 18px auto 12px; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.2rem); line-height: 1; margin: 2.2em auto .6em; padding-top: 1.1em; border-top: 2px solid var(--chalk-2); scroll-margin-top: 16px; }
h3 { font-family: var(--body); font-weight: 800; font-size: 1.02rem; line-height: 1.35; margin: 1.6em auto .45em; }
.updated { font-family: var(--mono); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-dark); margin-top: 0; }
.lead { font-size: 1.08rem; font-weight: 500; }
p { margin-block: 0 1em; }
.doc a { text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc a:hover { color: var(--red-deep); }
strong { font-weight: 700; }
.nowrap { white-space: nowrap; }

/* Listes à puces : le petit losange rouge de la page d'accueil */
.doc ul { list-style: none; padding: 0; margin-block: 0 1.1em; display: grid; gap: 8px; }
.doc ul > li { position: relative; padding-left: 1.3em; }
.doc ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }

/* Sommaire */
.toc { background: var(--white); border-left: 4px solid var(--red); border-radius: 0 4px 4px 0; padding: 18px 20px 14px; margin-block: 28px 0; box-shadow: 0 1px 0 var(--chalk-2); }
.toc-title { font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-dark); margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 2px; }
.toc li::marker { font-family: var(--mono); font-size: .8em; color: var(--red); }
.toc li { font-size: .95rem; line-height: 1.35; }
.toc a { display: block; padding-block: 6px; text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }

/* Fiches (identité, hébergeur) : libellé au-dessus, valeur dessous */
.facts { margin: 0 auto 1.2em; background: var(--white); border-radius: 4px; padding: 6px 20px; box-shadow: 0 1px 0 var(--chalk-2); }
.facts > div { padding-block: 11px; border-bottom: 1px solid var(--chalk-2); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-dark); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Cartes (prestataires, durées, finalités) */
.doc ul.cards { gap: 10px; }
.doc ul.cards > li { padding: 14px 18px; background: var(--white); border-radius: 4px; box-shadow: 0 1px 0 var(--chalk-2); }
.doc ul.cards > li::before { content: none; }
.cards .name { display: block; font-weight: 800; }
.cards .where { display: block; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red-deep); margin: 2px 0 4px; }
.cards .basis { display: block; margin-top: 6px; font-size: .9rem; color: var(--mute-dark); }
.cards p { margin: 0; }

.note { font-size: .92rem; color: var(--mute-dark); }

/* Pied de page */
.foot { background: var(--ink); color: var(--white); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot .wrap { display: grid; gap: 14px; }
.foot .logo img { height: 48px; }
.foot p { margin: 0; font-size: .95rem; color: var(--mute-light); }
.foot p a { color: var(--white); }
.foot .legal { display: flex; flex-wrap: wrap; gap: 0 24px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 10px; font-family: var(--mono); font-size: .72rem; color: var(--mute-light); letter-spacing: .04em; }
.foot .legal a, .foot .legal span { display: inline-flex; align-items: center; min-height: 44px; }
.foot .legal a { color: inherit; }
.foot .legal a[aria-current="page"] { color: var(--white); text-decoration: none; }

@media print {
  .top, .skip, .toc, .foot { display: none; }
  body { background: #fff; font-size: 11pt; }
  .doc { padding: 0; }
  .facts, .doc ul.cards > li { box-shadow: none; border: 1px solid #ccc; }
  .doc a[href^="http"]::after, .doc a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
