/* ==== Couleurs & Fond global ==== */
/*.header-animation {
  background-color: #9EDDEB !important;
} */

body {
  /* On retire le background-color pour laisser place à la vidéo */
  background: none !important; 
  margin: 0;
  padding: 0;
  /* font-family: "Courier New", monospace; */
  /* Tout le reste de tes règles peuvent rester */
}

/* Vidéo de fond */
#video-bg {
  position: fixed;       /* La vidéo reste fixe */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* Remplit tout l’écran sans déformation */
  z-index: -1;           /* Derrière tout le contenu */
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.text-center {
  text-align: center;
}

/* --- BANDE COLOREE + MOIS + MESSAGE ARTICLES --- */
.month-controls-wrapper {
  background: linear-gradient(135deg, #6C9F42 0%, #9EDDEB 45%, #FFA14F 90%);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(108,159,66,0.5);

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* Empêche le retour à la ligne */
}

.month-controls {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

#monthPicker {
  background: #444;
  color: #C7E2A6;
  border: 2px solid #FFA14F;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 1rem;
  box-shadow: 0 0 8px #FFA14F;
  transition: box-shadow 0.3s, opacity 0.3s;
}
#monthPicker:hover, #monthPicker:focus {
  box-shadow: 0 0 12px #FFA14F;
  opacity: 0.95;
}

/* Bloc de message d'articles */
/* Ajout d'un espacement entre le point rouge et le texte */
.articles-info {
  display: inline-flex;
  align-items: center;
  gap: 12px;  /* Augmenté pour un meilleur espacement */
}

/* Amélioration de l'affichage en mobile */
@media (max-width: 900px) {
  .month-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px; /* Ajoute de l'espace entre les éléments */
  }

  .articles-info {
    justify-content: center;
    padding: 0.6rem 1rem; /* Légère augmentation pour éviter qu'il soit trop collé */
  }

  #monthPicker {
    margin-bottom: 8px; /* Ajoute un espacement sous le picker de date */
  }
}

.articles-text {
  font-size: 1rem;
  color: #fff;
}

/* Point rouge clignotant (dans le message) */
.blinking-dot {
  width: 12px;
  height: 12px;
  background-color: red;
  border-radius: 50%;
  animation: blinkRed 1s infinite alternate;
}
@keyframes blinkRed {
  from { opacity: 1; }
  to   { opacity: 0.3; }
}

/* Ligne d'en-tête (Lundi..Dimanche) */
.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.calendar-header div {
  font-weight: bold;
  color: #C7E2A6;
  background: linear-gradient(135deg, #444 20%, #555 80%);
  padding: 0.5rem;
  border-radius: 5px;
  box-shadow: 0 0 6px rgba(108,159,66,0.3);
}

/* Grille 7 colonnes */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

/* JOUR BLOCK => flex-col + scroll interne */
.jour-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background-color: #333;
  border: 2px solid #6C9F42;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(108,159,66,0.3);
  position: relative;
  height: 220px;        /* Hauteur fixe sur desktop */
  overflow: hidden;     /* .jour-block-inner scrollable */
  transition: transform 0.3s, box-shadow 0.3s;
}
.jour-block:hover {
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(108,159,66,0.5);
}

/* Contenu interne scrollable */
.jour-block-inner {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}
/* SCROLLBAR CUSTOM (Chrome/Edge/Safari) */
.jour-block-inner::-webkit-scrollbar {
  width: 8px;              
  background-color: #2E2E2E; 
}
.jour-block-inner::-webkit-scrollbar-track {
  background-color: #2E2E2E; 
  border-radius: 4px;
}
.jour-block-inner::-webkit-scrollbar-thumb {
  background-color: #6C9F42; 
  border-radius: 4px;
}
.jour-block-inner::-webkit-scrollbar-thumb:hover {
  background-color: #8ABB50; 
}
/* Firefox */
.jour-block-inner {
  scrollbar-width: thin;
  scrollbar-color: #6C9F42 #2E2E2E;
}

/* Titre du jour (Jour + date + mois) */
.jour-block h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #FFA14F;
  text-shadow: 0 0 4px #FFA14F;
}

/* “Aujourd'hui” */
.aujourdhui {
  display: block;
  color: white;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* Indicateur escargots => 🥶 / 🥵 / ✅ + ⚠️ */
.snail-indicator {
  margin-left: 8px;
  font-size: 1.3rem;
  color: #ff4455;
  text-shadow: 0 0 4px #ff4455;
}

/* Jour actuel highlight */
.today-block {
  background-color: #444 !important;
  border-color: #FFA14F !important;
  box-shadow: 0 0 12px #FFA14F;
}

/* Météo */
.meteo {
  margin: 0.5rem 0 0;
  line-height: 1.4;
}
.meteo.indispo {
  color: #bbb;
  font-style: italic;
}

/* Couleur T° => .temp-ok (vert), .temp-bad (rouge) */
.temp-ok {
  color: #70F05E;
  text-shadow: 0 0 4px #70F05E;
}
.temp-bad {
  color: #FF7777;
  text-shadow: 0 0 4px #FF7777;
}

/* Alerte escargots */
.escargot-alert {
  background-color: #5A5A0A;
  border: 1px solid #FDD835;
  border-radius: 5px;
  padding: 0.5rem;
  margin-top: 0.5rem;
}
.escargot-alert p {
  margin: 0.3rem 0;
  color: #F5F5B5;
}
.escargot-alert strong {
  color: #FFFDA6;
}

/* Bouton “magnifique” dans jour-block */
.modal-button {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #C7E2A6 0%, #9EDDEB 100%);
  border: 2px solid #6C9F42;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  margin: 8px auto;    /* centré horizontalement */
}

/* Ajoute un espace horizontal entre le point rouge et le texte */
.modal-button .blinking-dot {
  margin-right: 10px; /* Espace de 10px entre le point et le chiffre */
}

.modal-button:hover {
  box-shadow: 0 0 6px #FFA14F;
  opacity: 0.9;
}
.day-article-button {
  /* classe supplémentaire si besoin d'un style distinct */
  
}
.button-text {
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
}

/* Jours hors mois grisés */
.grayed-day {
  opacity: 0.4;
}

/* Sur petit écran => 1 seule colonne
   (on supprime l’en-tête et on masque les jours hors mois)
*/
@media (max-width: 900px) {
  .calendar-header {
    display: none;
  }
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  .jour-block {
    height: auto; 
  }
  .grayed-day {
    display: none;
  }
  /* Aligner le bouton à gauche dans les jour-block en vue mobile */
  .jour-block .day-article-button {
    align-self: flex-start; /* Aligne le bouton à gauche du bloc */
    margin-left: 10px; /* Ajoute un léger décalage du bord */
  }
}


/* Fenêtre modale => UI */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 10px;
}
.modal-content {
  background: #2B2B2B;
  border: 2px solid #6C9F42;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  max-height: 80%;
  box-shadow: 0 0 12px #6C9F42;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top:8px;
  right:8px;
  background:transparent;
  border:none;
  color: #6C9F42;
  font-size:1.2rem;
  cursor: pointer;
}
.modal-title {
  color:#C7E2A6;
  font-size:1.2rem;
  margin-bottom:0.5rem;
  text-align:center;
  font-weight:bold;
}
.modal-text {
  white-space: pre-line;
  line-height:1.4;
  color:#fff;
}

/* Responsivité de la carte Windy => aspect-ratio */
.windy-map-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* ratio 16:9 */
  margin: 0 auto;
}
.windy-map-container iframe,
.windy-map-container canvas {
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:block;
}
