/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  padding-bottom: 80px;
}

header {
  background-color: #222;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

main {
  padding: 20px;
}

section {
  margin-bottom: 40px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #444;
}

/* Carrousel */
.carrousel-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px;
  scroll-snap-type: x mandatory;
  justify-content: center; /* Ajouté pour centrer */
}

.carrousel-container .livre {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: center;
  text-align: center;
}

.carrousel-container img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Grille */
.grille-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.grille-container .livre {
  width: 150px;
  text-align: center;
}

.grille-container img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Boutons Amazon */
.amazon-button {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  background-color: #ff9900;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.amazon-button:hover {
  background-color: #cc7a00;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 12px 0;
  font-size: 0.8rem;
}