* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Monserrat', 'Segoe UI', Arial, sans-serif;
}

body {
  background: #f8fdf9;
  color: #222;
  line-height: 1.6;
}

/* HEADER */
header {
  background: #0f2d3f;
  padding: 15px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  height: 100px;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  color: #6adf4c;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: slider 40s infinite;
  z-index: 1;
}

/* Voile sombre pour rendre le texte lisible */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 45, 63, 0.35);
  z-index: 2;
}

/* Texte devant */
.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* Animation slider */
@keyframes slider {
  0% {
    background-image: url("images/slide1.jpg");
  }
  33% {
    background-image: url("images/slide2.jpg");
  }
  44% {
    background-image: url("images/slide3.jpg");
  }
  66% {
    background-image: url("images/slide4.jpg");
  }
  100% {
    background-image: url("images/slide1.jpg");
  }
}

/* SECTIONS */
.section {
  padding: 60px 80px;
}

.section h1,
.section h2 {
  color: #0f2d3f;
  margin-bottom: 15px;
}

.section p {
  max-width: 900px;
}

/* BOUTONS */
.btn {
  background: #6adf4c;
  padding: 12px 30px;
  display: inline-block;
  margin-top: 20px;
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #58c93d;
}

/* CARTES */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: #6adf4c;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* LISTES (Formations) */
ul {
  margin-top: 15px;
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
}

/* FORMULAIRE */
form {
  max-width: 500px;
  margin-top: 20px;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  font-size: 16px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #6adf4c;
}

/* FOOTER */
footer {
  background: #0f2d3f;
  color: white;
  text-align: center;
  padding: 30px;
  margin-top: 60px;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 36px;
  }
}

/* ÉQUIPE */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.member-card {
  background: white;
  border-radius: 20px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.member-card:hover {
  transform: translateY(-8px);
}

.member-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #6adf4c;
  margin-bottom: 15px;
}

.member-card h3 {
  margin: 8px 0 4px;
  color: #0f2d3f;
}

.member-card span {
  color: #6adf4c;
  font-weight: 600;
}

/* MODAL MEMBRES */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: popup 0.3s ease;
}

.modal-content img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #6adf4c;
  margin-bottom: 15px;
}

.modal-content ul {
  text-align: left;
  margin-top: 15px;
}

.modal-content li {
  margin-bottom: 8px;
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

@keyframes popup {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* GALERIE MODERNE */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.bg-light {
  background: #f8f8f8;
}

.stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
}

.stat h3 {
  font-size: 40px;
  color: #6adf4c;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 15px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.cta {
  background: #0f2d3f;
  color: white;
  text-align: center;
}

.cta .btn {
  background: #6adf4c;
  color: white;
}


.bg-light {
  background: #f8f8f8;
}

.section p {
  max-width: 900px;
  line-height: 1.7;
}

.section h1, 
.section h2 {
  color: #0f2d3f;
}


.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-hero h1 {
  font-size: 40px;
}

.section p {
  max-width: 900px;
  line-height: 1.8;
}

.bg-light {
  background: #f8f9fa;
}

/* Cartes modernes */
.modern-cards .card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.modern-cards .card:hover {
  transform: translateY(-8px);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}


/* ANIMATION MODERNE AU SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animation légère sur l’image */
.about-grid img {
  transition: transform 0.6s ease;
}

.about-grid img:hover {
  transform: scale(1.03);
}

/* Animation élégante sur les cartes */
.modern-cards .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-cards .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* SERVICES MODERNES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #6adf4c;
  padding: 35px 25px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.service-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.service-card h3 {
  color: white;
  margin-bottom: 10px;
}

.service-card p {
  line-height: 1.6;
  color: white;
}

/* TYPOGRAPHIE MODERNE */
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #222;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: #0f2d3f;
}

/* Tailles modernes */
h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
}

h2 {
  font-size: 32px;
  font-weight: 600;
}

h3 {
  font-size: 22px;
  font-weight: 600;
}

p {
  font-size: 16px;
  max-width: 900px;
  font-family: 'Inter', sans-serif;
}

/* Boutons plus élégants */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ===== PAGE FORMATIONS MODERNE ===== */
.formations {
  padding: 60px 20px;
}

.formations .intro {
  max-width: 800px;
  margin-bottom: 40px;
  font-size: 17px;
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.formation-card {
  background: #6adf4c;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.formation-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: white;
}

.formation-card p {
  font-size: 15px;
  color: white;
}

.impact {
  margin-top: 40px;
  background: #f1f8f4;
  padding: 20px;
  border-left: 5px solid #2e8b57;
  border-radius: 10px;
}

/* ===== PAGE CONTACT MODERNE ===== */
.contact {
  padding: 60px 20px;
}

.contact-intro {
  max-width: 700px;
  margin-bottom: 40px;
  font-size: 17px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Cartes infos */
.contact-info {
  display: grid;
  gap: 20px;
}

.info-card {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.info-card h3 {
  margin-bottom: 8px;
}

/* Formulaire */
.contact-form {
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.contact-form h2 {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2e8b57;
}

/* Responsive téléphone */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

.info-card a {
  color: #2e8b57;
  text-decoration: none;
  font-weight: 600;
}

.info-card a:hover {
  text-decoration: underline;
}

/* TITRES DES SECTIONS GALERIE */
.gallery-title {
  margin-top: 50px;
  margin-bottom: 15px;
  color: #0f2d3f;
  font-size: 26px;
  position: relative;
}

.gallery-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #6adf4c;
  display: block;
  margin-top: 8px;
  border-radius: 5px;
}

/* Taille générale des textes */
body {
  font-size: 18px;   /* Avant : souvent 14 ou 16 */
  line-height: 1.8;
}

/* Titres plus visibles */
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
p  { font-size: 18px; }

/* Liens du menu plus lisibles */
nav a {
  font-size: 17px;
}

img {
  max-width: 100%;
  height: auto;
}

.section, header, footer {
  padding-left: 16px;
  padding-right: 16px;
}

.map{
  margin-top: 50px;
}

.map h2{
  margin-bottom: 15px;
}

.map-container {
  margin-top: 40px;
}

.map-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

section, .section, .container {
  max-width: 100%;
  overflow-x: hidden;
}

.map-responsive {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}