/* ============================================================
   .app-modal-close — Bouton de fermeture unifié Odimove
   Zone tactile 44 × 44 px — iOS / Android / Desktop
   ============================================================ */

.app-modal-close {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  flex-shrink: 0 !important;

  border: none !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  transition: background 0.18s ease, color 0.18s ease, transform 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.app-modal-close:hover,
.app-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  transform: rotate(90deg);
  outline: none;
}

.app-modal-close:active {
  background: rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  transform: rotate(90deg) scale(0.88);
}

/* Variante pour headers à fond coloré ou dégradé (icon blanc) */
.app-modal-close--light {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.app-modal-close--light:hover,
.app-modal-close--light:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.app-modal-close--light:active {
  background: rgba(255, 255, 255, 0.38);
}

/* ============================================================
   MODALE CONFIRMATION DÉCONNEXION — partagée toutes pages
   ============================================================ */
.logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logout-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.logout-confirm-content {
    background: linear-gradient(145deg, #0a0a0a 0%, #151515 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 24px 24px;
    max-width: 300px;
    width: 88%;
    text-align: center;
    transform: scale(0.9) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logout-modal-overlay.show .logout-confirm-content {
    transform: scale(1) translateY(0);
}

.logout-confirm-icon {
    width: 56px;
    height: 56px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.logout-confirm-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 8px;
}

.logout-confirm-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.5;
}

.logout-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logout-confirm-btn {
    padding: 12px;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.35);
    border-radius: 8px;
    color: #f43f5e;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.logout-confirm-btn:hover {
    background: rgba(244, 63, 94, 0.22);
    border-color: rgba(244, 63, 94, 0.6);
}

.logout-cancel-btn {
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.logout-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
}
