/* Reset de base */
body, h1, h2, h3, p, ul, li, a {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", serif;
  line-height: 1.6;
  color: #333333; /* Gris anthracite */
  background-color: #FAFAFA; /* Blanc cassé */
}
html, body {
    height: 100%;  /* Assurez-vous que html et body prennent toute la hauteur */
    margin: 0;     /* Enlever les marges par défaut */
}

body {
    display: flex;
    flex-direction: column;  /* Arrange les éléments en colonne (header, main, footer) */
}

main {
    flex: 1;  /* Ce code assure que le main prend tout l'espace restant */
}

/* Header */
header {
  background: #002B5B; /* Bleu marine */
  color: #C5A880; /* Doré élégant */
  padding: 2vh 2vw;
  text-align: center;
}

header .logo h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: #FFD700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

header nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5vw;
  list-style: none;
}

header nav ul li a {
  color: #C5A880;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

header nav ul li a:hover {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

nav {
    background-color: #f4f4f4;
    padding: 1% 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 1.5%;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #007BFF;
}

#sidebar {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #C5A880;
  border-radius: 1rem;
  padding: 2vw;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

#sidebar h2.sidebar-titre {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #002B5B;
}



/* Disposition principale */
.content {
  display: flex;
  flex-direction: column; /* Par défaut, la sidebar est en bas */
  gap: 2vw; /* Espacement flexible */
}

/* Quand l'écran est assez large */
@media (min-width: 768px) {
  .content {
    flex-direction: row; /* Sidebar déplacée à côté des articles */
  }

  #articles {
    flex: 3; /* La section des articles prend plus d'espace */
  }

  #sidebar {
    flex: 1; /* La sidebar prend moins de place */
  }
}

/* Style de la sidebar */
#sidebar {
  background-color: #FFFFFF; /* Fond blanc */
  background-image: url('https://www.transparenttextures.com/patterns/white-sand.png'); /* Motif léger en arrière-plan */
  background-repeat: repeat; /* Répétition du motif */
  border-radius: 1rem;
  padding: 2vw;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1); /* Ombre légère */
  border: 1px solid #C5A880; /* Bordure dorée subtile */
  margin-top: 2rem; /* Marge du haut */
}

/* Titre de la sidebar */
#sidebar h2.sidebar-titre {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: #002B5B;
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: 2px solid #C5A880;
  padding-bottom: 0.5rem;
}

/* Liste des éléments de la sidebar */
#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar ul li {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem; /* Espace pour les icônes si nécessaire */
}

#sidebar ul li a {
  color: #002B5B; /* Bleu profond pour les liens */
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

#sidebar ul li a:hover {
  background-color: #FFD700; /* Jaune doré au survol */
  color: #002B5B; /* Maintien du texte bleu foncé */
}

#sidebar ul li a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  width: 10px;
  height: 10px;
  background-color: #FFD700; /* Icône cercle doré */
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#sidebar ul li a:hover::after {
  opacity: 1; /* L'icône devient visible au survol */
}