



/* Base spirituelle */
body {
  background: linear-gradient(to bottom, #fefae0, #faedcd);
  font-family: 'Segoe UI', sans-serif;
  color: #2f2f2f;
  padding: 20px;
  margin: 0;
}

/* Titre du calendrier */
h2 {
  font-size: 1.5em;
  font-weight: bold;
  color: #5f3a1a;
  margin-bottom: 10px;
  text-transform: uppercase;
   position: absolute;
   top: 85px;

}



/* Conteneur centré pour les select */
.select-container {
  display: flex;
  justify-content: center;  /* centre horizontalement */
  gap: 10px;                /* espace entre plusieurs selects */
  margin: 0px 0;           /* espace vertical autour */
  position:relative;
   top: 35px;

}

/* Style des selects */
select {
  padding: 4px 8px;
  font-size: 1em;
  background-color: #fffbe6;
  border: 1px solid #c9a36d;
  border-radius: 4px;
  color: #5a3c10;
  font-weight: bold;
  /* Suppression de la marge pour gérer via le container */
  margin: 0;
}







/* Table du calendrier */
#fezan-calendar {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  border-collapse: collapse;
  box-shadow: 0 0 10px rgba(90, 60, 16, 0.2);
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* En-tête des jours */
#fezan-calendar thead th {
  background-color: #d4a373;
  color: white;
  padding: 15px 0px;
  font-weight: bold;
  border: 1px solid #b68952;
}

/* Cellules du calendrier */
#fezan-calendar td {
  height: 50px;
  width: 50px;
  border: 1px solid #e4cfa5;
  vertical-align: top;
  position: relative;
  padding: 5px;
  background-color: #fffef5;
  transition: background-color 0.2s;
}

/* Jour (numéro) */
#fezan-calendar td > div:first-child {
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  display: block;

}

/* Nom du jour favorable/défavorable */
#fezan-calendar td .jour-nom {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  font-size: 0.7em;
  font-weight: bold;
  text-align: center;
}

#fezan-calendar td .jour-nom.favorable {
  color: green;
}

#fezan-calendar td .jour-nom.defavorable {
  color: red;
}


#fezan-calendar td .lune {
  position: absolute;
  top: 1px;
  right: 1px;
  font-size: 1.5rem;
  transform: scale(0.6);
  transform-origin: top right;
  color: #666666;
  user-select: none;
  pointer-events: none;
  font-family: Arial, sans-serif; /* optionnel */
}

/* Avertissement 45 (mauvais jours) */
#fezan-calendar td .mauvais45 {
  position: absolute;
  bottom: 2px;
  left: 1px;
  font-size: 0.6rem;
  color: #e6a700; /* couleur or avertissement */
  user-select: none;
  pointer-events: none;
}




/* Container du compte à rebours */
.countdown-container {
  max-width: 270px;
  margin: 2px auto;
  padding: 1px 1px;
  background-color: #fffbe6; /* couleur douce, proche fond calendrier */
  border: 1.5px solid #c9a36d; /* couleur marron clair */
  border-radius: 10px;
  box-shadow: 0 2px 2px rgba(90, 60, 16, 0.15);
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  color: #5a3c10; /* marron foncé, cohérent avec le calendrier */

}

/* Titre du compte à rebours */
#countdown-title {
  font-weight: 700;
  font-size: 1.2em;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5f3a1a; /* marron profond comme caption */
}

/* Texte du compte à rebours */
#countdown-2025 {
  font-size: 1.1em;
  font-weight: 600;
  color: #2f2f2f; /* texte principal sombre */
  font-variant-numeric: tabular-nums;
}

/* Animation douce (optionnel) pour attirer l’œil */
#countdown-2025 span {
  display: inline-block;
  padding: 3px 5px;
  margin: 0 3px;
  background: #d4a373; /* couleur douce marron clair */
  border-radius: 4px;
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(90, 60, 16, 0.3);
  transition: background-color 0.3s ease;
}

/* Exemple : changer couleur quand le temps est court */
#countdown-2025.short-time span {
  background-color: #a64b00; /* un ton plus chaud et urgent */
}









#resume-jour-reel {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  padding: 6px;
  border: 1px solid #ccc;
  max-width: 270px;
  margin: 0 auto 1rem;
  background-color: #fafafa;
  border-radius: 6px;
  line-height: 1.4;
  text-align: center;
  margin-top:-30px;
}

/* Style pour texte favorable / défavorable dans résumé */
.favorable {
  color: #2a8f00; /* vert favorable */
  font-weight: 700;
}

.defavorable {
  color: #d13212; /* rouge défavorable */
  font-weight: 700;
}


.mauvais-jour-block {
  display: flex;
  flex-direction: column; /* icône au-dessus du texte */
  align-items: center;    /* centre horizontalement icône et texte */
  margin-top: 8px;
  color: #d13212;
  font-weight: 600;
  text-align: center;     /* centre aussi le texte */
}

.mauvais-jour-block .icon {
  font-size: 0.7rem;
  margin-bottom: 4px; /* espace entre icône et texte */
  margin-right: 0;    /* pas de marge droite */
}










.lune {
  font-size: 1.3em;
  margin-bottom: 4px;
}

.nouvelle-lune {
  color: #333;
}

.pleine-lune {
  color: #f1c40f;
}

.phase-lune {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.phase-lune .icon {
  font-size: 1.4em;
}

.phase-lune .texte {
  font-size: 0.9em;
  font-weight: bold;
}