/* Assure la hauteur plein écran */
html, body { height: 100%; }
.page-shell { min-height: 100vh; }

/* Zone scrollable : le point crucial */
.scrollable-zone {
  min-height: 0;        /* indispensable dans un flex-child pour que le scroll apparaisse */
  overflow-y: auto;     /* une seule scrollbar ici */
  padding: 1rem;        /* optionnel */
}

/* Boutons d’invités : confort tactile + uniformité */
.guest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  height: 68px;          /* 56–80px selon ton goût */
  font-size: 1rem;
  font-weight: 600;
  border-radius: .75rem;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 400px) {
  .guest-btn { height: 60px; font-size: .95rem; }
}

/* --- Carte d'invité --- */
.guest-card {
  display: flex;
  align-items: center;
  gap: .75rem;

  background: var(--bs-light);
  border: 1px solid rgba(0,0,0,.065);
  border-radius: 1rem;

  padding: .75rem .9rem;   /* confort tactile latéral */
  height: 72px;            /* hauteur uniforme */
  text-align: left;

  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .08s ease-out, box-shadow .12s ease-out, background .12s;
}

.guest-card:active {
  transform: scale(0.98);
}

.guest-card:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.guest-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

/* Label */
.guest-label {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1e1e1e;
}

/* Avatar rond */
.guest-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffd86b;               /* jaune doux */
  color: #1f1f1f;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.06);
  font-weight: 800;
}

/* Icône Bootstrap dans l’avatar */
.guest-avatar i.bi {
  font-size: 22px;
  line-height: 1;
}

/* Variante initiales (si tu utilises .initials) */
.guest-avatar .initials {
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Sticky header : s'assurer qu'il couvre le contenu en scroll */
.sticky-top {
  z-index: 1020;
}

/* Petits écrans : un peu plus grand pour le doigt */
@media (max-width: 400px) {
  .guest-card { height: 78px; }
  .guest-avatar { width: 46px; height: 46px; min-width: 46px; }
}

/* Mode sombre (si jamais) : améliore contraste */
@media (prefers-color-scheme: dark) {
  .guest-card {
    background: #1f1f1f;
    border-color: #2a2a2a;
  }
  .guest-label { color: #f3f3f3; }
  .guest-avatar { background: #f0c75e; color: #121212; }
}
/* Hover desktop seulement */
@media (hover: hover) and (pointer: fine) {
  .guest-btn:hover {
    transform: translateY(-3px);
    background-color: #79096f !important; /* un jaune plus lumineux */
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
  }
}

/* Press mobile & desktop */
.guest-btn:active {
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(0,0,0,.20);
}

/* Focus clavier / accessibilité */
.guest-btn:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

/* Transition globale douce */
.guest-btn {
  transition:
    transform .12s ease,
    background-color .15s ease,
    box-shadow .15s ease;
}

.photo-container {
    height: 250px; /* Hauteur fixe pour aligner la grille */
    background-color: #f8f9fa; /* Fond gris clair pour les espaces vides */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.photo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* L'image est entière, peu importe son ratio */
    display: block;
}

.rotate-90 {
    transform: rotate(90deg);
    display: inline-block; /* Important pour que la rotation s'applique */
}

/* Hauteur fixe pour les zones de texte pour éviter que l'image ne bouge */
.header-zone { height: 80px; display: flex; align-items: center; justify-content: center; text-align: center; }
.photo-zone { height: 45vh; display: flex; align-items: center; justify-content: center; background: #f8f9fa; border-radius: 15px; overflow: hidden; }
.action-zone { min-height: 200px; padding-top: 15px; }

/* Images */
.img-fit { max-height: 100%; max-width: 100%; object-fit: contain; }
.rotate-90 { transform: rotate(90deg); }