/* Monsieur Budget — landing page. One file, no build step, no third-party requests.
   Fonts (SIL OFL 1.1, self-hosted, subset to Latin): Young Serif (display) and Hanken Grotesk (text). */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --prune: #3a1d3f;        /* brand ink, dark bands */
  --prune-deep: #28132c;   /* footer */
  --encre: #24162a;        /* body text */
  --ardoise: #5b4f61;      /* secondary text */
  --sirop: #f2ae45;        /* maple-syrup accent, buttons on dark */
  --sirop-pale: #fcebcb;   /* the visitor's chat bubble */
  --neige: #f8f6fa;        /* page background */
  --lilas: #ede5f1;        /* tint bands */
  --blanc: #ffffff;
  --trait: #dcd0e2;        /* borders on light */
  --guill: #8c6795;        /* guillemets on light */
  --sur-sombre: #fbf8fc;   /* text on dark */
  --sur-sombre-doux: #dccbe2;
  --focus: var(--prune);

  --display: "Young Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --texte: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gouttiere: 20px;
  --largeur: 1180px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--neige);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul[role="list"], .liste-nue { list-style: none; padding: 0; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.evitement {
  position: absolute;
  left: var(--gouttiere);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--sirop);
  color: var(--prune);
  font-weight: 700;
  text-decoration: none;
}
.evitement:focus { top: 12px; }

.contenant {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* Dark bands ------------------------------------------------------------------------------------------------------ */
.sombre {
  --focus: var(--sirop);
  background: var(--prune);
  color: var(--sur-sombre);
}

/* Type ------------------------------------------------------------------------------------------------------------ */
.titre-1,
.question,
.marque-nom {
  font-family: var(--display);
  font-weight: 400;
  font-variant-numeric: lining-nums;
}

.titre-1 {
  font-size: clamp(2.875rem, 1.55rem + 5.6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 11ch;
}

.question {
  font-size: clamp(2rem, 1.35rem + 2.7vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 22ch;
  text-wrap: balance;
}
.question .g { color: var(--guill); }
.sombre .question .g { color: var(--sirop); }

.chapeau {
  margin-top: 18px;
  max-width: 38rem;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ardoise);
}
.sombre .chapeau { color: var(--sur-sombre-doux); }

.titre-3 {
  font-size: 1.3125rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.montant,
.sans-coupure { white-space: nowrap; }

/* Buttons --------------------------------------------------------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--sirop);
  color: var(--prune);
  font: 700 1.0625rem/1.2 var(--texte);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.bouton:hover { background: #f6be62; text-decoration: none; }
.bouton:active { background: #e89f2f; }

.lien-fort {
  font-weight: 700;
  text-decoration: underline;
}

/* Header ---------------------------------------------------------------------------------------------------------- */
.entete {
  padding-block: 18px;
}
.entete .contenant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.marque:hover { text-decoration: none; }
.marque-noeud { width: 32px; height: auto; flex: none; }
.marque-noeud .ailes { fill: currentColor; }
.marque-noeud .noeud { fill: var(--sirop); }
.marque-nom {
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.entete-liens {
  display: flex;
  align-items: center;
  gap: 6px;
}
.entete-liens a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 999px;
}
.entete-liens a:hover { text-decoration: underline; }
.entete-liens .connexion {
  padding: 0 16px;
  box-shadow: inset 0 0 0 1.5px rgba(251, 248, 252, 0.45);
}
.entete-liens .connexion:hover { box-shadow: inset 0 0 0 1.5px var(--sur-sombre); text-decoration: none; }

/* Hero ------------------------------------------------------------------------------------------------------------ */
.accueil { overflow: clip; }

.accueil-grille {
  display: grid;
  gap: 44px;
  padding-top: 28px;
}

.accueil-texte .chapeau { max-width: 31rem; }

.appel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}
.appel .lien-fort { padding: 10px 0; }

.note-beta {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--sur-sombre-doux);
}

.preuves {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(251, 248, 252, 0.18);
  font-size: 1rem;
  line-height: 1.35;
}
.preuves li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.preuves svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--sirop);
}

/* The hero visual: a phone, and one exchange laid over it */
.accueil-visuel {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 64px;
  height: 560px;
}
.accueil-visuel .telephone {
  width: 252px;
  align-self: flex-start;
}

.bulle {
  max-width: 17rem;
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 0.9688rem;
  line-height: 1.4;
}
.bulle--moi {
  background: var(--sirop-pale);
  color: var(--prune);
  border-bottom-right-radius: 6px;
}
.bulle--mb {
  background: var(--blanc);
  color: var(--encre);
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 0 var(--trait), 0 0 0 1px var(--trait);
}
.bulle--mb strong { color: var(--prune); }

.accueil-visuel .bulle {
  position: absolute;
  z-index: 2;
  box-shadow: 0 18px 40px -18px rgba(18, 4, 22, 0.6);
}
.accueil-visuel .bulle--moi { top: 0; right: 0; max-width: 15.5rem; }
.accueil-visuel .bulle--mb { top: 250px; left: 0; max-width: 16rem; }

/* One orchestrated moment on load: the question, then the answer. */
@media (prefers-reduced-motion: no-preference) {
  .accueil-visuel .bulle--moi { animation: bulle 0.5s 0.35s ease-out both; }
  .accueil-visuel .bulle--mb { animation: bulle 0.5s 1.15s ease-out both; }
  @keyframes bulle {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
}

/* Phone frame ----------------------------------------------------------------------------------------------------- */
.telephone {
  position: relative;
  padding: 9px;
  border-radius: 44px;
  background: #1f1023;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.1),
    0 34px 60px -28px rgba(25, 6, 30, 0.55);
}
.telephone-ecran {
  position: relative;
  overflow: hidden;
  border-radius: 35px;
  background: var(--blanc);
}
.telephone-barre {
  position: relative;
  display: flex;
  align-items: center;
  height: 30px;
  padding: 2px 24px 0;
  background: var(--blanc);
  color: #1b1b1b;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.telephone-barre::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 76px;
  height: 21px;
  border-radius: 20px;
  background: #1f1023;
  transform: translateX(-50%);
}
.telephone-ecran img { width: 100%; }

/* The shelf: phones stand on a tint band and are cut by it -------------------------------------------------------- */
.etagere { position: relative; padding-top: 30px; }
.etagere::before {
  content: "";
  position: absolute;
  left: -50vw;
  right: -50vw;
  bottom: 0;
  height: 62%;
  background: var(--lilas);
}
.etagere-coupe {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  height: 400px;
  overflow: hidden;
}
.etagere-coupe .telephone {
  width: 264px;
  align-self: flex-start;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Sections -------------------------------------------------------------------------------------------------------- */
.bloc { padding-block: 84px; }
.bloc--etagere { padding-bottom: 0; overflow: clip; }
.bloc--teinte { background: var(--lilas); }

.bloc-tete { margin-bottom: 44px; }

/* What it does: three answers */
.trio {
  display: grid;
  gap: 56px;
}
.trait-produit {
  display: flex;
  flex-direction: column;
}
.trait-produit p {
  margin-top: 10px;
  color: var(--ardoise);
  max-width: 34rem;
}
.trait-produit .etagere { margin-top: auto; }

/* The assistant */
.assistant-grille {
  display: grid;
  gap: 48px;
  align-items: start;
}

.faits {
  display: grid;
  gap: 22px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}
.faits li {
  padding-left: 22px;
  border-left: 3px solid var(--sirop);
  color: var(--sur-sombre-doux);
}
.faits strong {
  display: block;
  color: var(--sur-sombre);
  font-size: 1.125rem;
}

.conversation {
  border-radius: var(--r-lg);
  background: var(--neige);
  color: var(--encre);
  box-shadow: 0 40px 80px -40px rgba(10, 2, 14, 0.7);
  overflow: hidden;
}
.conversation-tete {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--trait);
  background: var(--blanc);
  font-weight: 700;
}
.conversation-tete .marque-noeud { width: 24px; color: var(--prune); }
.conversation-tete .exemple {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ardoise);
}
.conversation-fil {
  display: grid;
  gap: 14px;
  padding: 22px 16px 24px;
}
.conversation-fil .bulle { max-width: 100%; }
.conversation-fil .bulle--moi { justify-self: end; max-width: 85%; }
.conversation-fil .bulle--mb { justify-self: start; max-width: 100%; padding: 16px; }
.bulle--mb p + p,
.bulle--mb p + .mini-graphique,
.bulle--mb .mini-graphique + p,
.bulle--mb p + .proposition,
.bulle--mb .mini-axe + p { margin-top: 12px; }

.mini-graphique {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 14px;
  height: 132px;
  margin-top: 30px;
  padding: 0 6px;
  border-bottom: 1px solid var(--trait);
}
/* Heights on a 0–740 $ scale over 132 px: bars 575, 538, 660 $; the budget line at 600 $. */
.mini-graphique .barre {
  position: relative;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: #d9cbe0;
}
.barre--1 { --h: 103px; }
.barre--2 { --h: 96px; }
.barre--3 { --h: 118px; }
.mini-graphique .barre--actuelle { background: var(--prune); }
.mini-graphique .valeur {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  color: var(--prune);
  white-space: nowrap;
}
.mini-graphique .barre--actuelle .valeur { color: var(--sur-sombre); }
.mini-graphique .ligne-budget {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 107px;
  z-index: 1;
  border-top: 2px dashed #c27d12;
}
.mini-graphique .ligne-budget span {
  position: absolute;
  left: 0;
  bottom: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8a5a10;
}
.mini-axe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 6px 6px 0;
  font-size: 0.8125rem;
  color: var(--ardoise);
  text-align: center;
}

.proposition {
  padding: 14px;
  border-radius: var(--r-sm);
  background: var(--neige);
  box-shadow: inset 0 0 0 1.5px var(--prune);
}
.proposition-titre { font-weight: 700; color: var(--prune); line-height: 1.35; }
.proposition-detail { margin-top: 2px; font-size: 0.875rem; color: var(--ardoise); }
.proposition-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.proposition-actions .faux-bouton {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--prune);
  color: var(--sur-sombre);
}
.proposition-actions .faux-lien { color: var(--ardoise); }

/* Self-employed and landlords */
.duo {
  display: grid;
  gap: 64px;
}
.profil {
  display: flex;
  flex-direction: column;
}
.profil-icone {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--prune);
}
.profil ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
  color: var(--ardoise);
  max-width: 34rem;
}
.profil li {
  position: relative;
  padding-left: 22px;
}
.profil li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--sirop);
  transform: rotate(45deg);
}
.profil li strong { color: var(--encre); }
.profil .etagere { margin-top: auto; padding-top: 40px; }

/* Privacy and FAQ share a two-column layout */
.deux-colonnes {
  display: grid;
  gap: 36px;
}

.donnees {
  display: grid;
  padding: 0;
  list-style: none;
}
.donnees li {
  display: grid;
  gap: 4px;
  padding-block: 20px;
  border-top: 1px solid rgba(251, 248, 252, 0.18);
}
.donnees li:last-child { border-bottom: 1px solid rgba(251, 248, 252, 0.18); }
.donnees strong {
  font-size: 1.125rem;
  color: var(--sur-sombre);
}
.donnees span { color: var(--sur-sombre-doux); }
.donnees-lien { margin-top: 24px; }

.faq {
  display: grid;
  border-top: 1px solid var(--trait);
}
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2.5px solid var(--prune);
  border-bottom: 2.5px solid var(--prune);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--prune); }
.faq .reponse {
  padding: 0 0 22px;
  max-width: 40rem;
  color: var(--ardoise);
}
.faq .reponse p + p { margin-top: 10px; }

/* Waitlist */
.inscription-grille {
  display: grid;
  gap: 36px;
  align-items: start;
}

.formulaire {
  display: grid;
  gap: 18px;
  padding: 26px 22px;
  border-radius: var(--r-lg);
  background: rgba(251, 248, 252, 0.06);
  box-shadow: inset 0 0 0 1px rgba(251, 248, 252, 0.16);
}
.champ { display: grid; gap: 6px; }
.champ label {
  font-weight: 700;
  font-size: 0.9375rem;
}
.champ label .facultatif { font-weight: 400; color: var(--sur-sombre-doux); }
.champ input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid rgba(251, 248, 252, 0.5);
  border-radius: var(--r-sm);
  background: var(--blanc);
  color: var(--encre);
  font: 400 1.0625rem/1.2 var(--texte);
}
.champ input::placeholder { color: #766a7b; }
.champ input:focus-visible { outline-offset: 2px; border-color: var(--sirop); }
.formulaire .bouton { width: 100%; margin-top: 4px; }
.formulaire .bouton[disabled] { opacity: 0.7; cursor: progress; }
.formulaire-note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sur-sombre-doux);
}
.formulaire-note a { color: var(--sur-sombre); }

.pot-de-miel {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formulaire-etat { font-weight: 700; }
.formulaire-etat:empty { display: none; }
.formulaire-etat[data-ton="erreur"] {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #fde3df;
  color: #7a1a10;
}
.merci {
  padding: 26px 22px;
  border-radius: var(--r-lg);
  background: var(--sirop);
  color: var(--prune);
}
.merci strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.1;
}
.merci p { margin-top: 8px; }

/* Footer */
.pied {
  --focus: var(--sirop);
  padding-block: 48px 40px;
  background: var(--prune-deep);
  color: var(--sur-sombre-doux);
  font-size: 0.9375rem;
}
.pied-grille {
  display: grid;
  gap: 24px;
}
.pied .marque { color: var(--sur-sombre); }
.pied-devise { margin-top: 10px; }
.pied-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 0;
  list-style: none;
}
.pied-liens a {
  display: inline-block;
  padding: 8px 0;
  color: var(--sur-sombre);
}
.pied-droits { padding-top: 22px; border-top: 1px solid rgba(251, 248, 252, 0.14); }

@media (max-width: 479px) {
  .marque-nom { font-size: 1.25rem; }
  .marque-noeud { width: 28px; }
  .entete-liens .connexion { display: none; } /* the hero's own sign-in link is on the first screen */
}

/* ≥ 720px -------------------------------------------------------------------------------------------------------- */
@media (min-width: 720px) {
  :root { --gouttiere: 32px; }
  body { font-size: 1.125rem; }
  .question { text-indent: -0.52em; }
  .question:lang(en) { text-indent: -0.4em; }
  .bloc { padding-block: 112px; }
  .bloc--etagere { padding-bottom: 0; }
  .bloc-tete { margin-bottom: 56px; }
  .accueil-visuel { height: 600px; }
  .accueil-visuel .telephone { width: 278px; }
  .accueil-visuel .bulle--moi { right: calc(50% - 250px); }
  .accueil-visuel .bulle--mb { left: calc(50% - 270px); top: 270px; }
  .duo { grid-template-columns: 1fr 1fr; gap: 48px; }
  .formulaire { padding: 32px; }
  .pied-grille { grid-template-columns: 1fr auto; align-items: start; }
  .pied-droits { grid-column: 1 / -1; }
}

/* ≥ 1000px -------------------------------------------------------------------------------------------------------- */
@media (min-width: 1000px) {
  .entete { padding-block: 24px; }
  .marque-nom { font-size: 1.5rem; }
  .accueil-grille {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 32px;
    padding-top: 56px;
  }
  .accueil-texte { padding-bottom: 96px; }
  .accueil-visuel { height: 100%; min-height: 640px; padding-top: 40px; }
  .accueil-visuel .telephone { width: 300px; }
  .accueil-visuel .bulle--moi { top: 0; right: auto; left: calc(50% + 20px); }
  .accueil-visuel .bulle--mb { top: 330px; left: calc(50% - 300px); }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .etagere-coupe { height: 470px; }
  .etagere-coupe .telephone { width: 300px; }
  .assistant-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .conversation-fil { padding: 26px 26px 28px; }
  .deux-colonnes { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .colonne-tete { position: sticky; top: 32px; align-self: start; }
  .inscription-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Thank-you page (/merci, /en/merci): the dark band alone, the message centred in it. */
.merci-page { max-width: 36rem; margin: 0 auto; padding: 4rem 1.25rem 6rem; text-align: center; }
.merci-page h1 { margin: 0 0 1rem; font-family: var(--display); font-weight: 400; }
.merci-page a { color: inherit; }

/* Legal pages (/confidentialite, /conditions, /en/privacy, /en/terms): the dark band holds the title, the text sits on
   the light page in one readable column; the privacy policy adds a table of contents beside it (above it on phones). */
.brouillon {
  padding: 10px var(--gouttiere);
  background: var(--sirop);
  color: var(--prune);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
}
.brouillon strong { font-weight: 800; }

.legal-tete { padding-block: 20px 52px; }
.legal-tete h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 20ch;
  text-wrap: balance;
}
.legal-meta {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--sur-sombre-doux);
}

.legal-grille {
  display: grid;
  gap: 40px;
  padding-block: 48px 84px;
}

.sommaire {
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--lilas);
}
.sommaire h2 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.sommaire ol {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
  font-size: 0.9688rem;
  line-height: 1.4;
}
.sommaire a { display: inline-block; padding: 4px 0; text-decoration: none; }
.sommaire a:hover { text-decoration: underline; }

.legal { min-width: 0; max-width: 44rem; }
.legal h2 {
  margin-top: 56px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  scroll-margin-top: 24px;
}
.legal > section:first-child > h2 { margin-top: 0; }
.legal h3 {
  margin-top: 28px;
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 700;
}
.legal p,
.legal ul,
.legal ol,
.legal dl,
.legal blockquote { margin-top: 14px; }
.legal ul,
.legal ol { padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--prune); font-weight: 600; overflow-wrap: anywhere; }
.legal blockquote {
  margin-inline: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--guill);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--blanc);
}
.legal blockquote > :first-child { margin-top: 0; }
.legal .source { font-size: 0.9375rem; color: var(--ardoise); }

.essentiel {
  padding: 22px 22px 24px;
  border-radius: var(--r-md);
  background: var(--blanc);
  box-shadow: inset 0 0 0 1px var(--trait);
}
.legal .essentiel h2 { margin-top: 0; }

.legal .fiches {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}
.legal .fiches > li {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: var(--blanc);
  box-shadow: inset 0 0 0 1px var(--trait);
}
.legal .fiches h3 { margin-top: 0; }
.fiches dl { display: grid; gap: 8px; margin-top: 10px; }
.fiches dt { font-weight: 700; font-size: 0.9375rem; color: var(--prune); }
.fiches dd { margin: 0; }

/* A fact still to confirm before the page goes live: impossible to miss, on light or dark. */
.a-confirmer {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--sirop-pale);
  color: var(--encre);
  box-shadow: inset 0 0 0 1px #c27d12;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.pied-liens a[aria-current="page"] { text-decoration-thickness: 2px; }

@media (min-width: 1000px) {
  .legal-tete { padding-block: 32px 72px; }
  .legal-grille {
    grid-template-columns: minmax(0, 17rem) minmax(0, 44rem);
    gap: 64px;
    padding-block: 64px 112px;
  }
  .legal-grille--seule { grid-template-columns: minmax(0, 44rem); }
  .sommaire {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
}
