/* style.css - Michel Bussi - Site non officiel */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
  padding: 0 20px;
}

header {
  text-align: center;
  padding: 30px 0 20px;
}

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

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  color: #004080;
  font-weight: bold;
}

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

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  padding-bottom: 60px;
}

/* Centrer les titres et boutons dans les pages livres */
main h1,
main h2,
main .cta {
  text-align: center;
}

/* Bouton principal */
.cta {
  display: inline-block;
  background-color: #004080;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  margin: 20px 0;
}

.cta:hover {
  background-color: #0060c0;
}

/* Dernier roman */
.nouveaute img {
  max-width: 220px;
  height: auto;
  margin: 20px 0;
}

/* Carrousel */
.carousel-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.carousel-container img {
  width: 100px;
  height: auto;
  transition: transform 0.2s ease-in-out;
}

.carousel-container a:hover img {
  transform: scale(1.05);
}

/* Page individuelle livre */
.livre-presentation {
  max-width: 600px;
  width: 100%;
}

.livre-presentation img {
  max-width: 250px;
  width: 100%;
  height: auto;
  margin: 20px auto;
  display: block;
}

.livre-presentation p {
  margin: 15px 0;
  text-align: justify;
}

footer {
  text-align: center;
  font-size: 0.9em;
  padding: 20px;
  background-color: #f7f7f7;
  color: #777;
  border-top: 1px solid #ccc;
  margin-top: 40px;
}