/* ---------- MEDIATION ---------- */

.section-mediation {
  min-height: 100vh;
  box-sizing: border-box;
  background-color: var(--vertpale);
}

#mediation {
  min-height: 100vh;
}



/* ---------- CONTENEUR DES 3 BLOCS ---------- */

.mediation-container {
  width: 100%;
  min-height: 100vh;

  display: grid;
  grid-template-columns: 25% 50% 25%;

  color: var(--noir);
}


/* ---------- IMAGES DESKTOP ---------- */

.mediation-image {
  width: 100%;
  height: 100%;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.mediation-gauche {
  background-image: url("../images/mediation/mediation-gauche.jpg");
}

.mediation-droite {
  background-image: url("../images/mediation/mediation-droite.jpg");
}


/* ---------- BLOC CENTRAL ---------- */

.mediation-centre {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 5rem;
  display: flex;
  flex-direction: column;
}

.mediation-centre .titre-section {
  margin: 0;
  text-align: center;
}

.mediation-text {
  width: 100%;
  max-width: none;

  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  margin: 0;
  text-align: center;
}

.mediation-text p {
  font-size: 16pt;
  line-height: 1.9;
  margin: 0 0 1.6rem;

  color: var(--noir);
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 768px) {

  .section-mediation {
    min-height: auto;
    padding: 0;
  }

  .mediation-container {
    width: 100%;
    min-height: auto;

    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;

    gap: 0;
  }


  /* ---------- IMAGE DU HAUT ---------- */

  .mediation-gauche {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    aspect-ratio: 16 / 9;

    background-image: url("../images/mediation/mediation-haut-mobile.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }


  /* ---------- BLOC CENTRAL ---------- */

  .mediation-centre {
    grid-column: 1;
    grid-row: 2;

    width: 100%;
    min-width: 0;
    min-height: 50vh;

    box-sizing: border-box;

    padding: 3rem 0;

    display: flex;
    flex-direction: column;
  }


  /* ---------- TITRE ---------- */

  .mediation-centre .titre-section {
    width: 100%;
    margin: 0 0 2rem;

    text-align: center;
  }


  /* ---------- TEXTE ---------- */

  .mediation-text {
    width: 100%;
    max-width: none;

    flex: 1;

    box-sizing: border-box;

    padding: 0 1.5rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;

    margin: 0;

    text-align: center;
  }

  .mediation-text p {
    width: 100%;
    max-width: none;

    margin: 0 0 1.4rem;

    font-size: 14pt;
    line-height: 1.7;
    text-align: center;
  }


  /* ---------- IMAGE DU BAS ---------- */

  .mediation-droite {
    grid-column: 1;
    grid-row: 3;

    width: 100%;
    aspect-ratio: 16 / 9;

    background-image: url("../images/mediation/mediation-bas-mobile.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

}