/* ==========================================================================
   facturationelectronique.co — charte institutionnelle
   Inspirée des principes du Système de Design de l'État (grille, sobriété,
   hiérarchie, contrastes RGAA) SANS reprendre les éléments réservés à l'État :
   ni bloc-marque Marianne, ni logotype République Française, ni police
   Marianne, ni la couleur Bleu France (#000091) employée comme marque.
   Aucun asset du DSFR n'est téléchargé ni distribué ici.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Couleurs de marque, volontairement distinctes des couleurs de l'État */
  --bleu: #16266e;
  --bleu-fonce: #0f1b4d;
  --bleu-clair: #2c56c4;
  --bleu-survol: #1e3a8f;
  --bleu-fond: #eef2fb;
  --bleu-fond-fort: #dde5f7;

  --accent: #b34000;
  --accent-fond: #fff3ed;
  --rouge: #ce0500;
  --rouge-fond: #fff0ef;
  --vert: #18753c;
  --vert-fond: #eefbf2;
  --jaune-fond: #fff5d6;
  --jaune-bord: #d0a020;

  /* Neutres */
  --texte: #161616;
  --texte-fort: #0d0d0d;
  --texte-mention: #5d5d5d;
  --fond: #ffffff;
  --fond-alt: #f6f6f6;
  --fond-alt2: #eeeeee;
  --bordure: #dddddd;
  --bordure-forte: #929292;

  /* Typographie — pile système : rapide, sobre, aucun asset réservé */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-titre: var(--font);

  /* Rythme */
  --gap: 1.5rem;
  --largeur: 78rem;
  --largeur-texte: 44rem;
  --radius: 0;
  --focus: 0 0 0 2px #fff, 0 0 0 4px var(--bleu-clair);
  --ombre: 0 1px 3px rgba(0, 0, 18, 0.12);
  --ombre-forte: 0 4px 16px rgba(0, 0, 18, 0.14);
}

html[data-theme="dark"] {
  --bleu: #8fa8ff;
  --bleu-fonce: #c3d0ff;
  --bleu-clair: #a4b8ff;
  --bleu-survol: #c3d0ff;
  --bleu-fond: #1b1f36;
  --bleu-fond-fort: #242a48;

  --accent: #ff9269;
  --accent-fond: #33221a;
  --rouge: #ff7a72;
  --rouge-fond: #35191a;
  --vert: #6fdc94;
  --vert-fond: #16281c;
  --jaune-fond: #2e2818;
  --jaune-bord: #b28c2a;

  --texte: #ededed;
  --texte-fort: #ffffff;
  --texte-mention: #b0b0b0;
  --fond: #131316;
  --fond-alt: #1b1b1f;
  --fond-alt2: #232328;
  --bordure: #353539;
  --bordure-forte: #6a6a70;
  --ombre: 0 1px 3px rgba(0, 0, 0, 0.5);
  --ombre-forte: 0 4px 16px rgba(0, 0, 0, 0.6);
  --focus: 0 0 0 2px #131316, 0 0 0 4px var(--bleu-clair);
}

/* --- 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 2rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-titre); color: var(--texte-fort); line-height: 1.25; margin: 0 0 .75rem; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.05rem); margin-top: 0; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--bleu-clair); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bleu-survol); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: none; box-shadow: var(--focus); border-radius: 2px;
}

strong, b { font-weight: 700; color: var(--texte-fort); }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: .4rem; }
li > ul, li > ol { margin-top: .4rem; }

code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--fond-alt2); padding: .1em .35em; border-radius: 2px; }

hr { border: 0; border-top: 1px solid var(--bordure); margin: 2.5rem 0; }

abbr[title] { text-decoration: underline dotted; cursor: help; }

/* Exposants « 1er », « 2e » : sans line-height nulle, ils décalent la ligne. */
sup, sub { font-size: .68em; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.45em; }
sub { bottom: -0.2em; }

.container { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 48rem) { .container { padding: 0 1rem; } }

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

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bleu); color: #fff; padding: .75rem 1.25rem; font-weight: 700;
}
.skiplink:focus { left: 0; }

.lead { font-size: 1.15rem; line-height: 1.55; color: var(--texte); }
.text-narrow { max-width: var(--largeur-texte); }
.mention { color: var(--texte-mention); font-size: .875rem; }
.center { text-align: center; }

/* --- 3. Bandeau de non-affiliation -------------------------------------- */
.disclaimer-band {
  background: var(--fond-alt);
  border-bottom: 1px solid var(--bordure);
  font-size: .8125rem;
  color: var(--texte-mention);
}
.disclaimer-band__inner { display: flex; align-items: center; gap: .5rem; padding-top: .5rem; padding-bottom: .5rem; }
.disclaimer-band p { margin: 0; }
.disclaimer-band strong { color: var(--texte); }
.disclaimer-band .ico { flex: none; color: var(--bleu); }

/* --- 4. En-tête --------------------------------------------------------- */
.header { background: var(--fond); border-bottom: 1px solid var(--bordure); box-shadow: var(--ombre); position: relative; z-index: 20; }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.header__brand { display: flex; align-items: center; gap: 1.25rem; padding: .9rem 0; flex: 1 1 auto; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand__mark { color: var(--bleu); display: flex; }
html[data-theme="dark"] .brand__mark svg rect { fill: var(--bleu-fond-fort); }
html[data-theme="dark"] .brand__mark svg path { fill: var(--bleu-clair); }
.brand__text { display: flex; align-items: baseline; gap: .15rem; }
.brand__name { font-size: .95rem; line-height: 1.15; color: var(--texte-fort); text-transform: uppercase; letter-spacing: .02em; font-weight: 500; }
.brand__name b { font-weight: 800; }
.brand__tld { font-size: .95rem; font-weight: 800; color: var(--accent); align-self: flex-end; }

.header__baseline {
  margin: 0; padding-left: 1.25rem; border-left: 1px solid var(--bordure);
  font-size: .8125rem; color: var(--texte-mention); max-width: 15rem;
}
.header__burger { display: none; background: none; border: 0; color: var(--bleu); padding: .5rem; cursor: pointer; }

.nav { flex: 0 0 auto; }
.nav__list { display: flex; align-items: stretch; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; margin: 0; }
.nav__link, .nav__btn {
  display: flex; align-items: center; gap: .35rem; height: 100%;
  padding: 1.1rem .85rem; font: inherit; font-size: .9375rem; font-weight: 500;
  color: var(--texte); background: none; border: 0; border-bottom: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__btn:hover { background: var(--fond-alt); color: var(--bleu); }
.nav__btn::after {
  content: ""; width: .45rem; height: .45rem; margin-left: .1rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s;
}
.nav__btn[aria-expanded="true"] { color: var(--bleu); border-bottom-color: var(--bleu); }
.nav__btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.nav__link--highlight {
  background: var(--bleu); color: #fff; margin: .55rem 0 .55rem .5rem; padding: .55rem 1rem; border-bottom: 0; font-weight: 700;
}
.nav__link--highlight:hover { background: var(--bleu-survol); color: #fff; }
html[data-theme="dark"] .nav__link--highlight { color: #101014; }
html[data-theme="dark"] .nav__link--highlight:hover { color: #101014; }

.nav__menu {
  display: none; position: absolute; top: 100%; right: 0; min-width: 17rem; z-index: 30;
  background: var(--fond); border: 1px solid var(--bordure); border-top: 2px solid var(--bleu); box-shadow: var(--ombre-forte);
}
.nav__menu.is-open { display: block; }
.nav__sub { list-style: none; margin: 0; padding: .5rem 0; }
.nav__sub li { margin: 0; }
.nav__sub a { display: block; padding: .55rem 1rem; color: var(--texte); text-decoration: none; font-size: .9375rem; }
.nav__sub a:hover { background: var(--fond-alt); color: var(--bleu); box-shadow: inset 3px 0 0 var(--bleu); }

@media (max-width: 62rem) {
  .header__baseline { display: none; }
  .header__burger { display: block; margin-left: auto; }
  .nav { flex: 1 0 100%; display: none; border-top: 1px solid var(--bordure); }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding-bottom: .75rem; }
  .nav__link, .nav__btn { width: 100%; padding: .9rem .25rem; border-bottom: 1px solid var(--bordure); }
  .nav__btn { justify-content: space-between; }
  .nav__link--highlight { margin: .75rem 0 0; padding: .8rem 1rem; justify-content: center; }
  .nav__menu { position: static; border: 0; box-shadow: none; background: var(--fond-alt); }
  .nav__sub a { padding-left: 1.25rem; }
}

/* --- 5. Fil d'Ariane ---------------------------------------------------- */
.breadcrumb { padding: 1rem 0 0; font-size: .875rem; }
.breadcrumb__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 0; }
.breadcrumb__list li { margin: 0; display: flex; align-items: center; }
.breadcrumb__list li:not(:first-child)::before { content: "›"; margin: 0 .5rem; color: var(--texte-mention); }
.breadcrumb__link { color: var(--bleu-clair); }
.breadcrumb__link[aria-current="page"] { color: var(--texte-mention); text-decoration: none; }

/* --- 6. Sections -------------------------------------------------------- */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--fond-alt); }
.section--tight { padding: 2.25rem 0; }
@media (max-width: 48rem) { .section { padding: 2.5rem 0; } }

.section__head { max-width: var(--largeur-texte); margin-bottom: 2rem; }
.section__over { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); margin-bottom: .5rem; }

/* --- 7. Héros ----------------------------------------------------------- */
.hero { background: var(--fond); border-bottom: 1px solid var(--bordure); padding: 3rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, var(--bleu-fond) 55%, var(--bleu-fond) 100%);
  pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__tag {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem;
  background: var(--accent-fond); color: var(--accent); border: 1px solid currentColor;
  padding: .35rem .75rem; font-size: .8125rem; font-weight: 700;
}
.hero h1 { margin-bottom: 1rem; }
.hero__lead { font-size: 1.2rem; line-height: 1.55; color: var(--texte); margin-bottom: 1.75rem; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero__note { font-size: .875rem; color: var(--texte-mention); margin: 0; }
@media (max-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero::after { display: none; }
}

/* Compte à rebours */
.countdown { background: var(--bleu); color: #fff; padding: 1.75rem; box-shadow: var(--ombre-forte); }
html[data-theme="dark"] .countdown { background: var(--bleu-fond-fort); color: var(--texte-fort); border: 1px solid var(--bordure); }
.countdown__label { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; opacity: .85; margin: 0 0 .75rem; }
.countdown__value { font-size: clamp(2.75rem, 2rem + 3vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin: 0; font-variant-numeric: tabular-nums; }
.countdown__unit { font-size: 1.05rem; font-weight: 600; margin: .35rem 0 1.15rem; opacity: .9; }
.countdown__deadline { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 1rem; margin: 0; font-size: .9375rem; line-height: 1.45; }
html[data-theme="dark"] .countdown__deadline { border-top-color: var(--bordure); }
.countdown__deadline strong { color: #fff; }
html[data-theme="dark"] .countdown__deadline strong { color: var(--texte-fort); }

/* --- 8. Boutons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.35rem; font: inherit; font-size: .9375rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .12s, color .12s;
}
.btn--primary { background: var(--bleu); color: #fff; }
.btn--primary:hover { background: var(--bleu-survol); color: #fff; }
html[data-theme="dark"] .btn--primary { color: #101014; }
html[data-theme="dark"] .btn--primary:hover { color: #101014; }
.btn--secondary { background: transparent; color: var(--bleu); border-color: var(--bleu); }
.btn--secondary:hover { background: var(--bleu-fond); color: var(--bleu); }
.btn--tertiary { background: transparent; color: var(--bleu-clair); padding-left: 0; padding-right: 0; }
.btn--tertiary:hover { text-decoration: underline; }
.btn--lg { padding: .95rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* --- 9. Tuiles ---------------------------------------------------------- */
.tiles { display: grid; gap: 1.25rem; }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 62rem) { .tiles--3, .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .tiles { grid-template-columns: minmax(0, 1fr) !important; } }
.tiles > * { min-width: 0; }

.tile {
  position: relative; display: flex; flex-direction: column; gap: .35rem;
  padding: 1.5rem 1.5rem 2.75rem; background: var(--fond); border: 1px solid var(--bordure);
  border-bottom: 3px solid var(--bleu); text-decoration: none; color: inherit; transition: background .12s, transform .12s;
}
.section--alt .tile { background: var(--fond); }
.tile:hover { background: var(--bleu-fond); }
.tile__num { font-size: .8125rem; font-weight: 800; color: var(--bleu); letter-spacing: .05em; }
.tile__title { margin: 0; font-size: 1.1rem; color: var(--texte-fort); }
.tile:hover .tile__title { color: var(--bleu); }
.tile__desc { margin: 0; font-size: .9375rem; color: var(--texte-mention); line-height: 1.5; }
.tile__arrow { position: absolute; bottom: 1.15rem; left: 1.5rem; color: var(--bleu); font-size: 1.1rem; }
.tile:hover .tile__arrow { transform: translateX(3px); }

/* Variante non cliquable : cartes tarifaires, blocs d'information. */
.tile--static { padding-bottom: 1.5rem; cursor: default; }
.tile--static:hover { background: var(--fond); }
.tile--static ul { margin: .85rem 0 0; padding-left: 1.1rem; font-size: .9375rem; }
.tile--static li { margin-bottom: .3rem; color: var(--texte); }
.tile--static .tile__title { font-size: 1.75rem; letter-spacing: -0.02em; }
.tile--static .tile__title small { font-size: .95rem; font-weight: 500; color: var(--texte-mention); letter-spacing: 0; }

.badge {
  display: inline-block; align-self: flex-start; padding: .15rem .5rem; margin-bottom: .25rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--bleu-fond-fort); color: var(--bleu);
}
.badge--accent { background: var(--accent-fond); color: var(--accent); }
.badge--vert { background: var(--vert-fond); color: var(--vert); }
.badge--rouge { background: var(--rouge-fond); color: var(--rouge); }

/* --- 10. Mise en avant (callout) ---------------------------------------- */
.callout {
  display: flex; gap: 1rem; padding: 1.5rem; background: var(--bleu-fond);
  border-left: 4px solid var(--bleu); margin: 1.75rem 0;
}
.callout--accent { background: var(--accent-fond); border-left-color: var(--accent); }
.callout--neutre { background: var(--fond-alt); border-left-color: var(--bordure-forte); }
.callout--vert { background: var(--vert-fond); border-left-color: var(--vert); }
.callout__icon { flex: none; font-size: 1.5rem; line-height: 1.2; }
.callout__title { margin: 0 0 .5rem; font-size: 1.1rem; }
.callout__body > :last-child { margin-bottom: 0; }

/* --- 11. Alertes -------------------------------------------------------- */
.alert { padding: 1rem 1.25rem 1rem 3rem; margin: 1.5rem 0; position: relative; border: 1px solid; }
.alert::before { content: ""; position: absolute; left: 1rem; top: 1.15rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; }
.alert__title { margin: 0; font-size: 1rem; }
.alert__body { margin-top: .35rem; font-size: .9375rem; }
.alert__body > :last-child { margin-bottom: 0; }
.alert--info { background: var(--bleu-fond); border-color: var(--bleu); }
.alert--info::before { background: var(--bleu); }
.alert--warning { background: var(--jaune-fond); border-color: var(--jaune-bord); }
.alert--warning::before { background: var(--accent); }
.alert--error { background: var(--rouge-fond); border-color: var(--rouge); }
.alert--error::before { background: var(--rouge); }
.alert--success { background: var(--vert-fond); border-color: var(--vert); }
.alert--success::before { background: var(--vert); }

/* --- 12. Chronologie ---------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: .5rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--bordure); }
.timeline__item { position: relative; padding: 0 0 2rem 2.5rem; margin: 0; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 0; top: .35rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--fond); border: 3px solid var(--bordure-forte); z-index: 1;
}
.timeline__item--done .timeline__dot { background: var(--vert); border-color: var(--vert); }
.timeline__item--now .timeline__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-fond); }
.timeline__item--next .timeline__dot { background: var(--fond); border-color: var(--bleu); }
.timeline__date { margin: 0 0 .2rem; font-size: .8125rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--texte-mention); }
.timeline__item--now .timeline__date { color: var(--accent); }
.timeline__title { margin: 0 0 .4rem; font-size: 1.15rem; }
.timeline__body { font-size: .9375rem; color: var(--texte); }
.timeline__body > :last-child { margin-bottom: 0; }

/* --- 13. Tableaux ------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1.75rem 0; border: 1px solid var(--bordure); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--fond); }
caption { text-align: left; padding: .85rem 1rem; font-size: .875rem; color: var(--texte-mention); border-bottom: 1px solid var(--bordure); }
th, td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bordure); }
thead th { background: var(--fond-alt); font-weight: 700; color: var(--texte-fort); white-space: nowrap; }
tbody th { font-weight: 600; color: var(--texte-fort); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--fond-alt); }

/* --- 14. Accordéon ------------------------------------------------------ */
.accordion { border-top: 1px solid var(--bordure); margin: 1.75rem 0; }
.accordion__item { border-bottom: 1px solid var(--bordure); }
.accordion__head { margin: 0; font-size: 1rem; }
.accordion__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  padding: 1.1rem .5rem 1.1rem 0; font: inherit; font-size: 1.02rem; font-weight: 600; text-align: left;
  color: var(--texte-fort); background: none; border: 0; cursor: pointer;
}
.accordion__btn:hover { color: var(--bleu); background: var(--fond-alt); padding-left: .5rem; }
.accordion__btn::after {
  content: ""; flex: none; width: .55rem; height: .55rem; margin-right: .35rem;
  border-right: 2px solid var(--bleu); border-bottom: 2px solid var(--bleu);
  transform: translateY(-3px) rotate(45deg); transition: transform .15s;
}
.accordion__btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.accordion__panel { padding: 0 2rem 1.35rem 0; font-size: .9375rem; }
.accordion__panel > :last-child { margin-bottom: 0; }

/* --- 15. Sommaire ------------------------------------------------------- */
.summary { background: var(--fond-alt); border: 1px solid var(--bordure); padding: 1.25rem 1.5rem; margin: 0 0 2.25rem; }
.summary__title { margin: 0 0 .6rem; font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-mention); }
.summary ol { margin: 0; padding-left: 1.15rem; }
.summary li { margin-bottom: .3rem; font-size: .9375rem; }

/* --- 16. Chiffres clés -------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.stat { padding: 1.35rem 1.5rem; background: var(--fond); border: 1px solid var(--bordure); border-top: 3px solid var(--accent); }
.stat__value { margin: 0; font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: var(--bleu); letter-spacing: -0.02em; }
.stat__label { margin: .3rem 0 0; font-size: .9375rem; font-weight: 600; color: var(--texte-fort); }
.stat__note { margin: .3rem 0 0; font-size: .8125rem; color: var(--texte-mention); }

/* --- 17. Colonnes de contenu -------------------------------------------- */
.cols { display: grid; gap: 2.5rem; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--sidebar { grid-template-columns: minmax(0, 1fr) 20rem; }
.cols--aside { grid-template-columns: 17rem minmax(0, 1fr); }
/* minmax(0,…) et non 1fr : sans cela, un tableau large élargit la piste
   au-delà du viewport et provoque un défilement horizontal de la page. */
@media (max-width: 62rem) {
  .cols--2, .cols--sidebar, .cols--aside { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}
.cols > * { min-width: 0; }

.prose { max-width: var(--largeur-texte); }
.prose h2 { margin-top: 2.75rem; padding-top: .5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.85rem; }
.prose--wide { max-width: 56rem; }

/* --- 18. Appel à l'action ----------------------------------------------- */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem;
  padding: 2.25rem; background: var(--bleu); color: #fff; margin: 0;
}
html[data-theme="dark"] .cta { background: var(--bleu-fond-fort); color: var(--texte-fort); border: 1px solid var(--bordure); }
.cta__text { flex: 1 1 24rem; }
.cta__title { color: #fff; margin: 0 0 .5rem; font-size: 1.55rem; }
html[data-theme="dark"] .cta__title { color: var(--texte-fort); }
.cta p { margin: 0; opacity: .92; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta .btn--primary { background: #fff; color: var(--bleu); }
.cta .btn--primary:hover { background: var(--bleu-fond); color: var(--bleu); }
.cta .btn--secondary { border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta .btn--secondary:hover { background: rgba(255, 255, 255, .12); color: #fff; }
html[data-theme="dark"] .cta .btn--primary { background: var(--bleu-clair); color: #101014; }
html[data-theme="dark"] .cta .btn--secondary { border-color: var(--bordure-forte); color: var(--texte-fort); }

/* --- 19. Schéma de flux ------------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; margin: 2rem 0; }
.flow__step {
  position: relative; padding: 1.15rem 1.25rem; background: var(--fond);
  border: 1px solid var(--bordure); border-top: 3px solid var(--bleu);
}
.flow__step--gouv { border-top-color: var(--accent); background: var(--accent-fond); }
.flow__num { display: block; font-size: .75rem; font-weight: 800; color: var(--bleu); letter-spacing: .06em; margin-bottom: .3rem; }
.flow__step--gouv .flow__num { color: var(--accent); }
.flow__step h3 { font-size: 1rem; margin: 0 0 .3rem; }
.flow__step p { margin: 0; font-size: .875rem; color: var(--texte-mention); line-height: 1.45; }

/* --- 20. Blocs comparatifs en vis-à-vis --------------------------------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 2rem 0; }
@media (max-width: 48rem) { .compare { grid-template-columns: minmax(0, 1fr); } }
.compare__card { padding: 1.5rem; border: 1px solid var(--bordure); background: var(--fond); }
.compare__card--fr { border-top: 4px solid var(--bleu); }
.compare__card--pe { border-top: 4px solid var(--accent); }
.compare__flag { font-size: 1.5rem; line-height: 1; }
.compare__card h3 { margin: .5rem 0 .75rem; }
.compare__card ul { padding-left: 1.1rem; font-size: .9375rem; }

/* --- 21. Sources -------------------------------------------------------- */
.sources { margin-top: 3rem; padding: 1.5rem; background: var(--fond-alt); border: 1px solid var(--bordure); font-size: .9375rem; }
.sources__title { margin: 0 0 .75rem; font-size: 1rem; }
.sources ul { margin: 0; padding-left: 1.15rem; }
.sources li { margin-bottom: .35rem; }
.sources span { color: var(--texte-mention); }
.source { font-size: .875rem; color: var(--texte-mention); margin-top: -.75rem; }

.related { margin-top: 3.5rem; }
.related__title { font-size: 1.35rem; margin-bottom: 1.25rem; }

/* --- 22. Pied de page --------------------------------------------------- */
.footer { border-top: 2px solid var(--bleu); background: var(--fond); margin-top: 0; }
.footer__top { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 3rem; padding: 2.5rem 0; }
@media (max-width: 62rem) { .footer__top { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.brand--footer { margin-bottom: 1rem; }
.footer__desc { font-size: .875rem; color: var(--texte-mention); margin-bottom: .75rem; }
.footer__official { font-size: .8125rem; color: var(--texte-mention); margin: 0; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 48rem) { .footer__cols { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.footer__col-title { font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6rem; color: var(--texte-fort); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: .35rem; }
.footer__col a { font-size: .9375rem; color: var(--texte); text-decoration: none; }
.footer__col a:hover { text-decoration: underline; color: var(--bleu); }
.footer__bottom { border-top: 1px solid var(--bordure); padding: 1.25rem 0 2rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0 0 .75rem; padding: 0; }
.footer__legal li { margin: 0; }
.footer__legal a { font-size: .8125rem; color: var(--texte-mention); text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; color: var(--texte); }
.footer__mention { font-size: .8125rem; color: var(--texte-mention); margin: 0; }

/* --- 23. Bascule de thème ----------------------------------------------- */
.theme-toggle {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .75rem; font: inherit; font-size: .8125rem; font-weight: 600;
  background: var(--fond); color: var(--texte); border: 1px solid var(--bordure-forte);
  box-shadow: var(--ombre-forte); cursor: pointer;
}
.theme-toggle:hover { background: var(--fond-alt); }

/* --- 24. Impression ----------------------------------------------------- */
@media print {
  .header, .footer, .disclaimer-band, .breadcrumb, .theme-toggle, .cta__actions { display: none; }
  body { font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
