/* ============================
   Section Présentation
   ============================ */
.presentation {
  background: url('../images/fond.png') center center / cover no-repeat;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #764B36;
  position: relative;
  min-height: calc(var(--vh, 1vh) * 100);
  width: 100%;
}

.presentation::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 1;
  pointer-events: none;
}

.presentation h1 {
  font-weight: 400;
  font-size: 3rem;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.presentation span {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.presentation .btn {
  position: relative;
  z-index: 2;
  margin-top: 30px;
}

/* ============================
   Section Objectifs
   ============================ */
.objectifs {
  background-color: #ffffff;
  color: #764B36;
  text-align: center;
  padding: 50px 20px;
}

.objectifs .categories {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: 10px;
  background-color: #ffffff;
}

.objectifs .category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  padding: 0;
  text-align: center;
  max-width: 250px;
}

.objectifs .category img {
  height: 350px;
  width: auto;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0;
}

.objectifs .category p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  max-width: 300px;
}

/* ============================
   Section Patientèle
   ============================ */
.patientele {
  background-color: #E8DED1;
  text-align: center;
  padding: 60px 20px;
  color: #764B36;
}

.patientele h1 {
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 40px;
}

.patientele .categories {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.patientele .categories div {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 20px;
}

.patientele .categories div:not(:last-child)::after {
  content: "";
  display: block;
  width: 1px;
  height: 20px;
  background-color: #764B36;
  opacity: 0.3;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.patientele .btn {
  margin-top: 50px;
}

/* ============================
   Section Prendre un rendez-vous
   ============================ */
.rdv {
  background-color: #ffffff;
  color: #764B36;
  padding: 120px 20px 80px;
  /* padding vertical et horizontal */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* prend toute la largeur */
  box-sizing: border-box;
}

.rdv h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 400;
}


.rdv .btn {
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  background-color: #764B36;
  color: #ffffff;
  transition: background-color 0.3s;
}

.rdv .btn:hover {
  background-color: #5e3c2b;
}

/* Responsive Mobile/Tablette */
@media (max-width: 768px) {
  .rdv {
    padding-top: 60px;
    /* réduit l'espace au-dessus */
    padding-bottom: 60px;
    /* tu peux ajuster aussi le bas si besoin */
  }
}


.rdv h1 {
  font-weight: 400;
  font-size: 2rem;
}

.rdv .btn {
  font-size: 0.95rem;
  padding: 10px 25px;
}



.rdv .btn:hover {
  background-color: #5e3c2b;
}

/* ============================
   Responsive (Mobile/Tablette)
   ============================ */
@media (max-width: 768px) {
    .presentation {
    min-height: calc(100vh - var(--header-height, 100px)) !important;
    padding-top: calc(var(--vh, 1vh) * 100 + env(safe-area-inset-top));
    
  }

  .presentation h1 {
    font-size: 2rem;
  }

  .objectifs .categories,
  .patientele .categories {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  .objectifs .category {
    max-width: 100%;
  }

  .objectifs .category img {
    height: 250px;
  }

  .categories div {
    padding: 0;
  }

  .rdv {
    padding-top: 0 !important;
    /* JS ajoutera la bonne valeur */
    margin-top: 0 !important;
    padding: 100px 15px 60px;
  }

  .rdv h1 {
    font-size: 2rem;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .rdv .btn {
    font-size: 0.95rem;
    padding: 10px 25px;
  }
}

/* ============================
   Harmonisation du h1
   ============================ */
.patientele h1,
.rdv h1 {
  font-weight: 400;          /* même poids que le span */
  font-size: 1.4rem;         /* même taille que le span */
  margin-bottom: 20px;       /* espace après le titre */
  text-align: center;        /* centré comme le span */
}


/* ============================
   Corrections Mobile
   ============================ */
@media (max-width: 768px) {
  /* Supprimer l’espace en haut des sections Présentation et Objectifs */
  .objectifs {
    padding-top: 0 !important;
  }

  /* Retirer les traits dans Patientèle */
  .patientele .categories div:not(:last-child)::after {
    display: none !important;
  }

  /* Patientèle : petit espace de 10px au-dessus */
  .patientele {
    padding-top: env(safe-area-inset-top, 0) !important;
  }
}

