/* --- Reset de base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Body et flex layout pour footer --- */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  background-color: #f5f6fa;
  color: #333;
}

/* --- Contenu principal qui pousse le footer --- */
main, section#intro, section#sources, section#about, section#about-main {
  flex: 1;
}

/* --- Container --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* --- Header --- */
header {
  background-color: #2f3640;
  color: #f5f6fa;
  padding: 2rem 0;
  text-align: center;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  color: #dcdde1;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

header nav ul li {
  margin: 0 1rem;
}

header nav ul li a {
  color: #f5f6fa;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #00a8ff;
}

/* --- Sections --- */
section {
  padding: 4rem 0;
}

/* Section Intro */
#intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2f3640;
  text-align: center;
}

#intro p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  text-align: center;
  color: #555;
}

/* Section Sources */
#sources h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2f3640;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.source-item {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  padding: 2rem;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.source-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.source-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2f3640;
}

.source-item p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background-color: #00a8ff;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0097e6;
}

/* Section About */
#about, #about-main {
  background-color: #f5f6fa;
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
}

#about h2, #about-main h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#about p, #about-main p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

/* --- Toolbar animée améliorée --- */
.toolbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.toolbar ul li a {
  text-decoration: none;
  color: #fff; /* texte clair visible par défaut */
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  background-color: #012030; /* fond solide pour contraste */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* ombre légère */
}

.toolbar ul li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fff; /* trait souligné blanc */
  transition: width 0.3s ease;
}

.toolbar ul li a:hover::after {
  width: 100%;
}

.toolbar ul li a:hover {
  background-color: #0097e6; /* fond un peu plus foncé au hover */
  color: #fff; /* texte toujours blanc */
}

/* Footer */
footer {
  background-color: #2f3640;
  color: #f5f6fa;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

footer p {
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .source-list {
    flex-direction: column;
    align-items: center;
  }

  header nav ul, .toolbar ul {
    flex-direction: column;
  }

  header nav ul li, .toolbar ul li {
    margin: 0.5rem 0;
  }
}
/* --- Dropdown menu --- */
.dropdown {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
}

.dropbtn {
  background-color: #012030;
  color: #fff;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.dropbtn:hover {
  background-color: #0097e6;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f5f6fa;
  min-width: 180px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 1000;
  overflow: hidden;
  top: 100%;
}

.dropdown-content a {
  color: #2f3640;
  padding: 0.8rem 1rem;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #00a8ff;
  color: #fff;
}

/* Afficher le menu au hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Animation d’apparition douce */
.dropdown-content {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  transform: translateY(0);
}
