/* Feuille commune aux pages de texte : confidentialité, conditions.
   Séparée de la page d'accueil, qui porte son propre CSS — ces pages-ci
   n'ont besoin que de typographie et de rythme vertical. */

@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("fonts/WorkSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("fonts/WorkSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --creme:       #FAF7EC;
  --creme-2:     #F1ECDB;
  --encre:       #1C1E12;
  --texte-2:     #5F6152;
  --bord:        #D7D3BE;
  --olive:       #5E6B2E;
  --olive-fonce: #3F4A18;
  --lime:        #C3D94F;
  --degrade:     linear-gradient(135deg, #41501A, #6E8034);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --creme:   #14170D;
    --creme-2: #1E2214;
    --encre:   #ECEADC;
    --texte-2: #A8AA96;
    --bord:    #3A4029;
    --olive:   #C3D94F;
  }
}

:root[data-theme="dark"] {
  --creme:   #14170D;
  --creme-2: #1E2214;
  --encre:   #ECEADC;
  --texte-2: #A8AA96;
  --bord:    #3A4029;
  --olive:   #C3D94F;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }

body {
  background: var(--creme);
  color: var(--encre);
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Même grain que l'accueil : les pages de texte restent dans la marque. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
}

.entete {
  background: var(--degrade);
  color: #FAF7EC;
  padding-block: 28px 44px;
}

.enveloppe {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 24px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Clash Display", sans-serif;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  color: inherit;
}

.marque svg { display: block; }

h1 {
  font-family: "Clash Display", "Work Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(31px, 5.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.018em;
  text-wrap: balance;
  margin: 30px 0 10px;
}

.maj { color: rgba(250, 247, 236, .68); font-size: 14px; }

main { padding-block: clamp(40px, 6vw, 68px) clamp(56px, 8vw, 96px); }

h2 {
  font-family: "Clash Display", "Work Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 44px 0 12px;
  text-wrap: balance;
}

h2:first-of-type { margin-top: 0; }

h3 {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 26px 0 6px;
}

p, li { text-wrap: pretty; }
p { margin: 0 0 14px; }

ul { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 7px; }

a { color: var(--olive); text-underline-offset: 3px; }

strong { font-weight: 600; }

/* Encadré d'avertissement : ce qui ne doit pas se lire en diagonale. */
.avis {
  background: var(--creme-2);
  border-left: 3px solid var(--lime);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 15.5px;
  color: var(--texte-2);
}

.avis p:last-child { margin-bottom: 0; }

/* Tableau des destinataires : la seule donnée vraiment tabulaire de ces
   pages. Il défile seul à l'étroit plutôt que d'élargir le corps de page. */
.tableau { overflow-x: auto; margin: 0 0 20px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

th, td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--bord);
  vertical-align: top;
}

th { font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--texte-2); }

.pied {
  background: var(--olive-fonce);
  color: rgba(250, 247, 236, .72);
  padding-block: 34px;
  font-size: 14.5px;
}

.pied .enveloppe { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
.pied a { color: var(--lime); }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
