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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #f8f8f8;
  line-height: 1.5;
}

/* CONTAINERS */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* NAVIGATION */
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: none;
  color: #333;
}

/* MENU PRINCIPAL */
/* MENU PRINCIPAL */
.nav-menu {
  list-style: none;
  display: flex; /* Par défaut, horizontal */
  gap: 1rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s;
  border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: #eaeaea;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Cache le menu sur mobile */
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, #4e9dea 0%, #5ac285 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 
     Si vous souhaitez une image de fond, décommentez ci-dessous
     background: url('images/hero-bg.jpg') no-repeat center center/cover; 
     Et mettez un overlay coloré, par exemple:
     background-color: rgba(0, 0, 0, 0.3);
  */
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 800px;
  padding: 2rem;
  margin: 0 auto;      /* Centre horizontalement */
  text-align: center;  /* Centre le texte */
}


.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background: #008cba;
  color: #fff;
  padding: 1rem 2rem; /* Augmente la taille avec un padding plus grand */
  text-decoration: none;
  border-radius: 4px;
    margin-top: 1rem;

  transition: background 0.3s;
  font-weight: 600;
}

.btn:hover {
  background: #006f95;
}

.btn-secondary {
  display: inline-block;
  background: #555;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
  margin-top: 1rem;
  font-weight: 500;
}

.btn-secondary:hover {
  background: #333;
}

/* INTRO SECTION */
.intro-section {
  margin-top:50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.intro-content {
  flex: 1 1 45%;
  margin-bottom: 1rem;
}

.intro-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.intro-content p {
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
}

.intro-image {
  flex: 1 1 45%;
  text-align: center;
}

.intro-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  object-fit: cover;
}

/* BOOKS TEASER */
.books-teaser {
  text-align: center;
  padding: 2rem 0;
}

.books-teaser h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.books-teaser p {
  margin-bottom: 2rem;
  font-weight: 300;
}

.books-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.books-section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.books-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.book-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
    max-width: 900px; /* Réduit la largeur du bloc */

}

.book-card:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.book-cover {
  width: 120px;
  height: auto;
  border-radius: 5px;
}

.book-info h2 {
  margin: 0 0 20px;
}

.book-info p {
  margin: 0 0 50px;
  font-size: 14px;
  line-height: 1.5;
}


.btn:hover {
  background-color: #0056b3;
}

.btn-disabled {
  display: inline-block;
  padding: 8px 15px;
  background-color: #ccc;
  color: #666;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: not-allowed;
}
.book-item {
  width: 200px;
}

.book-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.book-item h3 {
  font-weight: 500;
  font-size: 1rem;
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

.cta-section .cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cta-section p {
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* FOOTER */
.footer {
  background-color: #222;
  color: #ccc;
  padding: 1rem 0;
  text-align: center;
  margin-top: 2rem;
}
/* SUB-HERO (pour les pages secondaires) */
.sub-hero {
  position: relative;
  width: 100%;
  height: 20vh;
  background: linear-gradient(135deg, #4e9dea 0%, #5ac285 100%);
  margin-bottom: 2rem;
}

/* L'overlay occupe tout l'espace et gère le centrage du contenu */
.sub-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%;
  display: flex;              /* Flexbox */
  align-items: center;        /* Centre verticalement le contenu */
  justify-content: center;    /* Centre horizontalement */
}

.sub-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

/* ABOUT SECTION */


.about-content p {
  margin-bottom: 1rem;
  font-weight: 300;
}

/* BOOKS SECTION */
.books-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre horizontalement */
  justify-content: center; /* Centre verticalement si nécessaire */
  padding: 20px;
}

.books-list {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre les blocs à l'intérieur */
  gap: 20px; /* Espacement entre les blocs */
}

.books-list2 {
  display: flex;
  align-items: center; /* Centre verticalement */
  justify-content: center; /* Centre horizontalement */
  gap: 20px; /* Espacement entre les blocs */
  margin-bottom:30px;
}


.book-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.book-card img {
  width: 200px;
  display: block;
}

.book-info {
  padding: 1rem;
}

.book-info h2 {
  margin-bottom: 0.5rem;
}

.book-info p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  margin-top: 30px;
}

.contact-section {
  display: flex; /* Active Flexbox */
  flex-direction: column; /* Organise les éléments en colonne */
  align-items: center; /* Centre horizontalement */
  justify-content: center; /* Centre verticalement */
  background-color: #f8f8f8;
}

/* TITRE */
.contact-section h1 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #007BFF;
}

/* PARAGRAPHE */
.contact-section p {
  max-width: 600px; /* Largeur maximale du texte */
  text-align: center; /* Centre le texte */
  margin-bottom:30px;
}

/* FORMULAIRE */
.contact-form {
  width: 100%;
  max-width: 500px; /* Limite la largeur du formulaire */
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* CHAMPS */
.contact-form label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* BOUTON */
.contact-form button {
  padding: 10px 15px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
    font-size: 1.1rem; /* Taille de texte plus grande */

}

.contact-form button:hover {
  background-color: #0056b3;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-form {
    padding: 15px;
  }

  .contact-section h1 {
    font-size: 1.8rem;
  }
}


/* MEDIA QUERIES */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .intro-section {
    flex-direction: column;
  }

  .intro-content, .intro-image {
    flex: 1 1 100%;
    margin-bottom: 1.5rem;
  }

  .books-list {
    flex-direction: column;
    align-items: center;
  }

}
.form-message {
  margin: 20px 0;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}
