﻿/* 🎄 Cadre principal arrondi */
.cadre {
  width: 95%;
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
  background: linear-gradient(to bottom, #006400, #228B22); /* vert sapin */
  border: 6px solid orange;
  border-radius: 40px;
  box-shadow: 0 0 30px rgba(255,165,0,0.6);
  overflow: hidden;
  position: relative;
  animation: haloPulse 4s infinite alternate;
}

@keyframes haloPulse {
  from { box-shadow: 0 0 20px rgba(255,165,0,0.5); }
  to   { box-shadow: 0 0 40px rgba(255,165,0,1); }
}

/* ❄️ Flocons de neige */
.snowflake {
  position: absolute;
  top: -10px;
  color: #fff;
  pointer-events: none;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes fall {
  0%   { transform: translateY(0) translateX(0); opacity: 1; }
  50%  { transform: translateY(50vh) translateX(30px); opacity: 0.9; }
  100% { transform: translateY(100vh) translateX(-30px); opacity: 0.7; }
}

/* 🌟 Popup */
.popup {
  width: 90%;
  max-width: 800px;
  padding: 30px;
  background: linear-gradient(to bottom, #006400, #228B22);
  border: 6px solid orange;
  border-radius: 30px;
  box-shadow: 0 0 25px rgba(255,165,0,0.7);
  text-align: center;
  color: #fff;
  animation: haloPulse 4s infinite alternate;
}

/* 🔔 Boutons / liens */
a {
  display: inline-block;
  margin: 6px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: bold;
  background: linear-gradient(45deg, #ff0000, #b22222); /* rouge dégradé */
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  box-shadow: 0 0 12px rgba(255,215,0,0.8);
  transition: transform 0.3s, background 0.3s, color 0.3s;
  animation: pulse 2s infinite;
  text-align: center; /* ✅ assure que le texte est centré */
  min-width: 220px;   /* ✅ largeur minimale pour garder l’effet bouton même avec texte court */
}
a:hover {
  background: #ffd700; /* doré au survol */
  color: #006400;      /* vert sapin */
  transform: scale(1.2) rotate(-3deg);
  box-shadow: 0 0 25px rgba(255,215,0,1);
}
@keyframes pulse {
  0% { box-shadow: 0 0 5px rgba(255,215,0,0.5); }
  50% { box-shadow: 0 0 20px rgba(255,215,0,1); }
  100% { box-shadow: 0 0 5px rgba(255,215,0,0.5); }
}

/* 🔘 Bouton fermer dans les popups */
.close-btn {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  background: linear-gradient(45deg, #ff0000, #b22222);
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255,215,0,0.8);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.close-btn:hover {
  background: #ffd700;
  color: #006400;
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255,215,0,1);
}
