/* ==========================================================================
   WEDDING QR SUITE - ULTRA PREMIUM & ROMANTIC DESIGN
   Aesthetics: Dark Mode, Soft Gold, Glassmorphism, Micro-animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --gold: #D4AF37;
  --gold-soft: #F9E596;
  --gold-dark: #AA8C2C;
  --bg-dark: #0a0a0c;
  --panel-bg: rgba(20, 20, 22, 0.7);
  --white: #ffffff;
  --muted: #a0a0a5;
  --danger: #ef4444;
  --border: rgba(212, 175, 55, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.15);
  --shadow-panel: 0 25px 50px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top center, #1a1a20 0%, var(--bg-dark) 100%);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   TYPOGRAPHIE
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 1px;
}

h1 { font-size: 3rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
h2 { font-size: 2rem; margin-bottom: 20px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-weight: 300;
}

/* ==========================================================================
   STRUCTURE AUTO-ADAPTIVE (RESPONSIVE)
   ========================================================================== */
.page-shell, .admin-main, .invitation-root, .scanner-shell, .login-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Effet "Glassmorphism" pour les panneaux */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

/* ==========================================================================
   HERO SECTION (MAGIQUE)
   ========================================================================== */
.hero-panel {
  text-align: center;
  padding: 80px 20px;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
  width: 100%;
  animation: fadeIn 1s ease-out;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 35px;
  flex-wrap: wrap;
}

/* ==========================================================================
   STATISTIQUES
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  width: 100%;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 35px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  background: rgba(212, 175, 55, 0.05);
}

.stat-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 15px; }
.stat-label { color: var(--muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; }
.stat-value { font-size: 3rem; font-family: var(--font-serif); color: var(--gold-soft); margin-top: 5px; }

/* ==========================================================================
   FORMULAIRES & DASHBOARD GRID
   ========================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  padding: 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   TABLEAU & CARTES MOBILES
   ========================================================================== */
.toolbar {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 25px;
}

.search-input { min-width: 300px; flex: 1; border-radius: 50px; padding: 14px 25px; }

.guest-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.guest-table-container::-webkit-scrollbar {
  height: 6px;
}

.guest-table-container::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

table.guest-table { 
  width: 100%; 
  border-collapse: collapse; 
  min-width: 850px; /* Force le scroll horizontal sur les écrans moyens */
}

table.guest-table th {
  text-align: left;
  padding: 20px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

table.guest-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
  white-space: nowrap; /* Force le contenu à rester sur une ligne */
}

table.guest-table tr:hover { background: rgba(255,255,255,0.02); }

/* Style pour les invités déjà arrivés */
table.guest-table tr.checked-in-row {
  background: rgba(16, 185, 129, 0.05);
  opacity: 0.8;
}

table.guest-table tr.checked-in-row td {
  color: var(--muted);
}

table.guest-table tr.checked-in-row strong {
  color: #10b981; /* Le nom devient vert discret */
}

.status-badge {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-valid { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }
.status-pending { background: rgba(255, 255, 255, 0.1); color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.2); }

/* ==========================================================================
   BOUTONS LUXUEUX
   ========================================================================== */
.btn {
  padding: 14px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
}

.btn-primary { 
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-ghost { 
  background: transparent; 
  color: var(--gold); 
  border: 1px solid var(--gold); 
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5); 
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* ==========================================================================
   PAGE D'INVITATION (ROMANTIQUE)
   ========================================================================== */
.invitation-page {
  background: #050505;
  background-image: radial-gradient(circle at 50% 0%, #1a1a20 0%, #000000 100%);
}

.invitation-shell {
  max-width: 500px;
  margin: 20px auto;
  padding: 60px 40px;
  background: #0d0d0f;
  border: 1px solid var(--gold-dark);
  border-radius: 4px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 40px rgba(212, 175, 55, 0.05);
  text-align: center;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-image-container {
  width: 180px;
  height: 180px;
  margin: 0 auto 30px auto;
  border-radius: 50%;
  border: 3px solid var(--gold);
  padding: 5px;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.qr-container {
  background: white;
  padding: 15px;
  border-radius: var(--radius-md);
  display: block; /* Forcer le bloc pour le centrage */
  margin: 30px auto; /* Centrage automatique */
  max-width: 250px; /* Taille contrôlée */
  border: 4px solid var(--gold);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  animation: fadeIn 2s ease-out;
}

/* ==========================================================================
   COMPTE À REBOURS
   ========================================================================== */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.countdown-item {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius-lg);
  min-width: 90px;
  backdrop-filter: blur(5px);
}

.countdown-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--gold-soft);
  line-height: 1;
}

/* ==========================================================================
   SCANNER & LOGIN
   ========================================================================== */
#reader {
  width: 100% !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-gold);
}

.login-card {
  max-width: 450px;
  margin: 0 auto;
}

/* ==========================================================================
   ULTRA-RESPONSIVE (SMARTPHONES)
   ========================================================================== */
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-shell, .admin-main, .invitation-root, .scanner-shell {
    padding: 15px;
    gap: 20px;
  }

  h1 { font-size: 2.2rem; }

  .hero-panel { padding: 50px 15px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100% !important; justify-content: center; }
  .toolbar { flex-direction: column; width: 100%; }
  .search-input { width: 100%; }

  /* Suppression de la transformation en cartes pour garder le scroll horizontal */
  .guest-table {
    display: table;
  }
  .guest-table thead { display: table-header-group; }
  .guest-table tr { display: table-row; }
  .guest-table td { display: table-cell; text-align: left; }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-15px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-8px); }
}

@keyframes pulse-alert {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulse-alert {
  animation: pulse-alert 1.5s ease-in-out infinite;
  border-color: #10b981 !important;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
}

.animate-in { animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ==========================================================================
   QR GALLERY
   ========================================================================== */
.qr-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 20px;
  max-height: 500px; /* Limite la hauteur */
  overflow-y: auto; /* Active le défilement vertical */
  padding-right: 10px; /* Espace pour la barre de défilement */
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.qr-gallery::-webkit-scrollbar {
  width: 6px;
}

.qr-gallery::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

.qr-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 25px;
  text-align: center;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.qr-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.qr-box {
  background: var(--white);
  padding: 15px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 20px;
  border: 3px solid var(--gold);
}

.qr-meta h4 {
  margin-bottom: 5px;
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

/* ==========================================================================
   TOASTS (NOTIFICATIONS)
   ========================================================================== */
.toast-root {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: none;
}

.toast {
  background: var(--bg-dark);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  font-family: var(--font-sans);
  font-weight: 500;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  max-width: 350px;
}

.toast.visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-success { border-left-color: #10b981; }
.toast-error { border-left-color: #ef4444; }
.toast-danger { border-left-color: #ef4444; }

/* ==========================================================================
   MODAL FESTIVE (SCANNER POPUP)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.festive-card {
  background: rgba(20, 20, 25, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 24px;
  padding: 15px 20px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(212, 175, 55, 0.1);
  position: relative;
  animation: apple-slide-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--white);
}

@keyframes apple-slide-in {
  0% { transform: translateY(-50px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.festive-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--gold), transparent, var(--gold-soft), transparent, var(--gold));
  background-size: 400%;
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 2px);
  opacity: 0.3;
  filter: blur(10px);
  animation: border-glow 10s linear infinite;
}

@keyframes border-glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.festive-card h2 { 
  font-size: 2.5rem; 
  margin-bottom: 10px; 
  color: var(--gold-soft); 
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.festive-card .guest-info { 
  font-size: 1.2rem; 
  margin: 20px 0; 
  color: var(--white);
  font-weight: 500;
}

.festive-card .party-badge { 
  display: inline-block; 
  padding: 12px 25px; 
  background: var(--gold); 
  color: var(--bg-dark); 
  border-radius: 50px; 
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.close-modal {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 2rem;
  color: var(--muted);
  cursor: pointer;
}

@media (max-width: 768px) {
  .toast-root {
    top: auto;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    width: calc(100% - 40px);
  }
  .toast {
    transform: translateY(120%);
    text-align: center;
    max-width: 100%;
  }
  .toast.visible {
    transform: translateY(0);
  }
}
/* ==========================================================================
   BOUTONS PETITS (btn-small) & UTILITAIRES
   ========================================================================== */
.btn-small {
  padding: 6px 14px;
  font-size: 0.7rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.muted { color: var(--muted); font-size: 0.9rem; }
.inline-link { color: var(--gold); text-decoration: none; font-size: 0.85rem; }
.inline-link:hover { text-decoration: underline; }

.empty-state {
  text-align: center;
  padding: 50px;
  color: var(--muted);
  font-style: italic;
  font-size: 1.1rem;
}

.full-width { grid-column: 1 / -1; }

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.panel-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

@media (max-width: 600px) {
  .panel-header, .panel-header-inline {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ==========================================================================
   RÉSUMÉ DE L'ÉVÉNEMENT (hero-card)
   ========================================================================== */
.hero-card {
  margin-top: 30px;
  padding: 25px 30px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-width: 700px;
  margin: 25px auto 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.summary-item .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 5px;
}

.summary-item .value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
}

/* ==========================================================================
   PAGE DE CONNEXION (LOGIN) - DESIGN LUXE
   ========================================================================== */
.login-page {
  background: radial-gradient(circle at center, #1a1a20 0%, #000000 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 440px;
  padding: 0;
  gap: 0;
}

.login-card {
  position: relative;
  overflow: hidden;
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.decorative-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 20px;
  animation: float 4s ease-in-out infinite;
}

.login-form .form-group { margin-bottom: 25px; }

.login-form input {
  background: rgba(0, 0, 0, 0.5);
}

.btn-full { width: 100%; justify-content: center; }

/* ==========================================================================
   SCANNER PAGE - CENTRAGE LUXUEUX
   ========================================================================== */
.scanner-page {
  background: radial-gradient(circle at top, #1a1a20 0%, #000000 100%);
  min-height: 100vh;
}

.compact-hero {
  padding: 30px 20px !important;
  text-align: center;
}

.scanner-shell {
  align-items: center;
}

.scanner-container {
  width: 100%;
  max-width: 480px;
}

#reader {
  border-radius: var(--radius-lg) !important;
}

/* Résultats du scan */
.scan-success-card, .scan-error-card, .scan-warning-card {
  padding: 25px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeIn 0.5s ease;
}

.scan-success-card { border-left: 5px solid #10b981; background: rgba(16, 185, 129, 0.1); }
.scan-error-card { border-left: 5px solid #ef4444; background: rgba(239, 68, 68, 0.1); }
.scan-warning-card { border-left: 5px solid #f59e0b; background: rgba(245, 158, 11, 0.1); }

/* ==========================================================================
   INVITATION PAGE - EFFET CARTON DE LUXE AMÉLIORÉ
   ========================================================================== */
.invitation-page {
  background: #050505;
  min-height: 100vh;
}

.invitation-root {
  padding: 0;
  gap: 0;
}

.invitation-shell {
  position: relative;
  overflow: hidden;
}

.invitation-shell > * { position: relative; z-index: 1; }

/* Actions de l'invitation (Carte Map, WhatsApp) */
.invitation-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.invitation-actions .btn {
  width: 100%;
}

/* ==========================================================================
   WELCOME OVERLAY (MUSIQUE & ENTRÉE)
   ========================================================================== */
.welcome-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.welcome-content {
  animation: fadeIn 1.2s ease-out;
}

.welcome-content h1 {
  font-size: 3.5rem;
  margin-bottom: 5px;
  min-height: 1.2em;
}

/* Spinner de chargement doré */
.loading-dots::after {
  content: ' .';
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ' .'; }
  40% { content: ' . .'; }
  60% { content: ' . . .'; }
  80%, 100% { content: ''; }
}

.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
  transform: scale(1.1);
}

/* Photo des mariés - Verticale Haute & Visibilité Totale */
.hero-image-container {
  width: 100%;
  max-width: 350px;
  height: 500px; /* Hauteur fixe imposante */
  margin: 0 auto 35px;
  position: relative;
  border-radius: 100px 0 100px 0; 
  padding: 12px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-dark));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* L'IMAGE EST MAINTENANT VISIBLE EN ENTIER (PAS DE COUPE) */
  background: #050505; /* Fond noir pour les bords si la photo est plus étroite */
  border-radius: 90px 0 90px 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Ornementation légère */
.hero-image-container::after {
  content: '♥';
  position: absolute;
  font-size: 20px;
  color: var(--white);
  bottom: 20px;
  right: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  z-index: 5;
}

/* ==========================================================================
   RESPONSIVE FINAL (TOUS PETITS ÉCRANS)
   ========================================================================== */
@media (max-width: 480px) {
  .welcome-content h1 { font-size: 2.5rem; }
  h1 { font-size: 1.9rem !important; }
  h2 { font-size: 1.5rem; }

  .panel { padding: 20px 15px; }
  .invitation-shell { padding: 40px 20px; margin: 15px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 2.2rem; }

  .countdown-container { gap: 10px; }
  .countdown-item { min-width: 60px; padding: 12px 8px; }
  .countdown-value { font-size: 2rem; }
  
  .qr-gallery { grid-template-columns: 1fr 1fr; }

  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  
  .hero-panel { padding: 40px 10px !important; }

  .login-card { padding: 30px 20px; }
}
