body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #fdfaf6;
  color: #1a1a1a;
}
header {
  background-image: url('/assets/img/Image_fond.png');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 30px 20px;
  position: relative;
}
header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}
header > * {
  position: relative;
  z-index: 1;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo img {
  max-width: 80px;
  height: auto;
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: white;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
nav ul li a:hover {
  background-color: #f57c00;
}
.hero {
  background-color: #0b1c2c;
  color: white;
  text-align: center;
  padding: 1rem 1rem;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.hero input {
  padding: 0.6rem;
  width: 50%;
  max-width: 400px;
  border: none;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.hero button {
  background-color: #f57c00;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.hero button:hover {
  background-color: #c75c1d;
}
.section {
  text-align: center; /* Centre le titre et les cards */
}
.cards {
display: flex;
flex-wrap: wrap;
justify-content: center; /* Centre les cards horizontalement */
gap: 20px; /* Espacement entre les cards */
margin-top: 20px;
}
.card {
width: 140px;   /* Taille carrée plus petite */
height: 120px;  /* Même valeur pour carré */
display: flex;
align-items: center;
justify-content: center;
background-color: #f5f5f5; /* Couleur de fond légère */
border-radius: 8px; /* Coins légèrement arrondis */
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
transition: transform 0.2s ease;
}
.card:hover {
transform: scale(1.05); /* Petit effet au survol */
}
.card a {
text-decoration: none;
color: #333;
font-size: 14px; /* Texte plus petit */
text-align: center;
}




.button {
  background-color: #f57c00;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.5rem;
  font-weight: bold;
}
.library-image {
  text-align: center;
  margin-top: 2rem;
}
.library-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.caption {
  font-style: italic;
  color: #555;
  margin-top: 0.5rem;
}
.footer {
  background-color: #0b1c2c;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.4rem;
  }
  .hero input {
    width: 90%;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
}