﻿/* 🌐 Réinitialisation de base */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
  background: #f9f9f9;
  color: #333;
}

h1, h2 {
  font-family: 'Roboto', serif;
}

/* 📦 Mise en page générale */
.auto-style1 {
  width: 98%;
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
}

/* 🖋️ Copyright discret */
.copyright {
  position: fixed;
  bottom: 6px;
  right: 10px;
  font-size: 0.7em;
  color: rgba(0, 0, 0, 0.2);
  font-style: italic;
  pointer-events: none;
}

/* 🏷️ Titre des fêtes nationales */
.fetes-title {
  font-size: 1.1rem;
  font-weight: bold;
  background-color: #e0f7fa;
  padding: 8px 12px;
  border-radius: 20px;
  text-align: center;
  margin: 10px auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 📋 Contenu des fêtes nationales */
.fetes-container {
  background-color: #fff8dc;
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
  /* display: none; /* 👈 intégré ici */
}

.fetes-container p,
.fetes-container li {
  margin-bottom: 8px;
  color: #444;
}

.fetes-container ul {
  padding-left: 20px;
}

.fetes-container a {
  color: #007bff;
  text-decoration: none;
}

.fetes-container a:hover {
  text-decoration: underline;
}

/* 🎌 Cadre d'animation des drapeaux */
.flag-container {
  position: relative;
  width: 100%;
  min-height: 250px;
  background: linear-gradient(to bottom, #e0f7fa, #ffffff);
  border: 1px solid #ccc;
  border-radius: 12px;
  margin: 20px auto;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 🧾 Bloc texte des fêtes */
.flag-list {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 1rem;
  max-width: 320px;
  line-height: 1.5;
}

/* ✅ Titre automatique */
.flag-list::before {
  content: "🎉 Fêtes nationales du jour";
  display: block;
  font-weight: bold;
  font-size: .8rem;
  margin-bottom: 8px;
  color: #222;
}

/* 🎏 Drapeaux animés */
.flag {
  position: absolute;
  font-size: 1.5rem;
  animation: fall 5s linear infinite;
  pointer-events: none;
}

@keyframes fall {
  0% {
    top: -50px;
    opacity: 1;
    transform: rotate(0deg);
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: rotate(360deg);
  }
}

/* 📱 Responsive */
@media screen and (max-width: 600px) {
  .flag-list {
    font-size: 0.9rem;
    max-width: 90%;
    left: 5px;
    right: 5px;
  }

  .fetes-title {
    font-size: 1rem;
  }

  .flag {
    font-size: 1.2rem;
  }
}
