/* /css/components/menu.css */

/* Utilitaires */
.hidden { display: none !important; }

/* Overlay plein écran (sans assombrissement) */
#profile-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;          /* au-dessus de tout */
  padding: 16px;
  overflow: auto;
  pointer-events: auto;         /* s’assure que l’overlay capte les clics */
  animation: overlay-appear 120ms ease-out;
}

/* Carte profil */
.profile-card {
  width: 425px;
  max-width: min(92vw, 520px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;         /* clics à l’intérieur de la carte */
  animation: card-pop 160ms ease-out;
}

/* Séparateur (optionnel) */
.profile-card hr {
  border: none;
  border-top: 1px solid #e6e6e6;
  margin: 12px 0;
}

/* Bouton fermer */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #222;
  padding: 6px;
  border-radius: 8px;
  transition: background-color 120ms ease;
}
.close-btn:hover { background: #f4f4f4; }
.close-btn:focus-visible { outline: 2px solid #222; outline-offset: 2px; }

/* En-tête */
.profile-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}
.profile-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  word-break: break-word;
}
.profile-header p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  font-weight: 600;
}

/* Bouton "Se désabonner" */
.btn-unsub {
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid #d00;
  background: #fff;
  color: #d00;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn-unsub:hover { background: #ffecec; border-color: #c00000; color: #c00000; }
.btn-unsub:focus-visible { outline: 2px solid #c00000; outline-offset: 2px; }

/* Animations */
@keyframes overlay-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 420px) {
  .profile-card { padding: 18px; border-radius: 16px; }
  .profile-header h2 { font-size: 1.4rem; }
  .btn-unsub { width: 100%; text-align: center; }
}



