/* Variables pour simplifier la personnalisation */
:root {
  --primary-color: #e3e3e3; /* Couleur principale */
  --secondary-color: #f9f9f9; /* Couleur secondaire */
  --font-color: #333; /* Couleur de texte */
  --font-family: 'Poppins', sans-serif; /* Police moderne Poppins */
  --transition-duration: 0.3s; /* Durée des transitions */
}
img[alt^="img-big"] {
    display: block;
    width: 70%; 
    max-width: 1200px;
    margin: 30px auto;
    float: none;
    border-radius: 12px;
}

img[alt^="img-mid"] {
    display: block;
    width: 50%; 
    max-width: 1000px;
    margin: 30px auto;
    float: none;
    border-radius: 12px;
}
/* Images modernisées */
img[alt^="img-custom-1"],
img[alt^="img-custom-2"] {
  border-radius: 8px; /* Coins arrondis */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre légère */
  transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}
img[alt^="img-custom-1"] {
  float: left;
  margin-top: 10px;
  margin-right: 20px;
  margin-bottom: 20px;
  width: 100px;
}
img[alt^="img-custom-2"] {
  float: left;
  margin-top: 1px;
  margin-right: 20px;
  margin-bottom: 1px;
  width: 40px;
}
/* Zoom subtil au survol */
img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}
img {
  border: none !important; /* Pas de bordure */
  box-shadow: none !important; /* Suppression des ombres */
}

/* Conteneur principal */
#root {
  font-family: var(--font-family);
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
  line-height: 1.8; /* Espacement plus moderne */
  background-color: var(--secondary-color); /* Arrière-plan doux */
  border-radius: 10px; /* Coins arrondis */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre douce */
}

/* En-tête de marque */
#brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px; /* Espacement uniforme */
}
#brand a {
  color: black; /* Les liens restent noirs */
  text-decoration: none;
  transition: color var(--transition-duration);
}
#brand a:visited {
  color: black; /* Les liens visités restent noirs */
}
#brand a:hover {
  color: black; /* Les liens restent noirs au survol */
}
#brand h1, #brand h3 {
  margin: 0;
}
#brand h1 {
  font-size: 20px;
  color: var(--font-color);
}
#brand h3 {
  font-size: 20px;
  font-weight: normal;
  color: #555; /* Couleur complémentaire pour le sous-titre */
}
#brand .icon {
  height: 42px;
  width: auto;
}

/* Header et Navigation */
header {
  position: sticky; /* Le header reste visible même en scrollant */
  top: 0; /* Positionné en haut de la page */
  left: 50%; /* Centré horizontalement */
  /*transform: translateX(-50%);  Centre correctement en tenant compte de la largeur */
  width: 100%; /* Utiliser toute la largeur de la page */
  max-width: 1200px; /* Limiter la largeur pour un centrage élégant */
  z-index: 1000; /* S'assure qu'il soit au-dessus des autres éléments */
  background-color: var(--secondary-color); /* Assurez-vous que l'arrière-plan est visible */
  /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  Ombre légère */
  /*padding: 10px 20px;  Espacement interne pour un rendu propre */
  border-radius: 8px; /* Coins arrondis pour un effet moderne */
}
header nav {
  display: flex;
  justify-content: center; /* Centre les éléments dans la navigation */
  gap: 15px; /* Espacement entre les liens */
}
header nav a {
  color: black; /* Les liens restent noirs */
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color var(--transition-duration), color var(--transition-duration);
}
header nav a:visited {
  color: black; /* Les liens visités restent noirs */
}
header nav a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Espace sous le header pour éviter que le contenu soit masqué */
body {
  /*padding-top: 80px;  Ajustez selon la hauteur du header */
}

/* Liens dans le contenu principal */
a {
  color: black; /* Les liens restent noirs */
  text-decoration: none;
  transition: color var(--transition-duration);
}
a:visited {
  color: black; /* Les liens visités restent noirs */
}
a:hover {
  color: black; /* Les liens restent noirs au survol */
}

/* Titres */
h1.title {
  margin: 1.3rem 0 0 0;
  font-size: 1.8rem;
  color: var(--font-color);
}
h3.subtitle {
  font-weight: normal;
  margin: 0;
  color: #777;
}

/* Métadonnées des articles */
div.post-meta {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: #555;
  display: none;
}

/* Listes */
#postsByDate {
  list-style: none;
  padding: 0;
}
#postsByDate .date {
  width: 60px;
  font-weight: bold;
  color: var(--font-color);
}
#postsByDate div, #postsInOneGroup div {
  display: inline-block;
}

/* Termes et étiquettes */
#terms {
  list-style: none;
  padding: 0;
}
#terms .term {
  background-color: var(--primary-color);
  color: white;
  border-radius: 10px;
  display: inline-block;
  margin: 2px;
  padding: 8px;
  font-size: 0.9rem;
  transition: background-color var(--transition-duration);
}
#terms .term:hover {
  background-color: darken(var(--primary-color), 10%);
}

/* Footer */
footer {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* Responsiveness pour les tablettes */
@media (min-width: 768px) {
  #root {
    margin-top: 25px;
  }
  #brand {
    flex-direction: row;
    text-align: unset;
  }
  #brand .text {
    margin-left: 10px;
  }
  #brand h1 {
    font-size: 45px;
  }
  #brand h3 {
    font-size: 25px;
  }
}
