/* ============================================
   Welcome Screen – Style Solaraea / Sync LABSS
   Fond sombre, logo + texte + bouton ENTRER, apparition séquentielle
   ============================================ */

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg, #000000);
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.6s ease-out;
  pointer-events: auto;
}

.welcome-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.welcome-screen.removed {
  display: none;
}

.welcome-screen.exiting {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

/* Contenu centré verticalement */
.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 480px;
}

/* ----- Logo en haut ----- */
.welcome-logo-wrap {
  margin-bottom: 2rem;
  opacity: 0;
  animation: welcome-fade-in 0.8s ease-out 0.2s forwards;
}

.welcome-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(6, 255, 165, 0.4));
  animation: welcome-logo-pulse 3s ease-in-out 1s infinite;
}

@keyframes welcome-logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(6, 255, 165, 0.4)); opacity: 1; }
  50% { filter: drop-shadow(0 0 32px rgba(6, 255, 165, 0.6)); opacity: 0.95; }
}

/* Nom de l'app sous le logo */
.welcome-app-name {
  margin-top: 1rem;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient, linear-gradient(135deg, #00b4d8, #06ffa5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: welcome-fade-in 0.8s ease-out 0.5s forwards;
}

/* ----- Texte d'accueil ----- */
.welcome-title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  opacity: 0;
  animation: welcome-fade-in 0.8s ease-out 0.8s forwards;
}

.welcome-subtitle {
  font-size: 1rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.8));
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: welcome-fade-in 0.8s ease-out 1s forwards;
}

@keyframes welcome-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Bouton ENTRER ----- */
.welcome-btn-wrap {
  opacity: 0;
  animation: welcome-fade-in 0.8s ease-out 1.3s forwards;
}

.welcome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  background: var(--gradient, linear-gradient(135deg, #00b4d8, #06ffa5));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 20px rgba(6, 255, 165, 0.3);
}

.welcome-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(6, 255, 165, 0.5), 0 6px 20px rgba(0, 0, 0, 0.3);
}

.welcome-btn:active {
  transform: translateY(0);
}

/* Variante outline (bouton "SE CONNECTER" style néon) */
.welcome-btn.outline {
  color: var(--gradient-end, #06ffa5);
  background: transparent;
  border: 2px solid rgba(6, 255, 165, 0.6);
  box-shadow: 0 0 20px rgba(6, 255, 165, 0.2);
}

.welcome-btn.outline:hover {
  border-color: var(--gradient-end, #06ffa5);
  box-shadow: 0 0 28px rgba(6, 255, 165, 0.4);
  background: rgba(6, 255, 165, 0.08);
}
