/* Partie navigation */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  width: 90%;
  margin: auto;
}

nav {
  background-color: #70a6aa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 250px;
  margin-bottom: 60px;
}

.round {
  border-radius: 50%;
  width: 200px;
}

.logo {
  max-width: 50%;
  height: auto;
}

/* Ajout effet texte h2 dans bannière */
.repEduc {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff6ec4, #7873f5, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 2px;
  margin: 2rem 0;
  text-align: center;
}

.reste {
  width: 70%;
  display: flex;
  font-family: 'Roboto', sans-serif;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-right: 10%;
}

.reste h1 {
  font-size: 4em;
  margin-bottom: 0px;
  margin-top: 0px;
}

.reste button {
  width: 120px;
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  border: 2px solid;
}

/* Bouttons de navigation*/
.boutons-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.bouton-nav {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: #333;
  text-decoration: none;
  border: 2px solid #333;
  border-radius: 5px; 
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease; 
}

.bouton-nav:hover {
  background-color: #333; 
  color: #fff;
}

/* Partie images côte à côte */
.images-container {
  display: flex;
  justify-content: center; /* Centre les deux blocs s'il y a de l'espace restant */
  align-items: flex-start; /* Aligne les images vers le haut, ou change pour stretch si tu veux qu'elles fassent la même hauteur max */
  gap: 20px; /* Ajoute un espace propre entre les deux images */
  margin-bottom: 30px;
}

.image-container {
  width: 48%; /* Chaque image prend presque la moitié de la place. Laisser 48% permet d'avoir du gap sans déborder */
  display: flex;
  justify-content: center;
  background-color: #7f8c8d;
  /* Supprimer la hauteur fixe (height: 800px;) permet à la div de s'adapter à la taille de l'image */
  padding: 15px; /* Optionnel : un peu d'espace autour de l'image à l'intérieur de sa div grise */
  box-sizing: border-box; /* Assure que le padding ne s'ajoute pas à la largeur de 48% */
}

.image-container img {
  width: 100%; /* L'image remplit la largeur de son conteneur (.image-container) */
  height: auto; /* Conserve les proportions de l'image */
  object-fit: cover;
}

.images-container-tiny {
  display: none;
  margin-bottom: 50px;
}

/* Partie historique */
.container-historique {
  margin: 0 auto;
  background-color: #e8f5e8;
  padding: 40px;
  margin-bottom: 50px;
}

.header {
  margin-bottom: 50px;
}

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

.header p {
  font-size: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.card {
  background-color: transparent;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.icon {
  width: 32px;
  height: 32px;
  border: 2px solid #34495e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
  color: #34495e;
  font-style: italic;
}

.card h2 {
  font-size: 1.25rem;
  color: #2c3e50;
  font-weight: 600;
}

.card-content {
  font-size: 1.5rem;
  padding-left: 47px;
  color: #4a5568;
  line-height: 1.6;
}

.card-content p {
  margin-bottom: 10px;
}

.card-content ul {
  list-style: none;
  padding-left: 0;
}

.card-content li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.card-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #34495e;
  font-weight: bold;
}

/* Partie footer */
.footer {
  background-color: white;
  padding: 40px;
  margin-top: 40px;
  border-radius: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #2c3e50;
}

.footer-section p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 8px;
}

.facebook-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facebook-icon {
  width: 24px;
  height: 24px;
}

/* Style de la map Google */
.gmapStyle {
  width: 600px;
  height: 450px;
  border: 0;
}

/* --- MEDIA QUERIES --- */

@media (max-width: 968px) {
  .repEduc {
    font-size: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    padding: 30px 20px;
  }
  
  .container-historique {
    padding: 30px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .bottom-row {
    grid-template-columns: 1fr;
  }
  
  .gmapStyle {
    height: 335px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container-historique {
    padding: 20px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .card h2 {
    font-size: 1.1rem;
  }

  .card-content {
    padding-left: 0;
    margin-top: 10px;
  }

  .icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .gmapStyle {
    height: 335px;
    width: 100%;
  }
}

@media screen and (max-width: 1000px) {
  .images-container {
    display: none;
  }

  * {
    box-sizing: border-box;
  }

  .images-container-tiny {
    display: block;
    background-color: #7f8c8d;
    padding: 20px;
  }

  /* Slideshow container */
  .slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    display: block;
  }

  .mySlides {
    display: none;
  }

  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
  }

  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }

  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }

  .text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
  }

  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }

  .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  }

  .active,
  .dot:hover {
    background-color: #717171;
  }

  .fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }

  @keyframes fade {
    from { opacity: .4 }
    to { opacity: 1 }
  }
  
  .gmapStyle {
    height: 335px;
    width: 100%;
  }
} /* <-- C'est cette accolade qui manquait ! */

@media screen and (max-width: 768px) {
  .logoSmall {
    width: 80px;
    height: 80px;
  }
  
  .reste {
    padding-right: 0%;
  }

  .round {
    width: 150px;
  }
  
  .gmapStyle {
    height: 335px;
    width: 100%;
  }
}