/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.text-green {
  color: #8dc63f;
}

body {
  background: #f5f5f5;
  color: #222;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
}

/* HERO */
.hero-image {
  width: 100%;
  height: 450px;
  background-image: url("../img/groupe.webp");
  background-size: cover;
  background-position: center -50px;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: 5rem;
}

.section {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

/* ============================= */
/* ======== QUI SOMMES-NOUS ==== */
/* ============================= */

.about-top {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

/* IMAGE (ancien CSS remis) */
.about-image {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  margin-top: 6.8rem;
}

.about-image img.about-logo {
  width: 130%;
  max-width: none;
  height: 400px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.about-bottom {
  margin-bottom: 3rem;
}

.about-bottom p {
  font-size: 1.2rem;
  line-height: 1.9;
}

/* ============================= */
/* ========= MEMBRES =========== */
/* ============================= */

.team-area {
  margin-top: 2rem;
}

.team-title {
  text-align: center;
  font-size: 3.2rem;
}

.team-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 1.5rem;
}

.team-wrapper {
  position: relative;
  padding: 1.5rem 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.team-slider {
  display: flex;
  gap: 2rem;
  padding: 0 1rem 0.5rem;
  width: max-content;
}

.member-card {
  flex: 0 0 300px;
  background: white;
  padding: 1.5rem;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.member-photo {
  width: 170px;
  height: 170px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 5px solid #8dc63f;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-size: 1.6rem;
  font-weight: 700;
}

.member-role {
  font-size: 1.1rem;
  color: #8dc63f;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.member-since {
  font-size: 1rem;
  color: #444;
}

/* ============================= */
/* ======== PROJETS ============ */
/* ============================= */

.projects-section {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 4rem;
}

.projects-image {
  flex: 0 0 40%;
  border-radius: 18px;
  overflow: hidden;
}

.projects-image img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.projects-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.projects-header h2 {
  font-size: 3rem;
  margin-bottom: 0.4rem;
}

.projects-header p {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.projects-list {
  display: grid;
  gap: 1rem;
}

.project-card {
  padding: 1.1rem 1.2rem;
  background: #f8f8f8;
  border-left: 4px solid #8dc63f;
  border-radius: 10px;
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.project-card p {
  font-size: 0.98rem;
  color: #444;
}

/* ============================= */
/* ========== RESPONSIVE ======= */
/* ============================= */

@media (max-width: 900px) {
  .about-top {
    flex-direction: column-reverse;
  }

  .about-image {
    margin-top: 1.5rem;
    flex: auto;
    /* Reset flex */
    width: 100%;
  }

  .about-image img.about-logo {
    width: 100%;
    /* Ajustement pour mobile */
    height: auto;
    max-height: 400px;
  }

  .projects-section {
    flex-direction: column;
  }

  .projects-image {
    width: 100%;
    max-height: 260px;
    flex: auto;
  }
}

@media (max-width: 600px) {
  .hero-image {
    height: 300px;
    background-position: center;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .about-text h2,
  .team-title,
  .projects-header h2 {
    font-size: 2.4rem;
  }

  .about-text p,
  .about-bottom p {
    font-size: 1rem;
  }

  .member-card {
    flex: 0 0 260px;
    /* Carte plus petite sur mobile */
  }
}

/* Amélioration du slider équipe */
.team-wrapper {
  /* ... existant ... */
  scroll-snap-type: x mandatory;
}

.member-card {
  /* ... existant ... */
  scroll-snap-align: center;
}
