/* Bonpli — secondary pages (mentions légales, confidentialité, conditions, 404).
   Same tokens, fonts, header and footer as the J3 home page (forme R5). No JS, no third-party resource.
   Font URLs are relative to this stylesheet (served at /pages.css, so they resolve to /fonts/...). */


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; height: 100%; }
body { margin: 0; height: 100%; background: var(--creme); color: var(--encre); font-family: var(--sans); font-size: 1.0625rem; font-weight: 450; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.page { overflow-x: clip; min-height: 100%; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--brique); outline-offset: 3px; border-radius: var(--r1); }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; left: -999px; top: 0; z-index: 30; background: var(--encre); color: var(--papier); padding: .75rem 1rem; font-weight: 600; border-radius: var(--r1); }
.skip:focus { left: .75rem; top: .75rem; }
.boite { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.nw { white-space: nowrap; }

/* ---------- Lettering & header (as R5) ---------- */
.mot { font-family: var(--serif); font-weight: var(--logo-graisse); font-synthesis: none; font-variation-settings: var(--logo-variation); font-size: var(--logo-taille); letter-spacing: var(--logo-chasse); text-transform: var(--logo-casse); line-height: 1; color: var(--encre); }
.mot i { font-style: var(--logo-pli-style); font-weight: var(--logo-pli-graisse); color: var(--brique); letter-spacing: var(--logo-pli-chasse); animation: var(--logo-entree); }
.barre { position: sticky; top: 0; z-index: 20; background: rgb(var(--creme-rgb) / .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--ligne-2); }
.barre .boite { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 3.75rem; }
.logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; padding-right: .5rem; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav-retour { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; border-radius: var(--r1); font-weight: 550; font-size: .9375rem; color: var(--encre-2); text-decoration: none; }
.nav-retour:hover { color: var(--encre); text-decoration: underline; }
.nav-prix { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--ligne); border-radius: var(--r1); font-weight: 600; font-size: .9375rem; text-decoration: none; background: var(--papier); }
.nav-prix:hover { background: var(--encre); color: var(--papier); }

/* ---------- Page head ---------- */
.tete { position: relative; padding: 2rem 0 1.75rem; }
.tete::before { content: ""; position: absolute; inset: 0; background: radial-gradient(56rem 26rem at 88% 0%, rgb(var(--corail-rgb) / .18), transparent 62%); pointer-events: none; }
.tete .boite { position: relative; }
.ariane ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; color: var(--pierre); margin-bottom: 1rem; }
.ariane li { display: inline-flex; align-items: center; gap: .6rem; }
.ariane li + li::before { content: "/"; color: var(--gris-chaud); }
.ariane a { display: inline-flex; align-items: center; min-height: 44px; color: var(--encre-2); }
.ariane [aria-current] { color: var(--brique); font-weight: 600; }
/* display type: Instrument Serif opened up (positive tracking, looser leading), as R5 */
h1 { font-family: var(--serif); font-weight: var(--titre-graisse); font-synthesis: none; font-variation-settings: var(--titre-variation); font-size: calc(var(--titre-echelle) * clamp(2.6rem, 1.4rem + 4vw, 5rem)); line-height: var(--titre-ligne); letter-spacing: var(--titre-chasse); word-spacing: var(--titre-mots); max-width: 13em; text-wrap: balance; }
/* single emphasis device: coloured italic, no underline */
.trait, h1 em { font-style: italic; font-weight: var(--titre-graisse); color: var(--brique); letter-spacing: .01em; }
/* score-scale rule under the head, the R5 eyebrow motif */
.tete .boite::after { content: ""; display: block; width: 4.5rem; height: var(--trait); margin-top: 1.4rem; border-radius: 1px; background: linear-gradient(90deg, var(--clair) 0 40%, var(--k2) 40% 70%, var(--brique) 70%); }

/* ---------- Reading layout ---------- */
.corps { padding: 0 0 3.5rem; }
.grille { display: grid; gap: 1.25rem; align-items: start; }
.feuille { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r2); box-shadow: var(--ombre); padding: 1.5rem 1.15rem; min-width: 0; }
.texte { max-width: var(--lecture); }
.feuille.texte { max-width: calc(var(--lecture) + 7rem); }
.texte p { color: var(--encre); }
.texte a { color: var(--brique-2); font-weight: 550; overflow-wrap: anywhere; }
.texte strong { font-weight: 650; }
.bloc { padding: 0 0 .5rem; scroll-margin-top: 5rem; }
.bloc + .bloc { border-top: 1px solid var(--ligne-2); padding-top: 1.75rem; margin-top: 1.25rem; }
.bloc h2 { font-family: var(--serif); font-weight: var(--titre-graisse); font-synthesis: none; font-variation-settings: var(--titre-variation); font-size: calc(var(--titre-echelle) * clamp(1.75rem, 1.35rem + 1.2vw, 2.35rem)); line-height: 1.08; letter-spacing: var(--titre-chasse); word-spacing: var(--titre-mots); margin: 0 0 .9rem; }
.bloc h2 .num { display: flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .8125rem; font-weight: 600; line-height: 1.4; letter-spacing: .08em; color: var(--brique); margin-bottom: .55rem; }
.bloc h2 .num::before { content: ""; width: 1.6rem; height: var(--trait); border-radius: 1px; background: var(--brique); }
.bloc p:last-child { margin-bottom: 0; }

/* Mentions: one row per paragraph, leading label as a small mono kicker */
.fiches { display: grid; gap: 0; }
.fiches li { padding: 1.25rem 0; border-top: 1px solid var(--ligne-2); }
.fiches li:first-child { border-top: 0; padding-top: 0; }
.fiches li:last-child { padding-bottom: 0; }
.fiches p { margin: 0; }
.lib { font-weight: 650; color: var(--encre); }
.fiches .lib:first-child { display: flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brique); margin-bottom: .45rem; }
.fiches .lib:first-child::before { content: ""; width: 1.6rem; height: var(--trait); border-radius: 1px; background: var(--brique); }

/* Highlighted block (rights) */
.encart { background: var(--creme); border: 1px solid var(--ligne-2); border-left: var(--trait) solid var(--sauge); border-radius: var(--r1); padding: 1rem 1.1rem; }

/* Price list: each row tagged with its gauge colour; the amount stays inline (the sentence continues after it) */
.prix { display: grid; gap: .6rem; margin: 0 0 1.25rem; }
.prix li { background: var(--creme); border: 1px solid var(--ligne-2); border-left: var(--trait) solid var(--brique); border-radius: var(--r1); padding: .85rem 1.05rem; }
.prix li strong { font-weight: 700; color: var(--encre); }
.prix li:nth-child(2) { border-left-color: var(--k2); }
.prix li:nth-child(3) { border-left-color: var(--sauge); }

/* Table of contents */
.sommaire { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r2); padding: 1rem 1.15rem .6rem; }
.sommaire-titre { font-size: .8125rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--pierre); margin: 0 0 .25rem; }
.sommaire ol { counter-reset: s; }
.sommaire li { counter-increment: s; border-top: 1px solid var(--ligne-2); }
.sommaire li:first-child { border-top: 0; }
.sommaire a { display: flex; gap: .75rem; align-items: baseline; min-height: 44px; padding: .6rem 0; text-decoration: none; font-weight: 550; line-height: 1.35; }
.sommaire a::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; font-weight: 600; color: var(--brique); flex: none; }
.sommaire a:hover { color: var(--brique-2); text-decoration: underline; }

/* ---------- 404 ---------- */
.introuvable { position: relative; padding: 2.5rem 0 4rem; }
.introuvable::before { content: ""; position: absolute; inset: 0; background: radial-gradient(56rem 30rem at 85% 10%, rgb(var(--corail-rgb) / .2), transparent 62%); pointer-events: none; }
.introuvable .boite { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.introuvable p { font-size: 1.125rem; color: var(--encre-2); max-width: 34rem; margin: 1.1rem 0 1.6rem; }
.introuvable p a { color: var(--brique-2); font-weight: 600; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 3.5rem; padding: .85rem 1.4rem; background: var(--brique); color: var(--papier); border-radius: var(--r1); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; text-decoration: none; box-shadow: 0 1px 0 rgb(var(--blanc-rgb) / .18) inset, 0 0 0 1px rgb(var(--brique-2-rgb) / .9), 0 12px 24px -16px rgb(var(--brique-2-rgb) / .7); }
.cta svg { width: 1.15rem; height: 1.15rem; flex: none; }
.cta:hover { background: var(--brique-2); }
.pli { width: 100%; max-width: 22rem; margin: 0 auto; }
.pli svg { display: block; width: 100%; height: auto; }

/* ---------- Footer (as R5) ---------- */
.pied { margin-top: 0; background: var(--nuit); color: var(--clair); padding: 2.25rem 0 2rem; font-size: .875rem; }
.pied-bas { display: grid; gap: .5rem; }
.pied .mot { color: var(--papier); }
.pied .mot i { color: var(--corail); }
.liens { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: .75rem 0 .5rem; }
.liens a { display: inline-flex; align-items: center; min-height: 44px; color: var(--papier); text-decoration: none; font-weight: 550; }
.liens a:hover { text-decoration: underline; }
.liens a[aria-current="page"] { color: var(--corail); text-decoration: underline; text-decoration-thickness: var(--trait); text-underline-offset: 5px; }
.pied-bas p { margin: 0; max-width: 46rem; }
.pied p a { color: var(--papier); }
.pied a:focus-visible { outline-color: var(--corail); }
.adresse { font-family: var(--mono); font-size: .8125rem; }

/* ---------- Breakpoints ---------- */
@media (min-width: 40rem) {
  .boite { padding: 0 2rem; }
  .tete { padding: 3rem 0 2.25rem; }
  .feuille { padding: 2.5rem 2.75rem; }
  .encart { padding: 1.15rem 1.35rem; }
}
@media (min-width: 64rem) {
  .boite { padding: 0 4rem; }
  .tete { padding: 4rem 0 2.75rem; }
  .grille.avec-sommaire { grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; }
  .avec-sommaire .sommaire { position: sticky; top: 5.5rem; }
  .feuille { padding: 3rem 3.5rem; }
  .introuvable { padding: 5rem 0 6.5rem; }
  .introuvable .boite { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4rem; }
  .pied-bas { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); column-gap: 3rem; }
  .pied-bas .logo { grid-row: 1 / span 4; align-self: start; }
  .liens { margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .nav-retour, .nav-prix, .cta, .liens a, .sommaire a { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
  .cta svg { transition: transform .2s var(--ease); }
  .cta:hover svg { transform: translateX(-3px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .barre, .sommaire, .skip { display: none; }
  body, .feuille, .pied { background: var(--blanc) !important; color: var(--noir) !important; box-shadow: none; border: 0; }
  .pied a, .pied .mot { color: var(--noir) !important; }
}
