﻿/* 🌐 Réinitialisation de base */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  background: #ffffff; /* fond clair */
  color: #333333;       /* texte foncé */
}

h1, h2 {
  font-family: 'Merriweather', serif;
  color: #222;
}

/* 📦 Mise en page générale */
.auto-style1 {
  width: 95%;
  max-width: 900px;
  margin: 0 auto;
  padding: 15px;
}

/* 🖋️ Copyright discret */
.copyright {
  position: fixed;
  bottom: 8px;
  right: 12px;
  font-size: 0.75em;
  color: rgba(0, 0, 0, 0.4);
  font-style: italic;
  pointer-events: none;
}

/* 🏷️ Titre des fêtes nationales */
.fetes-title {
  font-size: 1.2rem;
  font-weight: bold;
  background-color: #f0f8ff; /* bleu pastel */
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  margin: 12px auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  color: #0066cc; /* bleu accent */
}

/* 📋 Contenu des fêtes nationales */
.fetes-container {
  background-color: #fafafa;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.fetes-container p,
.fetes-container li {
  margin-bottom: 8px;
  color: #444;
}

.fetes-container ul {
  padding-left: 20px;
}

.fetes-container a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.fetes-container a:hover {
  color: #ff6600; /* accent orange au survol */
  text-decoration: underline;
}

/* 🎌 Cadre d'animation des drapeaux */
.flag-container {
  position: relative;
  width: 95%;           /* largeur presque totale */
  height: 90vh;         /* hauteur presque totale */
  background: linear-gradient(to bottom, #f0f8ff, #ffffff);
  border: 1px solid #ddd;
  border-radius: 25px;  /* arrondi des 4 coins */
  margin: 3vh auto;     /* espace en haut et en bas */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 🧾 Bloc texte des fêtes */
.flag-list {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 1rem;
  max-width: 340px;
  line-height: 1.5;
  color: #333;
}

/* ✅ Titre automatique */
.flag-list::before {
  content: "🎉 Fêtes nationales du jour";
  display: block;
  font-weight: bold;
  font-size: .9rem;
  margin-bottom: 10px;
  color: #0066cc;
}

/* 🎏 Drapeaux animés */
.flag {
  position: absolute;
  font-size: 1.6rem;
  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.3rem;
  }
}
