main {
  background-color: var(--color-off-white);
  padding: 40px 20px;
}

/* **************** Section 1 (texte d'introduction) -*********************************** */

.common-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 30px; /* Gère l'espace entre le texte et l'image proprement sans margin fixes */
  padding-bottom: 10px;
  margin-bottom: 30px;
}

#offset-container {
  padding-top: 100px; /* permet le padding avant le texte et l'image*/
}

.text-container {
  flex: 1; /* Permet au texte de prendre l'espace disponible */
  max-width: 50%;
}

.image-container {
  flex: 1; /* Permet à l'image de prendre le même espace disponible */
  max-width: 600px; /* Limite la taille de l'image sur grand écran */
}

/* Règle d'or pour les images responsives */
.image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Optionnel : adoucit les angles de votre image */
}
/****************** Responsive Section Introduction*************/

/* --- Adaptations Écrans Tablettes et Mobiles --- */
@media (max-width: 992px) {
  .common-container {
    flex-direction: column; /* Aligne le texte et l'image verticalement */
    text-align: center; /* Centre le texte sur petit écran (optionnel mais plus esthétique) */
    gap: 30px;
  }
  /*#offset-container {
    padding-top: 0px; 
  }*/
  .image-container {
    width: 100%; /* L'image s'adapte à la largeur du téléphone */
    max-width: 450px; /* Évite qu'elle ne devienne immense sur tablette */
  }
  .text-container {
    max-width: 90%;
  }
  .text-container p {
    /* font-size: var(--fs-16); */
    text-align: start;
  }
}

@media (max-width: 720px) {
  #offset-container {
    margin-top: 30px;
  }
}

@media (max-width: 420px) {
  .common-container {
    margin-bottom: 20px;
    max-height: fit-content;
  }
}
/*-------------------- Fin Responsive section Introduction----------------------*/

/**********************Section N°2 (les différentes activités cyclistes avec 2 cartes)*********************************/

.white-section {
  background-color: var(--color-off-white);
  padding: 40px 20px;
}
#activtes {
  margin-bottom: 20px;
}
.mainOne-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Conteneur des cartes */
.carte-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 100px;
  margin-bottom: 100px;
}

/* Carte */
.carte {
  flex: 1 1 380px;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: start;
  background: white;
  /*margin-bottom: 100px;*/
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Titres */
.carte h3 {
  /*color: var(--color-blue);*/
  margin-bottom: 10px;
  /* font-size: var(--fs-26); */
  padding-left: 15px;
}

/* Texte */
.carte p {
  margin-bottom: 20px;
  line-height: 1.5;
  padding-left: 15px;
}

/* Images */
.carte img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}
.carte a {
  padding-left: 15px;
  text-decoration: none;
  font-size: var(--font-p);
  line-height: var(--lh-body);
  margin-bottom: 1rem;
  color: var(--color-text);
}

/****************** Responsive Section 2*************/

@media (max-width: 992px) {
  .carte-container {
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .carte {
    margin-bottom: 50px;
    max-height: fit-content;
  }
}

@media (max-width: 850px) {
  .carte-container {
    gap: 10px;
  }

  .carte {
    max-width: fit-content;
    margin-bottom: 20px;
  }
}

@media (max-width: 470px) {
  .white-section {
    padding: 20px 10px;
  }
  .carte {
    margin-bottom: 10px;
  }
}
