/* prestations réparations*/

.prestations {
    background-color: white;
    padding: 80px;
}

.prestations h2 {
    color: #242424;
    text-align: center;
    margin: 0 0 40px;
}

.prestations div {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    margin-bottom: 0;
}

.prestations h2#services {
    margin-top: 80px;
}

/* menu prestations, survol image avec titre */

.prestations div a {
    position: relative;
    display: block;
}

.prestations div a img {
    width: 326px;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.20);
}

.prestations div a span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background-color: white;
    color: #242424;
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prestations div a:hover img {
    opacity: 0;
}

.prestations div a:hover span {
    opacity: 1;
}
    

/* introduction */

.reparation-introduction h2 {
  text-align: left;
  margin-bottom: 20px;
  margin-top: 40px;
}

.reparation-introduction h3 {
  margin-bottom: 5px;
  color: #f9f8ff;
}

.reparation-introduction {
    max-width: 1000px;
    margin: auto;
}

.reparation-introduction > img {
    width: 420px;
    height: auto;
    float: right;
    margin: 0 0 30px 40px;
}

.reparation-introduction > .diaporama {
    position: relative;
    width: 420px;
    height: 420px;
    float: right;
    margin: 0 0 30px 40px;
    overflow: hidden;
}

.reparation-introduction div {
    padding-right: 0;
}

.reparation-introduction h1 {
  margin-bottom: 15px;
}

.reparation-introduction p {
  margin-bottom: 30px;
}

.reparation-introduction hr {
  margin-bottom: 30px;
  margin-top: 20px;
}

.reparation-introduction ul + p {
    margin-top: 30px;
}

.reparation-introduction p a {
  color: #b5c0f5;
  text-decoration: none;
}

.reparation-introduction p a:hover {
  text-decoration: underline;
}

/* contact */

.section-contact h2 {
  color: #a5b4fc;
  text-align: center;
  margin-bottom: 50px;
}

.section-contact a {
  color: #b5c0f5;
  text-decoration: none;
}

.section-contact a:hover {
  text-decoration: underline;
}

/* diaporama */

.diaporama {
    position: relative;
    width: 420px;
    height: 420px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.ici {
    opacity: 1;
}

/* nomenclature */

.liens-nomenclature a {
   color: #b5c0f5;
}

/* =========================
   PETITS ÉCRANS
   ========================= */


@media screen and (max-width: 996px) {
 
    .reparation-introduction {
        width: auto;
        text-align: left;
    }

    .reparation-introduction > img {
        float: none;
        display: block;
        width: 100%;
        max-width: 420px;
        margin: 0 auto 30px;
    }

    .reparation-introduction > .diaporama {
        float: none;
        display: block;
        width: 100%;
        max-width: 420px;
        height: auto;
        aspect-ratio: 1 / 1;
        margin: 0 auto 30px;
    }

    .reparation-introduction > div:last-child {
        padding-right: 0;
        text-align: left;
    }
  .prestations {
        padding: 40px 15px;
    }

    .prestations h2 {
        margin-bottom: 30px;
    }

    .prestations h2#services {
        margin-top: 50px;
    }

    .prestations div {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .prestations div a {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: static;
    }

    .prestations div a img {
        opacity: 1;
    }

    .prestations div a span {
        position: static;
        width: auto;
        height: auto;
        opacity: 1;
        background-color: transparent;
        margin-top: 10px;
    }

    .prestations div a:hover img,
    .prestations div a:hover span {
        opacity: 1;
    }

  .section-contact {
    padding: 50px 20px;
  }

}

/* Grand écran */
@media screen and (min-width: 1400px) {
    .prestations div a img {
        width: 380px;
          }
}


/* Très grand écran */
@media screen and (min-width: 1800px) {
    .prestations div a img {
        width: 450px;
    }
}


