/* =====================================================================
   PORTAIL ALERTE 112 — ACCUEIL & SÉLECTEUR DE PLATEFORME (MAQUETTE OFFICIELLE)
   ===================================================================== */

.portal-root {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #020408 radial-gradient(circle at 50% 30%, #0d1527 0%, #03050a 80%, #010204 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #f8fafc;
  overflow: hidden;
  padding: 16px;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.portal-root.portal-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Scène centrale maintenant les proportions 2048x1144 (1024x572) de la maquette */
.portal-scene-wrapper {
  position: relative;
  width: 100%;
  max-width: 1240px;
  max-height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-artwork-box {
  position: relative;
  width: 100%;
  aspect-ratio: 2048 / 1144;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}

.portal-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Zones interactives positionnées au pixel exact sur les 2 cartes de l'image
   ZÉRO flou : backdrop-filter est strictement désactivé
   ZÉRO faux cadre au repos : la bordure est transparente au repos pour respecter à 100% le cadre d'origine */
.portal-interactive-card {
  position: absolute;
  cursor: pointer;
  border-radius: 20px;
  background: transparent !important;
  border: 2.5px solid transparent !important;
  outline: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 10;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease,
              box-shadow 0.22s ease,
              background 0.22s ease;
}

/* Coordonnées géométriques exactes mesurées sur l'image HD (2048x1144) :
   PC Card: x=424..994 (w=570), y=364..924 (h=560)
   Mobile Card: x=1052..1622 (w=570), y=364..924 (h=560) */
.portal-interactive-card.card-pc {
  left: 20.70%;
  top: 31.82%;
  width: 27.83%;
  height: 48.95%;
}

.portal-interactive-card.card-mobile {
  left: 51.37%;
  top: 31.82%;
  width: 27.83%;
  height: 48.95%;
}

/* Effets de survol interactifs ("comme d'hab faut qu'on voit quand tu passes la souris dessus") :
   Au survol, le cadre exact s'illumine en néon haute fidélité sans aucun flou ni bouton artificiel */
.portal-interactive-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.portal-interactive-card.card-pc:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.7), inset 0 0 25px rgba(56, 189, 248, 0.25) !important;
  background: rgba(56, 189, 248, 0.05) !important;
}

.portal-interactive-card.card-mobile:hover {
  border-color: #c084fc !important;
  box-shadow: 0 0 35px rgba(192, 132, 252, 0.7), inset 0 0 25px rgba(192, 132, 252, 0.25) !important;
  background: rgba(192, 132, 252, 0.05) !important;
}

.portal-interactive-card:active {
  transform: translateY(-2px) scale(0.99) !important;
}

/* Modale d'alerte plateforme */
.portal-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(2, 4, 10, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: portalFadeIn 0.2s ease;
}

.portal-dialog-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2);
  animation: portalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-dialog-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.portal-dialog-title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

.portal-dialog-desc {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.55;
}

.portal-dialog-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: background 0.15s ease, transform 0.15s ease;
}

.portal-dialog-btn:hover {
  background: #0369a1;
  transform: scale(1.03);
}

@keyframes portalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes portalScaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .portal-root {
    padding: 10px;
  }
}
