/* gestion_licences v2 — gabarit commun barre latérale + contenu : administration (interface B)
   et page Mon compte (A7). S'ajoute à gl-jetons.css. La barre reste fixe au défilement du contenu. */

.gl.admin, .gl .admin, .gl .avec-barre { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; min-height: 100vh; position: relative; }
.gl .barre {
  flex: 0 0 240px; width: 240px; background: var(--surface); border-right: 1px solid var(--bordure);
  display: flex; flex-direction: column; gap: 4px; padding: 16px 12px;
  position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto;
}
.gl .barre .logo { font-weight: 700; font-size: 16px; padding: 8px 4px 16px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gl .barre .logo .monogramme {
  flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--sur-accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.gl .barre nav { display: flex; flex-direction: column; gap: 2px; }
.gl .barre nav a {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 8px;
  color: var(--texte); text-decoration: none; font-size: 14px;
}
.gl .barre nav a svg { flex: none; color: var(--texte-2); }
.gl .barre nav a:hover { background: var(--surface-2); color: var(--texte); }
.gl .barre nav a[aria-current="page"], .gl .barre nav a[aria-current="location"] { background: var(--surface-2); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.gl .barre nav a[aria-current="page"] svg { color: var(--accent-texte); }
.gl .barre .bas { margin-top: auto; border-top: 1px solid var(--bordure); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.gl .barre .bas .qui { padding: 4px 12px 8px; font-size: 13px; color: var(--texte-2); overflow: hidden; text-overflow: ellipsis; }
.gl .barre .bas .qui strong { display: block; color: var(--texte); font-size: 14px; }
.gl .barre .bas button, .gl .barre .bas a {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 0;
  background: none; color: var(--texte); font: inherit; font-size: 14px; cursor: pointer; text-align: left;
  text-decoration: none;
}
.gl .barre .bas button svg, .gl .barre .bas a svg { flex: none; color: var(--texte-2); }
.gl .barre .bas button:hover, .gl .barre .bas a:hover { background: var(--surface-2); }
/* Bouton de repli de la barre (et fermeture des fenêtres de l'administration) */
.gl .fermer { width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--texte-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gl .fermer:hover { background: var(--surface-2); }
.gl .barre .replier { margin-left: auto; }
/* Barre repliée (tablette) : icônes seules, libellés conservés pour les lecteurs d'écran */
.gl .barre.repliee { flex-basis: 64px; width: 64px; padding-inline: 8px; }
.gl .barre.repliee .libelle, .gl .barre.repliee .qui, .gl .barre.repliee .logo .nom {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.gl .barre.repliee nav a, .gl .barre.repliee .bas button, .gl .barre.repliee .bas a { justify-content: center; padding: 0; }
.gl .barre.repliee .logo { justify-content: center; padding-inline: 0; }
.gl .barre.repliee .replier { margin-left: 0; }

.gl .contenu { flex: 1 1 0; min-width: 0; padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
