/* Websco Démarches — Portail famille (design validé par maquette) */
/* L183 (D57 sur tout le portail, D400 point 2) : aucun texte sous 13 px (.8125rem) : les numéros des étapes, les marques du sommaire,
   les badges des pièces, les aides des champs ; les deux pastilles rondes grandissent pour le chiffre. Loi : banc-portail-13px-navigateur.js */
:root {
  --primaire:       #1D4ED8;
  --primaire-fonce: #1E40AF;
  --primaire-clair: #EFF6FF;
  --gris-100: #F1F5F9; --gris-200: #E2E8F0; --gris-400: #94A3B8;
  --gris-600: #475569; --gris-800: #1E293B;
  --blanc: #FFFFFF;
  --texte: #0F172A; --texte-2: #64748B;
  --vert-bg: #DCFCE7; --vert: #15803D;
  --orange-bg: #FFEDD5; --orange: #C2410C;
  --rouge-bg: #FEE2E2; --rouge: #B91C1C;
  /* ══════════════════════════════════════════════════════════════════════
     LES MÊMES FORMES QUE L'ADMINISTRATION (lot 14b, 16/08/2026)

     Le portail redéfinissait ses propres rayons et ses propres ombres :
     12/8/16 pixels et deux ombres portées, quand l'administration emploie
     6/4/10 et AUCUNE ombre — « --ombre: none » y est écrit depuis longtemps.

     Deux produits d'apparences différentes pour une même école : la
     secrétaire qui compose un formulaire et la famille qui le remplit ne
     voyaient pas le même Websco.

     ── TROIS LIGNES, ET TREIZE OMBRES TOMBENT ────────────────────────────

     Les treize « box-shadow » de cette feuille passent presque toutes par
     « var(--ombre) ». Aligner la variable les éteint toutes d'un coup, sans
     toucher une seule règle.

     C'EST LA FEUILLE QUI S'ADAPTE, PAS LE HTML — aucune classe renommée,
     aucun gabarit touché.

     ── ET L'ADMINISTRATION N'EST PAS CONCERNÉE ───────────────────────────

     Cette feuille n'est chargée que par « portail_layout.php », qui sert les
     six écrans des familles. « app.css » n'y est même pas chargé : les deux
     mondes ne partagent aucune déclaration.

     Les valeurs sont RELEVÉES dans app.css, jamais recopiées de mémoire.
     ══════════════════════════════════════════════════════════════════════ */
  --rayon: 8px; --rayon-sm: 4px; --rayon-lg: 8px; --rayon-pastille: 6px;   /* L527 (remarque n° 774) : l'échelle de la gestion */
  --ombre: none;
  --ombre-md: 0 8px 24px -8px rgba(22,25,31,.16);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--texte); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Header établissement ── */
.pf-header {
  padding: 14px 20px; position: sticky; top: 0; z-index: 100;
}
.pf-header__inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.pf-header__logo {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.pf-header__etab { font-size: .98rem; }
.pf-header__camp { font-size: .8125rem; }   /* R306 (D64, loi des écrans de Démarches) : 12,8 px, sous le plancher de 13 px (D57) */

/* ── Barre de phases ── */
.pf-phases { border-bottom: 1px solid var(--gris-200);
  position: sticky; top: 69px; z-index: 99; padding: 10px 20px;
}
.pf-phases__inner {
  /* n° 371 (recette du 05/11, Phil sur iPhone) : la barre défile, et ce qu'elle porte reste dedans. Le texte pour lecteur d'écran
     d'une étape (« (terminée) », .pf-invisible, en position absolue) prenait pour repère la barre collante, hors du défilement : celui
     de la dernière étape, à 605 px, élargissait la page d'un téléphone de 217 px, aux étapes 2 à 5 (la barre est cachée à l'étape 1) */
  position: relative;
  max-width: 1040px; margin: 0 auto; display: flex; gap: 6px; align-items: center;
  overflow-x: auto; scrollbar-width: none;
}
.pf-phases__inner::-webkit-scrollbar { display: none; }
.pf-phase {
  display: flex; align-items: center; gap: 7px; padding: 6px 12px;
  border-radius: var(--rayon-pastille); font-size: .82rem; font-weight: 600; color: var(--texte-2);   /* RGAA 3.2 (n° 12) */
  white-space: nowrap; flex-shrink: 0;
}
.pf-phase__num {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8125rem; background: var(--gris-200); color: var(--gris-600); font-weight: 700;
}
.pf-phase__sep { color: var(--gris-200); flex-shrink: 0; }
/* L537 (remarques n° 774 et 776 ; B) : sous 640 px, l'indicateur d'étapes du système de design de l'État, à la place de la barre qui défile */
.pf-etapes-court { display: none; }
@media (max-width: 639px) {
  .pf-phases__inner { display: none; }
  .pf-etapes-court { display: grid; gap: 6px; max-width: 1040px; margin: 0 auto; }
  .pf-etapes-court p { margin: 0; font-size: .875rem; color: var(--texte-2); }
  .pf-etapes-court__ligne strong { color: var(--texte); }
  .pf-etapes-court__barre { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
  .pf-etapes-court__barre i { display: block; height: 6px; border-radius: 3px; background: var(--gris-200); }
  .pf-etapes-court__barre i.is-done, .pf-etapes-court__barre i.is-active { background: var(--primaire); }
}

/* ── Layout ── */
.pf-main { max-width: 1040px; margin: 0 auto; padding: 28px 20px 80px; }
.pf-screen { display: none; }
.pf-screen.is-visible { display: block; animation: pfIn .25s ease; }
@keyframes pfIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

.carte {
  background: var(--blanc); border-radius: var(--rayon-lg);
  box-shadow: var(--ombre); padding: 26px;
}

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; cursor: pointer;
  font: inherit; font-size: .95rem; padding: 12px 22px;
  min-height: 48px; transition: all .15s ease; text-decoration: none;
}
.btn--secondaire { background: var(--blanc); color: var(--gris-600); border-color: var(--gris-200); }
.btn--secondaire:hover { border-color: var(--gris-400); }
.btn--lg { font-size: 1.05rem; padding: 15px 30px; }
.pf-hero__badge {
  display: inline-flex; align-items: center; gap: 7px; background: var(--vert-bg);
  color: var(--vert); font-size: .82rem; font-weight: 700; border-radius: var(--rayon-pastille);
  padding: 6px 14px; margin-bottom: 16px;
}
.pf-hero__badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); }
.pf-hero h1 { font-weight: 800; }
.pf-hero__meta {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  margin-top: 18px; font-size: .88rem; color: var(--gris-600);
}
.pf-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }

.pf-intro { margin-top: 26px; }
.pf-intro p { font-size: .96rem; }
.pf-intro p + p { margin-top: 10px; }

.pf-notices { margin-top: 22px; display: grid; gap: 10px; }
.pf-notice {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--gris-200);
  text-decoration: none; color: inherit; transition: all .15s ease; background: var(--blanc);
}
.pf-notice__icon {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
  font-size: .8125rem;
}
.pf-notice__body { flex: 1; min-width: 0; }
.pf-notice__body strong { display: block; font-size: .92rem; }
.pf-notice__body span { font-size: .8125rem; color: var(--texte-2); }
.pf-notice__dl { font-size: .85rem; flex-shrink: 0; }

.pf-start { text-align: center; margin-top: 30px; }
.pf-start__hint { margin-top: 12px; font-size: .85rem; color: var(--texte-2); }

/* ════ PHASE 2 : FORMULAIRE (sommaire + sections) ════ */
.pf-form-layout { display: grid; grid-template-columns: 264px 1fr; gap: 24px; align-items: start; }

/* Sommaire desktop */
.pf-toc {
  position: sticky; top: 130px; background: var(--blanc);
  border-radius: var(--rayon-lg); box-shadow: var(--ombre); padding: 18px;
}
.pf-toc__head { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-2); margin-bottom: 6px; }
.pf-toc__count { font-size: .85rem; color: var(--gris-600); margin-bottom: 12px; }
.pf-toc__bar { height: 6px; background: var(--gris-200); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.pf-toc__bar i { display: block; height: 100%; border-radius: 999px; transition: width .3s ease; }
.pf-toc__list { list-style: none; display: grid; gap: 2px; }
.pf-toc__item a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: var(--rayon-sm); text-decoration: none; color: var(--gris-600);
  font-size: .86rem; font-weight: 500; transition: background .12s;
}
.pf-toc__item a:hover { background: var(--gris-100); }
.pf-toc__item.is-current a { font-weight: 600; }
.pf-toc__dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: .8125rem; font-weight: 800;
  border: 2px solid var(--gris-200); color: transparent; transition: all .2s;
}
.pf-toc__item.is-error .pf-toc__dot { background: var(--rouge); border-color: var(--rouge); color: #fff; }
/* n° 364 (recette du 05/11) : une section sans question obligatoire, pas encore parcourue */
/* L437 (24/11) : « facultative » sous le nom de la section, plus à côté */
.pf-toc__nom { display: flex; flex-direction: column; min-width: 0; }
.pf-toc__facultative { display: block; font-size: .8125rem; font-weight: 400; font-style: italic; opacity: .75; }
.pf-toc__facultative[hidden] { display: none; }

/* Sommaire mobile (barre repliable) */
.pf-toc-mobile { display: none; }

/* Sections */
.pf-sections { display: grid; gap: 18px; min-width: 0; }
.pf-section { background: var(--blanc); border-radius: var(--rayon-lg); box-shadow: var(--ombre); padding: 24px; scroll-margin-top: 130px; }

/* ══════════════════════════════════════════════════════════════════════════
   LE DÉPÔT COURT RESPIRE (lot 14e, 16/08/2026)

   Ses trois classes — « pf-finalite », « pf-actions », « pf-mentions » —
   n'avaient AUCUN STYLE : elles n'existaient que dans le HTML. Le bouton
   touchait la carte, les mentions touchaient le bouton, et Philippe a lu un
   bloc compact où chaque élément se disputait la ligne du voisin.

   UNE CLASSE POSÉE SANS RÈGLE NE MET PAS EN FORME, elle nomme. Celles-ci
   nommaient depuis longtemps sans jamais mettre en forme.

   Les valeurs suivent celles de la section — 24 pixels de respiration — pour
   que le formulaire court ait le même rythme que le long.
   ══════════════════════════════════════════════════════════════════════════ */

/* LE FORMULAIRE S'ÉCARTE DE SON INTRODUCTION : le texte d'accueil touchait la
   carte, et les deux se lisaient comme un seul bloc. */
.pf-form {
  margin-top: 22px;
}

/* ── LES DEUX PHRASES PRÉCÈDENT LE BOUTON (lot 14f, 16/08/2026) ────────────
   La mention du traitement des données suivait le bouton : on la lisait APRÈS
   avoir envoyé, ou pas du tout.

   CE QUI ENGAGE SE LIT AVANT LE GESTE, jamais après. Les deux phrases disent
   ce qu'on accepte en cliquant : leur place est au-dessus.

   ── ET LE BLOC S'ALIGNE À DROITE ─────────────────────────────────────────

   Le bouton porte l'action, et l'œil qui descend un formulaire finit à droite
   — c'est là qu'on le cherche. Les phrases l'accompagnent : les aligner à
   gauche pendant que le bouton file à droite couperait le lien entre ce qu'on
   accepte et ce qu'on clique.

   LE TEXTE RESTE ALIGNÉ À GAUCHE DANS SON BLOC : une phrase de deux lignes
   alignée à droite se lit mal, chaque ligne commençant à un endroit
   différent. C'est le BLOC qui se place à droite, pas le texte qui s'y
   justifie. */
/* ── LE BLOC PREND TOUTE LA LARGEUR (lot 14g, 16/08/2026) ─────────────────
   Je l'avais borné à 520 pixels pour le coller à droite. Sur une page large,
   les phrases se brisaient au milieu — Philippe a vu des retours à la ligne
   qui n'avaient aucune raison d'être : la place existait, ma règle la refusait.

   UNE LARGEUR IMPOSÉE POUR PLACER UN BOUTON NE DOIT PAS COUPER UN TEXTE.
   Le bloc prend toute la ligne ; c'est le BOUTON qui va à droite, par sa
   propre marge, et les phrases coulent sur toute la largeur.

   Le texte reste aligné à gauche : deux lignes justifiées à droite se lisent
   mal, chaque ligne commençant à un endroit différent. */
.pf-depot-fin {
  margin-top: 20px;
}

.pf-depot-fin .pf-actions {
  display: flex;
  justify-content: flex-end;
}

.pf-finalite {
  margin: 0;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--gris-600, #475569);
}

.pf-mentions {
  margin: 10px 0 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--gris-500, #64748B);
}

.pf-actions {
  margin-top: 18px;
}

/* SUR UN TÉLÉPHONE, LE BLOC REPREND TOUTE LA LARGEUR : à 380 pixels, un bloc
   de 520 collé à droite n'a plus de droite où aller, et le bouton se
   retrouverait seul en bas d'une colonne étroite. */
/* SUR UN TÉLÉPHONE, LE BOUTON PREND LA LARGEUR : dans une colonne étroite, un
   bouton collé à droite laisse une bande vide à sa gauche sans rien y gagner. */
@media (max-width: 640px) {
  .pf-depot-fin .pf-actions {
    display: block;
  }

  .pf-depot-fin .btn {
    width: 100%;
  }
}
.pf-section.is-error { box-shadow: 0 0 0 2px var(--rouge); }   /* D342 (n° 265) : le cadre seul ; « …, var(--ombre) » valait « …, none », une ombre invalide, et le cadre ne paraissait jamais */
.pf-section__head { display: flex; gap: 10px; margin-bottom: 4px; }
.pf-section__head h2 { font-size: 1.15rem; font-weight: 700; }
.pf-section__intro { color: var(--texte-2); font-size: .9rem; margin-bottom: 18px; }
/* L96 : l'adresse de suivi, vérifiée à l'entrée, en tête d'un formulaire aux questions standard */
.pf-adresse-suivi { margin: 0 0 16px; }
.pf-adresse-suivi__ligne { margin: 0; padding: 12px 14px; border: 1px solid var(--bord, #E0E3E8); border-radius: var(--rayon-lg); background: var(--fond-2, #F7F8FA); font-size: .9375rem; }
.pf-section__error-banner {
  display: none; background: var(--rouge-bg); color: var(--rouge); font-size: .85rem;
  font-weight: 600; padding: 10px 14px; border-radius: var(--rayon-sm); margin-bottom: 16px;
}
.pf-section.is-error .pf-section__error-banner { display: block; }

/* Champs */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-grid .champ--wide { grid-column: 1 / -1; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ > span { font-size: .87rem; font-weight: 600; }
.champ .req { color: var(--rouge); }
.champ small.aide { font-size: .8125rem; color: var(--texte-2); font-weight: 400; }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"],
.champ input[type="date"], .champ input[type="number"], .champ select, .champ textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--bord-champ, #7D8799);   /* RGAA 3.3 (audit du 02/11, n° 13) : 3,62:1 sur blanc */
  border-radius: var(--rayon-sm); background: var(--blanc); min-height: 48px;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
/* L540 (remarque n° 777) : LES DATES SUR IPHONE (le moteur de Safari, que Chrome emprunte) : le champ de date garde sa taille propre et
   déborde de la carte ; il prend la largeur des autres champs, jamais au-delà, la date écrite à gauche ; toutes les dates du portail */
input[type="date"], input[type="datetime-local"], input[type="time"] { display: block; min-width: 0; max-width: 100%; width: 100%; text-align: left; }
@supports (-webkit-touch-callout: none) { input[type="date"], input[type="datetime-local"], input[type="time"] { -webkit-appearance: none; appearance: none; } }   /* iOS seul : le calendrier de Chrome à l'ordinateur reste */
input[type="date"]::-webkit-date-and-time-value, input[type="datetime-local"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
/* L611 (remarque n° 841) : une liste et un champ d'une ligne, une seule hauteur (la liste faisait 48 px, le champ 51) */
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ input[type="date"], .champ input[type="number"], .champ select { box-sizing: border-box; height: 50px; }
.champ input:not([type="radio"]):not([type="checkbox"]):focus, .champ select:focus, .champ textarea:focus {
  outline: none;
}
/* RGAA 10.7 (audit du 02/11, n° 8) : le choix qui a le focus du clavier se voit */
.pf-choice:has(input:focus-visible) { outline: 2px solid var(--primaire-texte, var(--primaire)); outline-offset: 2px; }
.champ.is-invalid input, .champ.is-invalid select, .champ.is-invalid textarea { border-color: var(--rouge); }
.champ .err-msg { display: none; font-size: .8125rem; color: var(--rouge); font-weight: 600; }   /* le plancher de lecture, 13 px (décor 8.4) */
/* 3.23 (décor 8.4) : la phrase sous « J'atteste », quand la case bloque l'envoi */
.pf-consent__err { margin: 8px 0 0; font-size: .8125rem; color: var(--rouge); font-weight: 600; }
.pf-consent__err[hidden] { display: none; }
.pf-consent.is-error { box-shadow: 0 0 0 2px var(--rouge); }   /* D342 (n° 265) : le cadre seul ; « …, var(--ombre) » valait « …, none », une ombre invalide, et le cadre ne paraissait jamais */   /* n° 265 : le cadre des sections en erreur */
.champ.is-invalid .err-msg { display: block; }
.champ .err-msg[data-annee-erreur]:not([hidden]) { display: block; }   /* L538 : l'année mal écrite le dit aussitôt */

.pf-choices { display: grid; gap: 8px; }
.pf-choice {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border: 1px solid var(--gris-200); border-radius: var(--rayon-sm); cursor: pointer;
  font-size: .92rem; transition: all .12s; background: var(--blanc);
}
.pf-choice:hover { border-color: var(--gris-400); }
.pf-choice input { width: 18px; height: 18px; flex-shrink: 0; }

/* L529 (1) (remarque n° 764) : l'encadré d'alerte d'une correction demandée, au fond ambré d'« Incomplet », son icône */
.pf-alerte { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border: 1px solid #F5D9A8; border-radius: var(--rayon-lg); background: #FFF7E6; color: #5C3A06; }
.pf-alerte__icone { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #B45309; color: #fff; font-weight: 800; font-size: .9rem; }
.pf-alerte__corps { display: grid; gap: 6px; min-width: 0; }
.pf-alerte__corps p { margin: 0; }
.pf-alerte__titre { font-weight: 700; }
.pf-alerte__motif { overflow-wrap: anywhere; }
.pf-info-block {
  background: var(--primaire-clair); border-left: 3px solid var(--primaire);
  padding: 13px 16px; border-radius: 0 var(--rayon-sm) var(--rayon-sm) 0;
  font-size: .88rem; color: var(--gris-800);
}
.pf-heading-block { font-size: 1rem; font-weight: 700; padding-top: 6px; border-top: 1px dashed var(--gris-200); margin-top: 4px; }

/* Section conditionnelle */
.pf-section[data-conditional][hidden] { display: none; }
/* ── LE CHAMP CONDITIONNEL SE CACHE VRAIMENT (20/08) ──────────────────────
   Même défaut que la ligne du dessus avait réparé pour les SECTIONS, jamais
   payé pour les champs : « .champ { display:flex } » gagne sur l'attribut
   hidden que portail.js pose — le script masquait, la feuille raffichait.
   Un display posé par une classe se reprend par une règle plus précise. */
.champ[data-cond-champ][hidden] { display: none; }
.pf-doc[data-cond-champ][hidden] { display: none; }
.pf-cond-hint {
  font-size: .8125rem; color: var(--primaire-texte, var(--primaire)); background: var(--primaire-clair);
  display: inline-block; padding: 3px 10px; border-radius: var(--rayon-pastille); font-weight: 600; margin-bottom: 14px;
}

/* Pied de phase */
.pf-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 26px; }
.pf-foot__status { font-size: .85rem; color: var(--texte-2); }

/* ════ PHASE 3 : DOCUMENTS ════ */
.pf-docs { margin-top: 18px; }
.pf-doc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pf-doc__body { flex: 1; min-width: 200px; }
.pf-doc__body strong { display: block; font-size: .93rem; }
.pf-doc__body span { font-size: .8125rem; color: var(--texte-2); }
.pf-doc__tag { font-size: .8125rem; font-weight: 700; padding: 3px 10px; border-radius: var(--rayon-pastille); }
.pf-doc__tag--oblig { background: var(--orange-bg); color: var(--orange); }
.pf-doc__tag--facult { background: var(--gris-100); color: var(--gris-600); }
.pf-doc__upload {
  border: 2px dashed var(--gris-200); border-radius: var(--rayon-sm);
  padding: 10px 18px; font-size: .85rem; color: var(--gris-600); cursor: pointer;
  font-weight: 600; transition: all .15s; background: none; font-family: inherit;
}
.pf-doc__upload:hover { border-color: var(--primaire); color: var(--primaire-texte, var(--primaire)); }
.pf-doc.is-uploaded .pf-doc__upload { border-style: solid; border-color: var(--vert); color: var(--vert); background: var(--vert-bg); }

/* ════ PHASE 4 : RÉCAPITULATIF ════ */
.pf-recap { margin-top: 18px; }
.pf-recap__section { border: 1px solid var(--gris-200); border-radius: var(--rayon); padding: 16px 18px; background: var(--blanc); }
.pf-recap__head { gap: 10px; }
.pf-recap__head strong { font-size: .94rem; }
.pf-recap__head a { font-size: .83rem; color: var(--primaire-texte, var(--primaire)); font-weight: 600; text-decoration: none; }
.pf-recap__rows { margin-top: 10px; display: grid; gap: 5px; font-size: .87rem; }
.pf-recap__rows div { display: flex; gap: 8px; }
.pf-recap__rows dt { color: var(--texte-2); min-width: 170px; flex-shrink: 0; }
.pf-recap__rows dd { font-weight: 500; }
.pf-consent { margin-top: 22px; }

/* ════ PHASE 5 : CONFIRMATION ════ */
.pf-confirm { padding: 30px 0 10px; }
.pf-confirm__ref { display: inline-block; margin-top: 14px; background: var(--gris-100); border: 1px dashed var(--gris-400); border-radius: var(--rayon-sm); padding: 10px 22px; font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; }

/* ════ MOBILE ════ */
@media (max-width: 860px) {
  html { scroll-padding-top: 175px; }
  .pf-form-layout { grid-template-columns: 1fr; }
  .pf-toc { display: none; }
  .pf-toc-mobile {
    display: block; position: sticky; top: 116px; z-index: 98;
    background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
    margin-bottom: 16px;
  }
  .pf-toc-mobile summary {
    list-style: none; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; cursor: pointer; font-size: .87rem; font-weight: 600;
    min-height: 44px; box-sizing: border-box;   /* L188 (R429, D401) : le sommaire « Votre progression » se touche sur 44 px */
  }
  .pf-toc-mobile summary::-webkit-details-marker { display: none; }
  .pf-toc-mobile .pf-toc__bar { flex: 1; margin: 0; }
  .pf-toc-mobile .pf-toc__list { padding: 4px 10px 12px; }
  .carte, .pf-section { padding: 18px; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-foot { flex-direction: column-reverse; align-items: stretch; }
  .pf-foot .btn { width: 100%; }
  .pf-foot__status { text-align: center; }
  .pf-doc { flex-direction: column; align-items: stretch; }
  .pf-doc__upload { text-align: center; }
}

/* ── Bandeau aperçu admin ── */
.pf-apercu-banner {
  position: sticky; top: 0; z-index: 200; background: #1E293B; color: #fff;
  padding: 9px 20px; font-size: .85rem; text-align: center;
}
.pf-apercu-banner strong { color: #FCD34D; }
.pf-apercu-banner a { color: #93C5FD; }

/* ── Écran campagne fermée / introuvable ── */
.pf-closed { max-width: 560px; margin: 60px auto; text-align: center; }
.pf-closed__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gris-100);
  color: var(--gris-600); display: grid; place-items: center; margin: 0 auto 18px; font-size: 1.6rem; }
.pf-closed h1 { font-size: 1.4rem; font-weight: 800; }
.pf-closed p { color: var(--texte-2); margin-top: 10px; }

/* ── Page protection des données ── */
.pf-rgpd { max-width: 760px; margin: 0 auto; }
.pf-rgpd h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.pf-rgpd__meta { display: grid; gap: 6px; margin: 18px 0 22px; font-size: .9rem; }
.pf-rgpd__meta div { display: flex; gap: 8px; }
.pf-rgpd__meta dt { color: var(--texte-2); min-width: 220px; flex-shrink: 0; }
.pf-rgpd__texte { white-space: pre-wrap; font-size: .94rem; color: var(--gris-800); line-height: 1.65; }
.pf-rgpd__retour { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  color: var(--primaire-texte, var(--primaire)); text-decoration: none; font-weight: 600; font-size: .9rem; }
/* L490 : la liste des destinataires au corps des paragraphes de la page */
.pf-rgpd .pf-legal__liste { font-size: .94rem; }

/* ── Header : logo image ── */
.pf-header__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; /* LOGO : il encadre une image, pas une carte — il garde sa forme */ background: #fff; }

/* ── Footer riche ── */
.pf-footer__contact { margin-top: 4px; }

/* ── Bandeau d'erreur serveur ── */
/* ── LES CHAMPS NOMMÉS, SOUS LE MOTIF (lot 14a, 16/08/2026) ────────────────
   Le bandeau disait la cause en une phrase ; il porte maintenant la liste des
   champs en faute, sur ses propres lignes.

   BLOC, PAS EN LIGNE : « Merci de compléter : Nom de l'élève, Date de
   naissance » collé à la phrase générale se lirait comme une seule tirade. La
   famille doit distinguer le motif de la liste des gestes.

   Le poids reste celui du texte courant : c'est une aide, pas un second
   avertissement. */
.pf-error-banner__champs {
  display: block;
  margin-top: 6px;
  font-weight: 500;
}

.pf-error-banner { max-width: 860px; margin: 18px auto 0; padding: 12px 16px; border-radius: 6px;
  background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font-size: .9rem; }

/* ── Honeypot (invisible pour les humains) ── */
.pf-hp { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }

/* ── Titres d'étapes ── */
.pf-step-title { font-size: 1.25rem; font-weight: 800; }
.pf-step-sous { color: var(--texte-2); font-size: .92rem; margin-top: 6px; max-width: 640px; }
.pf-docs-intro { margin-bottom: 18px; }

/* ── Phase 3 : documents ── */
.pf-docs { display: grid; gap: 14px; }
.pf-doc { background: #fff; border: 1px solid var(--gris-200); border-radius: 6px; padding: 16px 18px; }
.pf-doc.is-error { border-color: #FCA5A5; background: #FFF7F7; }
.pf-doc__nom { font-weight: 700; font-size: .96rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-doc__badge { font-size: .8125rem; font-weight: 700; padding: 2px 8px; border-radius: var(--rayon-pastille); text-transform: uppercase; letter-spacing: .03em; }
.pf-doc__badge--req { background: #FEF3C7; color: #92400E; }
.pf-doc__badge--opt { background: var(--gris-100); color: var(--gris-600); }
.pf-doc__consigne { color: var(--texte-2); font-size: .86rem; margin-top: 4px; }
.pf-doc__formats { color: var(--gris-600); font-size: .8125rem; margin-top: 4px; }
.pf-doc__files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.pf-doc__files:not(:has(> li)) { display: none; }   /* L539 : vide, la liste ne prend aucune place */
.pf-doc__file { display: flex; align-items: center; gap: 10px; background: var(--gris-100);
  border-radius: 8px; padding: 7px 10px; font-size: .84rem; }
.pf-doc__file-nom { font-weight: 600; word-break: break-all; }
.pf-doc__file-meta { color: var(--gris-600, #475569); font-size: .8125rem; flex: 1; }   /* n° 12 : 6,92:1 sur le fond du fichier */
.pf-doc__file-del { border: none; background: none; color: var(--gris-600); font-size: 1.1rem;
  cursor: pointer; padding: 0 4px; line-height: 1; }
.pf-doc__file-del:hover { color: #DC2626; }
/* L437 (24/11) : le message d'une pièce manquante vient sous la zone de dépôt, sur sa ligne : la zone garde sa place */
.pf-doc__error { display: none; margin-top: 10px; font-size: .84rem; color: #B91C1C; flex: none; width: 100%; }
.pf-doc.is-error .pf-doc__error { display: block; }
.pf-doc__upload { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.pf-doc__btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px;
  border: 1.5px dashed var(--gris-200); border-radius: 6px; background: none; font: inherit;
  font-size: .86rem; font-weight: 600; color: var(--gris-600); cursor: pointer; transition: all .15s; }
.pf-doc__btn:hover { border-color: var(--primaire); color: var(--primaire-texte, var(--primaire)); }
.pf-doc__count { font-size: .8125rem; color: var(--gris-600); }
.pf-doc__progress { flex: 1; min-width: 120px; max-width: 220px; height: 6px; border-radius: 99px;
  background: var(--gris-100); overflow: hidden; }
.pf-doc__progress i { display: block; height: 100%; width: 0; background: var(--primaire); transition: width .2s; }

/* ── Toast portail ── */
.pf-toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 16px); opacity: 0;
  background: #1E293B; color: #fff; font-size: .88rem; padding: 11px 18px; border-radius: 6px;
  /* LE TOAST GARDE UNE OMBRE, comme celui de l'administration : il FLOTTE
     au-dessus de la page, et sans elle il se confondrait avec le contenu.
     On ne l'éteint pas, on l'aligne sur « --ombre-md », la même variable. */
  box-shadow: var(--ombre-md); z-index: 500; transition: all .3s; max-width: min(92vw, 480px); }
.pf-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ── Phase 4 : récapitulatif + consentement ── */
.pf-recap { display: grid; gap: 14px; margin-bottom: 18px; }
.pf-recap__bloc { background: #fff; border: 1px solid var(--gris-200); border-radius: 6px; padding: 16px 18px; }
.pf-recap__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pf-recap__head h3 { font-size: 1rem; font-weight: 800; }
.pf-recap__edit { border: none; background: none; color: var(--primaire-texte, var(--primaire)); font: inherit;
  font-size: .84rem; font-weight: 600; cursor: pointer; }
.pf-recap__dl { display: grid; grid-template-columns: minmax(140px, 240px) 1fr; gap: 7px 16px;
  font-size: .88rem; margin: 0; }
.pf-recap__dl dt { color: var(--texte-2); }
.pf-recap__dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.pf-recap__dl dd.is-empty { color: var(--gris-600); font-weight: 400; font-style: italic; }
/* ── LE TERME PASSE AU-DESSUS SUR PETIT ÉCRAN (lot 68a, 20/08/2026) ────────
   « .pf-rgpd__meta div » est en « flex » avec un terme de 220 px minimum. Sur
   un téléphone de 360 px, il ne reste que 130 px au paragraphe : le texte se
   casse en colonne étroite, à côté d'un titre qui prend les deux tiers.

   Philippe l'a vu sur « Durée de conservation », le terme le plus long de la
   liste — c'est toujours le plus long qui révèle une largeur trop juste.

   La liste voisine « .pf-recap__dl » bascule déjà ici, pour la même raison :
   on se range au même point de rupture plutôt que d'en inventer un second. */
@media (max-width: 600px) {
  .pf-rgpd__meta div { flex-direction: column; gap: 2px; }
  .pf-rgpd__meta dt  { min-width: 0; }

  /* ── ET L'ADRESSE SE COUPE PLUTÔT QUE DE POUSSER ──────────────────────
     « Exercer vos droits » porte une adresse mail d'établissement, qui n'a
     aucun espace où se rompre. Sans cette règle, elle pousse la colonne
     au-delà de l'écran et fait défiler la page en largeur.

     UN MOT SANS ESPACE N'A PAS DE LARGEUR NATURELLE : c'est à la feuille de
     lui en donner une. */
  .pf-rgpd__meta dd { overflow-wrap: anywhere; }
}

@media (max-width: 600px) { .pf-recap__dl { grid-template-columns: 1fr; gap: 2px; }
  .pf-recap__dl dd { margin-bottom: 8px; } }
.pf-consent { margin-bottom: 18px; }
.pf-consent__check { align-items: flex-start; gap: 12px; font-size: .88rem; line-height: 1.55; }
.pf-consent__check input { margin-top: 3px; flex-shrink: 0; }
.pf-consent a { color: var(--primaire-texte, var(--primaire)); }

/* ── Phase 5 : confirmation ── */
.pf-confirm { max-width: 620px; margin: 30px auto; text-align: center; }
.pf-confirm__icon { width: 70px; height: 70px; border-radius: 50%; background: #DCFCE7; color: #15803D;
  display: grid; place-items: center; margin: 0 auto 18px; font-size: 2rem; font-weight: 800; }
.pf-confirm h1 { font-size: 1.5rem; font-weight: 800; }
.pf-confirm__sous { color: var(--texte-2); margin-top: 8px; }
.pf-confirm__num { display: inline-block; margin-top: 16px; padding: 9px 18px; border-radius: 6px;
  background: var(--gris-100); font-size: .94rem; }
.pf-confirm__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pf-confirm__hint { color: var(--gris-600); font-size: .8125rem; margin-top: 10px; }
.pf-confirm__next, .pf-confirm__again { margin-top: 30px; text-align: left; background: #fff;
  border: 1px solid var(--gris-200); border-radius: 6px; padding: 18px 20px; }
.pf-confirm__next h2, .pf-confirm__again h2 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.pf-confirm__next p, .pf-confirm__again p { color: var(--texte-2); font-size: .9rem; margin-top: 6px; }
.pf-confirm__next a { color: var(--primaire-texte, var(--primaire)); }
.pf-confirm__again .pf-confirm__actions { justify-content: flex-start; }

/* ── n° 241 (recette du 01/11) : « C'est envoyé » du parcours court, la même carte blanche que le formulaire ; la coche, le titre,
   le numéro de suivi dans son encadré, les phrases aérées ; « Revenir au site » détaché, sous la carte ── */
.pf-done { max-width: 600px; margin: 8px auto 0; }
.pf-done__carte { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 36px 36px;
  background: var(--blanc); border: 1px solid var(--gris-200); border-radius: var(--rayon-lg); }
.pf-done__coche { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%;
  background: var(--vert-bg); color: var(--vert); }
.pf-done__coche svg { width: 28px; height: 28px; }
.pf-done h1 { font-size: 1.6rem; line-height: 1.25; }
.pf-done__phrase { margin-top: 12px; color: var(--gris-600); line-height: 1.6; }
.pf-done__insecable { white-space: nowrap; }
.pf-done__suivi { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 24px 0 8px; padding: 14px 32px;
  background: var(--gris-100); border: 1px solid var(--gris-200); border-radius: var(--rayon); }
.pf-done__suivi-libelle { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-600); }
.pf-done__suivi-numero { font-size: 1.75rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--texte); }
.pf-done__retour { margin-top: 28px; text-align: center; }
@media (max-width: 560px) { .pf-done__carte { padding: 32px 20px 28px; } }

/* ── Vérification d'email (porte d'entrée) ── */
.pf-lien-banner { max-width: 860px; margin: 18px auto 0; padding: 12px 16px; border-radius: 6px;
  background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; font-size: .9rem; }
.pf-acces { text-align: left; }
.pf-acces__titre { font-size: 1.05rem; font-weight: 800; }
.pf-acces__sous { color: var(--texte-2); font-size: .9rem; margin: 6px 0 14px; max-width: 520px; }
.pf-acces__form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.pf-acces__form .champ { min-width: 260px; flex: 1; max-width: 360px; margin: 0; }
.pf-start__verified { color: #15803D; font-size: .9rem; margin-bottom: 10px; }
.champ input.is-verified { background: #F0FDF4; border-color: #3F9B63; color: #166534; cursor: default; }   /* RGAA 3.3 (auto-évaluation du 02/11, avec le point 1) : le bord d'un champ vérifié atteint 3:1 (3,45:1 sur le blanc ; il était à 1,2:1) */

/* ── Page d'accès dédiée (re)demande de lien ── */
.pf-acces-page { max-width: 560px; margin: 30px auto 50px; }
.pf-acces-page .pf-acces__titre { font-size: 1.3rem; }


/* ═══════════════════════════════════════════════════════════════════════════
   RESKIN 2026 v2 — port fidèle de la maquette validée. Thémé par les 2 couleurs
   établissement (--primaire / --secondaire injectées par portail_layout.php).
   Ajouté APRÈS l'existant : prime dans la cascade, sans éditer les règles d'origine.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Repli défensif si le thème n'est pas injecté */
:root { --secondaire:#C2760C; --secondaire-clair:#FAEEDA; --secondaire-fonce:#7A4A0A; --pf-c1-ink:#FFFFFF; --pf-c2-ink:#0F172A; }

/* Surface blanche pleine largeur (fond blanc demandé, plus de gris) */
body { background:#FFFFFF; }
.pf-main { background:#FFFFFF; }

/* Titres en Manrope */
.pf-hero h1, .pf-section__head h2, .pf-step-title, .pf-confirm h1, .pf-acces__titre,
.pf-closed h1, .pf-rgpd h1, .pf-recap__head h3, .pf-confirm__next h2, .pf-confirm__again h2,
.pf-toc__head, .pf-eyebrow, .pf-infostrip span, .pf-infostrip b, .pf-notices__head,
.pf-lbl, .pf-section__num, .btn {
  font-family:'Manrope','Inter','Segoe UI',system-ui,sans-serif;
}

/* ── Bande de marque ── */
.pf-header { background:var(--primaire); border-bottom:none; }
.pf-header__logo { background:#fff; color:var(--primaire-texte, var(--primaire)); border-radius:11px; /* idem */ }
.pf-header__etab { color:var(--pf-c1-ink); font-weight:800; }
.pf-header__camp { color:var(--pf-c1-ink); }   /* n° 16 : sans opacité */

/* ── Pastilles de phases (écrans internes) ── */
/* Masquées sur l'accueil (écran 1 visible) au profit du grand chemin */
body:has(.pf-screen[data-screen="1"].is-visible) .pf-phases { display:none; }
.pf-phases { background:#FBFCFD; }
.pf-phase.is-active { color:var(--primaire-texte, var(--primaire)); background:var(--primaire-clair); }
.pf-phase.is-active .pf-phase__num { background:var(--primaire); color:var(--pf-c1-ink); }
.pf-phase.is-done { color:var(--secondaire-fonce); }
.pf-phase.is-done .pf-phase__num { background:var(--secondaire-clair); color:var(--secondaire-fonce); }

/* ── Hero d'accueil ── */
.pf-hero { text-align:left; padding:34px 0 4px; }
.pf-eyebrow { font-size:.8125rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--secondaire-fonce); display:flex; align-items:center; gap:11px; margin-bottom:0; }
.pf-eyebrow::after { content:""; height:1px; flex:1; background:var(--secondaire-clair); }
.pf-hero h1 { font-size:clamp(1.75rem,4.5vw,2.3rem); letter-spacing:-.025em; line-height:1.08; margin-top:15px; }
.pf-hero__sous { font-size:1.05rem; color:var(--gris-600); margin-top:14px; }

/* ── Grand chemin (accueil) ── */
.pf-path-panel { margin-top:26px; background:var(--primaire-clair); border:1px solid var(--gris-200);
  border-radius: 6px; padding:26px 24px 22px; }
.pf-path { display:flex; align-items:flex-start; justify-content:space-between; }
.pf-step { flex:1; position:relative; padding:0 4px; text-align:center; }
.pf-step::before { content:""; position:absolute; top:20px; left:-50%; width:100%; height:2px;
  background:var(--gris-200); z-index:0; }
.pf-step:first-child::before { display:none; }
.pf-step.is-on::before { background:var(--secondaire); }
.pf-dot { position:relative; z-index:1; width:42px; height:42px; border-radius:50%; margin:0 auto;
  display:grid; place-items:center; font-weight:800; font-size:.9rem; background:#fff;
  border:2px solid var(--gris-200); color:var(--texte-2); }
.pf-step.is-on .pf-dot { background:var(--primaire); border-color:var(--primaire); color:var(--pf-c1-ink);
  box-shadow:0 0 0 5px var(--primaire-clair); }
.pf-lbl { font-size:.82rem; font-weight:700; margin-top:11px; color:var(--texte); }
.pf-substep { font-size:.8125rem; color:var(--texte-2); margin-top:2px; }
.pf-step.is-on .pf-substep { color:var(--secondaire-fonce); font-weight:600; }

/* ── Bandeau info ── */
.pf-infostrip { display:flex; margin-top:22px; border:1px solid var(--gris-200); border-radius: 6px; overflow:hidden; }
/* « à remplir en une fois » (04/09, Philippe) : l'information qui évite la
   déconvenue prend le ton orange de la maison, simple changement de couleur */
.pf-infostrip b.pf-strip-alerte { color: var(--orange); }
.pf-infostrip > div { flex:1; padding:13px 18px; border-right:1px solid var(--gris-200); }
.pf-infostrip > div:last-child { border-right:none; }
.pf-infostrip span { display:block; font-size:.8125rem; text-transform:uppercase; letter-spacing:.05em;   /* L169 (R372, D397) : 13 px, le plancher de la maison (D57) ; elles étaient à 11,4 px */
  color:var(--texte-2); font-weight:700; }
.pf-infostrip b { font-size:.96rem; font-weight:700; margin-top:2px; display:block; }

/* Cartes bordées sur fond blanc (netteté) */
.carte { border:1px solid var(--gris-200); }

/* ── Carte d'intro neutralisée (contenu qui coule) ── */
.pf-intro { background:transparent; border:none; box-shadow:none; padding:24px 0 0; }
.pf-intro p { color:var(--gris-600); }

/* ── Notices ── */
.pf-notices__head { font-size:.8125rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  color:var(--texte-2); margin:24px 0 10px; }
.pf-notice { border-radius: 6px; padding:13px 15px; }
.pf-notice:hover { border-color:var(--primaire); background:var(--primaire-clair); box-shadow:none; }
.pf-notice__icon { background:var(--primaire-clair); color:var(--primaire-texte, var(--primaire)); border-radius: 6px; font-weight:800; }
.pf-notice__dl { color:var(--primaire-texte, var(--primaire)); font-weight:700; }

/* ── Boutons ── */
.btn { border-radius: 6px; font-weight:800; }
.btn--primaire { background:var(--primaire); color:var(--pf-c1-ink); }
.btn--primaire:hover { background:var(--primaire-fonce); }

/* ── Sections de formulaire : carte bordée + numéro encadré ── */
.pf-section { border:1px solid var(--gris-200); }
.pf-section__head { align-items:center; }
.pf-section__num { width:28px; height:28px; border-radius:8px; background:var(--primaire); color:var(--pf-c1-ink);
  display:grid; place-items:center; font-weight:800; font-size:.9rem; flex-shrink:0; }

/* ── Sidebar de progression ── */
.pf-toc { border:1px solid var(--gris-200); }
.pf-toc__count strong { color:var(--primaire-texte, var(--primaire)); }
.pf-toc__bar i { background:var(--secondaire); }
.pf-toc__item.is-current a { background:var(--primaire-clair); color:var(--primaire-texte, var(--primaire)); }
.pf-toc__item.is-current .pf-toc__dot { border-color:var(--primaire-texte, var(--primaire)); }
.pf-toc__item.is-complete .pf-toc__dot { background:var(--secondaire); border-color:var(--secondaire); color:var(--pf-c2-ink, var(--pf-c1-ink)); }   /* RGAA 3.3 (audit final, n° 6) */

/* ── Champs (focus + choix thémés) ── */
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color:var(--primaire-texte, var(--primaire)); box-shadow:0 0 0 3px var(--primaire-clair); }
.pf-choice input { accent-color:var(--primaire); }
.pf-choice:has(input:checked) { border-color:var(--primaire); background:var(--primaire-clair); }
/* L361 : le passage en fondu (250 ms, L360) ; sans mouvement pour qui demande moins d'animations */
.pf-choice { transition: background-color .25s ease, border-color .25s ease; }
@media (prefers-reduced-motion: reduce) { .pf-choice { transition: none; } }

/* ── Pied de page : barre horizontale ── */
.pf-footer { border-top:1px solid var(--gris-200); background:#FBFCFD; padding:18px 24px;
  font-size:.82rem; color:var(--gris-600); text-align:left; }
.pf-footer__inner { max-width:1040px; margin:0 auto; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 24px; }
/* L440 (24/11) : chaque groupe, une liste ; le point sépare deux éléments d'une même ligne. Il est posé devant chaque élément, dans
   les 16 px de retrait de l'élément ; la liste commence 16 px plus à gauche et ne montre rien de ses 13 premiers pixels (clip-path) :
   le point du premier élément de chaque ligne y tombe, caché, tandis que le contour du focus d'un lien reste entier. Jamais un point
   en bout de ligne, ni en tête. */
.pf-footer__groupe { list-style:none; padding:0; margin:0 0 0 -16px; display:flex; flex-wrap:wrap; align-items:center; row-gap:4px; min-width:0;
  clip-path: inset(-6px -6px -6px 13px); }
.pf-footer__groupe > li { position:relative; padding-left:16px; }
.pf-footer__groupe > li::before { content:"·"; position:absolute; left:5px; top:50%; transform:translateY(-50%); color:var(--gris-600); }
.pf-footer__etab { font-weight:600; color:var(--gris-800); }
/* R306 (D64) : le point au gris 600 (le gris 400 faisait 2,5:1 ; D57 : 4,5:1) ; L440 : il est posé par .pf-footer__groupe > li::before */
.pf-footer a { color:var(--primaire-texte, var(--primaire)); text-decoration:none; }   /* L188 : au téléphone, 44 px (la règle de L169, plus bas) ; à l'ordinateur, la hauteur du texte (D397) */
.pf-footer a:hover { text-decoration:underline; }
/* ── LES LIENS LÉGAUX FONT BLOC À DROITE (lot 16a, 16/08/2026) ─────────────
   « margin-left: auto » poussait le premier lien à droite. Avec deux liens, le
   second héritait de la même poussée et s'en détachait.

   SEUL LE PREMIER POUSSE : les suivants le suivent, séparés par un point. */
/* « :first-of-type » visait le premier lien du pied : depuis que l'adresse de l'école y est un lien (mailto), il ne visait plus
   « Protection des données », et les liens légaux restaient collés à l'adresse, sans point. Le premier lien légal, par sa classe. */
/* L440 : le groupe des pages légales est poussé à droite par le pied (justify-content: space-between), plus par le premier lien */

/* LE SIGNATAIRE FERME LA LIGNE, en retrait : il dit qui fait tourner le
   service, pas qui répond des données — il n'a pas à peser autant que les
   liens légaux. */
.pf-footer__marque { }   /* n° 12 : sans opacité (7,38:1) */

/* ── Mobile ── */
@media (max-width:640px) {
  .pf-infostrip { flex-direction:column; }
  .pf-infostrip > div { border-right:none; border-bottom:1px solid var(--gris-200); }
  .pf-infostrip > div:last-child { border-bottom:none; }
  .pf-path { flex-wrap:wrap; gap:18px 8px; }
  .pf-step { flex-basis:44%; }
  .pf-step::before { display:none; }
  /* L169 (R372, D397) : au téléphone, chaque lien hors d'une phrase se touche du doigt, 44 px de haut (le pied de page, le retour au
     formulaire, l'adresse à écrire pour exercer ses droits, le contact des mentions) ; un lien dans une phrase garde sa ligne */
  .pf-footer a, .pf-rgpd__retour, .pf-rgpd__meta dd > a, .pf-legal__contact > a { display:inline-flex; align-items:center; min-height:44px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LE CHOIX DE LA FRATRIE

   Deux enfants importés sous la même adresse : servir l'un cacherait l'autre.
   On liste, la famille choisit.
   ══════════════════════════════════════════════════════════════════════════ */

.pf-fratrie__liste {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pf-fratrie__liste li { margin-bottom: 10px; }

.pf-fratrie__lien {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--primaire-clair);
  border-radius: 6px;
  background: #fff;
  color: var(--primaire-texte, var(--primaire));
  font-weight: 600;
  text-decoration: none;
}

.pf-fratrie__lien:hover {
  background: var(--primaire-clair);
}

/* Le geste volontaire reste offert depuis la liste : une famille peut avoir un
   troisième enfant à inscrire. */
.pf-fratrie__autre {
  margin-top: 16px;
  font-size: .88rem;
}

.pf-fratrie__autre a { color: var(--primaire-texte, var(--primaire)); }

/* ══════════════════════════════════════════════════════════════════════════
   LES PAGES LÉGALES (lot 16c, 16/08/2026)

   « pf-legal » n'avait AUCUNE RÈGLE : la classe nommait sans mettre en forme,
   et les paragraphes se collaient les uns aux autres. Philippe l'a vu au
   premier coup d'œil.

   ── UNE PAGE QU'ON LIT MAL N'INFORME PAS ─────────────────────────────────

   Des mentions légales sont denses par nature. Sans air entre les blocs, on
   les survole au lieu de les lire, ce qui vide de son sens l'obligation
   d'informer.

   La mesure de lecture prime : une ligne de texte au-delà de soixante-dix
   caractères oblige l'œil à chercher le début de la suivante.
   ══════════════════════════════════════════════════════════════════════════ */
.pf-legal {
  max-width: 68ch;
  margin: 0 auto;
  padding: 8px 0 48px;
}

.pf-legal__titre {
  margin: 0 0 28px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--texte-principal);
}

/* CHAQUE RUBRIQUE S'ANNONCE : l'écart au-dessus est plus grand que celui du
   dessous, pour que le titre appartienne à ce qui SUIT, pas à ce qui précède. */
.pf-legal__sous {
  margin: 34px 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--texte-principal);
}

.pf-legal p {
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--texte-2, #475569);
}

/* LE DERNIER PARAGRAPHE D'UNE RUBRIQUE NE POUSSE PAS : sa marge s'ajouterait
   à celle du titre suivant, et l'écart doublerait sans raison. */
.pf-legal p:last-child {
  margin-bottom: 0;
}

.pf-legal strong {
  color: var(--texte-principal);
  font-weight: 600;
}

/* LA DATE DE MISE À JOUR se lit sous le titre, en retrait : elle situe le
   document sans lui disputer sa première ligne. */
.pf-legal__maj {
  margin: -18px 0 30px;
  font-size: .82rem;
  color: var(--texte-2, #64748B);
}

/* ── LES LISTES RESPIRENT COMME LES PARAGRAPHES ──────────────────────────
   Une énumération de sept obligations, serrée, se survole. C'est précisément
   ce qu'on ne veut pas d'un texte qui répartit des responsabilités. */
.pf-legal__liste {
  margin: 0 0 14px;
  padding-left: 20px;
  line-height: 1.65;
  color: var(--texte-2, #475569);
}

.pf-legal__liste li {
  margin-bottom: 5px;
}

/* ── LES QUATRE PHRASES NETTES N'ONT PAS DE PUCE ─────────────────────────
   « Pas de publicité. Pas de profilage. » sont des affirmations, pas une
   énumération : la puce les rangerait au même niveau que les obligations de
   l'établissement, alors qu'elles sont l'engagement le plus fort de la page. */
.pf-legal__liste--net {
  list-style: none;
  padding-left: 0;
  margin: 4px 0 14px;
}

.pf-legal__liste--net li {
  margin-bottom: 3px;
  font-weight: 500;
  color: var(--texte-principal);
}

/* ── LA PHRASE DU HORS-LISTE (lot 19c, 17/08/2026) ─────────────────────────
   Elle informe avant le clic, elle n'avertit pas : ni bordure rouge, ni icône
   d'alerte. Une famille qui inscrit un second enfant fait un geste légitime —
   on lui dit ce qui suivra, on ne le lui reproche pas. */
.pf-hors-liste {
  display: block;
  margin: 0 0 10px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--texte-2, #475569);
  max-width: 52ch;
}

/* ── CHAQUE LIGNE PORTE SON ÉTAT (lot 19d, 17/08/2026) ─────────────────────
   Le nom d'abord, l'état ensuite, plus discret : la famille cherche son
   enfant, elle lit son état une fois trouvé. */
.pf-fratrie__nom {
  display: block;
  font-weight: 600;
}

.pf-fratrie__etat {
  display: block;
  margin-top: 2px;
  font-size: .85rem;
  font-weight: 400;
  color: var(--texte-2, #475569);
}

/* La liste des pièces sur la page de garde (85x) */
.pf-docs-garde { margin: 8px 0 0; padding: 0 0 0 18px; }
.pf-docs-garde li { margin: 4px 0; line-height: 1.45; }
.pf-docs-garde__format { color: var(--pf-texte-doux, #5b6472); font-size: .92em; margin-left: 6px; }
.pf-docs-garde__badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: var(--rayon-pastille);
  font-size: .8125rem; background: var(--pf-fond-doux, #eef1f5); color: var(--pf-texte-doux, #5b6472); vertical-align: 1px; }
.pf-docs-garde__badge--cond { background: #fdf3e3; color: #8a5a17; }

/* ① la bannière de session (lot écrans) */
.pf-banniere-session { position: fixed; top: 0; left: 0; right: 0; z-index: 4000; background: #FDECEA; color: #8C2F26;
  padding: 12px 18px; font-size: .95rem; border-bottom: 1px solid #F2C4BE; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pf-banniere-session--avert { background: #fdf3e3; color: #8a5a17; border-bottom-color: #ecd9b7; }
.pf-banniere-session__btn { margin-left: 10px; padding: 4px 12px; border: 1px solid currentColor;
  background: transparent; color: inherit; border-radius: 8px; cursor: pointer; font: inherit; }

/* ── LA RÈGLE DES ERREURS (lot de fin de recette, J1 ; n° 134, D248) : le récapitulatif en tête du formulaire, chaque erreur
   menant à son champ ; le champ en faute cerné de rouge, son message dessous (13 px au moins, D57) ; l'alerte d'un refus sans
   champ en cause. ── */
.pf-recap-erreurs { margin: 0 0 18px; padding: 14px 18px; border: 2px solid var(--rouge); border-radius: var(--rayon); background: var(--rouge-bg); color: var(--rouge); }
/* L539 (remarque n° 776) : le récapitulatif garde le focus que le script lui donne ; son anneau, au clavier seulement (plus de double
   cadre rouge après un clic) */
.pf-recap-erreurs:focus { outline: none; }
.pf-recap-erreurs:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; }
.pf-recap-erreurs p { margin: 0 0 6px; }
.pf-recap-erreurs ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.pf-recap-erreurs a { color: var(--rouge); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.champ.is-invalid > input, .champ.is-invalid > select, .champ.is-invalid > textarea, .champ.is-invalid input:not([type="radio"]):not([type="checkbox"]) { border-color: var(--rouge); }
.champ .err-msg { font-size: .8125rem; }
.pf-alert { margin: 0 0 18px; padding: 14px 18px; border-radius: var(--rayon); font-weight: 600; }
.pf-alert--warning { border: 2px solid var(--rouge); background: var(--rouge-bg); color: var(--rouge); }
/* J1, formulaire 18 (lot de fin de recette) : le refus d'une pièce, sous la pièce, durable */
.pf-doc-refus { display: block; margin: 8px 0 0; color: var(--rouge); font-weight: 600; font-size: .85rem; }
.pf-doc-refus[hidden] { display: none; }
/* n° 64 : le logo sur fond foncé, posé tel quel sur l'en-tête de couleur (sans la pastille blanche) */
.pf-header__logo.pf-header__logo--fonce, .pf-header__logo--fonce img { background: transparent; }

/* 3.13 (décor 8.4 ; n° 40) : « Je l'apporterai à l'école », sous la pièce que l'école a ouverte à l'apport */
.pf-doc__apport { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--gris-200); }
.pf-doc__apport-choix { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.pf-doc__apport-choix input { width: 18px; height: 18px; }
.pf-doc__apport-aide { margin: 4px 0 0; font-size: .86rem; color: var(--texte-2); }

/* ── RGAA (audit du 02/11) : les groupes, le texte masqué, la liste des étapes, les titres qui reçoivent le focus ── */
:root { --bord-champ: #7D8799; --gris-600: #475569; }
.pf-invisible { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* n° 4 : une question à choix et l'adresse sont des groupes ; la légende prend l'aspect du libellé d'un champ */
.pf-groupe { border: 0; margin: 0; padding: 0; min-width: 0; }
.pf-groupe > legend { padding: 0; margin: 0 0 6px; font-size: .87rem; font-weight: 600; }
.pf-groupe > legend.pf-heading-block { font-size: 1rem; font-weight: 700; }
/* n° 25 : le champ « titre » porte un vrai titre */
.pf-heading-block > .pf-heading-texte { margin: 0; font: inherit; color: inherit; }
/* n° 14 : la barre des étapes est une liste */
ol.pf-phases__inner { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
/* n° 2 : le titre d'un écran reçoit le focus au passage d'une étape ; il n'est pas un contrôle, il ne s'entoure pas */
[data-screen] :is(h1, h2)[tabindex="-1"]:focus { outline: none; }

/* D287 : une notice en texte (préparée par « Créer avec l’assistant ») se lit sur la page, paragraphe par paragraphe */
.pf-notice--texte { align-items: flex-start; }
.pf-notice--texte .pf-notice__para { display: block; margin-top: 6px; line-height: 1.55; font-size: .88rem; color: inherit; }

/* L74, L75 (la règle des ascenseurs de la gestion et du site) : le portail des familles affiché seul prend la même règle : fins,
   le curseur à la couleur 1 lisible du portail (--primaire-texte, calculée à 4,5 pour 1 au moins par portail_layout.php) sur une
   piste transparente, le gris 800 au survol ; la place réservée sur la page ; la rangée des étapes garde le sien masqué.
   Loi : socle/bancs/banc-ascenseurs.php */
html { scrollbar-gutter: stable; }
* { scrollbar-width: thin; scrollbar-color: var(--primaire-texte, var(--gris-600)) transparent; }
:where(body *):hover { scrollbar-color: var(--gris-800) transparent; }
@supports not (scrollbar-width: thin) {
  *::-webkit-scrollbar { width: 8px; height: 8px; }
  *::-webkit-scrollbar-track { background: transparent; }
  *::-webkit-scrollbar-thumb { background: var(--primaire-texte, var(--gris-600)); border-radius: 999px; }
  *::-webkit-scrollbar-thumb:hover { background: var(--gris-800); }
}

/* L119 (remarque n° 425) : LA PAGE D'ATTENTE D'UNE CAMPAGNE, une carte centrée ; « Être prévenu à l'ouverture » en colonne : le titre,
   l'adresse au-dessus de son champ pleine largeur, la case, son rappel dessous (sa place gardée : rien ne bouge), le bouton */
.pf-attente { max-width: 520px; margin: 48px auto; padding: 28px 28px 24px; background: var(--blanc, #fff); border: 1px solid var(--gris-200, #E5E7EB); border-radius: 16px; display: grid; gap: 18px; text-align: left; box-sizing: border-box; }
.pf-attente__tete { display: grid; gap: 8px; justify-items: center; text-align: center; }
.pf-attente__tete .pf-closed__icon { margin: 0 0 4px; }
.pf-attente__tete h1 { margin: 0; text-wrap: balance; }
.pf-attente__tete p { margin: 0; }
.pf-attente .pf-prevenir { display: grid; gap: 12px; margin: 0; padding-top: 18px; border-top: 1px solid var(--gris-200, #E5E7EB); }
.pf-attente .pf-prevenir__titre { margin: 0; text-align: left; }
.pf-attente .pf-prevenir__champ { min-width: 0; max-width: none; width: 100%; margin: 0; }
.pf-attente .pf-prevenir__champ input[type="email"] { width: 100%; box-sizing: border-box; }
.pf-attente .pf-prevenir__accord { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .9rem; line-height: 1.45; }
.pf-attente .pf-prevenir__accord input { width: 18px; height: 18px; margin: 2px 0 0; }
.pf-attente .pf-prevenir__rappel { min-height: 1.5em; line-height: 1.5; margin: -8px 0 0 28px; font-size: .8125rem; font-weight: 600; font-style: normal; color: var(--rouge, #B42318); }
.pf-attente .pf-prevenir__bouton { justify-self: start; }
@media (max-width: 560px) {
  .pf-attente { margin: 16px auto; padding: 22px 18px 20px; border-radius: var(--rayon-lg); }
  .pf-attente .pf-prevenir__bouton { justify-self: stretch; }
}

/* L359 (R682 d'iAlumni ; Phil, 17/11) : SUR UN ÉCRAN TACTILE, UN CHAMP S'ÉCRIT EN 16 PX AU MOINS. Sous 16 px, Safari sur iPhone grossit la
   page quand on touche le champ. Chaque champ (texte, liste, zone de texte, date) prend 16 px, ou sa taille si elle est plus grande ; sa
   hauteur reste celle de la maison. Jamais « maximum-scale=1 » dans la page : il empêcherait de grossir à deux doigts.
   Loi : socle/bancs/banc-champs-16px-navigateur.js */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="hidden"]),
  select,
  textarea {
    font-size: max(16px, 1em) !important;
  }
}

/* L340 (remarque n° 609) : le logo et le nom de l’école ramènent à « Vos démarches », ou à la page d’accès sans séance */
.pf-header__accueil { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; text-decoration: none; border-radius: var(--rayon); }
.pf-header__accueil:hover .pf-header__etab { text-decoration: underline; text-underline-offset: 3px; }
.pf-header__accueil:focus-visible { outline: 3px solid var(--pf-c1-ink, #FFFFFF); outline-offset: 4px; }

/* L224 : la marque d’une réponse reprise d’un dossier d’avant */
.pf-reprise { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 8px; border-radius: var(--rayon); background: var(--primaire-clair, #EFF6FF); color: var(--primaire-fonce, #1E40AF); font-size: .75rem; font-weight: 600; vertical-align: 1px; }
.pf-reprise[hidden] { display: none; }

/* L348 (n° 617) : la page de l’accord de l’élève, au gabarit du portail (la photo, le logo, une carte) */
.pf-anciens { max-width: 720px; margin: -28px auto 0; }
.pf-anciens__photo { height: 240px; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); background: var(--primaire) center / cover no-repeat; }   /* toute la largeur, comme les pages d’accès d’iAlumni */
.pf-anciens__photo--couleur { background-image: none; }
.pf-anciens__carte { position: relative; margin-top: -96px; background: var(--blanc); border: 1px solid var(--gris-200); border-radius: var(--rayon-lg); padding: 0 28px 28px; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.pf-anciens__ecole { display: flex; align-items: center; gap: 12px; margin-top: -30px; }
.pf-anciens__logo { width: 64px; height: 64px; border-radius: var(--rayon-lg); background: var(--primaire); color: #FFFFFF; border: 3px solid var(--blanc); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 21px; overflow: hidden; flex-shrink: 0; }
.pf-anciens__logo img { width: 100%; height: 100%; object-fit: contain; background: var(--blanc); padding: 5px; box-sizing: border-box; }   /* L534 : le logo posé sans être coupé par les coins */
.pf-anciens__nom { margin-top: 30px; font-size: .9375rem; font-weight: 600; color: var(--gris-600); }
.pf-anciens h1 { margin: 0; font-size: 1.75rem; line-height: 1.2; font-weight: 800; color: var(--texte); }
.pf-anciens__accueil { margin: 0; color: var(--gris-600); }
.pf-anciens__accord { background: var(--primaire-clair); border: 1px solid var(--gris-200); border-radius: var(--rayon-lg); padding: 14px 18px; }
.pf-anciens__accord p { margin: 0; font-weight: 600; line-height: 1.55; color: var(--texte); }
.pf-anciens__regles { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.pf-anciens__regles > div { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--gris-200); color: var(--primaire-texte, var(--primaire)); }
.pf-anciens__regles svg { flex-shrink: 0; margin-top: 2px; }
.pf-anciens__regles dt { font-size: .8125rem; font-weight: 600; color: var(--gris-600); }
.pf-anciens__regles dd { margin: 2px 0 0; line-height: 1.5; color: var(--texte); }
.pf-anciens__gestes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.pf-anciens__choix { min-height: 56px; border: 1px solid var(--primaire); border-radius: 8px; background: var(--blanc); color: var(--texte); font: inherit; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 10px; cursor: pointer; }
.pf-anciens__choix small { font-size: .75rem; font-weight: 500; color: var(--gris-600); }
.pf-anciens__choix:hover { background: var(--primaire-clair); }
.pf-anciens__choix:focus-visible { outline: 3px solid var(--primaire); outline-offset: 2px; }
/* L439 (24/11) : le choix fait dans le mail, mis en avant, à confirmer d'un clic */
.pf-anciens__choix--choisi { background: var(--primaire); color: var(--pf-c1-ink); border-color: var(--primaire); }
.pf-anciens__choix--choisi small { color: inherit; opacity: .9; }
.pf-anciens__choix--choisi:hover { background: var(--primaire); }
.pf-anciens__confirmer { margin: 0; font-weight: 600; line-height: 1.5; color: var(--texte); }
.pf-anciens__note { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--gris-600); }
.pf-anciens__reponse { display: flex; flex-direction: column; gap: 12px; }
.pf-anciens__reponse p { margin: 0; line-height: 1.55; }
.pf-anciens__pastille { width: 44px; height: 44px; border-radius: 22px; background: var(--primaire-clair); color: var(--primaire-texte, var(--primaire)); display: inline-flex; align-items: center; justify-content: center; }
.pf-anciens__pastille--ok { background: var(--vert-bg); color: var(--vert); }
@media (max-width: 600px) {
  .pf-anciens__photo { height: 160px; }
  .pf-anciens__carte { margin-top: -44px; padding: 0 18px 22px; }
  .pf-anciens h1 { font-size: 1.5rem; }
  .pf-anciens__regles { grid-template-columns: 1fr; }
}

/* ── L351 : LA COMMUNE ET LE PAYS PROPOSÉS PENDANT LA FRAPPE (assets/js/lieux.js, le moteur de la liste de la maison, choix.js) ──
   La feuille de la liste de la maison (choix.css) n'est pas chargée au portail : elle habille aussi chaque <select> ; ses formes
   sont reprises ici, aux couleurs du portail. */
.choix__liste { box-sizing: border-box; background: var(--blanc); color: var(--texte); border: 1px solid var(--gris-200); border-radius: var(--rayon-lg); padding: 4px; overflow-y: auto; font-size: .92rem; }
.choix__liste[hidden] { display: none; }
.choix__liste--flottante { position: fixed; z-index: 2147483000; max-height: 320px; box-shadow: 0 14px 34px rgba(15, 23, 42, .2); }
.choix__option { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 6px; cursor: pointer; line-height: 1.35; }
.choix__option--active { background: var(--primaire-clair); }
.choix__nom { min-width: 0; overflow-wrap: anywhere; }
.choix__note { flex: 0 1 auto; max-width: 60%; margin-left: auto; padding-left: 12px; color: var(--texte-2); font-size: .8125rem; text-align: right; }
.choix__vide { padding: 10px 12px; color: var(--texte-2); }
.pf-lieu__sortes { grid-template-columns: 1fr 1fr; margin: 4px 0 12px; }
.pf-lieu > .pf-grid[hidden] { display: none; }

/* L535 (remarque n° 773) : « Se déconnecter » à droite de l'en-tête ; la fenêtre de la maison quand le formulaire est commencé */
.pf-header__sortie { margin: 0 0 0 auto; flex: none; }
.pf-header__deconnexion { font: inherit; font-size: .875rem; font-weight: 600; line-height: 1.2; color: var(--pf-c1-ink, #FFFFFF); background: transparent;
  border: 1px solid currentColor; border-radius: var(--rayon); padding: 9px 14px; min-height: 44px; cursor: pointer; white-space: nowrap; }   /* 44 px : la cible au doigt (L369) */
.pf-header__deconnexion:hover { text-decoration: underline; text-underline-offset: 3px; }
.pf-header__deconnexion:focus-visible { outline: 3px solid var(--pf-c1-ink, #FFFFFF); outline-offset: 3px; }
dialog.pf-dialogue { border: none; border-radius: var(--rayon); padding: 24px; width: calc(100% - 32px); max-width: 440px; color: var(--texte);
  background: #FFFFFF; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
dialog.pf-dialogue::backdrop { background: rgba(15, 23, 42, .45); }
.pf-dialogue h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 8px; }
.pf-dialogue p { color: var(--texte-2); margin: 0 0 20px; }
.pf-dialogue__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.pf-closed__geste { margin-top: 18px !important; }
.pf-closed__contact { margin-top: 16px !important; font-size: .9rem; }
.pf-closed__contact a { color: var(--primaire-texte, var(--primaire)); }

/* L595 (remarque n° 825) : les codes postaux d'une commune choisie par son nom, sous le code postal (assets/js/lieux.js) */
.lieux-cps { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; color: var(--texte-2); }
.lieux-cps__titre { flex-basis: 100%; }
.lieux-cps__code { font: inherit; font-variant-numeric: tabular-nums; color: var(--texte); background: var(--blanc, #FFFFFF); border: 1px solid var(--gris-200);
  border-radius: var(--rayon, 8px); min-height: 44px; min-width: 72px; padding: 8px 12px; cursor: pointer; }
.lieux-cps__code:hover { border-color: var(--primaire); }
.lieux-cps__code:focus-visible { outline: 3px solid var(--primaire); outline-offset: 2px; }

