/* =========================================================
   Portrait Mode Notice — Styles
   ========================================================= */

/* Import d'une police distinctive */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700;800&family=DM+Sans:wght@400;500&display=swap');

/* ---- Variables ---- */
:root {
  --pmn-bg:        rgba(10, 10, 15, 0.82);
  --pmn-card-bg:   #0f0f17;
  --pmn-card-border: rgba(255,255,255,0.08);
  --pmn-text:      #f0f0f5;
  --pmn-sub:       rgba(240,240,245,0.6);
  --pmn-accent:    #2924ff; /* overridden via JS inline style */
  --pmn-radius:    24px;
  --pmn-shadow:    0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--pmn-card-border);
  --pmn-duration:  .45s;
}

/* ---- Overlay ---- */
#pmn-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pmn-bg);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  padding: 24px;
  box-sizing: border-box;

  /* État caché */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--pmn-duration) cubic-bezier(.4,0,.2,1);
}

#pmn-overlay.pmn-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Carte ---- */
#pmn-card {
  background: var(--pmn-card-bg);
  border: 1px solid var(--pmn-card-border);
  border-radius: var(--pmn-radius);
  box-shadow: var(--pmn-shadow);
  padding: 44px 36px 40px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  font-family: 'DM Sans', sans-serif;

  /* Animation d'entrée */
  transform: translateY(28px) scale(.96);
  transition: transform var(--pmn-duration) cubic-bezier(.4,0,.2,1);

  /* Ligne décorative en haut */
  position: relative;
  overflow: hidden;
}

#pmn-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pmn-accent), transparent);
  border-radius: 0 0 4px 4px;
}

#pmn-overlay.pmn-visible #pmn-card {
  transform: translateY(0) scale(1);
}

/* ---- Icône téléphone animée ---- */
#pmn-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

#pmn-phone-icon {
  width: 44px;
  height: 44px;
  color: var(--pmn-accent);
  animation: pmn-rotate-hint 2.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pmn-rotate-hint {
  0%, 40%  { transform: rotate(0deg);   }
  55%      { transform: rotate(-88deg); }
  70%      { transform: rotate(-90deg); }
  85%      { transform: rotate(-88deg); }
  100%     { transform: rotate(0deg);   }
}

/* ---- Titre ---- */
#pmn-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--pmn-text);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

/* ---- Sous-titre ---- */
#pmn-sub {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--pmn-sub);
  margin: 0 0 32px;
}

/* ---- Bouton ---- */
#pmn-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pmn-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .01em;
  transition: filter .2s, transform .15s;
  width: 100%;
  box-shadow: 0 8px 24px -4px color-mix(in srgb, var(--pmn-accent) 50%, transparent);
}

#pmn-close-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

#pmn-close-btn:active {
  transform: translateY(0) scale(.98);
}

/* ---- Grain décoratif ---- */
#pmn-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  border-radius: var(--pmn-radius);
  pointer-events: none;
  opacity: .5;
}

/* ---- Mode paysage : on cache tout ---- */
@media (orientation: landscape) {
  #pmn-overlay {
    display: none !important;
  }
}

/* ---- Accessibilité : reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  #pmn-overlay,
  #pmn-card,
  #pmn-phone-icon {
    transition: none !important;
    animation: none !important;
  }
}
