@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --blanc: #ffffff;
  --beton: #eeefea;
  --filet: #d5d6d1;
  --noir: #141414;
  --gris: #56585a;
  --gris-pale: #8a8c88;
  --jaune: #f7b500;
  --jaune-voile: #fff3cc;
  --sur-jaune-doux: #3b3108;
  --vert: #1f7a4d;
  --bleu: #1d4e98;
  --bleu-voile: #e7edf7;
  --rouge: #b3261e;

  --police-texte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-panneau: "Bricolage", "Arial Narrow", -apple-system, sans-serif;

  --trait: 3px;
  --r-panneau: 12px;
  --r-champ: 6px;
  --largeur: 1180px;
  --gouttiere: clamp(20px, 4vw, 40px);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font: 400 1.0625rem/1.6 var(--police-texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--noir);
  overflow-x: clip;
}
::selection { background: var(--jaune); color: var(--noir); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--jaune); }
:focus-visible { outline: 3px solid var(--noir); outline-offset: 3px; border-radius: 4px; }

h1, h2, .chiffres, .compteur-chiffre {
  font-family: var(--police-panneau);
  font-stretch: 75%;
  font-variant-numeric: tabular-nums lining-nums;
}
h1, h2 { font-weight: 800; line-height: 0.95; letter-spacing: -0.005em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font: 700 1.2rem/1.3 var(--police-texte); margin: 0; }
p { margin: 0; text-wrap: pretty; }

.enveloppe { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--noir); color: var(--blanc); padding: 10px 14px; border-radius: 6px; font-weight: 700;
}
.lien-evitement:focus { top: 12px; }

/* Pictogrammes */
.picto { display: inline-grid; place-items: center; flex: none; }
.picto svg { width: 26px; height: 26px; }
.picto[hidden] { display: none; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: var(--blanc); border-bottom: 2px solid var(--noir); }
.entete .enveloppe { display: flex; align-items: center; gap: 28px; height: 66px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.marque svg { width: 34px; height: 34px; flex: none; }
.marque span { font: 800 1.55rem/1 var(--police-panneau); font-stretch: 75%; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-weight: 650; font-size: 0.97rem; color: var(--noir); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--jaune); }
.nav a[aria-current="page"] { border-bottom-color: var(--noir); }
.nav-bouton { display: none; }

/* Boutons : des plaques */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: var(--r-champ);
  border: 2px solid var(--noir); background: var(--noir); color: var(--blanc);
  font: 700 1rem/1 var(--police-texte); text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bouton:hover { background: var(--jaune); color: var(--noir); text-decoration: none; }
.bouton svg { width: 18px; height: 18px; }
.bouton.petit { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.bouton.discret { background: var(--blanc); color: var(--noir); }
.bouton.discret:hover { background: var(--jaune); }
.bouton.jaune { background: var(--jaune); color: var(--noir); border-color: var(--jaune); }
.bouton.jaune:hover { background: var(--blanc); border-color: var(--blanc); }
.cadre-outil .bouton:hover { background: var(--blanc); color: var(--noir); }

/* Le cadre jaune : la zone marquée où l'on calcule, posée sur la page blanche plutôt qu'étalée sur tout l'écran. */
.cadre-outil {
  background: var(--jaune); color: var(--noir);
  border: var(--trait) solid var(--noir); border-radius: var(--r-panneau);
  padding: clamp(24px, 3.4vw, 40px);
}
.cadre-outil .prive { color: var(--sur-jaune-doux); border-top-color: rgba(20, 20, 20, 0.2); }
.cadre-outil .prive svg { color: var(--noir); }

/* Panneau : fond blanc, bord noir, bande d'état */
.panneau { background: var(--blanc); border: var(--trait) solid var(--noir); border-radius: var(--r-panneau); overflow: hidden; }
.panneau-bande {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 18px;
  background: var(--noir); color: var(--blanc); border-bottom: var(--trait) solid var(--noir);
  transform-origin: 50% 0;
}
.panneau-corps { padding: clamp(18px, 2.6vw, 26px); }
.compteur-verdict { font: 800 1.35rem/1.1 var(--police-panneau); font-stretch: 75%; letter-spacing: 0.01em; }

.compteur[data-verdict="incomplet"] .panneau-bande { background: var(--beton); color: var(--noir); }
.compteur[data-verdict="manque"] .panneau-bande {
  background: repeating-linear-gradient(-45deg, var(--blanc) 0 16px, var(--noir) 16px 32px);
}
.compteur[data-verdict="manque"] .compteur-verdict,
.compteur[data-verdict="manque"] .picto {
  background: var(--noir); color: var(--blanc);
}
.compteur[data-verdict="manque"] .compteur-verdict { padding: 6px 12px 6px 0; }
.compteur[data-verdict="manque"] .picto { padding: 5px 4px 5px 10px; margin-right: -12px; border-radius: 4px 0 0 4px; }
.compteur[data-verdict="manque"] .compteur-verdict { border-radius: 0 4px 4px 0; }
.compteur[data-verdict="ok"] .panneau-bande { background: var(--vert); color: var(--blanc); }
.compteur[data-verdict="au-dessus"] .panneau-bande { background: var(--bleu); color: var(--blanc); }
.compteur[data-verdict="attendu"] .panneau-bande { background: var(--noir); color: var(--blanc); }

.compteur-chiffre {
  display: block;
  font-weight: 800; font-size: clamp(3.6rem, 11vw, 7.2rem); line-height: 0.9;
  letter-spacing: -0.01em; white-space: nowrap; color: var(--noir);
}
.compteur-suite { margin-top: 12px; color: var(--gris); max-width: 46ch; }
.compteur-app { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--filet); }
.compteur-app a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.compteur-app a span { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--jaune); text-underline-offset: 0.22em; }
.compteur-app a svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--sortie); }
.compteur-app a:hover svg { transform: translateX(3px); }

/* Accueil */
.heros { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); border-bottom: 2px solid var(--noir); }
.heros h1 { max-width: 12ch; font-size: clamp(2.9rem, 6vw, 4.8rem); }
.heros .chapeau { margin-top: 16px; font-size: 1.12rem; max-width: 46ch; }
.heros .cadre-outil { margin-top: clamp(28px, 4vw, 44px); }
.heros-grille {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr;
  grid-template-areas: "panneau plaque" "panneau consigne"; column-gap: clamp(28px, 4.5vw, 64px); row-gap: 18px; align-items: start;
}
.heros .compteur { grid-area: panneau; }
.heros .formulaire { grid-area: plaque; }
.heros .piste { grid-area: consigne; margin-top: 0; }

/* Le calcul, replié sur téléphone pour garder la saisie à portée de pouce */
.calcul { margin-top: 18px; border-top: 2px solid var(--noir); }
.calcul summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-weight: 700; cursor: pointer; list-style: none; }
.calcul summary::-webkit-details-marker { display: none; }
.calcul summary svg { width: 20px; height: 20px; transition: transform 0.25s var(--sortie); }
.calcul[open] summary svg { transform: rotate(180deg); }
.calcul .detail { margin-top: 0; max-width: none; border-top: 0; }
.calcul .detail-ligne { border-bottom-color: var(--filet); }
.calcul .detail-ligne:last-child { border-bottom: 0; }

/* Consigne : l'information à retenir, en bleu comme les panneaux d'obligation */
.piste, .consigne {
  position: relative; display: block;
  margin-top: 18px; padding: 14px 16px 14px 60px; border-radius: 8px;
  background: var(--bleu); color: var(--blanc); font-size: 0.97rem; max-width: 60ch;
}
.piste::before, .consigne::before, .prose .note::before {
  content: ""; position: absolute; left: 16px; top: 13px; width: 30px; height: 30px;
  background: var(--blanc); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Crect x='2' y='2' width='24' height='24' rx='3' fill='none' stroke='black' stroke-width='2.4'/%3E%3Ccircle cx='14' cy='8.6' r='1.9'/%3E%3Cpath d='M14 12.8v8.6' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Crect x='2' y='2' width='24' height='24' rx='3' fill='none' stroke='black' stroke-width='2.4'/%3E%3Ccircle cx='14' cy='8.6' r='1.9'/%3E%3Cpath d='M14 12.8v8.6' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.piste[hidden] { display: none; }
.piste strong { font-weight: 800; }

/* Le calcul pas à pas : l'ordre porte le calcul */
.detail { margin-top: 26px; max-width: 560px; border-top: var(--trait) solid var(--noir); counter-reset: etape; }
.detail-ligne {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(20, 20, 20, 0.28); font-size: 0.98rem;
}
.detail-ligne::before {
  counter-increment: etape; content: counter(etape);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px;
  background: var(--noir); color: var(--blanc);
  font: 800 1rem/1 var(--police-panneau); font-stretch: 75%;
}
.detail-ligne.fort::before { counter-increment: none; content: "="; background: transparent; color: var(--noir); border: 2px solid var(--noir); }
.detail-ligne.moins::before { counter-increment: none; content: "−"; background: transparent; color: var(--noir); border: 2px solid var(--noir); }
.detail-ligne span:nth-child(1) { color: inherit; }
.detail-ligne .chiffres { font-weight: 800; font-size: 1.25rem; transition: background 0.4s; padding: 0 4px; border-radius: 3px; }
.detail-ligne.fort span:first-child { font-weight: 800; }
.detail-ligne.fort .chiffres { font-size: 1.45rem; }
.detail-ligne .chiffres.change { background: var(--jaune-voile); }
.detail-ligne[hidden] { display: none; }

/* La plaque de saisie */
.formulaire { background: var(--blanc); border: var(--trait) solid var(--noir); border-radius: var(--r-panneau); padding: clamp(20px, 2.8vw, 30px); }
.formulaire h2 { font-size: 2rem; }
.formulaire .aide-titre { margin-top: 6px; font-size: 0.93rem; color: var(--gris); }
.champs { display: grid; gap: 18px; margin-top: 20px; }
.champ label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 7px; }
.champ .aide { display: block; font-size: 0.86rem; color: var(--gris); margin-top: 7px; }
.saisie { position: relative; display: flex; align-items: center; }
.saisie input {
  width: 100%; min-height: 60px; padding: 0 54px 0 16px;
  border: 2px solid var(--noir); border-radius: var(--r-champ); background: var(--blanc); color: var(--noir);
  font: 800 1.7rem/1 var(--police-panneau); font-stretch: 75%; font-variant-numeric: tabular-nums;
  transition: box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
.saisie input::placeholder { color: var(--gris-pale); font-weight: 700; }
.saisie input:focus { outline: none; box-shadow: 0 0 0 3px var(--jaune), 0 0 0 5px var(--noir); }
.saisie input[aria-invalid="true"] { border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.2); }
.saisie .unite { position: absolute; right: 16px; pointer-events: none; font: 800 1.2rem/1 var(--police-panneau); font-stretch: 75%; color: var(--gris); }
.champ.petit .saisie input { min-height: 50px; font-size: 1.35rem; }
.champ .erreur { display: flex; align-items: center; gap: 7px; color: var(--rouge); font-size: 0.86rem; margin-top: 7px; font-weight: 700; }
.champ .erreur::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid var(--rouge);
  background: linear-gradient(135deg, transparent 43%, var(--rouge) 43% 57%, transparent 57%);
}
.champ .erreur:empty { display: none; }
.deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.options { margin-top: 20px; border-top: 2px solid var(--noir); }
.options summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; cursor: pointer; font-weight: 700; list-style: none;
}
.options summary::-webkit-details-marker { display: none; }
.options summary svg { width: 20px; height: 20px; transition: transform 0.25s var(--sortie); }
.options[open] summary svg { transform: rotate(180deg); }
.options .champs { margin-top: 4px; }

.bascule { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 0.95rem; }
.bascule input { position: absolute; opacity: 0; pointer-events: none; }
.bascule .piste-bascule {
  flex: none; position: relative; width: 50px; height: 28px; margin-top: 1px; border-radius: 6px;
  background: var(--beton); border: 2px solid var(--noir); transition: background 0.2s;
}
.bascule .piste-bascule::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 3px;
  background: var(--noir); transition: transform 0.25s var(--sortie), background 0.2s;
}
.bascule input:checked + .piste-bascule { background: var(--vert); }
.bascule input:checked + .piste-bascule::after { transform: translateX(22px); background: var(--blanc); }
.bascule input:focus-visible + .piste-bascule { outline: 3px solid var(--noir); outline-offset: 3px; }
.bascule strong { display: block; font-weight: 700; }
.bascule small { display: block; color: var(--gris); font-size: 0.86rem; margin-top: 2px; line-height: 1.45; }

.exemple-note { margin-top: 16px; font-size: 0.88rem; color: var(--gris); }
.lien-bouton {
  background: none; border: 0; padding: 0; font: inherit; color: var(--noir); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--jaune); text-underline-offset: 0.2em; cursor: pointer;
}
.prive { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--filet); font-size: 0.88rem; color: var(--gris); }
.prive svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--vert); }

/* Sections sous la zone jaune : blanc, calme, précis */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { padding-top: 0; }
.section-tete { max-width: 680px; }
.section-tete p { margin-top: 14px; color: var(--gris); font-size: 1.1rem; }

/* Embranchements : des panneaux de direction */
.embranchements { margin-top: clamp(26px, 4vw, 40px); list-style: none; padding: 0; border-top: var(--trait) solid var(--noir); }
.embranchement a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; align-items: center; gap: clamp(14px, 3vw, 36px);
  padding: clamp(18px, 2.4vw, 26px) 0; border-bottom: 2px solid var(--noir); text-decoration: none;
}
.embranchement .question { font: 700 clamp(1.15rem, 2vw, 1.45rem)/1.25 var(--police-texte); letter-spacing: -0.01em; }
.embranchement .outil { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--gris); font-weight: 500; }
.embranchement .apercu {
  font: 800 1.2rem/1 var(--police-panneau); font-stretch: 75%; font-variant-numeric: tabular-nums;
  padding: 8px 12px; border: 2px solid var(--noir); border-radius: 4px; white-space: nowrap;
}
.embranchement .fleche-tuile {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 6px;
  background: var(--jaune); color: var(--noir); border: 2px solid var(--noir);
  transition: background 0.15s, color 0.15s;
}
.embranchement .fleche-tuile svg { width: 26px; height: 26px; transition: transform 0.25s var(--sortie); }
.embranchement a:hover .fleche-tuile { background: var(--noir); color: var(--jaune); }
.embranchement a:hover .fleche-tuile svg { transform: translateX(3px); }

/* Mot de Rémy */
.histoire { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.histoire blockquote { margin: 0; font: 600 clamp(1.3rem, 2.3vw, 1.75rem)/1.4 var(--police-texte); letter-spacing: -0.01em; text-wrap: pretty; }
.histoire blockquote p + p { margin-top: 0.8em; }
.histoire .signature { margin-top: 24px; display: flex; align-items: center; gap: 14px; font-size: 0.97rem; color: var(--gris); }
.histoire .signature strong { color: var(--noir); display: block; font-weight: 700; }
.histoire .initiale {
  width: 46px; height: 46px; border-radius: 6px; display: grid; place-items: center;
  background: var(--jaune); color: var(--noir); border: 2px solid var(--noir);
  font: 800 1.4rem/1 var(--police-panneau); font-stretch: 75%;
}

/* L'app */
.bande-beton { background: var(--beton); border-block: 2px solid var(--noir); }
.app-bloc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(56px, 8vw, 96px) 0; }
.app-bloc h2 { max-width: 13ch; }
.page-simple .app-bloc { padding-top: 0; }
.app-intro { margin-top: 18px; color: var(--gris); font-size: 1.1rem; max-width: 46ch; }
.app-points { list-style: none; padding: 0; margin: 26px 0 0; border-top: 2px solid var(--noir); }
.app-points li { padding: 16px 0; border-bottom: 1px solid var(--filet); }
.app-points strong { display: block; font-weight: 700; }
.app-points span { display: block; margin-top: 3px; color: var(--gris); font-size: 0.97rem; }
.app-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.app-actions small { color: var(--gris); font-size: 0.88rem; }

/* Téléphone : reproduction de l'écran de l'app (qui garde sa propre identité) */
.illustration-app { margin: 0; container-type: inline-size; }
.telephone {
  position: relative; width: min(100%, 330px); margin-inline: auto; aspect-ratio: 330 / 680;
  --u: calc(min(100cqw, 330px) / 330);
  border-radius: calc(54 * var(--u)); padding: calc(12 * var(--u)); background: #1b1512;
  box-shadow: inset 0 0 0 calc(2 * var(--u)) #3a302a;
}
.ecran {
  position: relative; height: 100%; overflow: hidden; border-radius: calc(43 * var(--u));
  background: #f6f3ef; color: #211a15; font-family: var(--police-texte); padding: calc(52 * var(--u)) calc(18 * var(--u)) 0;
}
.ecran::before { content: ""; position: absolute; top: calc(12 * var(--u)); left: 50%; translate: -50% 0; width: calc(96 * var(--u)); height: calc(28 * var(--u)); border-radius: calc(20 * var(--u)); background: #1b1512; }
.ecran .ecran-titre-feuille, .ecran .ecran-tuile b, .ecran .ecran-montants b, .ecran .ecran-total { font-family: var(--police-panneau); font-stretch: 100%; }
.ecran-date { font-size: calc(12 * var(--u)); font-weight: 600; color: #665b52; }
.ecran-total { margin-top: calc(6 * var(--u)); font-weight: 800; font-size: calc(58 * var(--u)); line-height: 1; letter-spacing: calc(-1.4 * var(--u)); font-variant-numeric: tabular-nums; }
.ecran-sous { margin-top: calc(6 * var(--u)); font-weight: 700; font-size: calc(13 * var(--u)); color: #a83a0c; }
.ecran-jours { display: grid; grid-template-columns: repeat(6, 1fr); gap: calc(5 * var(--u)); margin-top: calc(16 * var(--u)); }
.ecran-jour { border-radius: calc(12 * var(--u)); background: #ede7e0; text-align: center; padding: calc(7 * var(--u)) 0 calc(6 * var(--u)); }
.ecran-jour b { display: block; font-size: calc(9 * var(--u)); color: #665b52; font-weight: 700; }
.ecran-jour i { display: block; font-weight: 700; font-size: calc(10.5 * var(--u)); line-height: 1.3; font-style: normal; margin-top: calc(2 * var(--u)); }
.ecran-jour.actif { background: #c84a17; }
.ecran-jour.actif b, .ecran-jour.actif i { color: #fffaf6; }
.ecran-titre { margin-top: calc(18 * var(--u)); display: flex; justify-content: space-between; font-size: calc(11 * var(--u)); font-weight: 700; color: #665b52; letter-spacing: 0.06em; text-transform: uppercase; }
.ecran-liste { margin-top: calc(8 * var(--u)); background: #fffdfb; border-radius: calc(18 * var(--u)); box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) calc(-14 * var(--u)) rgba(33, 26, 21, 0.3); }
.ecran-creneau { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(11 * var(--u)) calc(13 * var(--u)); }
.ecran-creneau + .ecran-creneau { border-top: 1px solid #e4dcd1; }
.ecran-creneau .repere { width: calc(3 * var(--u)); align-self: stretch; border-radius: calc(3 * var(--u)); background: #f2a27f; }
.ecran-creneau .texte { flex: 1; min-width: 0; }
.ecran-creneau .texte b { display: block; font-size: calc(12.5 * var(--u)); font-weight: 650; }
.ecran-creneau .texte span { display: block; font-size: calc(10.5 * var(--u)); color: #665b52; margin-top: 1px; }
.ecran-creneau .duree { text-align: right; font-weight: 700; font-size: calc(13 * var(--u)); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ecran-creneau .duree span { display: block; font-size: calc(10 * var(--u)); color: #a83a0c; margin-top: calc(2 * var(--u)); }
.ecran-salaire { margin-top: calc(10 * var(--u)); display: flex; justify-content: space-between; align-items: baseline; background: #fffdfb; border-radius: calc(16 * var(--u)); padding: calc(11 * var(--u)) calc(13 * var(--u)); box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) calc(-14 * var(--u)) rgba(33, 26, 21, 0.3); }
.ecran-salaire span { font-size: calc(11 * var(--u)); color: #665b52; font-weight: 600; }
.ecran-salaire b { font-weight: 800; font-size: calc(17 * var(--u)); line-height: 1; font-variant-numeric: tabular-nums; }
.ecran-micro { position: absolute; left: 50%; bottom: calc(22 * var(--u)); translate: -50% 0; width: calc(58 * var(--u)); height: calc(58 * var(--u)); border-radius: 50%; background: #e2571f; display: grid; place-items: center; }
.ecran-micro svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); color: #fffaf6; }
.ecran-titre-feuille { font-weight: 800; font-size: calc(22 * var(--u)); line-height: 1.1; letter-spacing: -0.02em; }
.ecran-alerte { margin-top: calc(14 * var(--u)); padding: calc(13 * var(--u)); border-radius: calc(16 * var(--u)); background: #f5e0dc; box-shadow: inset 0 0 0 1px #e8b9b1; }
.ecran-alerte b { display: flex; align-items: center; gap: calc(6 * var(--u)); color: #a8322a; font-size: calc(13 * var(--u)); font-weight: 700; }
.ecran-alerte b svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.ecran-alerte span { display: block; margin-top: calc(6 * var(--u)); font-size: calc(11 * var(--u)); line-height: 1.45; color: #3a2f28; }
.ecran-tuiles { margin-top: calc(10 * var(--u)); display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)); }
.ecran-tuile { border-radius: calc(14 * var(--u)); background: #ede7e0; padding: calc(10 * var(--u)); text-align: center; }
.ecran-tuile span { display: block; font-size: calc(9.5 * var(--u)); font-weight: 700; color: #665b52; }
.ecran-tuile b { display: block; margin-top: calc(3 * var(--u)); font-weight: 800; font-size: calc(20 * var(--u)); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ecran-tuile i { display: block; font-style: normal; font-size: calc(9.5 * var(--u)); color: #665b52; margin-top: calc(2 * var(--u)); }
.ecran-tuile.orange { background: #fbe4d8; }
.ecran-tuile.orange b { color: #a83a0c; }
.ecran-ecart { margin-top: calc(10 * var(--u)); border-radius: calc(12 * var(--u)); background: #f5e0dc; color: #a8322a; font-weight: 700; font-size: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); }
.ecran-montants { margin-top: calc(10 * var(--u)); display: grid; grid-template-columns: 1fr 1fr; background: #fffdfb; border-radius: calc(16 * var(--u)); box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) calc(-14 * var(--u)) rgba(33, 26, 21, 0.3); }
.ecran-montants div { padding: calc(12 * var(--u)); }
.ecran-montants div + div { border-left: 1px solid #e4dcd1; }
.ecran-montants span { display: block; font-size: calc(9.5 * var(--u)); color: #665b52; font-weight: 600; }
.ecran-montants b { display: block; margin-top: calc(4 * var(--u)); font-weight: 800; font-size: calc(15 * var(--u)); line-height: 1; font-variant-numeric: tabular-nums; }
.ecran-points { list-style: none; margin: calc(8 * var(--u)) 0 0; padding: 0; display: grid; gap: calc(8 * var(--u)); }
.ecran-points li { position: relative; padding-left: calc(14 * var(--u)); font-size: calc(11 * var(--u)); line-height: 1.45; color: #4a3f37; }
.ecran-points li::before { content: ""; position: absolute; left: 0; top: calc(5 * var(--u)); width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: #e2571f; }
.legende-illu { margin-top: 14px; text-align: center; font-size: 0.84rem; color: var(--gris); }

/* FAQ */
.faq { margin-top: clamp(24px, 4vw, 36px); border-top: var(--trait) solid var(--noir); max-width: 860px; }
.faq details { border-bottom: 2px solid var(--noir); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font: 700 clamp(1.05rem, 1.7vw, 1.2rem)/1.35 var(--police-texte);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 30px; height: 30px; flex: none; padding: 4px; border: 2px solid var(--noir); border-radius: 4px; transition: transform 0.25s var(--sortie), background 0.15s; }
.faq summary:hover svg { background: var(--jaune); }
.faq details[open] summary svg { transform: rotate(45deg); background: var(--jaune); }
.faq .reponse { padding: 0 0 22px; color: var(--gris); max-width: 68ch; }
.faq .reponse p + p { margin-top: 0.8em; }
.faq .reponse a, .faq .reponse strong { color: var(--noir); }

/* Pages outils */
.fil { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: var(--gris); padding-top: clamp(20px, 3vw, 30px); }
.fil a { color: var(--gris); text-decoration: none; }
.fil a:hover { color: var(--noir); text-decoration: underline; text-decoration-color: var(--jaune); }
.outil-tete { padding: clamp(16px, 2.6vw, 26px) 0 clamp(28px, 4vw, 40px); max-width: 820px; }
.outil-tete .reponse-directe { margin-top: 20px; font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 60ch; }
.outil-tete .reponse-directe strong { font-weight: 800; }
.outil-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.outil-grille.cadre-outil { margin: clamp(8px, 1.4vw, 16px) 0 clamp(40px, 6vw, 72px); }
.outil-resultat { position: sticky; top: 90px; }
.resultat-carte .compteur-chiffre { font-size: clamp(3.4rem, 8.5vw, 5.6rem); }
.resultat-carte .detail { max-width: none; margin-top: 22px; }
.resultat-carte .detail-ligne { border-bottom-color: var(--filet); }
.resultat-carte .piste { margin-top: 18px; max-width: none; }

.semaine-barre { margin-top: 22px; }
.semaine-barre .barre { display: flex; height: 22px; border: 2px solid var(--noir); border-radius: 4px; overflow: hidden; background: var(--blanc); }
.semaine-barre .barre i { display: block; height: 100%; transition: flex-basis 0.5s var(--sortie); flex: 0 0 0; }
.semaine-barre .barre .b-normal { background: var(--beton); }
.semaine-barre .barre .b-hs1 { background: var(--jaune); border-left: 2px solid var(--noir); }
.semaine-barre .barre .b-hs2 { background: repeating-linear-gradient(-45deg, var(--jaune) 0 6px, var(--noir) 6px 12px); border-left: 2px solid var(--noir); }
.semaine-barre .legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 0.86rem; color: var(--gris); }
.semaine-barre .legende span { display: inline-flex; align-items: center; gap: 6px; }
.semaine-barre .legende span::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--noir); border-radius: 2px; }
.semaine-barre .legende .l-normal::before { background: var(--beton); }
.semaine-barre .legende .l-hs1::before { background: var(--jaune); }
.semaine-barre .legende .l-hs2::before { background: repeating-linear-gradient(-45deg, var(--jaune) 0 3px, var(--noir) 3px 6px); }

.cas-liste { display: grid; gap: 14px; margin-top: 6px; }

.sens { display: inline-flex; padding: 3px; border-radius: 8px; border: 2px solid var(--noir); margin-bottom: 18px; flex-wrap: wrap; }
.sens button {
  border: 0; background: none; padding: 10px 14px; border-radius: 5px; cursor: pointer;
  font: 700 0.92rem/1 var(--police-texte); color: var(--noir);
}
.sens button[aria-pressed="true"] { background: var(--noir); color: var(--blanc); }

/* Texte long */
.prose { max-width: 70ch; font-size: 1.075rem; }
.prose > * + * { margin-top: 1.05em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.5em; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.prose h3 { margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose ul li::marker { color: var(--noir); content: "■  "; font-size: 0.7em; }
.prose ol li::marker { font-weight: 800; }
.prose a { font-weight: 650; text-decoration-color: var(--jaune); }
.prose .formule {
  font: 800 1.35rem/1.35 var(--police-panneau); font-stretch: 75%; font-variant-numeric: tabular-nums;
  background: var(--blanc); border: var(--trait) solid var(--noir); border-radius: 8px; padding: 16px 20px;
}
.prose .note { position: relative; background: var(--bleu); color: var(--blanc); border-radius: 8px; padding: 14px 16px 14px 60px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; border-top: var(--trait) solid var(--noir); }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
.prose th { font-size: 0.86rem; font-weight: 700; border-bottom: 2px solid var(--noir); }
.prose td:last-child { font-family: var(--police-panneau); font-stretch: 75%; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.prose table.texte td:last-child { font-family: inherit; font-stretch: 100%; font-weight: 400; font-size: inherit; white-space: normal; text-align: left; }
.defile-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.colonnes-contenu { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.aside-colle { position: sticky; top: 90px; display: grid; gap: 22px; }
.aside-bloc { border-top: 2px solid var(--noir); padding-top: 14px; }
.aside-bloc h2 { font: 700 0.95rem/1.3 var(--police-texte); }
.aside-bloc ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.aside-bloc a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.aside-bloc a:hover { text-decoration: underline; text-decoration-color: var(--jaune); }
.aside-app { background: var(--jaune); border: var(--trait) solid var(--noir); border-radius: var(--r-panneau); padding: 20px; }
.aside-app p { font-size: 0.94rem; color: var(--sur-jaune-doux); margin-top: 8px; }
.aside-app strong { font: 800 1.45rem/1.05 var(--police-panneau); font-stretch: 75%; display: block; }
.aside-app .bouton { margin-top: 16px; width: 100%; }
.aside-app .bouton:hover { background: var(--blanc); color: var(--noir); }

.article-tete { padding: clamp(16px, 2.6vw, 26px) 0 clamp(32px, 5vw, 52px); max-width: 860px; }
.article-tete .chapeau { margin-top: 20px; font-size: 1.2rem; color: var(--gris); max-width: 60ch; }
.meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; color: var(--gris); }

.sources { margin-top: 2.6em; padding-top: 16px; border-top: 2px solid var(--noir); font-size: 0.92rem; color: var(--gris); }
.sources h2 { font: 700 1rem/1.3 var(--police-texte); margin: 0 0 10px !important; }
.sources ul { margin: 0; padding-left: 1.1em; }
.sources a { color: var(--gris); font-weight: 500; }

.suite-outils { margin-top: clamp(56px, 8vw, 96px); }
.suite-outils h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.rappel-app {
  margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  background: var(--noir); color: var(--blanc); border-radius: var(--r-panneau); padding: clamp(24px, 4vw, 40px);
}
.rappel-app h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); max-width: 22ch; }
.rappel-app p { margin-top: 10px; color: #c9cac5; max-width: 56ch; }
.rappel-app .bouton { background: var(--jaune); color: var(--noir); border-color: var(--jaune); }
.rappel-app .bouton:hover { background: var(--blanc); border-color: var(--blanc); }

.liste-guides { list-style: none; padding: 0; margin: clamp(26px, 4vw, 40px) 0 0; border-top: var(--trait) solid var(--noir); }
.liste-guides a { display: grid; grid-template-columns: 1fr 52px; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 2px solid var(--noir); text-decoration: none; }
.liste-guides h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.liste-guides p { margin-top: 8px; color: var(--gris); max-width: 64ch; }
.liste-guides a:hover .fleche-tuile { background: var(--noir); color: var(--jaune); }
.liste-guides .fleche-tuile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 6px; background: var(--jaune); border: 2px solid var(--noir); }
.liste-guides .fleche-tuile svg { width: 26px; height: 26px; }

.page-simple { padding-bottom: clamp(56px, 8vw, 96px); }
.page-simple .article-tete h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); }

/* Pied de page : une plaque noire */
.pied { margin-top: clamp(48px, 8vw, 96px); background: var(--noir); color: var(--blanc); padding: clamp(40px, 6vw, 64px) 0 36px; font-size: 0.94rem; }
.pied-grille { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.pied .marque span { color: var(--blanc); }
.pied p { color: #c9cac5; max-width: 38ch; margin-top: 14px; }
.pied h2 { font: 700 0.9rem/1 var(--police-texte); color: var(--jaune); }
.pied ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.pied a { color: #e3e4df; text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; text-decoration-color: var(--jaune); }
.pied-bas { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a3b39; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.86rem; }
.pied-bas p { margin: 0; max-width: 72ch; color: #b9bab5; }

/* Le seul mouvement : la bande qui pivote quand l'état change */
@media (prefers-reduced-motion: no-preference) {
  .panneau-bande.pivote { animation: pivote 0.3s var(--sortie); }
  @keyframes pivote { from { transform: perspective(600px) rotateX(-88deg); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Responsive */
@media (max-width: 960px) {
  .heros-grille, .outil-grille, .histoire, .app-bloc, .colonnes-contenu { grid-template-columns: 1fr; }
  .outil-resultat { position: static; order: -1; }
  .aside-colle { position: static; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-grille > :first-child { grid-column: 1 / -1; }
  .heros-grille { display: flex; flex-direction: column; gap: 0; }
  .heros .chapeau { margin-top: 12px; font-size: 1.05rem; }
  .heros .cadre-outil { margin-top: 20px; }
  .heros .formulaire { margin-top: 20px; }
  .heros .piste { margin-top: 20px; }

  /* En dessous de 960px, le cadre jaune reprend toute la largeur de l'écran au lieu de flotter en carte inset : plus de carte-sur-carte. */
  .cadre-outil {
    margin-inline: calc(-1 * var(--gouttiere));
    padding-inline: var(--gouttiere);
    border-radius: 0; border-left: 0; border-right: 0;
  }
  .outil-grille.cadre-outil { margin-block: clamp(8px, 1.4vw, 16px) clamp(32px, 5vw, 48px); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-bouton {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 6px;
    border: 2px solid var(--noir); background: var(--blanc); color: var(--noir); cursor: pointer;
  }
  .nav-bouton svg { width: 20px; height: 20px; }
  .entete .bouton.petit { display: none; }
  .entete[data-ouvert="1"] .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 66px; left: 0; right: 0; padding: 4px var(--gouttiere) 18px;
    background: var(--blanc); border-bottom: 2px solid var(--noir);
  }
  .entete[data-ouvert="1"] .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--filet); }
  .embranchement a { grid-template-columns: minmax(0, 1fr) 44px; }
  .embranchement .apercu { display: none; }
  .embranchement .fleche-tuile { width: 44px; height: 44px; }
  .rappel-app { grid-template-columns: 1fr; }
  .deux-champs { grid-template-columns: 1fr; }
  .compteur-verdict { font-size: 1.2rem; }
  .heros h1 { font-size: 2.6rem; }
  .heros .chapeau { font-size: 1rem; }
  .heros .panneau-corps { padding: 16px 18px 6px; }
  .heros .compteur-suite { margin-top: 8px; }
  .heros .compteur-app { margin-top: 12px; padding-top: 12px; }
  .heros .formulaire { padding-top: 18px; }
  .heros .formulaire .champs { margin-top: 14px; }
}
@media (max-width: 420px) {
  .pied-grille { grid-template-columns: 1fr; }
}

.app-tete h1 { max-width: 13ch; font-size: clamp(2.6rem, 5vw, 4.2rem); }
.app-tete .app-bloc { padding: clamp(36px, 6vw, 72px) 0; }
