/* =================================================================================
ouverture-liens.css - Styles pour le module de test de navigation unifiée
================================================================================= */
/* --- Styles de base pour la page de test --- */

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}
.button {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background-color: #3498db;
  border: none;
  border-radius: 5px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none; /* For <a> tags */
  display: inline-block; /* For <a> tags */
  text-align: center; /* For <a> tags */
}
.button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}
.instructions {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #eaf2f8;
  border-left: 5px solid #3498db;
  border-radius: 5px;
}
/* --- STYLES POUR LA POPUP --- */
#popup-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: none; /* Caché par défaut */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup-loader-content {
  width: 95vw;
  height: 95vh;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden; /* Important pour que l'iframe respecte le border-radius */
  display: flex;
  border: 8px solid #c9b79c;
  box-sizing: border-box;
  position: relative;
  z-index: 1001;
}
.popup-loader-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.popup-loader-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: white;
  border: 2px solid #333;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1002;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.popup-loader-close svg {
  width: 28px;
  height: 28px;
  fill: #333;
  transition: fill 0.3s ease;
}
.popup-loader-close:hover {
  transform: scale(1.1) rotate(90deg);
  background-color: #d5a456;
  border-color: #5f2f00;
}
.popup-loader-close:hover svg {
  fill: #5f2f00;
}
/* Styles pour le mode plein écran sur mobile (smartphone-mode) */
#popup-loader-overlay.smartphone-mode .popup-loader-content {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
/* Positionnement du bouton de fermeture en plein écran, tenant compte des encoches (notch) */
#popup-loader-overlay.smartphone-mode .popup-loader-close {
  top: calc(1rem + env(safe-area-inset-top, 0));
  right: calc(1.5rem + env(safe-area-inset-right, 0));
}