/* ==========================================================================
   VARIABLES, RESET & BASE
   ========================================================================== */
:root {
  --parme: #4c3a63;
  --aqua: #6fc6c3;
  --ink: #1c1620;
  --rose: #e07898;
  --gold: #c9a86a;
  --radius: 18px; /* Rayon légèrement réduit pour une carte plus petite */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
  color: white;
  min-height: 100vh;
}

/* ==========================================================================
   FOND NÉBULEUSE (Basé sur ton image)
   ========================================================================== */
body.gate {
  background: 
    radial-gradient(circle at 20% 30%, rgba(76, 58, 99, 0.45), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(111, 198, 195, 0.25), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(224, 120, 152, 0.15), transparent 60%),
    #08050a; /* Fond ultra sombre */
  background-attachment: fixed;
}

/* ÉTOILES FIXES (Canvas) */
#stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   SYSTÈME ÉTOILES FILANTES (Plus régulières)
   ========================================================================== */
.night-sky {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.shooting-star {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08), 0 0 0 6px rgba(255,255,255,0.08), 0 0 15px rgba(255,255,255,1);
  animation: animate 4.5s linear infinite; /* Animation un peu plus lente pour régularité */
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, #fff, transparent);
}

@keyframes animate {
  0% { transform: rotate(315deg) translateX(0); opacity: 1; }
  65% { opacity: 1; }
  100% { transform: rotate(315deg) translateX(-1100px); opacity: 0; }
}

/* Positions et Délais d'étoiles filantes réajustés */
.shooting-star:nth-child(1) { top: -20px; right: 0; animation-delay: 0s; animation-duration: 2s; }
.shooting-star:nth-child(2) { top: 0; right: 250px; animation-delay: 0.5s; animation-duration: 3.5s; }
.shooting-star:nth-child(3) { top: 320px; right: 0; animation-delay: 1.1s; animation-duration: 2.5s; }
.shooting-star:nth-child(4) { top: 0; right: 450px; animation-delay: 1.8s; animation-duration: 2.1s; }
.shooting-star:nth-child(5) { top: 430px; right: 0; animation-delay: 2.6s; animation-duration: 3s; }
.shooting-star:nth-child(6) { top: 150px; right: 0; animation-delay: 3.5s; animation-duration: 2.8s; } /* Étoile supplémentaire */

/* ==========================================================================
   LAYOUT PRINCIPAL - CADRE CENTRÉ ET RESPONSIVE
   ========================================================================== */
.gate-wrap {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center; /* Parfaitement centré verticalement */
  padding: clamp(15px, 4vw, 30px); /* Padding responsive */
}

/* CARTE CENTRÉE, PLUS PETITE ET RESPONSIVE */
.gate-card {
  width: min(880px, 94vw); /* Largeur max réduite pour petite carte */
  display: grid;
  grid-template-columns: 1fr 1fr; /* Photo à côté du texte */
  gap: clamp(20px, 4vw, 40px); /* Gap responsive */
  align-items: center;
  padding: clamp(25px, 5vw, 45px); /* Padding responsive */
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  animation: float 6s infinite ease-in-out;
  margin: 0 auto; /* Centrage horizontal au cas où */
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); } /* Lévitation plus douce */
}

/* ==========================================================================
   PHOTO - RÉDUITE ET À CÔTÉ DU TEXTE
   ========================================================================== */
.gate-media {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Pour garantir que l'aura ne déborde pas trop */
}

.gate-media img {
  width: 100%;
  max-width: 310px; /* Taille de l'image réduite */
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 25px rgba(111, 198, 195, 0.15);
  transition: transform 0.3s ease;
}

.gate-card:hover .gate-media img { transform: scale(1.03); } /* Effet au survol */

/* ==========================================================================
   CONTENU TEXTE ET ACTIONS
   ========================================================================== */
.gate-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gate-kicker { 
  text-transform: uppercase; 
  letter-spacing: 2px; 
  font-size: 11px; /* Légèrement plus petit */
  color: var(--aqua); 
  margin: 0;
}

.gate-title {
  font-family: "Cinzel Decorative", serif;

  color: white;
  line-height: 1.2;
}

.amp { color: var(--gold); }

.gate-subtitle { 
  font-size: 17px; 
  opacity: 0.9; 
  line-height: 1.6; 
  margin: 0 0 25px; 
}

/* BOUTONS AVEC HOVER AMÉLIORÉ */
.gate-actions { display: flex; gap: 12px; margin-top: 5px; flex-wrap: wrap; }

.btn {
  padding: 11px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease-out;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px; /* Largeur min pour uniformité */
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(201, 168, 106, 0.2);
}

.btn-primary:hover { 
  background: #dbbb7f; /* Légèrement plus clair au survol */
  transform: translateY(-2px); 
  box-shadow: 0 6px 15px rgba(201, 168, 106, 0.35); 
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.7);
  color: rgba(255,255,255,0.9);
}

.btn-ghost:hover { 
  background: rgba(255,255,255,0.06); 
  border-color: rgba(255,255,255,1); 
  color: rgba(255,255,255,1);
  transform: translateY(-2px);
}

/* NOTE ET ORNEMENTS */
.gate-note { 
  font-size: 14px; 
  margin-top: 30px; 
  opacity: 0.75; 
  color: rgba(255,255,255,0.9); 
}

/* ==========================================================================
   RESPONSIVE - PETITS ÉCRANS
   ========================================================================== */
@media (max-width: 880px) { /* Point de rupture réajusté */
  .gate-card { 
    grid-template-columns: 1fr; /* Repasse en une colonne */
    text-align: center; 
    padding: clamp(20px, 4vw, 35px); 
    gap: 20px;
  }
  
  .gate-media img { 
    max-width: 250px; /* Image encore réduite sur mobile */
    margin: 0 auto; /* Centrage */
  }

  .gate-content { 
    align-items: center; /* Centre le texte */
  }

  .gate-actions { 
    justify-content: center; 
    gap: 10px;
  }
  
  .btn { width: 100%; max-width: 300px; } /* Boutons pleins sur mobile */
}