@import url("https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap");

.title {
  color: rgb(215, 37, 37);
  /* text-decoration: none; */
  font-size: 0.7em;
}

button .i {
  color: black;
}

.border-bottom {
  border-bottom-color: #e68429 !important;
}

.menus {
  font-family: "Funnel Sans", sans-serif;
}

/* --- Boutons rectangulaires réseaux sociaux --- */
.facebook-blue {
  color: rgba(27, 27, 134, 0.714);
}
.instagram-orange {
  color: #f77737;
}
.rect-btn-container {
  text-align: center;
  font-family: "Poppins", sans-serif;
  max-width: 400px;
  margin: auto;
}

.rect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 250px;
  height: 60px;
  margin: 14px auto;
  border-radius: 12px;
  background-color: #fff;
  font-weight: 700;
  font-size: 14px;
  color: #000;
  text-decoration: none;
  overflow: hidden;
  padding: 0 20px;
  letter-spacing: 1px;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.rect-btn img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  position: absolute;
  left: 15px;
  transition: all 0.3s ease;
}

.rect-btn:hover {
  transform: scale(1.2) translateY(-5px);
  color: #fff;
  z-index: 10;
}

/* Couleurs / ombres par marque */
.sp {
  box-shadow: 0 4px 20px rgba(29, 185, 84, 0.9);
}
.ig {
  box-shadow: 0 4px 20px rgba(131, 58, 180, 0.9);
}
.gd {
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.9);
}
.dbuk {
  box-shadow: 0 4px 20px rgba(255, 204, 0, 0.9);
}

.sp:hover {
  background-color: #1db954;
}
.ig:hover {
  background-color: #833ab4;
}
.gd:hover {
  background-color: #4285f4;
}
.dbuk:hover {
  background-color: #ffd700;
}

/* Animation groupée */
.rect-btn-container:hover .rect-btn:not(:hover) {
  transform: scale(0.95);
  opacity: 0.7;
}

/* Tes règles existantes */
.title {
  color: rgb(215, 37, 37);
  text-decoration: none;
  font-size: 0.7em;
}

.border-bottom {
  border-bottom-color: #e68429 !important;
}

.qrcode {
  justify-content: end;
}

.advent-calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* gap: 20px 20px; */
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  padding: 10px;
}

.flip-card {
  background-color: transparent;
  width: 200px;
  height: 200px;
  perspective: 1000px;
  margin: 0 auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.9s;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* .flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
} */

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #53d9e0;

  color: white;
  border-radius: 10px;
  font-size: 4.6rem;
}

.flip-card-back {
  background-color: #eec52f;
  transform: rotateY(180deg);
  /* background-image: url(/images/jasonfond.jpg); */
  font-size: 0.9rem;
}

/* Adaptation pour tablettes (écrans entre 600px et 900px) */
@media (max-width: 900px) {
  .advent-calendar {
    grid-template-columns: repeat(3, 1fr);
  }
  .flip-card {
    width: 150px;
    height: 150px;
  }
  .flip-card-front {
    font-size: 3.5rem;
  }
}

/* Adaptation pour smartphones (écrans < 600px) */
@media (max-width: 600px) {
  .advent-calendar {
    grid-template-columns: repeat(2, 1fr);
  }
  .flip-card {
    width: 120px;
    height: 120px;
  }
  .flip-card-front {
    font-size: 2.5rem;
  }
  .flip-card-back {
    font-size: 0.8rem;
  }
}

/* Adaptation pour très petits écrans (optionnel) */
@media (max-width: 400px) {
  .advent-calendar {
    grid-template-columns: 1fr;
  }
  .flip-card {
    width: 150px;
    height: 150px;
  }
}

/* Animation des flocons de neige */
@keyframes snowfall {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100%) translateX(20px);
    opacity: 0;
  }
}

.snowflake {
  position: absolute;
  color: white;
  font-size: 1.2em;
  opacity: 0;
  animation: snowfall 3s linear infinite;
  pointer-events: none;
  z-index: 100;
}

/* Cible les <li> spécifiques */
li.calendrier-avent,
li.home-icon {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

/* Génère les flocons pour ces éléments */
li.calendrier-avent::before,
li.home-icon::before {
  content: "❄";
  position: absolute;
  top: -20px;
  left: 0;
  color: white;
  font-size: 1.2em;
  opacity: 0;
  animation: snowfall 3s linear infinite;
}

/* Ajoute plusieurs flocons pour un effet plus réaliste */
li.calendrier-avent::after,
li.home-icon::after {
  content: "❄";
  position: absolute;
  top: -30px;
  left: 20px;
  color: white;
  font-size: 1.5em;
  opacity: 0;
  animation: snowfall 4s linear infinite;
}
