/* vCards Solutions, lot 1, monde émeraude : espace revendeur (pro.vcards.solutions, D107) et administration.
   SQUELETTE du cadreur, 02/11/2026 (consigne _bmad-output/CONSIGNE-UX-LOT-1-2026-11-02.md ; plan
   _bmad-output/ux-lot-1-plan-2026-11-02.md). Mode impeccable : Operate. Maquettes statiques de conception,
   aucun code de production.

   Règles de cette feuille :
   - Jetons, polices et composants fondateurs viennent de ../lot-0-emeraude/lot-0.css, importée telle quelle
     (validée, jamais modifiée ici). Aucune couleur en dur : tout passe par les jetons var(--…).
   - Échelle typographique fixe en rem (pas de clamp dans l'application) ; serif pour le seul titre de page.
   - Aucune ombre sur les conteneurs de contenu ; dialogue et menu sont les seules surfaces flottantes.
   - États portés par un mot, jamais par la seule couleur ; capitales rares ; aucun filet coloré de plus de 1 px
     en bordure gauche ou droite ; aucune icône en caractère Unicode (sprite icones.svg).
   - Cibles de 44 px au moins ; champs de 48 px ; :focus-visible hérité de lot-0.css (vert-vif 3 px, menthe sur
     fond sombre).
   - Points de rupture : 72, 60, 48, 36 rem (bureau d'abord, comme lot-0.css).
   - Les constructeurs n'écrivent que dans leur section balisée en fin de fichier, ou de préférence dans
     lot-1-<groupe>.css ; la fusion reprend ces ajouts ici.

   Contrastes (mesurés pour lot-0.css, réutilisés tels quels) : texte #233530 sur blanc 13,0 ; texte-2 #4f615b
   sur blanc 6,58, sur crème-2 5,59, sur vert pâle 5,66 ; vert #0f5c4a sur vert pâle 6,82 ; menthe #b9dccf sur
   vert-nuit 11,58 ; erreur #9a3b2b sur blanc 6,92. Interrupteur éteint : bordure texte-2 sur blanc 6,58 (non
   texte, 3:1 exigé). */

@import url("../lot-0-emeraude/lot-0.css");

/* ==========================================================================
   1. Jetons propres au lot 1 (dérivés des jetons du lot 0, aucune teinte nouvelle)
   ========================================================================== */
:root {
  --app-lateral: 16rem;            /* largeur de la barre latérale */
  --app-entete: 4.5rem;            /* hauteur minimale de l'en-tête d'application */
  --app-contenu-max: 90rem;        /* largeur maximale de la zone de travail */
  --app-marge: 2rem;               /* marge intérieure de la zone de travail */

  --surface: var(--blanc);         /* panneaux, tableaux, champs : « le blanc qui sort du papier » */
  --surface-2: var(--creme-2);     /* second neutre : barre latérale, en-têtes de tableau */
  --filet: 1px solid var(--ligne);
  --filet-fort: 1px solid var(--ligne-champ);

  --rayon-champ: 10px;
  --rayon-pastille: 14px;         /* pastilles d'état, piste d'interrupteur, étiquettes : rayon 14 px de DESIGN.md ;
                                      sur 24 à 28 px de haut il dessine une pilule et reste net si le texte passe à la ligne */
  --duree: 180ms;                  /* transitions d'état, 150 à 250 ms (Operate) */

  /* Échelle fixe, rapport voisin de 1,125 à 1,2 */
  --t-xs: 0.8125rem;
  --t-s: 0.875rem;
  --t-m: 1rem;
  --t-l: 1.125rem;
  --t-xl: 1.375rem;
  --t-titre: 2rem;                 /* h1 de page, serif */

  --ombre-flottante: 0 24px 48px -16px rgba(20, 33, 29, 0.35); /* dialogue et menu seulement */

  /* Couture du 02/11 (vérification A, E1) : bordure des composants de saisie à 3:1 au moins (WCAG 1.4.11).
     --ligne-forte #b9b1a0 du lot 0 ne fait que 2,13:1 sur blanc. #8a8272, même famille de gris chaud :
     3,81:1 sur blanc, 3,56:1 sur crème, 3,24:1 sur crème-2. Champs, listes déroulantes, boutons secondaires
     et bouton de menu du lot 1 ; lot-0.css reste intouché. */
  --ligne-champ: #8a8272;

  /* Couture du 02/11 (finition 6) : bouton inactif en gris de la palette, jamais le vert pâle réservé à la
     sélection et à la page courante. Texte texte-2 sur crème-2 : 5,59:1 ; contour ligne-champ. */
  --inactif-fond: var(--creme-2);
  --inactif-texte: var(--texte-2);
  --inactif-bord: var(--ligne-champ);
}

/* ==========================================================================
   2. Base de l'application
   ========================================================================== */
html:has(body.app), html:has(body.auth) { scroll-padding-top: 1rem; }

body.app, body.auth { font-size: var(--t-m); line-height: 1.5; }
body.app { min-height: 100vh; }

/* Données : chiffres tabulaires partout dans l'application */
.app td, .app th, .app .cellule-code, .app time { font-variant-numeric: tabular-nums; }

.icone { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; }

/* Titres : serif pour le seul h1 de page ; Archivo pour le reste (Operate : une famille porte l'interface) */
.app-titre { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--t-titre); line-height: 1.15; letter-spacing: -0.012em; color: var(--encre); text-wrap: balance; }
.app h2, .auth h2 { margin: 0; font-family: var(--sans); font-size: var(--t-l); font-weight: 600; line-height: 1.3; color: var(--encre); }
.app h3, .auth h3 { margin: 0; font-family: var(--sans); font-size: var(--t-m); font-weight: 600; line-height: 1.35; color: var(--encre); }

/* ==========================================================================
   2 bis. Composants communs issus de la fusion des quatre groupes (02/11/2026)
   Une seule règle par composant : ce bloc remplace les correctifs écrits deux à quatre fois dans
   lot-1-a.css à lot-1-d.css. Les feuilles de groupe ne gardent que leurs classes préfixées (a-, b-, c-, d-).
   ========================================================================== */
/* Texte réservé aux lecteurs d'écran (.a-sr, .c-sr, .d-cache : même règle, noms gardés dans le balisage) */
.visuellement-cache, .a-sr, .c-sr, .d-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Champs de .formulaire que lot-0.css ne dessine pas (il ne couvre que text, email et textarea) */
.formulaire input[type="password"], .formulaire input[type="search"], .formulaire input[type="tel"],
.formulaire input[type="url"], .formulaire input[type="number"], .formulaire input[type="date"] {
  display: block; width: 100%; min-height: 48px; padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--ligne-champ); border-radius: var(--rayon-champ); background: var(--blanc);
  color: var(--encre); font: inherit; line-height: 1.4;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}
/* Champs que lot-0.css dessine (text, email, textarea) : même bordure à 3:1 dans l'application */
.app .formulaire input[type="text"], .app .formulaire input[type="email"], .app .formulaire textarea,
.auth .formulaire input[type="text"], .auth .formulaire input[type="email"], .auth .formulaire textarea { border-color: var(--ligne-champ); }
.app .bouton-secondaire, .auth .bouton-secondaire { border-color: var(--ligne-champ); }
/* Liste déroulante : chevron dessiné (surface du navigateur thémée, revue de finition) */
.app select, .auth select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234f615b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 12px 8px;
}
.formulaire select { display: block; width: 100%; max-width: 100%; }
.formulaire select:focus-visible { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(15, 92, 74, 0.22); }
.formulaire select[aria-invalid="true"] { border-color: var(--erreur); box-shadow: 0 0 0 3px rgba(154, 59, 43, 0.15); }
.formulaire input[type="file"] { min-height: 48px; max-width: 100%; font: inherit; }
.formulaire input[readonly], .formulaire textarea[readonly] { background: var(--creme); color: var(--texte-2); }
.formulaire input:disabled, .formulaire select:disabled, .formulaire textarea:disabled { background: var(--creme); color: var(--texte-2); cursor: not-allowed; }

/* Boutons dans un formulaire. lot-0.css peint tout .bouton de .formulaire en vert plein (formulaires du site, une
   seule action) ; dans l'application, le secondaire reste un contour et l'inactif reste pâle. */
.formulaire .bouton.bouton-secondaire { background: transparent; border-color: var(--ligne-champ); color: var(--encre); box-shadow: none; }
.formulaire .bouton.bouton-secondaire:hover { background: transparent; border-color: var(--vert); color: var(--vert); }
.bouton[aria-disabled="true"], .formulaire .bouton[aria-disabled="true"] { background: var(--inactif-fond); border-color: var(--inactif-bord); color: var(--inactif-texte); box-shadow: none; cursor: not-allowed; }
.bouton[aria-disabled="true"]:hover, .formulaire .bouton[aria-disabled="true"]:hover { transform: none; }
.bouton[aria-busy="true"] { cursor: progress; opacity: 0.8; }
.formulaire .champ-mdp .bouton { width: auto; flex: none; box-shadow: none; }

/* Barre latérale : marque et pied, identiques sur toutes les pages */
.lateral-marque .marque-icone, .lateral-marque .icone { width: 28px; height: 28px; flex: none; color: var(--vert); }
.lateral-admin .lateral-marque .marque-icone, .lateral-admin .lateral-marque .icone { color: var(--menthe); }
.lateral-pied .lateral-titulaire { line-height: 1.4; }
.lateral-pied .langue { padding-left: 0.5rem; }
.langue a[aria-disabled="true"] { color: var(--texte-2); }
.lateral-admin .lateral-lien[aria-disabled="true"], .lateral-admin .lateral-lien .a-venir { color: var(--menthe); }
.lateral-admin .lateral-lien[aria-disabled="true"] { opacity: 0.8; }
.lateral-admin .lateral-lien[aria-disabled="true"]:hover { background: transparent; color: var(--menthe); }

/* Pied d'application (espace et administration) */
.app-pied { margin-top: auto; padding: 1rem var(--app-marge) 1.5rem; border-top: var(--filet); font-size: var(--t-s); color: var(--texte-2); }
.app-pied ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; margin: 0; padding: 0; }
.app-pied a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texte-2); }
.app-pied a:hover { color: var(--vert); }
.app-pied p { margin: 0; max-width: 70ch; }

/* Accusé « Reçu » du lot 0 : l'icône garde sa taille malgré .icone */
.recu .recu-icone { width: 44px; height: 44px; }

/* Planche d'états : panneau de détail ou dialogue montré en ligne, sans position flottante */
.planche-etat .detail { position: static; max-height: none; overflow: visible; }
.planche-etat .liste-detail { grid-template-columns: minmax(0, 1fr); }
.planche-etat .dialogue-statique { position: static; transform: none; margin: 0; width: min(100%, 34rem); }

/* Étiquette d'état : toujours sur une ligne, à la largeur de son libellé (couture du 02/11, finition 4) ;
   un tableau trop étroit défile dans son cadre plutôt que de couper une pastille. Sous 36 rem seulement,
   dans un tableau empilé, le libellé peut passer à la ligne. */
.tableau .etat, .detail .etat { white-space: nowrap; }

/* ==========================================================================
   2 ter. Couture du 02/11/2026 (arbitrages de l'orchestrateur)
   ========================================================================== */
/* Un seul traitement de lien dans le texte : souligné, graisse 500 (finition 7). Les résumés de <details>
   qui se lisent comme des liens (« Voir la fiche de la puce », « Changer de commande ») prennent le même. */
.app-contenu a:not(.bouton):not(.lateral-lien):not(.pagination-lien):not(.lateral-marque),
.planche-etats a:not(.bouton), .auth a:not(.bouton):not(.marque) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.app-contenu details > summary, .planche-etats details > summary { font-weight: 500; color: var(--vert); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

/* Sommaire de page : un seul motif de navigation secondaire sur tout le lot (finition 7) ; sections ancrées,
   rien n'est caché derrière un clic. Remplace les onglets de l'éditeur et .d-sommaire de l'administration. */
.sommaire-page { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0.25rem 0; list-style: none; font-size: var(--t-s); border-bottom: var(--filet); }
.sommaire-page a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.sommaire-page a[aria-current="true"] { color: var(--encre); font-weight: 600; }
.sommaire-page .sommaire-inactif { display: inline-flex; align-items: center; min-height: 44px; color: var(--texte-2); }

/* Liste avec détail dont le panneau passe sous le tableau (commandes : finition 3) */
.liste-detail.liste-detail-sous { grid-template-columns: minmax(0, 1fr); }
.liste-detail-sous .detail { position: static; max-height: none; overflow: visible; max-width: 48rem; }

/* Étape de réauthentification (C5, C7) : le code à usage unique est demandé à part, après la confirmation
   de l'acte ; un dialogue ne demande jamais deux codes à la fois. */
.etapes-dialogue { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; list-style: none; font-size: var(--t-s); color: var(--texte-2); }
.etapes-dialogue [aria-current="step"] { color: var(--encre); font-weight: 600; }

/* Exemple d'état sorti de la liste principale (C14) */
.exemple-etat { font-family: var(--etroit); font-size: var(--t-s); font-weight: 600; color: var(--texte-2); }

/* ==========================================================================
   3. Gabarit d'authentification (connexion, mot de passe oublié, codes de récupération)
   Classes : .auth (body), .auth-entete, .auth-principal, .auth-panneau, .auth-retour, .auth-pied, .champ-mdp
   ========================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: 100vh; }
.auth-entete { display: flex; align-items: center; min-height: var(--app-entete); padding-inline: var(--gouttiere); border-bottom: var(--filet); }
.auth-principal { display: grid; place-items: start center; padding: 4rem var(--gouttiere); }
.auth-panneau { width: min(100%, 28rem); padding: 2rem; border: var(--filet); border-radius: var(--rayon); background: var(--surface); }
.auth-panneau .app-titre { font-size: 1.75rem; }
.auth-retour { margin-top: 1.5rem; text-align: center; font-size: var(--t-s); }
.auth-pied { padding: 1.25rem var(--gouttiere); border-top: var(--filet); font-size: var(--t-s); color: var(--texte-2); }
.champ-mdp { display: flex; gap: 0.5rem; align-items: stretch; }
.champ-mdp input { flex: 1; min-width: 0; }
.champ-mdp button { min-width: 44px; min-height: 44px; }

/* ==========================================================================
   4. Gabarit de l'espace et de l'administration
   Classes : .app (body), .app-lateral, .lateral-admin, .lateral-marque, .lateral-role, .lateral-nav,
   .lateral-lien (aria-current="page"), .lateral-lien[aria-disabled], .lateral-pied, .app-menu,
   .app-principal, .app-contenu
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--app-lateral) minmax(0, 1fr); }

.app-lateral {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 1.25rem 0.75rem;
  background: var(--surface-2);
  border-right: var(--filet);
}
.lateral-marque { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding-inline: 0.75rem; font-weight: 700; color: var(--encre); text-decoration: none; }
.lateral-role { padding-inline: 0.75rem; font-family: var(--etroit); font-size: var(--t-s); font-weight: 600; color: var(--texte-2); }
.lateral-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lateral-lien {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: 44px; padding: 0.5rem 0.75rem;
  border-radius: var(--rayon-champ);
  color: var(--texte); text-decoration: none; font-weight: 500;
  transition: background-color var(--duree) ease-out, color var(--duree) ease-out;
}
.lateral-lien:hover { background: var(--surface); color: var(--encre); }
.lateral-lien[aria-current="page"] { background: var(--vert-pale); color: var(--vert); font-weight: 600; }
.lateral-lien[aria-disabled="true"] { color: var(--texte-2); cursor: not-allowed; }
.lateral-lien[aria-disabled="true"]:hover { background: transparent; }
.lateral-lien .a-venir { margin-left: auto; font-size: var(--t-xs); font-weight: 400; }
.lateral-pied { margin-top: auto; display: grid; gap: 2px; padding-top: 1rem; border-top: var(--filet); font-size: var(--t-s); }
.lateral-pied .lateral-titulaire { padding: 0.25rem 0.75rem; color: var(--texte-2); }

/* Variante administration : fond vert-nuit, textes menthe (contraste 11,58) */
.lateral-admin { background: var(--vert-nuit); border-right-color: var(--vert-nuit); color: var(--menthe); }
.lateral-admin .lateral-marque { color: var(--blanc); }
.lateral-admin .lateral-role, .lateral-admin .lateral-titulaire { color: var(--menthe); }
.lateral-admin .lateral-lien { color: var(--menthe); }
.lateral-admin .lateral-lien:hover { background: rgba(185, 220, 207, 0.12); color: var(--blanc); }
.lateral-admin .lateral-lien[aria-current="page"] { background: rgba(185, 220, 207, 0.16); color: var(--blanc); }
.lateral-admin .lateral-pied { border-top-color: rgba(185, 220, 207, 0.25); }
.lateral-admin :focus-visible { outline-color: var(--menthe); }

/* Bouton de menu : visible sous 60 rem seulement (voir points de rupture) */
.app-menu { display: none; }

.app-principal { min-width: 0; display: flex; flex-direction: column; }
.app-contenu { width: 100%; max-width: var(--app-contenu-max); padding: 1.5rem var(--app-marge) 4rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-content: start; }

/* ==========================================================================
   5. En-tête d'application et fil
   Classes : .app-entete, .app-entete-texte, .app-fil (ol), .app-titre, .app-titre-etat, .app-actions
   ========================================================================== */
.app-entete {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem;
  min-height: var(--app-entete);
  padding: 1.5rem var(--app-marge) 1.25rem;
  border-bottom: var(--filet);
  background: var(--creme);
}
.app-entete-texte { display: grid; gap: 0.35rem; min-width: 0; }
.app-titre-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.app-fil { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: var(--t-s); color: var(--texte-2); }
.app-fil li { display: flex; align-items: center; gap: 0.25rem; }
.app-fil li + li::before { /* séparateur dessiné, jamais un caractère */
  content: ""; width: 6px; height: 6px; margin-inline: 0.35rem;
  border-top: 1.5px solid var(--ligne-forte); border-right: 1.5px solid var(--ligne-forte); transform: rotate(45deg);
}
.app-fil a { color: var(--texte-2); }
.app-fil a:hover { color: var(--vert); }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

/* ==========================================================================
   6. Zones et panneaux (pas de carte gratuite : un panneau n'entoure qu'un tableau, un formulaire ou un aperçu)
   Classes : .app-zone, .zone-tete, .zone-intro, .panneau
   ========================================================================== */
.app-zone { display: grid; gap: 1rem; min-width: 0; }
.zone-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.zone-intro { max-width: 70ch; color: var(--texte-2); }
.panneau { border: var(--filet); border-radius: var(--rayon); background: var(--surface); }

/* ==========================================================================
   7. Tableau de données
   Classes : .tableau-cadre (défilement horizontal interne, tabindex="0" et aria-labelledby), .tableau,
   th[aria-sort], .tableau-tri (bouton d'en-tête), .tableau-num, .cellule-code, .cellule-cible,
   .cellule-actions, .ligne-choisie (ou tr[aria-selected="true"]), .tableau-empile (empilement sous 48 rem,
   td[data-libelle])
   ========================================================================== */
/* Cadre arrondi (rayon 14 px) avec un retrait de 0,5 rem : le contenu ne touche jamais le filet (règle unique, fusion du 02/11) */
.tableau-cadre { overflow-x: auto; padding: 0.5rem; border: var(--filet); border-radius: var(--rayon); background: var(--surface); }
.tableau thead th:first-child { border-top-left-radius: var(--rayon-champ); }
.tableau thead th:last-child { border-top-right-radius: var(--rayon-champ); }
.tableau { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.tableau caption { padding: 0.9rem 1rem; text-align: left; font-weight: 600; color: var(--encre); }
.tableau th, .tableau td { padding: 0.7rem 1rem; text-align: left; vertical-align: middle; border-bottom: var(--filet); }
.tableau thead th { background: var(--surface-2); font-weight: 600; color: var(--texte-2); white-space: nowrap; }
.tableau tbody tr:last-child td, .tableau tbody tr:last-child th { border-bottom: 0; }
.tableau tbody tr:hover { background: var(--creme); }
.tableau .ligne-choisie, .tableau tr[aria-selected="true"] { background: var(--vert-pale); }
.tableau-tri { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.tableau-num { text-align: right; }
.cellule-code { font-family: var(--mono); font-size: 0.875em; font-variant-numeric: tabular-nums slashed-zero; color: var(--encre); }
.cellule-cible { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cellule-cible:focus-within, .cellule-cible:hover { white-space: normal; overflow-wrap: anywhere; }
.cellule-actions { white-space: nowrap; text-align: right; }
.cellule-actions a, .cellule-actions button { display: inline-flex; align-items: center; min-height: 44px; }

/* ==========================================================================
   8. Filtres et recherche
   Classes : .filtres, .filtres-recherche (input type="search" + icône), .filtres-choix (select ou groupe),
   .filtres-resume (filtre actif écrit en clair, aria-live="polite"), .filtres-effacer
   ========================================================================== */
.filtres { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1rem; }
.filtres label { display: block; margin-bottom: 0.3rem; font-size: var(--t-s); font-weight: 600; color: var(--encre); }
.filtres-recherche { position: relative; flex: 2 1 14rem; }
.filtres-recherche .icone { position: absolute; left: 0.85rem; bottom: 14px; color: var(--texte-2); pointer-events: none; }
/* Spécificité relevée : .formulaire input[type="search"] ne doit pas ramener le texte sous l'icône */
.filtres .filtres-recherche input { padding-left: 2.6rem; }
.filtres input, .filtres select {
  width: 100%; min-height: 48px; padding: 0 0.9rem;
  border: var(--filet-fort); border-radius: var(--rayon-champ);
  background-color: var(--surface); color: var(--encre); font: inherit;
}
.filtres input:focus-visible, .filtres select:focus-visible { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(15, 92, 74, 0.22); }
.filtres-choix { flex: 1 1 10rem; }
.filtres select { padding-right: 2.5rem; }
.filtres .bouton { flex: none; }
.filtres-resume { width: 100%; font-size: var(--t-s); color: var(--texte-2); }
.filtres-effacer { margin-left: 0.5rem; }

/* ==========================================================================
   9. Étiquette d'état par axe, et mentions
   Une étiquette porte un seul axe (data-axe : cycle, code, droit, fabrication, demande, invitation).
   Le point dit la nature (data-point : plein = en service, creux = en attente, tirets = arrêté), le mot dit
   l'état ; la couleur ne dit jamais rien seule.
   Classes : .etat[data-axe][data-point], .mention-edition, .mention-modele
   ========================================================================== */
.etat {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 28px; padding: 0.1rem 0.7rem 0.1rem 0.6rem;
  border: var(--filet); border-radius: var(--rayon-pastille);
  background: var(--surface);
  font-family: var(--etroit); font-size: var(--t-s); font-weight: 600; line-height: 1.2; color: var(--encre);
  white-space: nowrap;
}
.etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--texte-2); }
.etat[data-point="plein"]::before { background: var(--vert); }
.etat[data-point="creux"]::before { background: transparent; box-shadow: inset 0 0 0 2px var(--texte-2); }
.etat[data-point="tirets"]::before { background: transparent; border: 2px dashed var(--texte-2); width: 10px; height: 10px; }
.mention-edition { font-size: var(--t-xs); font-weight: 600; color: var(--vert); }
.mention-modele { font-size: var(--t-s); color: var(--texte-2); }

/* ==========================================================================
   10. Formulaire long et sections repliables (éditeur, paramètres)
   Les champs reprennent l'apparence de .formulaire (lot-0.css) : poser .formulaire sur .form-long.
   Classes : .form-long, .zone-gestion, .section-form (fieldset ou section), .section-form-tete (titre + interrupteur
   de section), .section-form-corps, .section-form[data-active="false"] (repliée, valeurs gardées),
   .section-form-resume (« 2 images gardées »), .champ-ligne (champ + interrupteur de champ), .champ-ligne-champ,
   .champ-liste (ol), .champ-liste-element, .champ-ajout, .champ-retirer, .champ-fichier, .marque-requis,
   .signal-modele, .encart-presentation, .case (case à cocher de 44 px), .lecture-seule
   ========================================================================== */
.form-long { display: grid; gap: 1.25rem; min-width: 0; max-width: none; }
.zone-gestion { display: grid; gap: 1.25rem; padding: 1.5rem; border: var(--filet); border-radius: var(--rayon); background: var(--surface-2); }

.section-form { margin: 0; padding: 0; min-width: 0; border: var(--filet); border-radius: var(--rayon); background: var(--surface); }
.section-form-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; }
.section-form-tete h2, .section-form-tete legend { font-size: var(--t-l); font-weight: 600; color: var(--encre); }
.section-form-corps { display: grid; gap: 1.25rem; padding: 0.25rem 1.5rem 1.5rem; border-top: var(--filet); padding-top: 1.25rem; }
.section-form[data-active="false"] .section-form-corps { display: none; }
.section-form[data-active="false"] .section-form-tete h2 { color: var(--texte-2); }
.section-form-resume { font-size: var(--t-s); color: var(--texte-2); }

.champ-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1.25rem; align-items: start; }
.champ-ligne-champ { min-width: 0; }
.champ-ligne[data-active="false"] .champ-ligne-champ input,
.champ-ligne[data-active="false"] .champ-ligne-champ textarea { background: var(--creme); color: var(--texte-2); }

.champ-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.champ-liste-element { display: grid; gap: 0.75rem; padding: 1rem; border: var(--filet); border-radius: var(--rayon-champ); background: var(--creme); }
.champ-ajout, .champ-retirer { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--vert); cursor: pointer; }
.champ-ajout:hover, .champ-retirer:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.champ-fichier { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.champ-fichier input[type="file"] { min-height: 48px; font: inherit; }

.marque-requis { margin-left: 0.4rem; font-size: var(--t-xs); font-weight: 600; color: var(--vert); }
.signal-modele { margin-top: 0.4rem; font-size: var(--t-s); color: var(--texte-2); }
.signal-modele::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.45rem; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--texte-2); vertical-align: 0.05em; }
.encart-presentation { padding: 1rem 1.25rem; border: var(--filet); border-radius: var(--rayon-champ); background: var(--vert-pale); color: var(--texte); }

.case { display: flex; align-items: flex-start; gap: 0.7rem; min-height: 44px; padding: 0.6rem 0; cursor: pointer; }
.case input { width: 20px; height: 20px; margin: 0.15rem 0 0; flex: none; accent-color: var(--vert); }

.lecture-seule input, .lecture-seule textarea, .lecture-seule select { background: var(--creme); color: var(--texte-2); cursor: default; }

/* Champs de l'application hors .formulaire (select, input dans un tableau ou un dialogue) */
.app select, .app .formulaire select {
  min-height: 48px; padding: 0 2.5rem 0 0.9rem; border: 1.5px solid var(--ligne-champ); border-radius: var(--rayon-champ);
  background-color: var(--surface); color: var(--encre); font: inherit;
}

/* ==========================================================================
   11. Interrupteur d'activation
   Balisage : <button type="button" class="interrupteur" role="switch" aria-checked="true" data-cible="…">
     <span class="interrupteur-piste" aria-hidden="true"></span>
     <span class="interrupteur-libelle">Affiché sur la carte</span>
     <span class="interrupteur-etat" aria-hidden="true" data-oui="Affiché" data-non="Masqué">Affiché</span>
   </button>
   Le nom accessible reste constant ; l'état est lu par aria-checked et écrit en mot à l'écran.
   Classes : .interrupteur, .interrupteur-piste, .interrupteur-libelle, .interrupteur-etat, .interrupteur-compact
   ========================================================================== */
.interrupteur {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0 0.25rem; border: 0; background: none;
  font: inherit; font-size: var(--t-s); color: var(--texte); cursor: pointer;
}
.interrupteur-piste {
  position: relative; width: 40px; height: 24px; flex: none;
  border: 2px solid var(--texte-2); border-radius: var(--rayon-pastille); background: var(--surface);
  transition: background-color var(--duree) var(--sortie), border-color var(--duree) var(--sortie);
}
.interrupteur-piste::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--texte-2);
  transition: transform var(--duree) var(--sortie), background-color var(--duree) var(--sortie);
}
.interrupteur[aria-checked="true"] .interrupteur-piste { background: var(--vert); border-color: var(--vert); }
.interrupteur[aria-checked="true"] .interrupteur-piste::after { transform: translateX(16px); background: var(--blanc); }
.interrupteur-etat { min-width: 4.5em; font-weight: 600; color: var(--texte-2); }
.interrupteur[aria-checked="true"] .interrupteur-etat { color: var(--vert); }
.interrupteur:disabled, .interrupteur[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; }
.interrupteur-compact .interrupteur-libelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ==========================================================================
   12. Bandeau de mode (brouillon, publication directe, version précédente)
   Balisage : <div class="bandeau-mode" role="status" data-mode="brouillon|direct|precedente">
   Classes : .bandeau-mode, .bandeau-mode-texte, .bandeau-mode-origine, .bandeau-mode-action
   ========================================================================== */
.bandeau-mode {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding: 0.85rem 2rem;           /* valeurs écrites : le détecteur ne résout pas var() dans un raccourci */
  background: var(--vert-pale); border-bottom: 1px solid var(--vert-ligne);
  color: var(--texte);
}
.bandeau-mode-texte { font-weight: 600; color: var(--encre); }
.bandeau-mode-origine { font-size: var(--t-s); color: var(--texte-2); }
.bandeau-mode[data-mode="direct"] { background: var(--creme-2); border-bottom-color: var(--ligne); }
.bandeau-mode[data-mode="precedente"] { background: var(--surface); }

/* ==========================================================================
   13. Onglets : retirés à la couture du 02/11 (finition 7). Un seul motif de navigation secondaire sur le lot :
   le sommaire de page (.sommaire-page, section 2 ter) qui mène à des sections ancrées, toutes visibles.
   ========================================================================== */

/* ==========================================================================
   14. Dialogue de confirmation (nomme la conséquence)
   Balisage : <dialog class="dialogue" aria-labelledby="…"> ; ouverture par [data-ouvre-dialogue="id"] (lot-1.js,
   showModal, focus rendu à l'origine). Maquette d'un dialogue ouvert sur une page : .dialogue-fond (inert) +
   dialog[open].dialogue-statique.
   Classes : .dialogue, .dialogue-tete, .dialogue-corps, .dialogue-consequence, .dialogue-confirmation,
   .dialogue-actions, .dialogue-fermer, .dialogue-fond, .dialogue-statique
   ========================================================================== */
.dialogue {
  width: min(100% - 2rem, 34rem); max-height: calc(100vh - 4rem); padding: 0.5rem; overflow: auto;
  border: var(--filet); border-radius: var(--rayon); background: var(--surface); color: var(--texte);
  box-shadow: var(--ombre-flottante);
}
.dialogue::backdrop { background: rgba(11, 31, 27, 0.5); }
.dialogue-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem 0; }
.dialogue-tete h2 { font-size: var(--t-xl); font-family: var(--serif); font-weight: 400; }
.dialogue-fermer { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--texte-2); cursor: pointer; }
.dialogue-corps { display: grid; gap: 1rem; padding: 1rem 1.5rem; }
.dialogue-consequence { padding: 0.9rem 1rem; border-radius: var(--rayon-champ); background: var(--creme-2); font-weight: 600; color: var(--encre); }
.dialogue-confirmation { border-top: var(--filet); padding-top: 0.75rem; }
.dialogue-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.75rem 1rem; padding: 1rem 1.5rem 1.5rem; }
.dialogue-fond { position: relative; overflow-x: clip; }
.dialogue-fond > :not(.dialogue) { opacity: 0.35; }
.dialogue-statique { position: absolute; inset: 3rem auto auto 50%; transform: translateX(-50%); margin: 0; z-index: 5; }

/* ==========================================================================
   15. Différence entre deux versions (récapitulatif de « Publier », conflit 409)
   Balisage : <table class="difference"> ; colonnes Champ, Avant (ou Votre saisie), Après (ou Version la plus
   récente) ; avant et après écrits en toutes lettres, jamais par la seule couleur ni par un texte barré seul ;
   champs inchangés dans <details class="difference-inchanges">.
   Classes : .difference, .difference-champ, .difference-avant, .difference-apres, .difference-vide,
   .difference-inchanges
   ========================================================================== */
.difference { width: 100%; border-collapse: collapse; font-size: var(--t-s); background: var(--surface); border: var(--filet); border-radius: var(--rayon); }
.difference th, .difference td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; border-bottom: var(--filet); }
.difference thead th { background: var(--surface-2); color: var(--texte-2); font-weight: 600; }
.difference-champ { font-weight: 600; color: var(--encre); }
.difference-avant { color: var(--texte-2); }
.difference-apres { color: var(--encre); font-weight: 600; background: var(--vert-pale); }
.difference-vide { font-style: italic; color: var(--texte-2); }
.difference-inchanges { margin-top: 0.5rem; font-size: var(--t-s); color: var(--texte-2); }
.difference-inchanges summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--vert); }

/* ==========================================================================
   16. Aperçu sur gabarit de téléphone (éditeur)
   Balisage : <section class="apercu" aria-labelledby="apercu-titre"> <div class="apercu-telephone"
   data-modele="neutre|normalis|lata"> <div class="apercu-ecran"> … éléments [data-champ="…"] … ; les
   interrupteurs posent hidden sur [data-champ] (lot-1.js) ; la saisie se recopie dans [data-miroir-cible].
   Classes : .apercu, .apercu-telephone, .apercu-ecran, .apercu-entete, .apercu-avatar, .apercu-nom,
   .apercu-fonction, .apercu-societe, .apercu-logo, .apercu-raccourcis, .apercu-section, .apercu-section-titre,
   .apercu-ligne, .apercu-contact (bouton « Ajouter au contact »), .apercu-capture (aperçu figé signalé),
   .apercu-lien, .apercu-qr, .fiche-puce, .fiche-puce-liste, .fiche-puce-capacite
   ========================================================================== */
.apercu { position: sticky; top: 1rem; display: grid; gap: 1rem; justify-items: center; align-content: start; }
.apercu-telephone {
  position: relative; width: 300px; height: 620px; padding: 12px;
  border-radius: 42px; background: var(--encre);
}
.apercu-telephone::before { /* îlot de la caméra */
  content: ""; position: absolute; top: 22px; left: 50%; width: 76px; height: 20px; margin-left: -38px;
  border-radius: 12px; background: var(--encre); z-index: 2;
}
.apercu-ecran {
  height: 100%; overflow-y: auto; border-radius: 33px; background: var(--surface);
  padding: 3.25rem 1.25rem 1.5rem; font-size: var(--t-xs); line-height: 1.45; color: var(--texte);
  scrollbar-width: thin;
}
.apercu-entete { display: grid; justify-items: center; gap: 0.25rem; text-align: center; }
.apercu-avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--vert); display: grid; place-items: center; color: var(--blanc); font-family: var(--serif); font-size: 1.6rem; }
.apercu-nom { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: var(--encre); }
.apercu-fonction { font-weight: 600; color: var(--encre); }
.apercu-societe { color: var(--texte-2); }
.apercu-raccourcis { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.apercu-raccourcis > * { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--vert-pale); color: var(--vert); }
.apercu-section { margin-top: 1.25rem; padding-top: 1rem; border-top: var(--filet); }
.apercu-section-titre { font-weight: 600; color: var(--encre); margin-bottom: 0.4rem; }
.apercu-ligne { display: grid; gap: 0.05rem; padding: 0.35rem 0; }
.apercu-contact { position: sticky; bottom: 0; margin-top: 1.5rem; min-height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--vert); color: var(--blanc); font-weight: 600; }
.apercu [data-champ][hidden], .apercu .apercu-masque { display: none; }
.apercu-telephone[data-modele="normalis"] .apercu-ecran,
.apercu-telephone[data-modele="lata"] .apercu-ecran { background: var(--creme-2); }
.apercu-capture { position: absolute; inset: auto 12px 12px; padding: 0.6rem 0.9rem; border-radius: 0 0 33px 33px; background: var(--encre); color: var(--menthe); font-size: var(--t-xs); text-align: center; }
.apercu-lien { font-family: var(--mono); font-size: var(--t-s); color: var(--encre); overflow-wrap: anywhere; text-align: center; }
.apercu-lien small { display: block; font-family: var(--sans); color: var(--texte-2); }
/* S9 : adresse complète d'un profil publié, à inscrire sur la puce, copiable en un geste (même cadre que .fiche-puce). */
.apercu-adresse { width: 100%; max-width: 22rem; display: grid; justify-items: center; gap: 0.5rem; padding: 1rem 1.25rem; border: var(--filet); border-radius: var(--rayon-champ); background: var(--surface); text-align: center; }
.apercu-qr { display: grid; justify-items: center; gap: 0.4rem; font-size: var(--t-s); }
.apercu-qr svg { width: 96px; height: 96px; color: var(--encre); }
.fiche-puce { width: 100%; max-width: 22rem; padding: 1rem 1.25rem; border: var(--filet); border-radius: var(--rayon-champ); background: var(--surface); font-size: var(--t-s); }
.fiche-puce-liste { margin: 0.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.2rem; }
.fiche-puce-capacite { margin-top: 0.6rem; font-weight: 600; color: var(--vert); }

/* Éditeur : formulaire à gauche, aperçu à droite (sous 60 rem : aperçu sous le formulaire ; sous 36 rem :
   lecture seule, décision 16). Classes : .editeur, .avis-telephone, .actions-edition */
.editeur { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.avis-telephone { display: none; }

/* ==========================================================================
   17. File « à traiter » (accueil du revendeur, file de l'exploitant)
   Balisage : <ol class="a-traiter"> <li class="a-traiter-element"> texte, .a-traiter-delai (mot + date relative),
   .a-traiter-action (lien) ; tri par délai restant.
   ========================================================================== */
.a-traiter { list-style: none; margin: 0; padding: 0; border: var(--filet); border-radius: var(--rayon); background: var(--surface); }
.a-traiter-element { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.35rem 1.5rem; padding: 1rem 1.25rem; border-bottom: var(--filet); }
.a-traiter-element:last-child { border-bottom: 0; }
.a-traiter-titre { font-weight: 600; color: var(--encre); }
.a-traiter-delai { grid-column: 1; font-size: var(--t-s); color: var(--texte-2); }
.a-traiter-action { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; font-weight: 600; }

/* ==========================================================================
   18. Compteur de droits, chronologie d'échéance, journal, panneau de détail (composants propres de la
   spécification, étape 11)
   Le compteur de droits à grand chiffre est retiré à la couture du 02/11 (finition 2) : un tableau par commande le remplace.
   Classes : .chronologie (ol), .chronologie-etape
   (aria-current="step"), .chronologie-date ; .journal (ol), .journal-date, .journal-auteur ;
   .liste-detail (grille liste + panneau), .detail, .detail-tete, .detail-section, .detail-actions
   ========================================================================== */

.chronologie { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.chronologie-etape { position: relative; display: grid; gap: 0.1rem; padding: 0 0 1rem 1.75rem; color: var(--texte-2); }
.chronologie-etape::before { content: ""; position: absolute; left: 4px; top: 0.4em; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ligne-forte); background: var(--surface); }
.chronologie-etape::after { content: ""; position: absolute; left: 8px; top: calc(0.4em + 12px); bottom: 0; width: 2px; background: var(--ligne); }
.chronologie-etape:last-child::after { display: none; }
.chronologie-etape[aria-current="step"] { color: var(--encre); font-weight: 600; }
.chronologie-etape[aria-current="step"]::before { background: var(--vert); box-shadow: none; }
.chronologie-date { font-size: var(--t-s); font-weight: 400; }

.journal { list-style: none; margin: 0; padding: 0; font-size: var(--t-s); }
.journal li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 0.55rem 0; border-bottom: var(--filet); }
.journal-date { font-size: var(--t-xs); font-variant-numeric: tabular-nums; color: var(--texte-2); } /* date relative en mots : pas de chasse fixe (fusion du 02/11) */
.journal-auteur { color: var(--texte-2); }

.liste-detail { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.25rem; align-items: start; }
.detail { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; display: grid; gap: 1.25rem; padding: 1.25rem 1.5rem; border: var(--filet); border-radius: var(--rayon); background: var(--surface); }
.detail-tete { display: grid; gap: 0.4rem; }
.detail-section { display: grid; gap: 0.6rem; padding-top: 1rem; border-top: var(--filet); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

/* ==========================================================================
   19. État vide et chargement
   Classes : .vide, .vide-titre, .vide-texte, .vide-action ; .squelette, .squelette-ligne (aria-hidden, mise en
   page gardée ; l'élément parent porte aria-busy="true")
   ========================================================================== */
.vide { display: grid; gap: 0.6rem; justify-items: start; padding: 2rem; border: 1px dashed var(--ligne-forte); border-radius: var(--rayon); background: var(--creme); }
.vide-titre { font-family: var(--serif); font-size: var(--t-xl); font-weight: 400; color: var(--encre); }
.vide-texte { max-width: 60ch; color: var(--texte); }
.vide-action { margin-top: 0.5rem; }
.squelette-ligne { height: 0.9rem; margin: 0.6rem 0; border-radius: var(--rayon-champ); background: var(--creme-2); }
.squelette-ligne:nth-child(2n) { width: 70%; }

/* ==========================================================================
   20. Message d'erreur et avis de page
   Balisage : <div class="alerte alerte-erreur" role="alert"> <svg class="icone">…</svg> <div> <p class="alerte-titre">
   … </p> <p>geste suivant</p> </div> </div> ; .alerte-info et .alerte-succes en role="status".
   Bordure de 1 px sur tout le pourtour (jamais un filet gauche épais).
   ========================================================================== */
.alerte { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; padding: 1rem 1.25rem; border: 1px solid var(--ligne-forte); border-radius: var(--rayon-champ); background: var(--surface); color: var(--texte); }
.alerte .icone { margin-top: 0.1rem; }
.alerte-titre { font-weight: 600; color: var(--encre); }
.alerte-erreur { border-color: var(--erreur); }
.alerte-erreur .icone, .alerte-erreur .alerte-titre { color: var(--erreur); }
.alerte-info { background: var(--creme-2); border-color: var(--ligne); }
.alerte-info .icone { color: var(--texte-2); }
.alerte-succes { background: var(--vert-pale); border-color: var(--vert-ligne); }
.alerte-succes .icone { color: var(--vert); }

/* ==========================================================================
   21. Pagination
   Balisage : <nav class="pagination" aria-label="Pagination"> <p class="pagination-resume">1 à 8 sur 8</p>
   <ul> <li><a class="pagination-lien" aria-current="page">1</a></li> … </ul> </nav>
   ========================================================================== */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; font-size: var(--t-s); }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.pagination-resume { color: var(--texte-2); }
.pagination-lien { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 0.6rem; border-radius: var(--rayon-champ); color: var(--texte); text-decoration: none; font-variant-numeric: tabular-nums; }
.pagination-lien:hover { background: var(--creme-2); }
.pagination-lien[aria-current="page"] { background: var(--vert-pale); color: var(--vert); font-weight: 600; }
.pagination-lien[aria-disabled="true"] { color: var(--texte-2); cursor: not-allowed; }

/* ==========================================================================
   22. Lien destructeur (ouvre un dialogue ; jamais un bouton plein dans la page, décision 8)
   ========================================================================== */
.lien-destructeur { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: var(--texte); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--ligne-forte); cursor: pointer; }
.lien-destructeur:hover { color: var(--encre); text-decoration-color: currentColor; }

/* ==========================================================================
   23. Codes de récupération
   Classes : .codes-recuperation, .codes-liste (ol en grille, Fira Mono)
   ========================================================================== */
.codes-recuperation { display: grid; gap: 1.25rem; }
.codes-liste { list-style: none; margin: 0; padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; border: var(--filet); border-radius: var(--rayon-champ); background: var(--creme); font-family: var(--mono); font-size: var(--t-m); font-variant-numeric: tabular-nums slashed-zero; color: var(--encre); }

/* ==========================================================================
   24. Planche d'états (maquette : autres états d'un écran, dans le même fichier)
   Classes : .planche-etats, .planche-etat, .planche-etat-titre
   ========================================================================== */
.planche-etats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin: 3rem var(--app-marge) 4rem; padding-top: 2rem; border-top: 2px dashed var(--ligne-forte); }
.auth .planche-etats { margin-inline: var(--gouttiere); }
.planche-etats > h2 { font-family: var(--etroit); font-size: var(--t-l); color: var(--texte-2); }
.planche-etat { min-width: 0; display: grid; gap: 1rem; padding: 1.5rem; border: 1px dashed var(--ligne-forte); border-radius: var(--rayon); }
.planche-etat-titre { font-family: var(--etroit); font-weight: 600; color: var(--texte-2); }

/* ==========================================================================
   25. Points de rupture : 72, 60, 48, 36 rem
   ========================================================================== */
@media (max-width: 72rem) {
  :root { --app-lateral: 14rem; --app-marge: 1.5rem; }
  .editeur { grid-template-columns: minmax(0, 1fr) 320px; }
  .apercu-telephone { width: 280px; height: 580px; }
  .liste-detail { grid-template-columns: minmax(0, 1fr) 20rem; }
  .bandeau-mode { padding-inline: 1.5rem; }
}

@media (max-width: 60rem) {
  /* La barre latérale devient une barre haute ; menu derrière un bouton quand le script est là */
  /* En-tête mobile compact (couture, finition 1) : une rangée de 64 px (marque, mention « Administration »
     en ligne côté exploitant, bouton Menu) ; navigation et pied seulement dans le menu ouvert ; aucune bande
     vide (les rangées de la grille ne s'étirent plus quand la page est plus courte que la fenêtre). */
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: start; }
  .app-lateral { position: static; height: auto; min-height: 64px; flex-direction: row; flex-wrap: wrap; align-items: center; align-content: center; gap: 0 0.75rem; padding: 0.5rem var(--gouttiere); border-right: 0; border-bottom: var(--filet); }
  .lateral-admin { border-bottom-color: var(--vert-nuit); }
  .lateral-marque { padding-inline: 0; }
  .lateral-role { order: 0; margin: 0; padding: 0; }
  .app-menu { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 0.75rem; border: 1.5px solid var(--ligne-champ); border-radius: var(--rayon-champ); background: var(--surface); font: inherit; font-weight: 600; color: var(--encre); cursor: pointer; }
  .lateral-admin .app-menu { background: transparent; border-color: rgba(185, 220, 207, 0.55); color: var(--blanc); }
  .lateral-nav, .lateral-pied { flex: 1 0 100%; }
  .app-lateral.ouvert .lateral-nav { padding-top: 0.5rem; }
  .js .app-lateral:not(.ouvert) .lateral-nav, .js .app-lateral:not(.ouvert) .lateral-pied { display: none; }
  .lateral-pied { margin-top: 0.5rem; padding-bottom: 0.5rem; }

  .editeur { grid-template-columns: minmax(0, 1fr); }
  .apercu { position: static; }
  .liste-detail { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; max-height: none; overflow: visible; }
}

@media (max-width: 48rem) {
  :root { --app-marge: var(--gouttiere); --t-titre: 1.75rem; }
  .app-entete { align-items: flex-start; }
  .champ-ligne { grid-template-columns: minmax(0, 1fr); }
  /* Tableau empilé : chaque cellule porte son en-tête dans data-libelle */
  .tableau-empile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tableau-empile tr { display: grid; padding: 0.75rem 1rem; border-bottom: var(--filet); }
  .tableau-empile td { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.75rem; padding: 0.3rem 0; border: 0; }
  .tableau-empile td::before { content: attr(data-libelle); font-weight: 600; color: var(--texte-2); }
  .tableau-empile .cellule-actions { text-align: left; }
  .journal li { grid-template-columns: minmax(0, 1fr); }
  .difference th, .difference td { padding: 0.55rem 0.6rem; overflow-wrap: break-word; hyphens: auto; }
  .tableau-empile .cellule-actions, .tableau-empile td { white-space: normal; overflow-wrap: break-word; }
  .bandeau-mode { padding-inline: 1rem; }
}

@media (max-width: 36rem) {
  /* Administration : marque, mention et bouton tiennent sur une rangée ; le mot « Menu » reste lu (nom accessible) */
  .lateral-admin .app-menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lateral-admin .app-menu { padding: 0; justify-content: center; }
  .app-actions, .detail-actions, .dialogue-actions { flex-direction: column; align-items: stretch; }
  .app-actions .bouton, .detail-actions .bouton, .dialogue-actions .bouton { width: 100%; min-height: 50px; white-space: normal; text-align: center; }
  .auth-panneau { padding: 1.5rem 1.25rem; }
  .codes-liste { grid-template-columns: minmax(0, 1fr); }
  .etat { white-space: normal; }
  .dialogue-statique { position: static; transform: none; width: 100%; }
  /* Éditeur en lecture seule sur téléphone (décision 16, hypothèse appliquée) */
  .editeur .form-long, .actions-edition { display: none; }
  .avis-telephone { display: block; }
  .apercu-telephone { width: min(100%, 300px); }
}

/* ==========================================================================
   26. Mouvement réduit et impression
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .interrupteur-piste, .interrupteur-piste::after, .lateral-lien { transition: none; }
}
@media print {
  .app { display: block; }
  .app-lateral, .app-menu, .planche-etats, .apercu-qr { display: none; }
  .dialogue { box-shadow: none; }
}

/* ==========================================================================
   27. Sections des constructeurs (fusion). Écrire de préférence dans lot-1-<groupe>.css.
   ========================================================================== */
/* === groupe A === (connexion, mot de passe oublié, codes de récupération, accueil, profils) */

/* === groupe B === (éditeur, publier, réattribuer) */

/* === groupe C === (droits, commandes, exports) */

/* === groupe D === (administration) */
