/* Pages d'information du site (conditions, confidentialité, abonnement,
   suppression de compte, aide) : mêmes couleurs que la page d'accueil.
   Fichier séparé, chargé par <link> : la CSP du site autorise les feuilles de
   style servies par le site. Pas d'orange foncé : titres en orange vif, liens
   en rouge bordeaux (9:1 sur blanc). */
:root {
  color-scheme: light;
  --orange: #f7941d;
  --title: #f7941d;
  --link: #8c1c2b;
  --peach: #fbe3d4;
  --canvas: #fff8f0;
  --text: #4f453c;
  --muted: #6b6158;
  --round: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
/* Page en colonne : le pied de page reste collé en bas, même sur une page courte */
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; font: 16px/1.7 var(--sans); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: var(--link); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--title); outline-offset: 3px; border-radius: 6px; }

/* Bandeau orange avec le retour */
.site-top { position: relative; background: var(--orange); color: #fff; padding: 18px 20px 70px; }
.site-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 50' preserveAspectRatio='none'%3E%3Cpath d='M0 50V32c12-20 34-20 44-5 8-21 40-23 50-3 10-16 36-14 44 3 10-18 40-20 50 0 6-5 10-5 12-3v26z' fill='%23ffffff'/%3E%3C/svg%3E") center bottom / 400px 50px repeat-x;
}
.site-top .inner { max-width: 48rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px 0 14px; border-radius: 999px;
  background: #fff; color: var(--title); font-family: var(--round); font-weight: 800; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 5px 0 rgba(168, 80, 4, .28); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.back:hover { transform: translateX(-3px) scale(1.03); }
.back svg { flex: none; }
.site-top .word { font-family: var(--round); font-weight: 800; font-size: 1.7rem; letter-spacing: -.04em; color: #fff; text-decoration: none; }
.site-top :focus-visible { outline-color: #fff; }

/* Le texte */
.doc { flex: 1; width: 100%; max-width: 48rem; margin: 0 auto; padding: 4px 20px 56px; box-sizing: border-box; }
.doc h1 { margin: 0 0 6px; font-family: var(--round); font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; color: var(--title); }
.doc h2 { position: relative; margin: 36px 0 10px; padding-left: 16px; font-family: var(--round); font-weight: 800; font-size: 1.25rem; line-height: 1.3; color: var(--title); }
.doc h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 5px; background: var(--orange); }
.doc h3 { margin: 24px 0 6px; font-size: 1.05rem; color: var(--text); }
.doc p, .doc li { max-width: 42rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--orange); }
.maj { display: inline-block; margin: 6px 0 22px; padding: 4px 12px; border-radius: 999px; background: var(--canvas); color: var(--muted); font-size: .875rem; }
.todo { background: #fcefd9; color: #a85004; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; font-size: .95rem; border: 2px solid var(--peach); border-radius: 16px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--peach); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--canvas); color: var(--text); font-weight: 700; }
.doc .table-scroll { overflow-x: auto; }

/* Pied de page : le même que l'accueil (public/accueil.html, .foot), liens
   dans le même ordre, puis une ligne plus petite (copyright, éditeur, contact). */
.site-foot { background: #fff; border-top: 1px solid #f3e6d8; padding: 14px 16px 20px; display: grid; justify-items: center; gap: 2px; font-size: .85rem; color: var(--text); }
.site-foot .legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
.site-foot a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); font-weight: 600; text-decoration: none; transition: color .2s; }
.site-foot a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.site-foot a[aria-current="page"] { color: var(--link); }
.site-foot .meta { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 8px; font-size: .78rem; }
.site-foot .meta a { font-weight: 500; min-height: 32px; }
.site-foot .dot { color: #d8c8b8; }
@media (max-width: 599px) {
  /* Téléphone : deux colonnes nettes, comme sur l'accueil */
  .site-foot .legal { width: 100%; }
  .site-foot .legal ul { display: grid; grid-template-columns: repeat(2, 1fr); justify-items: center; gap: 0 12px; text-align: center; }
  .site-foot a { min-height: 44px; }
  .site-foot .meta a { min-height: 36px; }
  .site-foot .legal li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 359px) {
  .site-foot { font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
  .back { transition: none; }
}
