/* Feuille commune aux quatre pages legales.
   Meme identite que l'outil - Fraunces et Manrope, vert profond - pour qu'un
   visiteur qui passe de la presentation aux CGV reste chez le meme editeur.
   Texte serre, mesure courte : ce sont des pages qu'on lit en entier. */

:root {
  --ink: #16331a;
  --ink2: #4a5c48;
  --muted: #657362;
  --bg: #ffffff;
  --bg2: #f5f9f0;
  --leaf: #22a34a;
  --leaf-d: #188138;
  --leaf-l: #eafaef;
  --line: #d3e2c6;
  --line2: #b5caa4;
  --amber-bg: #fdf6e3;
  --amber-line: #e9d492;
  --amber-ink: #7a5f14;

  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6efe6; --ink2: #b9c9b7; --muted: #8d9c8b;
    --bg: #11170f; --bg2: #161d14; --leaf: #58c97c; --leaf-d: #7fd99c;
    --leaf-l: #16291c; --line: #2a3626; --line2: #3b4a35;
    --amber-bg: #251f10; --amber-line: #4a3d1a; --amber-ink: #d7bd73;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--texte);
  font-size: 16px;
  line-height: 1.62;
  -webkit-text-size-adjust: 100%;
}

/* --- bandeau --- */
.bandeau {
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  padding-block: 14px;
}
.bandeau .dedans {
  max-width: 760px; margin: 0 auto; padding-inline: 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.marque {
  font-family: var(--titre); font-weight: 700; font-size: 19px;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.marque img {
  height: 42px; width: auto; display: block;
}
/* Le logo est vert fonce : pose tel quel sur le fond sombre, il disparait.
   On l'eclaircit plutot que d'en fabriquer une seconde version - deux
   fichiers a tenir a jour finissent par diverger. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .marque img { filter: brightness(1.35) saturate(1.1); }
}
.bandeau nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.bandeau nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
}
.bandeau nav a:hover, .bandeau nav a:focus-visible { color: var(--leaf-d); }
.bandeau nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* --- corps --- */
main { max-width: 760px; margin: 0 auto; padding-inline: 20px; padding-block: 40px 70px; }

h1 {
  font-family: var(--titre); font-weight: 700;
  font-size: clamp(27px, 5vw, 36px); line-height: 1.14;
  margin: 0 0 8px; letter-spacing: -.015em; text-wrap: balance;
}
.maj { color: var(--muted); font-size: 14.5px; margin: 0 0 32px; }

h2 {
  font-family: var(--titre); font-weight: 600; font-size: 21px;
  margin: 38px 0 8px; padding-top: 22px; border-top: 2px solid var(--ink);
  text-wrap: balance;
}
h2 .art {
  font-family: var(--texte); font-size: 13px; font-weight: 700;
  color: var(--leaf-d); margin-right: 9px;
}
h3 { font-family: var(--titre); font-size: 17px; font-weight: 600; margin: 22px 0 4px; }

p { margin: 10px 0; }
strong, b { font-weight: 700; }

ul, ol { padding-left: 22px; margin: 10px 0; }
li { margin-bottom: 6px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
th, td {
  text-align: left; padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
th {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
td:first-child { font-weight: 600; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.cadre {
  background: var(--leaf-l); border-left: 4px solid var(--leaf);
  padding: 13px 16px; margin: 16px 0; border-radius: 0 6px 6px 0;
}
.cadre > :first-child { margin-top: 0; }
.cadre > :last-child { margin-bottom: 0; }

.attention {
  background: var(--amber-bg); border-left: 4px solid var(--amber-line);
  color: var(--ink); padding: 13px 16px; margin: 16px 0; border-radius: 0 6px 6px 0;
}

a { color: var(--leaf-d); }

/* --- pied --- */
footer {
  border-top: 1px solid var(--line); background: var(--bg2);
  padding-block: 26px; margin-top: 50px;
}
footer .dedans {
  max-width: 760px; margin: 0 auto; padding-inline: 20px;
  color: var(--muted); font-size: 14px;
}
footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--leaf-d); }

@media print {
  .bandeau nav, footer nav { display: none; }
  body { background: #fff; color: #000; font-size: 11.5px; }
  main { padding-block: 0; max-width: none; }
  h2 { break-after: avoid; }
  table, .cadre, .attention { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
