/* vCards Solutions, lot 1, groupe A : connexion, mot de passe oublié, codes de récupération, accueil, liste des
   profils, compte. Complète lot-1.css (squelette, non modifié) ; classes préfixées « a- » pour ce que le squelette
   ne porte pas. Aucune couleur en dur : jetons de lot-0.css. Fusion par le cadreur. */

/* ---------- Utilitaires ---------- */

.auth-panneau .formulaire, .a-formulaire-large { max-width: none; }
.auth-panneau .formulaire .actions { margin-top: 1.5rem; }
.auth-panneau .formulaire .actions .bouton { width: 100%; }

/* ---------- Gabarit d’authentification ---------- */
.a-colonne-auth { display: grid; gap: 0; width: min(100%, 28rem); }
.auth-panneau { display: grid; gap: 1.25rem; align-content: start; }
.auth-panneau > .app-titre { margin-bottom: 0; }
.auth-panneau .rang + .rang, .auth-panneau .formulaire .rang { margin-top: 0; }
.auth-panneau .formulaire { display: grid; gap: 1.25rem; }
.auth-panneau .formulaire .actions { margin-top: 0.25rem; }
.auth-panneau p { max-width: 62ch; }
.a-panneau-etat { width: min(100%, 28rem); }
.a-messages:empty { display: none; }
.a-auth-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.a-auth-pied ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.a-auth-pied a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texte-2); }
.a-auth-pied a:hover { color: var(--vert); }
.a-rangee-boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.a-rangee-boutons .bouton { gap: 0.5rem; }
.a-rangee-boutons .icone { width: 18px; height: 18px; }
.codes-recuperation .bouton-principal { width: 100%; }
.auth .planche-etat { justify-items: stretch; }
.a-planche-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; align-items: start; }
.a-planche-grille > .auth-panneau, .a-planche-grille > .a-panneau-etat { width: 100%; }

/* Schéma de code QR et clé de secours (second facteur) */
.a-qr { display: grid; gap: 0.75rem; justify-items: center; text-align: center; padding: 1rem; border: var(--filet); border-radius: var(--rayon-champ); background: var(--creme); }
.a-qr svg { width: 144px; height: 144px; color: var(--encre); background: var(--blanc); padding: 8px; border-radius: 6px; }
.a-cle { font-family: var(--mono); font-size: var(--t-m); letter-spacing: 0.04em; color: var(--encre); font-variant-numeric: tabular-nums slashed-zero; overflow-wrap: anywhere; }

/* ---------- Barre latérale, pied d’application ---------- */

/* ---------- Accueil ---------- */
.a-zone-lien { font-size: var(--t-s); }
.a-lien-discret { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-size: var(--t-s); }
.a-lien-discret .icone { width: 18px; height: 18px; }
.a-traiter-action .icone { width: 18px; height: 18px; }
.a-vide-accueil { max-width: 46rem; }
.a-compteur-note { margin-top: 0.15rem; font-size: var(--t-s); color: var(--texte-2); }
.a-squelette-bloc { padding: 1.25rem; border: var(--filet); border-radius: var(--rayon); background: var(--surface); }

/* ---------- Liste des profils ---------- */
.a-nom-cellule { display: grid; gap: 0.1rem; }
.a-nom-cellule .cellule-cible { font-family: var(--mono); font-size: var(--t-xs); color: var(--texte-2); max-width: 16rem; }
.a-etat-cellule { display: grid; gap: 0.25rem; justify-items: start; }
.a-liste-ouvrir { font-weight: 600; }
.a-detail-liste { display: grid; gap: 0.5rem; margin: 0; }
.a-detail-liste > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.75rem; font-size: var(--t-s); }
.a-detail-liste dt { color: var(--texte-2); }
.a-detail-liste dd { margin: 0; color: var(--encre); }
.a-codes-profil { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.a-codes-profil th, .a-codes-profil td { padding: 0.4rem 0.5rem 0.4rem 0; text-align: left; border-bottom: var(--filet); }
.a-codes-profil thead th { color: var(--texte-2); font-weight: 600; }
.a-exports { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: center; font-size: var(--t-s); }
.a-exports a { display: inline-flex; align-items: center; min-height: 44px; }
.a-liste-vide-action { margin-top: 0.5rem; }
.dialogue .case { padding: 0.4rem 0; }
.dialogue .code { max-width: 14rem; }
.dialogue .aide { margin-top: 0; }
.a-cible-ligne { display: grid; gap: 0.2rem; }
.a-cible-ligne .cellule-code { overflow-wrap: anywhere; }

/* ---------- Compte ---------- */
.a-compte { display: grid; gap: 1.5rem; max-width: 48rem; }
.a-compte .section-form-corps { gap: 1.25rem; }
.a-compte .section-form-tete { padding-bottom: 0.75rem; }
.a-compte .section-form-tete + .section-form-corps { border-top: var(--filet); }
.a-compte .formulaire, .a-compte .formulaire.form-long { max-width: none; }
.a-compte .actions { margin-top: 0.25rem; }
.a-compte fieldset { margin: 0; }
.a-statut { display: grid; gap: 0; margin: 0; border-top: var(--filet); }
.a-statut > div { display: grid; grid-template-columns: minmax(9rem, 1fr) 2fr; gap: 0.5rem 1rem; padding: 0.7rem 0; border-bottom: var(--filet); font-size: var(--t-s); }
.a-statut dt { font-weight: 600; color: var(--texte-2); }
.a-statut dd { margin: 0; color: var(--encre); }
.a-choix-long { grid-template-columns: minmax(0, 1fr); }
.a-choix-long label { align-items: flex-start; min-height: 48px; padding: 0.8rem 0.9rem; }
.a-choix-long input { margin-top: 0.2rem; }
.a-choix-long strong { display: block; color: var(--encre); }
.a-choix-long small { display: block; margin-top: 0.15rem; font-size: var(--t-s); line-height: 1.45; color: var(--texte-2); }

@media (max-width: 48rem) {
  .a-detail-liste > div, .a-statut > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
}
@media (max-width: 36rem) {
  .auth-principal { padding-block: 2rem; }
  .a-rangee-boutons .bouton { flex: 1 1 100%; }
}

/* Corrections de rendu constatées sur capture (1440 px) */
.auth-panneau h3.app-titre { font-family: var(--serif); font-weight: 400; font-size: 1.375rem; line-height: 1.2; }
.liste-detail .tableau th, .liste-detail .tableau td { padding: 0.65rem 0.6rem; }
.liste-detail .tableau tbody th { min-width: 8.5rem; }
.a-detail-liste dd { overflow-wrap: anywhere; }
.a-detail-liste > div { grid-template-columns: 7rem minmax(0, 1fr); }
.a-compte .formulaire .rang, .a-compte .formulaire .rang + .rang { margin-top: 0; }

/* Largeurs : les pourcentages se résolvent sur une piste bornée, jamais sur le contenu (aucun débordement à 390 px) */
.auth-principal { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.a-planche-grille { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

/* Couture du 02/11 (C2) : demande de droits transmise au revendeur, avec réponse et pièce jointe */
.a-demande { display: grid; gap: 1.25rem; padding: 1.5rem; max-width: 56rem; scroll-margin-top: 1rem; }
.a-demande-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.a-demande-texte { max-width: 65ch; margin: 0; color: var(--texte); }
.a-demande-form { display: grid; gap: 1.25rem; max-width: 44rem; }
.a-demande-form .rang, .a-demande-form .actions { margin-top: 0; }
.a-demande-piece { display: grid; gap: 0.6rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.a-demande-piece legend { padding: 0; margin-bottom: 0.4rem; }
.a-demande-piece p { margin: 0; max-width: 65ch; font-size: var(--t-s); color: var(--texte-2); }
.planche-etat:target { outline: 3px solid var(--vert-vif); outline-offset: 4px; }
@media (max-width: 36rem) { .a-demande { padding: 1.25rem 1rem; } }

/* Couture du 02/11 : organisation sous le nom (finition 4), flèche « précédent », lien refusé (C13) */
.a-nom-cellule .a-org { font-size: var(--t-xs); font-weight: 400; color: var(--texte-2); }
.a-etat-cellule .mention-edition { white-space: nowrap; }
.a-fleche-retour { transform: rotate(180deg); }
.a-lien-refuse { color: var(--texte-2); cursor: not-allowed; text-decoration-style: dotted; }
