/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@300;400;600&family=Open+Sans:wght@400;600&display=swap');

:root {
  --vert-foret: #66228C;
  --vert-clair: #E92632;
  --vert: #79C62B;
  --bleu-eau: #03ABEB;
  --bleu-ciel: #4FC3F7;
  --jaune-solaire: #F9D107;
  --blanc: #FFFFFF;
  --gris-clair: #F5F7FA;
  --gris-fonce: #333333;
  --ombre: 0 4px 12px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--gris-fonce);
  background: var(--blanc);
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--vert);
}

a {
  color: var(--bleu-eau);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--jaune-solaire);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background: var(--vert-foret);
  color: var(--blanc);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--or);
}

.logo img {
  height: 50px;
}

.logo span {
  color: var(--blanc);
  font-size: 1rem;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  flex-wrap: wrap;
}

nav ul li a {
  color: var(--blanc);
  font-weight: 600;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
}

nav ul li a:hover,
nav ul li a.active {
  border-bottom-color: var(--jaune-solaire);
  color: var(--jaune-solaire);
}

/* Burger menu mobile */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background: var(--blanc);
  margin: 3px 0;
  transition: 0.4s;
}

@media (max-width: 992px) {
  .burger {
    display: flex;
  }
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--vert-foret);
    padding: 1rem;
  }
  nav ul.show {
    display: flex;
  }
}

/* Footer */
footer {
  background: var(--gris-fonce);
  color: var(--blanc);
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

footer a {
  color: var(--jaune-solaire);
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Montserrat', sans-serif;
}

.btn-primaire {
  background: var(--bleu-eau);
  color: var(--blanc);
}

.btn-primaire:hover {
  background: var(--vert-clair);
  transform: translateY(-2px);
}

.btn-secondaire {
  background: var(--bleu-eau);
  color: var(--blanc);
}

.btn-secondaire:hover {
  background: var(--vert-clair);
  transform: translateY(-2px);
}

.btn-jaune {
  background: var(--jaune-solaire);
  color: var(--gris-fonce);
}

.btn-jaune:hover {
  background: var(--vert-clair);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--vert-foret);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--jaune-solaire);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.hero .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cartes */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--blanc);
  border-radius: 15px;
  box-shadow: var(--ombre);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--vert);
}

.card-body p {
  color: #555;
  margin-bottom: 1rem;
}

/* Chiffres clés */
.chiffres-cles {
  background: var(--gris-clair);
  padding: 3rem 0;
}

.chiffres-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
}

.chiffre-item h3 {
  font-size: 2.5rem;
  color: var(--vert);
}

/* Timeline parcours */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--vert);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  background: var(--blanc);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--ombre);
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--jaune-solaire);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    flex-direction: column !important;
    padding-left: 50px;
  }
  .timeline-content {
    width: 100%;
  }
  .timeline-marker {
    left: 20px;
  }
}

/* Filtres */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filters select, .filters button {
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  border: 2px solid var(--vert);
  background: var(--blanc);
  color: var(--vert-foret);
  font-weight: 600;
}

/* Formulaire */
form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--gris-clair);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--ombre);
}

form input, form textarea, form select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
}

form button {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.1rem;
}

/* Grilles */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Partenaires */
.partners-grid img {
  height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: var(--transition);
}

.partners-grid img:hover {
  filter: none;
}

/* Utilitaires */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
