/* Base styles and variables */
:root {
  --color-primary: #c1e1c1;      /* Vert pastel principal */
  --color-accent: #8bc34a;       /* Vert accent (boutons, éléments mis en avant) */
  --color-text: #333333;
  --color-bg: #ffffff;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  padding-top: 70px; /* Espace pour compenser la nav fixe en haut */
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  z-index: 1000;
}
.navbar .logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.navbar .nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.navbar .nav-links li {
  display: inline;
}
.navbar .nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 0.3rem;
}
.navbar .nav-links a:hover {
  background: var(--color-primary);
}

/* Header banner section */
.header-banner {
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  position: relative;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
}
.header-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4); /* Overlay sombre pour lisibilité du texte */
}
.banner-text {
  position: relative;
  z-index: 1;
}
.header-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.header-banner p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.header-banner .btn {
  font-size: 1.1rem;
  padding: 0.7rem 1.5rem;
}

/* Container utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Section headings and text */
section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
section p {
  margin-bottom: 1rem;
}

/* How it works steps (Accueil) */
.how-it-works .steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
  margin-top: 1.5rem;
}
.how-it-works .step {
  flex: 1 1 30%;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 0.5rem;
}
.how-it-works .step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.how-it-works .step p {
  font-size: 1rem;
}

/* Audience cards (Accueil) */
.audience-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}
.audience-card {
  flex: 1 1 300px;
  background: #f9f9f9;
  padding: 2rem 1rem;
  border-radius: 0.5rem;
}
.audience-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.audience-card p {
  margin-bottom: 1rem;
}
.audience-card .btn {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

/* Buttons (CTA) */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 0.3rem;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
}
.btn:hover {
  background: #7cb342; /* Vert légèrement plus foncé au survol */
}

/* Toggle buttons for Contact page */
.contact-choice {
  text-align: center;
  margin: 1rem 0;
}
.toggle-btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 0.3rem;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  background: #cccccc;
  color: #333333;
  margin: 0 0.5rem;
}
.toggle-btn:hover {
  background: #7cb342;
  color: #ffffff;
}
.toggle-btn.active {
  background: var(--color-accent);
  color: #ffffff;
}

/* Contact form styles */
.contact-form {
  display: none;
  margin-top: 1rem;
}
.contact-form h3 {
  margin-bottom: 1rem;
}
.contact-form form {
  max-width: 500px;
}
.contact-form label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #cccccc;
  border-radius: 0.3rem;
  font: inherit;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form button {
  /* .btn styles will apply (since class="btn") */
}

/* Scroll reveal effect classes */
.hidden {
  opacity: 0;
  transform: translateY(30px);
}
.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Footer */
footer {
  text-align: center;
  background: #f5f5f5;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media(max-width: 768px) {
  .header-banner h1 {
    font-size: 2rem;
  }
  .header-banner p {
    font-size: 1rem;
  }
  .how-it-works .steps {
    flex-direction: column;
  }
  .how-it-works .step {
    flex: 1 1 100%;
  }
  .audience-cards {
    flex-direction: column;
  }
  .audience-card {
    flex: 1 1 100%;
  }
  /* Les liens de navigation se répartissent sur plusieurs lignes si nécessaire */
}
