/**
 * Popup d'installation PWA – affiché sur écrans petits uniquement
 * Propose d'installer l'app Android ou iPhone/iPad
 */
.install-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.install-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}
.install-popup-overlay[hidden] {
  display: none !important;
}

.install-popup {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 24px;
  background: var(--bg-card, #fff);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.install-popup-overlay.show .install-popup {
  transform: scale(1);
}

.install-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted, #6b7280);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, background 0.2s;
}
.install-popup-close:hover,
.install-popup-close:active {
  color: var(--text, #1a1a1a);
  background: rgba(0, 0, 0, 0.06);
}

.install-popup-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  padding-right: 36px;
}

.install-popup-text {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted, #6b7280);
}

.install-popup-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.install-popup-buttons .install-popup-btn[hidden] {
  display: none !important;
}

.install-popup-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.install-popup-btn:active {
  transform: scale(0.98);
}

.install-popup-btn-android {
  background: transparent;
  border-color: rgba(61, 220, 132, 0.6);
  color: #3DDC84;
}
.install-popup-btn-android:hover,
.install-popup-btn-android:active {
  background: rgba(61, 220, 132, 0.15);
  border-color: #3DDC84;
}

.install-popup-btn-ios {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text, #1a1a1a);
}
.install-popup-btn-ios:hover,
.install-popup-btn-ios:active {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.35);
}

.install-popup-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.install-popup-later {
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted, #6b7280);
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.install-popup-later:hover,
.install-popup-later:active {
  color: var(--text, #1a1a1a);
  background: rgba(0, 0, 0, 0.04);
}
