/* base.css — reset, typographie, gabarit (en-tête, pied) et composants du portail MonSisra, v2.
   Les composants sont ceux de la liste FERMÉE de docs/DESIGN.md : en ajouter un se décide là-bas
   d'abord. Toutes les valeurs viennent de tokens.css (aucune couleur en dur ici).
   Règle de composition : sur fond blanc, des BLOCS à filet d'accent ; sur fond teinté, des TUILES
   blanches. Jamais de numérotation décorative. Un seul grand aplat permis : la section à fond
   violet franc (.section--violet), une par page au plus, pour rompre le rythme (v3). */

/* ───────── Reset ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hauteur-entete) + var(--e-4)); }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd, pre { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, picture { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ───────── Typographie ───────── */
body {
  background: var(--fond);
  color: var(--encre-texte);
  font-family: var(--police-texte);
  font-size: var(--t-16);
  line-height: var(--interligne);
  font-feature-settings: 'cv11', 'ss01';   /* Inter : a et 1 plus lisibles */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, .titre {
  font-family: var(--police-titre);
  font-weight: 700;
  color: var(--encre-titre);
  letter-spacing: var(--approche-titre);
  line-height: var(--interligne-titre);
  text-wrap: balance;
}
h1 { font-size: var(--t-titre-1); letter-spacing: -0.035em; }
h2 { font-size: var(--t-titre-2); }
h3 { font-size: var(--t-titre-3); letter-spacing: -0.015em; line-height: 1.25; }
p { max-width: var(--mesure); text-wrap: pretty; }
.chapo { font-size: var(--t-chapo); line-height: 1.5; color: var(--encre-texte); }
.discret { color: var(--encre-douce); font-size: var(--t-14); }
.lien, .prose a, .reponse a:not([class]) { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.lien:hover, .prose a:hover, .reponse a:not([class]):hover { text-decoration-thickness: 2px; }

/* ───────── Accessibilité ───────── */
:focus-visible { outline: var(--anneau-focus); outline-offset: 3px; border-radius: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement {
  position: absolute; left: var(--e-4); top: -100px; z-index: 100;
  background: var(--violet); color: var(--sur-violet); padding: var(--e-3) var(--e-4);
  border-radius: var(--r-1); font-weight: 600; text-decoration: none;
}
.evitement:focus { top: var(--e-4); outline-color: var(--violet); }

/* ───────── Gabarit ───────── */
.conteneur { width: 100%; max-width: calc(var(--largeur-max) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.section { padding-block: var(--e-section); }
.section--doux { background: var(--fond-doux); }
.section--vert { background: var(--fond-vert); }
.section--turquoise { background: var(--fond-turquoise); }
/* Fond franc (rupture de rythme) : une section par page au plus, texte blanc */
.section--violet { background: var(--violet); color: var(--sur-violet); }
.section--violet :focus-visible { outline-color: var(--focus-sur-violet); }
.section--violet h2, .section--violet h3 { color: var(--sur-violet); }
.section--violet .section__entete p { color: var(--sur-violet-doux); }
.section--violet .lien-fleche { color: var(--sur-violet); }
.section--violet .recherche { border-color: var(--fond); }
.section--violet .recherche:focus-within { outline-color: var(--focus-sur-violet); }
.section--violet .liste-liens, .section--violet .liste-liens a { border-color: var(--filet-sur-violet); }
.section--violet .liste-liens a { color: var(--sur-violet); }
.section--violet .liste-liens span span { color: var(--sur-violet-doux); }
.section--violet .liste-liens a > .ico:last-child, .section--violet .liste-liens a:hover > .ico:last-child { color: var(--sur-violet); }
.section--filet { border-top: var(--trait) solid var(--filet); }
.section__entete { display: grid; gap: var(--e-4); margin-bottom: var(--e-7); max-width: var(--largeur-texte); }
.section__entete p { color: var(--encre-douce); font-size: var(--t-18); }
.section__entete--ligne { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--e-3) var(--e-6); }
.section__entete--ligne > div { display: grid; gap: var(--e-3); max-width: var(--largeur-texte); }
.section__pied { margin-top: var(--e-6); }

/* ───────── Icônes ───────── */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; }
.ico--16 { width: 16px; height: 16px; }
.ico--24 { width: 24px; height: 24px; }
/* Icônes officielles : toujours dimensionnées par la hauteur (viewBox collé au tracé) */
.icone-metier { height: 26px; width: auto; }

/* Pastille : carré arrondi teinté qui porte une icône (officielle ou au trait) */
.pastille { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: var(--r-3); background: var(--pastille-violet); color: var(--violet); }
.pastille .ico { width: 24px; height: 24px; }
.pastille--vert { background: var(--pastille-vert); color: var(--vert-texte); }
.pastille--turquoise { background: var(--pastille-turquoise); color: var(--turquoise-texte); }
.pastille--violet { background: var(--pastille-violet); color: var(--violet); }
.pastille--bleu { background: var(--pastille-bleu); color: var(--bleu); }
.pastille--jaune { background: var(--pastille-jaune); color: var(--encre); }
.pastille--rouge { background: var(--pastille-rouge); color: var(--rouge); }
.pastille--grande { width: 60px; height: 60px; }
.pastille--grande .icone-metier { height: 32px; }

/* ───────── Logo du portail : S officiel + mot composé en Manrope ───────── */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); min-height: 44px; }
.logo img { height: 28px; width: auto; }
.logo span { font-family: var(--police-titre); font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.03em; line-height: 1; }
.logo--blanc { color: var(--sur-violet); }

/* ───────── En-tête ───────── */
.entete { position: sticky; top: 0; z-index: 50; background: var(--fond); border-bottom: var(--trait) solid var(--filet); }
.entete__barre { display: flex; align-items: center; gap: var(--e-6); min-height: var(--hauteur-entete); }
.nav { display: flex; align-items: center; gap: var(--e-6); margin-left: auto; }
.nav__liens { display: flex; gap: var(--e-5); }
.nav__liens a {
  display: inline-block; font-size: var(--t-15); font-weight: 500; color: var(--encre); text-decoration: none;
  padding-block: var(--e-2); background: linear-gradient(var(--vert), var(--vert)) left bottom / 0 2px no-repeat;
  transition: background-size var(--duree) var(--courbe);
}
.nav__liens a:hover, .nav__liens a[aria-current] { background-size: 100% 2px; }
.nav__liens a[aria-current] { font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: var(--e-3); }
/* Assistance : pastille rouge (rouge de la charte), pleine au survol */
.nav__assistance {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 13px;
  border: var(--trait) solid var(--rouge-filet); border-radius: 999px; background: var(--pastille-rouge);
  color: var(--rouge-texte); font-size: var(--t-15); font-weight: 600; text-decoration: none;
  transition: background-color var(--duree), color var(--duree), border-color var(--duree);
}
.nav__assistance:hover { background: var(--rouge); border-color: var(--rouge); color: var(--sur-rouge); }
.menu-bouton { display: none; align-items: center; gap: var(--e-2); margin-left: auto; min-height: 44px; padding-inline: var(--e-3); border-radius: var(--r-2); font-weight: 500; font-size: var(--t-15); }
.menu-bouton:hover { background: var(--fond-doux); }

@media (max-width: 1079px) {
  .js .menu-bouton { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; inset: 100% 0 auto 0; background: var(--fond);
    border-bottom: var(--trait) solid var(--filet); padding: var(--e-2) var(--marge) var(--e-5);
    flex-direction: column; align-items: stretch; gap: var(--e-4);
    max-height: calc(100vh - var(--hauteur-entete)); overflow-y: auto;
  }
  .js .entete.est-ouvert .nav { display: flex; }
  .nav { flex-wrap: wrap; }
  .nav__liens { flex-direction: column; gap: 0; }
  .nav__liens a { display: block; padding-block: var(--e-4); border-bottom: var(--trait) solid var(--filet); background: none; font-size: var(--t-16); }
  .nav__liens a[aria-current] { color: var(--vert-texte); }
  .nav__actions { flex-wrap: wrap; padding-top: var(--e-2); }
  .nav__actions > * { flex: 1 1 10rem; justify-content: center; }
}

/* ───────── Fil d'Ariane et bandeau de page ───────── */
.bandeau { background: var(--fond-bandeau); padding-block: clamp(48px, 2rem + 5vw, 112px) clamp(48px, 2rem + 4vw, 96px); }
.bandeau .conteneur { display: grid; gap: var(--e-5); }
.bandeau h1 { max-width: 20ch; }
.bandeau .chapo { max-width: 42rem; }
.bandeau .boutons { margin-top: var(--e-2); }
.bandeau .recherche { margin-top: var(--e-3); }
.ariane ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--e-2); font-size: var(--t-14); color: var(--encre-douce); }
.ariane li + li::before { content: '/'; margin-right: var(--e-2); color: var(--filet-fort); }
.ariane a { color: var(--encre-douce); text-underline-offset: .2em; }
.ariane a:hover { color: var(--encre); }

/* ───────── Boutons et liens ───────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-2);
  font-family: var(--police-texte); font-weight: 600; font-size: var(--t-16); line-height: 1.2;
  text-decoration: none; text-align: center;
  background: var(--vert); color: var(--sur-vert); border: var(--trait-bouton) solid var(--vert);   /* texte blanc : dérogation de contraste, voir tokens.css */
  transition: background-color var(--duree), border-color var(--duree), color var(--duree);
}
.bouton:hover { background: var(--vert-survol); border-color: var(--vert-survol); }
.bouton:focus-visible { outline-offset: 3px; border-radius: var(--r-2); }
.bouton--secondaire { background: var(--fond); color: var(--violet); border-color: var(--violet); }
.bouton--secondaire:hover { background: var(--pastille-violet); border-color: var(--violet); }
.bouton--petit { min-height: 44px; padding: 0 18px; font-size: var(--t-15); }
.boutons { display: flex; flex-wrap: wrap; gap: var(--e-3); }
@media (max-width: 599px) { .boutons--plein > .bouton { flex: 1 1 100%; } }
.boutons--colonne { flex-direction: column; align-items: stretch; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: var(--e-2); min-height: 32px;
  color: var(--violet); font-weight: 600; text-decoration: none;
}
.lien-fleche .ico { width: 18px; height: 18px; transition: transform var(--duree) var(--courbe); }
.lien-fleche:hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.lien-fleche:hover .ico { transform: translateX(3px); }

/* Ligne de liens secondaires séparés par un filet vertical */
.liens-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2) var(--e-4); font-size: var(--t-15); }
.liens-ligne a { display: inline-flex; align-items: center; gap: var(--e-2); min-height: 44px; color: var(--violet); font-weight: 500; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.liens-ligne .ico { width: 18px; height: 18px; }

/* ───────── Grilles ───────── */
.grille { display: grid; gap: var(--e-6) var(--goutte); }
.grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .grille--3 { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .grille--2, .grille--4 { grid-template-columns: 1fr; } .grille { gap: var(--e-5); } }

/* Titre de section à gauche, contenu à droite */
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--e-5) var(--e-8); align-items: start; }
.deux-colonnes > .section__entete { margin-bottom: 0; }
@media (max-width: 899px) { .deux-colonnes { grid-template-columns: 1fr; } }
.pile { display: grid; gap: var(--e-5); justify-items: start; min-width: 0; }
.pile > * { max-width: 100%; }

/* Étapes : liste ordonnée fonctionnelle (un geste après l'autre), sans décor */
.etapes { counter-reset: etape; display: grid; gap: 0; border-top: var(--trait) solid var(--filet-fort); width: 100%; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 2rem 1fr; gap: var(--e-3); padding-block: var(--e-4); border-bottom: var(--trait) solid var(--filet); }
.etapes li::before { content: counter(etape); font-family: var(--police-titre); font-weight: 700; color: var(--vert-texte); }

/* ───────── Bloc à filet d'accent (sur fond blanc) ───────── */
.bloc { display: grid; gap: var(--e-3); align-content: start; padding-top: var(--e-5); border-top: var(--trait-accent) solid var(--accent, var(--filet-fort)); }
.bloc > .pastille { margin-bottom: var(--e-2); }
.bloc p { color: var(--encre-douce); }
.bloc h3, .tuile h3 { font-size: var(--t-20); }
.bloc .lien-fleche { margin-top: var(--e-1); }
.accent-vert { --accent: var(--vert); }
.accent-turquoise { --accent: var(--turquoise); }
.accent-violet { --accent: var(--violet); }
.accent-bleu { --accent: var(--bleu); }
.accent-jaune { --accent: var(--jaune); }
/* Assistance (accès principal) : filet et lien au rouge de la charte, comme la pastille d'en-tête */
.accent-rouge { --accent: var(--rouge); }
.accent-rouge .lien-fleche { color: var(--rouge-texte); }

/* ───────── Tuile blanche (sur fond teinté) ───────── */
.tuile {
  position: relative; display: grid; gap: var(--e-3); align-content: start;
  padding: var(--e-6); background: var(--fond); border: var(--trait) solid var(--filet); border-radius: var(--r-4);
  color: var(--encre); text-decoration: none;
}
.tuile > .pastille { margin-bottom: var(--e-2); }
.tuile p { color: var(--encre-douce); }
a.tuile { transition: border-color var(--duree); }
a.tuile:hover { border-color: var(--violet); }
a.tuile:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.tuile__pied { margin-top: auto; padding-top: var(--e-3); }
.tuile--inactive { background: transparent; border-style: dashed; }
.tuile.est-recommande { border-color: var(--vert); box-shadow: inset 0 0 0 1px var(--vert); }
.tuile .tuile__signal { display: none; justify-self: start; }
.tuile.est-recommande .tuile__signal { display: inline-block; }
@media (max-width: 599px) { .tuile { padding: var(--e-5); } }

/* ───────── Puces sobres ───────── */
.puces { display: grid; gap: var(--e-2); color: var(--encre-douce); }
.puces li { position: relative; padding-left: var(--e-5); }
.puces li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--vert); }

/* ───────── Liste de liens (lignes icône · titre · flèche) ───────── */
.liste-liens { border-top: var(--trait) solid var(--filet-fort); }
.liste-liens a { display: grid; grid-template-columns: auto 1fr 20px; gap: var(--e-4); align-items: center; padding-block: var(--e-4); border-bottom: var(--trait) solid var(--filet-fort); text-decoration: none; color: var(--encre); }
.liste-liens strong { display: block; font-family: var(--police-titre); font-size: var(--t-18); font-weight: 700; letter-spacing: -0.01em; }
.liste-liens span span { display: block; font-size: var(--t-14); color: var(--encre-douce); }
.liste-liens a:hover strong { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.liste-liens a > .ico:last-child { color: var(--encre-douce); transition: transform var(--duree) var(--courbe); }
.liste-liens a:hover > .ico:last-child { transform: translateX(3px); color: var(--violet); }

/* Filtres (boutons à bascule) : même dessin que le sommaire d'ancres, avec un état « sélectionné ».
   Masqués sans JavaScript (attribut hidden retiré par portail.js) : la liste reste complète. */
.filtres { display: flex; flex-wrap: wrap; gap: var(--e-2); margin-bottom: var(--e-5); }
.filtres button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--e-4);
  border: var(--trait) solid var(--filet-fort); border-radius: 999px; background: var(--fond);
  font-size: var(--t-14); font-weight: 500; color: var(--encre);
  transition: border-color var(--duree), background-color var(--duree);
}
.filtres button:hover { border-color: var(--violet); color: var(--violet); }
.filtres button[aria-pressed="true"] { background: var(--pastille-vert); border-color: var(--vert); color: var(--encre); font-weight: 600; }

/* ───────── Sommaire de page (ancres) ───────── */
.sommaire { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.sommaire a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--e-4);
  border: var(--trait) solid var(--filet-fort); border-radius: 999px; background: var(--fond);
  font-size: var(--t-14); font-weight: 500; color: var(--encre); text-decoration: none;
}
.sommaire a:hover { border-color: var(--violet); color: var(--violet); }

/* ───────── Champ de recherche et résultats ───────── */
.recherche { display: flex; align-items: stretch; width: 100%; max-width: 40rem; padding: var(--e-1); border: var(--trait-bouton) solid var(--filet-fort); border-radius: var(--r-3); background: var(--fond); }
.recherche:focus-within { border-color: var(--violet); outline: var(--anneau-focus); outline-offset: 2px; }
.recherche > .ico { margin: 0 0 0 var(--e-4); align-self: center; color: var(--encre-douce); }
.recherche input { flex: 1; min-width: 0; width: 100%; min-height: 48px; padding: 0 var(--e-3); border: 0; background: transparent; font-size: var(--t-16); }
.recherche input::placeholder { color: var(--encre-douce); opacity: 1; }
.recherche input:focus { outline: none; }
.recherche button { padding: 0 var(--e-5); font-weight: 600; font-size: var(--t-15); color: var(--sur-violet); background: var(--violet); border-radius: var(--r-2); }
.recherche button:hover { background: var(--encre-titre); }
@media (max-width: 479px) { .recherche button { padding: 0 var(--e-4); } }

.resultats { margin-top: var(--e-6); max-width: 48rem; }
.resultats__etat { font-size: var(--t-14); color: var(--encre-douce); margin-bottom: var(--e-3); }
.resultats ul { border-top: var(--trait) solid var(--filet-fort); }
.resultats li a { display: grid; gap: 2px; padding-block: var(--e-4); border-bottom: var(--trait) solid var(--filet); text-decoration: none; color: var(--encre); }
.resultats li a:hover .resultats__titre { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.resultats__type { font-size: var(--t-12); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--violet); }
.resultats__titre { font-weight: 600; }
.resultats__extrait { font-size: var(--t-14); color: var(--encre-douce); }

/* ───────── Accordéon FAQ ───────── */
.faq { border-top: var(--trait) solid var(--filet-fort); }
.faq details { border-bottom: var(--trait) solid var(--filet); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--e-4);
  min-height: 44px; padding-block: var(--e-5); cursor: pointer; list-style: none;
  font-family: var(--police-titre); font-weight: 700; font-size: var(--t-18); letter-spacing: -0.01em; line-height: 1.3; color: var(--encre-titre);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--violet); }
.faq summary .ico { transition: transform var(--duree) var(--courbe); color: var(--encre-douce); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq .reponse { padding-bottom: var(--e-5); color: var(--encre-douce); display: grid; gap: var(--e-3); max-width: var(--mesure); }
.faq .reponse ul { padding-left: var(--e-5); display: grid; gap: var(--e-1); }
.faq .reponse strong { color: var(--encre); font-weight: 600; }
.reponse__liens { display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-5); align-items: center; }
.copier-lien { font-size: var(--t-14); color: var(--encre-douce); text-decoration: underline; text-underline-offset: .2em; min-height: 32px; }
.copier-lien:hover { color: var(--encre); }
.faq details:target summary, .faq details.est-cible summary { color: var(--violet); }
.theme + .theme { margin-top: var(--e-9); }
.theme > h2 { font-size: var(--t-titre-4); margin-bottom: var(--e-2); }
.theme > p { color: var(--encre-douce); margin-bottom: var(--e-5); }

/* Marqueur des contenus non publiés (option --brouillon du build) */
.marque-brouillon { display: inline-block; margin-left: var(--e-2); padding: 0 6px; border: var(--trait) dashed var(--encre-douce); border-radius: var(--r-1); font-family: var(--police-texte); font-size: var(--t-12); font-weight: 500; letter-spacing: 0; color: var(--encre-douce); vertical-align: middle; }

/* ───────── Nouveautés ───────── */
.badge { display: inline-block; justify-self: start; align-self: start; padding: 2px 8px; border-radius: var(--r-1); font-size: var(--t-12); font-weight: 600; line-height: 1.5; white-space: nowrap; color: var(--encre); }
.badge--evolution { background: var(--pastille-vert); }
.badge--correctif { background: var(--pastille-violet); }
.badge--neutre { background: var(--pastille-turquoise); }

.mep { border-top: var(--trait) solid var(--filet-fort); }
.mep:last-child { border-bottom: var(--trait) solid var(--filet-fort); }
.mep summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--e-2) var(--e-4); padding-block: var(--e-5); cursor: pointer; list-style: none; }
.mep summary::-webkit-details-marker { display: none; }
.mep summary h2 { font-size: var(--t-titre-4); }
.mep summary .discret { flex: 1; }
.mep summary .ico { align-self: center; color: var(--encre-douce); transition: transform var(--duree) var(--courbe); }
.mep[open] summary .ico { transform: rotate(180deg); }
.changements { padding-bottom: var(--e-6); }
.changements li { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--e-1) var(--e-4); padding-block: var(--e-4); border-top: var(--trait) solid var(--filet); }
.changements h3 { font-size: var(--t-16); }
.changements p { color: var(--encre-douce); margin-top: 2px; }
.changements .lien-fleche { font-size: var(--t-14); }
@media (max-width: 599px) { .changements li { grid-template-columns: 1fr; } }


/* ───────── Kit : texte prêt à copier ───────── */
.ressource { gap: var(--e-4); }
.ressource > .bouton, .ressource > .lien-fleche { justify-self: start; }
.ressource__entete { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: var(--e-3) var(--e-4); }
.ressource__entete > div { display: grid; gap: var(--e-1); }
.formats { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.formats span { padding: 1px 8px; border: var(--trait) solid var(--filet-fort); border-radius: var(--r-1); font-size: var(--t-12); font-weight: 500; color: var(--encre-douce); }
.texte-brut {
  max-height: 15rem; overflow: auto; padding: var(--e-4); border: var(--trait) solid var(--filet); border-radius: var(--r-2);
  background: var(--fond-doux); color: var(--encre); font-family: var(--police-texte); font-size: var(--t-14); line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.bouton-copier.est-copie { border-color: var(--vert); }

/* ───────── Prose (pages de texte : mentions, accessibilité) ───────── */
.prose { display: grid; gap: var(--e-4); max-width: var(--largeur-texte); }
.prose h2 { font-size: var(--t-titre-4); margin-top: var(--e-6); }
.prose ul { padding-left: var(--e-5); display: grid; gap: var(--e-1); }
.a-completer { padding: var(--e-4) var(--e-5); border-left: var(--trait-accent) solid var(--jaune); background: var(--alerte-fond); color: var(--encre); }

/* ───────── Bandeau d'alerte (maintenance) ───────── */
.alerte { background: var(--alerte-fond); border-bottom: var(--trait) solid var(--alerte-filet); color: var(--encre); font-size: var(--t-14); }
.alerte .conteneur { display: flex; align-items: center; gap: var(--e-3); min-height: 44px; padding-block: var(--e-2); }
.alerte strong { font-weight: 600; }

/* ───────── Cadres d'appareil (visuels produit) ───────── */
.ecran { border: var(--trait) solid var(--filet-fort); border-radius: var(--r-3); background: var(--fond); overflow: hidden; box-shadow: var(--ombre-appareil); }
.ecran__barre { display: flex; gap: 6px; align-items: center; height: 22px; padding-inline: 10px; background: var(--fond-doux); border-bottom: var(--trait) solid var(--filet); }
.ecran__barre i { width: 7px; height: 7px; border-radius: 50%; background: var(--filet-fort); }
.ecran img { width: 100%; height: auto; }
.ecran-mobile {
  position: relative; border-radius: var(--r-5);
  border: 6px solid var(--encre); background: var(--encre); overflow: hidden; box-shadow: var(--ombre-appareil);
}
.ecran-mobile img { display: block; width: 100%; height: auto; border-radius: calc(var(--r-5) - 7px); background: var(--fond); }
.ecran-mobile::before { content: ''; position: absolute; top: 6px; left: 50%; width: 30%; height: 8px; translate: -50% 0; border-radius: 999px; background: var(--encre); z-index: 1; }

/* Capture d'illustration (taille mesurée) */
.capture { max-width: 30rem; }
.capture figcaption { margin-top: var(--e-3); font-size: var(--t-14); color: var(--encre-douce); }

/* ───────── Bandeau d'accueil : texte à gauche ; à droite la fenêtre MonSisra Web, le téléphone posé devant ───────── */
.accueil { padding-block: var(--e-8) var(--e-section); }
.accueil > .conteneur { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--e-7) var(--e-8); align-items: center; }
.accueil__texte { display: grid; gap: var(--e-5); justify-items: start; }
.accueil h1 { font-size: var(--t-titre-accueil); max-width: 17ch; }
.insecable { white-space: nowrap; }
@media (max-width: 359px) { .insecable { white-space: normal; } }
.accueil .chapo { max-width: 34rem; }
/* Bloc de téléchargement du bandeau d'accueil : un seul bouton plein (la version de l'appareil, choisie
   par portail.js), puis les autres plateformes en liens discrets sur une ligne. */
.telechargement { display: grid; justify-items: start; gap: var(--e-4); margin-top: var(--e-2); }
.telechargement__autres { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--e-4); font-size: var(--t-15); color: var(--encre-douce); }
.telechargement__autres a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--encre); font-weight: 500; text-decoration: none; }
.telechargement__autres a:hover { color: var(--violet); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.telechargement__autres .ico { width: 16px; height: 16px; flex: none; color: var(--encre-douce); }
.telechargement__autres a[hidden] { display: none; }
.accueil__visuel { position: relative; padding: 0 var(--e-8) var(--e-7) 0; }
.accueil__visuel figure { margin: 0; }
.accueil__visuel .ecran-mobile { position: absolute; right: 0; bottom: 0; width: 25%; min-width: 92px; }   /* devant la conversation, sans cacher le menu */
@media (max-width: 899px) {
  .accueil { padding-top: var(--e-7); }
  .accueil > .conteneur { grid-template-columns: 1fr; }
  .accueil__visuel { max-width: 40rem; width: 100%; }
}
@media (max-width: 479px) { .accueil__visuel { padding: 0 var(--e-6) var(--e-6) 0; } }

/* Bloc de rubrique : en-tête (pastille, titre, intro) à côté d'une capture d'illustration */
.rubrique__tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: var(--e-6) var(--e-8); align-items: center; margin-bottom: var(--e-7); }
.rubrique__tete > div { display: grid; gap: var(--e-3); justify-items: start; }
.rubrique__tete p { color: var(--encre-douce); font-size: var(--t-18); }
@media (max-width: 899px) { .rubrique__tete { grid-template-columns: 1fr; } .rubrique__tete .capture { max-width: 26rem; } }

/* ───────── Renvoi (bandeau sobre vers une autre rubrique) ───────── */
.renvoi { display: flex; align-items: center; justify-content: space-between; gap: var(--e-5); padding: var(--e-6) var(--e-7); border-left: var(--trait-accent) solid var(--turquoise); border-radius: var(--r-3); background: var(--fond-doux); text-decoration: none; color: var(--encre); }
.renvoi__texte { display: grid; gap: var(--e-1); }
.renvoi__texte strong { font-family: var(--police-titre); font-weight: 700; font-size: var(--t-24); letter-spacing: -0.02em; color: var(--encre-titre); }
.renvoi__texte span { color: var(--encre-douce); }
.renvoi__fleche { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--violet); color: var(--sur-violet); transition: background-color var(--duree), transform var(--duree) var(--courbe); }
.renvoi:hover .renvoi__fleche { transform: translateX(3px); }
/* Renvoi vers l'Assistance : rouge de la charte */
.renvoi--assistance { border-left-color: var(--rouge); background: var(--pastille-rouge); }
.renvoi--assistance .renvoi__fleche { background: var(--rouge); color: var(--sur-rouge); }
.renvoi--assistance:hover .renvoi__fleche { background: var(--rouge-survol); }
.renvoi:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (max-width: 599px) { .renvoi { padding: var(--e-5); } .renvoi__texte strong { font-size: var(--t-20); } .renvoi__fleche { width: 44px; height: 44px; } }

/* ───────── Pied de page violet : une seule ligne ───────── */
.pied { background: var(--violet); color: var(--sur-violet-doux); padding-block: var(--e-5); font-size: var(--t-14); }
.pied :focus-visible { outline-color: var(--focus-sur-violet); }
.pied__barre { display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-5); align-items: center; }
.pied__barre > span { margin-right: auto; }
.pied a { color: var(--sur-violet-doux); text-decoration: none; display: inline-block; padding-block: var(--e-2); }
.pied a:hover { color: var(--sur-violet); text-decoration: underline; text-underline-offset: .2em; }

/* ───────── Mouvement ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* ───────── Impression : le contenu seul ───────── */
@media print {
  .entete, .pied, .evitement, .recherche, .sommaire { display: none !important; }
  .section, .bandeau { padding-block: var(--e-5); background: none; }
  details > :not(summary) { display: block; }
}
