.gesi-sidebar { width: 260px; flex-shrink: 0; }
@media (min-width: 992px) {
  .gesi-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.gesi-sidebar .nav-link { color: rgba(255,255,255,.8); padding: .7rem .9rem; border-radius: .5rem; }
.gesi-sidebar .nav-link:hover { background: rgba(255,255,255,.08); }
.gesi-sidebar .nav-link.active { background: var(--bs-primary); color: #fff; }
.gesi-sidebar .nav-link.disabled { color: rgba(255,255,255,.35); }
.gesi-main { min-width: 0; }

/* Cibles tactiles confortables */
.btn, .form-control, .form-select { min-height: 44px; }
.btn-sm { min-height: 36px; }

/* Cartes étudiants (smartphone) */
.etu-card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.12); cursor: pointer; }
.etu-card:active { background: var(--bs-light); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 600; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }

.avatar-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.photo-cadre { width: 96px; height: 128px; flex: none; border: 1px solid var(--bs-border-color); border-radius: .5rem;
  overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color); font-size: 2.5rem; }
.photo-cadre img { width: 100%; height: 100%; object-fit: cover; }

/* Modal : plein écran sur smartphone */
@media (max-width: 575.98px) { .modal-dialog { margin: 0; } }
.is-invalid ~ .invalid-feedback { display: block; }
.nav-pills .nav-link { white-space: nowrap; }
.tabs-scroll { overflow-x: auto; flex-wrap: nowrap; }

/* Grille des tarifs : 1re colonne figée en défilement horizontal */
.grille th, .grille td { min-width: 110px; }
.grille th:first-child, .grille td:first-child { position: sticky; left: 0; background: var(--bs-body-bg);
  min-width: 150px; text-align: left; z-index: 1; font-weight: 600; }
.grille .cellule { width: 100%; min-height: 56px; line-height: 1.2; }

/* Logo FLSH : fond blanc pour rester lisible sur les fonds sombres */
.gesi-logo-plate { display: inline-block; background: #fff; border-radius: .6rem; padding: .4rem .6rem; line-height: 0; }
.gesi-logo-plate img { display: block; width: 100%; max-width: 140px; height: auto; }

.gesi-logo-mini { display: inline-flex; align-items: center; flex-shrink: 0; background: #fff;
  border-radius: .4rem; padding: .2rem .4rem; line-height: 0; }
.gesi-logo-mini img { display: block; height: 40px; width: auto; }

/* Tablettes : logo un peu plus grand */
@media (min-width: 576px) and (max-width: 991.98px) {
  .gesi-logo-mini img { height: 48px; }
}

/* Pages de connexion / installation */
.gesi-logo-auth { height: 90px; width: auto; }