/* Hub TELIP, les outils internes : feuille de style commune (portail, connexion, comptes, modules).
   Couleurs et typographie d'après le design system TELIP (maquettes/tokens.json). */

:root {
  --rouge: #b41918;
  --rouge-survol: #8c1413;
  --rouge-presse: #6d0f0e;
  --rouge-pale: #fdf3f3;
  --rouge-sur-sombre: #e79392;
  --anthracite: #363c42;
  --titre: #23272b;
  --texte: #454a50;
  --secondaire: #6e747a;
  --estompe: #8f959b;
  --filet: #d5d8db;
  --filet-fort: #b7bcc1;
  --filet-leger: #e8eaec;
  --fond-2: #f4f5f6;
  --fond-ligne: #fafafa;
  --vert-fond: #e4ede9;
  --vert-texte: #3d6553;
  --ambre: #f9b104;
  --ambre-fond: #fef2d9;
  --ambre-texte: #8a6100;
  --bleu: #164194;
  --bleu-fond: #e3e9f4;
  --bleu-texte: #0f2f6c;
  --police: "Lato", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ombre: 0 1px 3px rgba(20, 23, 26, .08), 0 1px 1px rgba(20, 23, 26, .04);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--police); color: var(--texte); background: #fff; font-size: 15px; line-height: 1.5; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { text-wrap: balance; color: var(--titre); }
p, li, td, th, label, .pretty { text-wrap: pretty; }
a { color: var(--rouge); }
a:hover { color: var(--rouge-presse); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; }

.lbl { font: 700 12px/1.45 var(--police); letter-spacing: .14em; text-transform: uppercase; color: var(--secondaire); }
.mono, .ref, code { font-family: var(--mono); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 2px;
  font: 700 12px var(--police); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-p { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.btn-p:hover { background: var(--rouge-survol); border-color: var(--rouge-survol); color: #fff; }
.btn-p:active { background: var(--rouge-presse); }
.btn-s { background: #fff; color: var(--rouge); border-color: var(--rouge); }
.btn-s:hover { background: var(--rouge-pale); color: var(--rouge); }
.btn:disabled { background: var(--filet-leger); border-color: var(--filet-leger); color: var(--estompe); cursor: not-allowed; }
.btn-petit { min-height: 32px; padding: 0 10px; font-size: 11px; }
.lien { background: transparent; border: 0; padding: 0; font: 400 14px var(--police); color: var(--rouge); cursor: pointer; text-decoration: underline; min-height: 32px; }
.lien:hover { color: var(--rouge-presse); }

/* Champs */
.champ { height: 44px; width: 100%; border: 1px solid var(--filet); border-radius: 2px; padding: 0 14px; font: 400 15px var(--police); color: var(--titre); background: #fff; }
.champ:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(180, 25, 24, .28); }
.groupe-champ { display: flex; flex-direction: column; gap: 6px; }

/* Encarts */
.encart { border-left: 4px solid var(--ambre); background: var(--ambre-fond); padding: 12px 16px; font-size: 14px; color: var(--texte); }
.encart-erreur { border-left-color: var(--rouge); background: var(--rouge-pale); color: var(--rouge-survol); }
.encart-info { border-left-color: var(--bleu); background: var(--bleu-fond); color: var(--bleu-texte); }

/* ------------------------------------------------------------------ */
/* Écran d'identification                                              */
/* ------------------------------------------------------------------ */
.ident { min-height: 100vh; min-height: 100dvh; display: flex; flex-wrap: wrap; }
.ident-cote { flex: 1 1 380px; background: var(--anthracite); color: #fff; padding: 48px 40px; display: flex; flex-direction: column; gap: 24px; }
.ident-cote h1 { margin: 0; color: #fff; font: 900 34px/1.15 var(--police); letter-spacing: -0.02em; }
.ident-cote p { margin: 0; font-weight: 300; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, .72); }
.ident-cote .ident-note { margin-top: auto; font-weight: 400; font-size: 13px; line-height: 1.6; }
.ident-main { flex: 999 1 520px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--fond-2); }
.carte-ident { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--filet); border-top: 3px solid var(--rouge); border-radius: 4px;
  box-shadow: var(--ombre); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.carte-ident h2 { margin: 6px 0; font: 900 26px/1.2 var(--police); letter-spacing: -0.02em; }
.carte-ident p { margin: 0; font-size: 15px; line-height: 1.6; }
.carte-ident .btn { min-height: 48px; width: 100%; }

/* Logo du Hub TELIP (et des modules). */
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo-mot { font: 900 22px var(--police); letter-spacing: -0.02em; color: var(--titre); }
.logo-mot span { color: var(--rouge); }
.ident-cote .logo-mot { font-size: 30px; color: #fff; }
.ident-cote .logo-mot span { color: var(--rouge-sur-sombre); }
.ident-cote .lbl { color: rgba(255, 255, 255, .72); }

/* ------------------------------------------------------------------ */
/* En-tête commun                                                      */
/* ------------------------------------------------------------------ */
.entete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding: 0 24px; min-height: 64px; border-bottom: 1px solid var(--filet); background: #fff; }
.entete nav { display: flex; gap: 24px; align-self: stretch; }
.entete nav a { display: flex; align-items: center; font-size: 14px; color: var(--secondaire); text-decoration: none; border-bottom: 3px solid transparent; padding-top: 3px; }
.entete nav a:hover { color: var(--titre); }
.entete nav a[aria-current="page"] { font-weight: 700; color: var(--titre); border-bottom-color: var(--rouge); }
.utilisateur { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--titre); padding: 10px 0; }
.avatar { width: 32px; height: 32px; border-radius: 2px; background: var(--anthracite); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.bouton-menu { display: none; }

/* ------------------------------------------------------------------ */
/* Écran assistant                                                     */
/* ------------------------------------------------------------------ */
.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.corps { flex: 1 1 auto; display: flex; min-height: 0; }
.cote { flex: 0 0 260px; background: var(--fond-2); border-right: 1px solid var(--filet-leger); padding: 20px 16px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.cote .btn { width: 100%; }
.titre-cote { margin: 0; padding: 0 10px 4px; }
.mes-questions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mes-questions li + li { border-top: 1px solid var(--filet-leger); }
.mes-questions button { display: block; width: 100%; text-align: left; background: transparent; border: 0;
  border-left: 2px solid transparent; border-radius: 0 2px 2px 0; padding: 9px 10px; cursor: pointer; }
/* La coupure à deux lignes porte sur le titre seul : sur le bouton, son remplissage laisse
   dépasser un bout de troisième ligne. */
.mes-questions .titre-conv { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 400 14px/1.35 var(--police); color: var(--texte); }
.mes-questions .meta-conv { display: block; margin-top: 3px; font: 400 12px/1.3 var(--police); color: var(--estompe); }
.mes-questions button:hover { background: var(--filet-leger); }
.mes-questions button:hover .titre-conv { color: var(--titre); }
.mes-questions .actif button { background: #fff; border-left-color: var(--rouge); }
.mes-questions .actif .titre-conv { color: var(--titre); font-weight: 700; }
.mes-questions .vide { padding: 0 10px; font-size: 13px; color: var(--secondaire); }
.note-cote { margin-top: auto; font-size: 12px; line-height: 1.5; color: var(--secondaire); border-top: 1px solid var(--filet); padding-top: 14px; }

.principal { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fil { flex: 1 1 auto; overflow-y: auto; }
.fil-interieur { width: 100%; max-width: 868px; margin: 0 auto; padding: 32px 24px; display: flex; flex-direction: column; gap: 28px; }

.accueil { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; }
.surtitre { display: flex; align-items: center; gap: 10px; }
.surtitre::before { content: ""; width: 28px; height: 3px; background: var(--rouge); }
.surtitre .lbl { color: var(--rouge); }
.accueil h1 { margin: 0; font: 900 34px/1.2 var(--police); letter-spacing: -0.02em; }
.accueil .intro { margin: 0; font-weight: 300; font-size: 18px; line-height: 1.65; max-width: 640px; }
.suggestions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.chip { display: flex; flex-direction: column; gap: 6px; font: 400 15px/1.4 var(--police); text-align: left; background: #fff; border: 1px solid var(--filet); border-radius: 4px;
  padding: 14px 16px; color: var(--titre); cursor: pointer; min-height: 44px; }
.chip:hover { border-color: var(--rouge); box-shadow: 0 4px 12px rgba(20, 23, 26, .10); }
.chip small { font-size: 12px; color: var(--secondaire); }

.echange { display: flex; flex-direction: column; gap: 14px; }
.bulle-question { align-self: flex-end; max-width: 80%; background: var(--fond-2); border: 1px solid var(--filet-leger); border-radius: 4px; padding: 12px 16px; color: var(--titre); white-space: pre-wrap; overflow-wrap: anywhere; }
.attente { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--secondaire); }
.point { width: 6px; height: 6px; border-radius: 50%; background: var(--rouge); display: inline-block; animation: clignote 1s infinite; }
.point:nth-child(2) { animation-delay: .2s; }
.point:nth-child(3) { animation-delay: .4s; }
@keyframes clignote { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .point { animation: none; } }

/* Réponse rendue depuis le Markdown */
.reponse { line-height: 1.65; overflow-wrap: anywhere; }
.reponse > :first-child { margin-top: 0; }
.reponse > :last-child { margin-bottom: 0; }
.reponse p { margin: 0 0 12px; }
.reponse h3, .reponse h4, .reponse h5 { margin: 20px 0 8px; font-size: 16px; font-weight: 700; }
.reponse h3 { font-size: 18px; }
.reponse strong { color: var(--titre); font-weight: 700; }
.reponse code { font-size: .9em; background: var(--fond-2); border: 1px solid var(--filet-leger); border-radius: 2px; padding: 0 4px; }
.reponse .ref { font-size: .92em; color: var(--titre); white-space: nowrap; }
.reponse ul { margin: 0 0 12px; padding-left: 22px; }
.reponse ul li { margin: 4px 0; }
.reponse ul li::marker { color: var(--rouge); }
.reponse ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.reponse ol > li { display: flex; gap: 14px; align-items: flex-start; }
.reponse ol > li > .num { flex: none; width: 28px; height: 28px; border: 1px solid var(--filet); border-radius: 2px; display: flex; align-items: center; justify-content: center;
  font: 400 13px var(--mono); color: var(--rouge); margin-top: -1px; }
.reponse ol > li > .contenu-li { min-width: 0; flex: 1; }
.reponse li p { margin: 4px 0; }
.reponse li ul, .reponse li ol { margin: 6px 0 0; }
.reponse hr { border: 0; border-top: 1px solid var(--filet-leger); margin: 16px 0; }
.reponse blockquote { margin: 0 0 12px; border-left: 4px solid var(--ambre); background: var(--ambre-fond); padding: 10px 14px; }
.reponse blockquote p { margin: 0; }
.tableau { overflow-x: auto; border: 1px solid var(--filet); border-radius: 4px; margin: 0 0 12px; }
.tableau table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tableau th { text-align: left; background: var(--fond-2); font: 700 12px var(--police); letter-spacing: .1em; text-transform: uppercase; color: var(--secondaire); }
.tableau th, .tableau td { padding: 10px 14px; border-bottom: 1px solid var(--filet-leger); vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }
.avertissement-reponse { margin-top: 4px; }

.pied-reponse { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border-top: 1px solid var(--filet-leger); padding-top: 12px; font-size: 13px; color: var(--secondaire); }
.pied-reponse .source strong { color: var(--texte); font-weight: 400; }
.avis { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.fb { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--filet); border-radius: 2px; background: #fff; font: 400 13px var(--police); color: var(--texte); cursor: pointer; }
.fb:hover { border-color: var(--filet-fort); color: var(--titre); }
.merci { color: var(--vert-texte); }

.saisie { border-top: 1px solid var(--filet-leger); padding: 14px 24px 20px; background: #fff; }
.saisie-interieur { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.saisie-ligne { display: flex; gap: 8px; flex-wrap: wrap; }
.saisie .champ { flex: 1 1 300px; min-width: 0; }
.saisie .btn { min-height: 44px; }
.saisie-note { font-size: 13px; color: var(--secondaire); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.compteur { font-family: var(--mono); font-size: 12px; }
.compteur.trop { color: var(--rouge-survol); }

/* Écran étroit : la colonne de gauche se replie */
@media (max-width: 760px) {
  .entete { padding: 0 16px; gap: 4px 16px; }
  .entete .logo .lbl { display: none; }
  .bouton-menu { display: inline-flex; }
  .utilisateur .prenom-entete { display: none; }
  .corps { position: relative; }
  .cote { position: absolute; inset: 0 auto 0 0; width: min(300px, 85vw); z-index: 5; box-shadow: 4px 0 16px rgba(20, 23, 26, .15); transform: translateX(-105%); transition: transform .2s; visibility: hidden; }
  .cote.ouvert { transform: none; visibility: visible; }
  .fil-interieur { padding: 20px 16px; }
  .accueil { padding-top: 8px; }
  .accueil h1 { font-size: 26px; }
  .accueil .intro { font-size: 16px; }
  .bulle-question { max-width: 92%; }
  .saisie { padding: 12px 16px 16px; }
  .ident-cote { padding: 32px 24px; }
  .ident-cote h1 { font-size: 26px; }
  .ident-main { padding: 24px 16px; }
  .carte-ident { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .cote { transition: none; } }

/* ------------------------------------------------------------------ */
/* Administration                                                      */
/* ------------------------------------------------------------------ */
.admin-bandeau { background: var(--fond-2); border-bottom: 1px solid var(--filet-leger); }
.admin-bandeau-interieur, .admin-contenu { max-width: 1280px; margin: 0 auto; padding: 32px 24px 0; }
.admin-bandeau h1 { margin: 10px 0 4px; font: 900 32px/1.2 var(--police); letter-spacing: -0.02em; }
.admin-etat { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 20px; font-size: 14px; color: var(--secondaire); }
.admin-etat .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.onglets { display: flex; gap: 28px; flex-wrap: wrap; }
.onglet { background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 12px 2px 9px; font: 400 15px var(--police); color: var(--secondaire); cursor: pointer; min-height: 44px; }
.onglet:hover { color: var(--titre); }
.onglet[aria-selected="true"] { color: var(--titre); font-weight: 700; border-bottom-color: var(--rouge); }
.admin-contenu { padding: 28px 24px 48px; display: flex; flex-direction: column; gap: 20px; }
.panneau { display: flex; flex-direction: column; gap: 16px; }
.panneau-titre { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.panneau-titre h2 { margin: 0; font: 700 20px var(--police); }
.panneau-titre .sous { font-size: 14px; color: var(--secondaire); }
.panneau-titre .btn { margin-left: auto; align-self: center; }
.carte { border: 1px solid var(--filet); border-radius: 4px; overflow-x: auto; box-shadow: var(--ombre); background: #fff; }
.grille { border-collapse: collapse; width: 100%; font-size: 14px; }
.grille th { text-align: left; background: var(--fond-2); border-bottom: 1px solid var(--filet); padding: 10px 14px; white-space: nowrap; }
.grille th, .grille th button { font: 700 12px var(--police); letter-spacing: .14em; text-transform: uppercase; color: var(--secondaire); }
.grille th button { background: transparent; border: 0; padding: 0; cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; gap: 4px; }
.grille th button:hover, .grille th button[aria-sort] { color: var(--titre); }
.grille th .fleche { font-family: var(--mono); color: var(--rouge); }
.grille td { padding: 12px 14px; border-bottom: 1px solid var(--filet-leger); vertical-align: top; }
.grille tbody tr:hover { background: var(--fond-ligne); }
.grille tbody tr:last-child td { border-bottom: 0; }
.grille .num { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.grille th.num { text-align: right; }
.grille .question { color: var(--titre); min-width: 240px; }
.grille .petit { font-size: 13px; color: var(--secondaire); }
/* Journal : la question déplie la réponse enregistrée, sous la ligne. */
.grille .depliant { width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--titre); }
.grille .depliant:hover { color: var(--rouge); text-decoration: underline; }
.grille .depliant[aria-expanded="true"] { color: var(--rouge); font-weight: 700; }
.grille .detail-journal td { background: var(--fond-2); padding: 14px; }
.reponse-journal { white-space: pre-wrap; font-size: 13px; line-height: 1.6; color: var(--texte);
  max-height: 420px; overflow-y: auto; }
.source-journal { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--filet-leger);
  font-size: 12px; color: var(--secondaire); }
.grille .vide { text-align: center; color: var(--secondaire); padding: 28px 14px; }
.grille .actions-ligne { display: flex; gap: 6px; flex-wrap: wrap; }
.etiquette { display: inline-flex; padding: 2px 8px; border-radius: 2px; font-size: 13px; white-space: nowrap; }
.etiquette-ok { background: var(--vert-fond); color: var(--vert-texte); }
.etiquette-attention { background: var(--ambre-fond); color: var(--ambre-texte); }
.etiquette-neutre { background: var(--filet-leger); color: var(--texte); }
.etiquette-erreur { background: var(--rouge-pale); color: var(--rouge-survol); }
.utile-oui { color: var(--vert-texte); }
.utile-non { color: var(--rouge-survol); }
.filtres { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filtres .groupe-champ { flex: 0 1 220px; }
.filtres .champ { height: 40px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.kpi { background: #fff; border: 1px solid var(--filet); border-top: 3px solid var(--filet); border-radius: 4px; padding: 20px; box-shadow: var(--ombre); }
.kpi.accent { border-top-color: var(--rouge); }
.kpi .valeur { font: 500 30px/1.3 var(--mono); color: var(--titre); margin-top: 4px; }
.kpi .sous { font-size: 13px; color: var(--secondaire); }
.jauge { height: 12px; background: var(--filet-leger); border-radius: 2px; overflow: hidden; max-width: 640px; }
.jauge > div { height: 12px; background: var(--rouge); }
.barre-part { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.barre-part .fond { flex: 1 1 auto; height: 8px; background: var(--filet-leger); border-radius: 2px; }
.barre-part .fond > span { display: block; height: 8px; background: var(--anthracite); border-radius: 2px; }
.barre-part .valeur { font-family: var(--mono); font-size: 13px; width: 56px; text-align: right; }
.connexion-admin { min-height: calc(100vh - 65px); display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--fond-2); }
.message-statut { font-size: 14px; color: var(--secondaire); }
@media (max-width: 760px) {
  .admin-bandeau-interieur { padding: 24px 16px 0; }
  .admin-contenu { padding: 20px 16px 40px; }
  .admin-bandeau h1 { font-size: 26px; }
  .onglets { gap: 18px; }
}

/* ------------------------------------------------------------------------
   Hub : portail, activation, comptes
   ------------------------------------------------------------------------ */
.petit-aide { font-size: 13px; color: var(--secondaire); line-height: 1.5; }
.portail { max-width: 1080px; margin: 0 auto; padding: 48px 24px; display: flex; flex-direction: column; gap: 16px; }
.portail h1 { margin: 0; font: 900 34px/1.15 var(--police); letter-spacing: -0.02em; color: var(--titre); }
.portail .intro { margin: 0 0 12px; font-weight: 300; font-size: 18px; line-height: 1.65; }
.tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tuile { position: relative; background: #fff; border: 1px solid var(--filet); border-top: 3px solid var(--rouge); border-radius: 4px; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.tuile-noyau { border-top-color: var(--anthracite); }
.tuile-lien { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; text-decoration: none; color: var(--texte); }
.tuile-lien:hover .tuile-titre, .tuile-lien:focus-visible .tuile-titre { color: var(--rouge); }
.tuile-titre { font: 900 20px/1.25 var(--police); color: var(--titre); }
.tuile-texte { font-size: 15px; line-height: 1.55; }
.tuile-admin { border-top: 1px solid var(--filet-leger); padding: 10px 22px; font-size: 13px; color: var(--secondaire); text-decoration: none; }
.tuile-admin:hover { color: var(--rouge); text-decoration: underline; }
.intro-admin { margin: 0 0 16px; max-width: 760px; line-height: 1.6; }
.lien-genere { display: flex; flex-direction: column; gap: 10px; }
.lien-genere p { margin: 0; }
.lien-ligne { display: flex; gap: 8px; }
.lien-ligne .champ { flex: 1; min-width: 0; font-size: 13px; }
.form-compte { padding: 20px; display: flex; flex-direction: column; gap: 18px; overflow: visible; }
.champs-compte { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.droits { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.droits legend { margin-bottom: 8px; }
.droits-module { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 14px; background: var(--fond-2); border-radius: 2px; }
.droits-titre { font-weight: 700; color: var(--titre); min-width: 180px; }
.case { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; cursor: pointer; }
.case input { accent-color: var(--rouge); }
@media (max-width: 760px) {
  .portail { padding: 32px 16px; }
  .portail h1 { font-size: 28px; }
  .lien-ligne { flex-direction: column; }
}
