
/* ******************************************* */
/* *	             Accueil                   * */
/* ******************************************* */

main#exception {
  max-width: none;
  width: 100%;
  margin: 0;
}

.accueil {
  background: url("./media/accueil/Werle-240_petit.jpg") center / cover fixed;
  min-height: 150vh;
}

.accueil h2 {
  color: white;
  background-color: rgba(100, 130, 160, 0.5);
  font-size: 20pt;
  text-align: center;
  margin: 0 0 25px;
  line-height: 100px;
}

.oeuvre-contenu h3, .presentation h3 {
  color: black;
  font-size: 20pt;
  text-align: center;
  padding: 20px 0;
	text-decoration: underline;
}

.presentation {
  box-sizing: border-box;
  width: 45%;
  padding: 0 20px;
	margin: 0 0 3rem auto;
  background: rgba(100, 100, 100, 0.85);
	text-align: center;
}

.bouton-en-savoir-plus {
  margin: 20px 0;
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid #0000cd;
  border-radius: 8px;
  color: White;
  text-decoration: none;
  background: transparent;
}



.bouton-en-savoir-plus:hover,
.bouton-en-savoir-plus:focus-visible {
  color: white;
  background: #0000cd;
}


.oeuvre {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  color: white;
}

.oeuvre-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oeuvre-contenu {
  position: relative;
  z-index: 1;
  padding: 1rem;
  /* Assure la lisibilité du texte sur la vidéo */
  background: rgba(0, 0, 0, 0.35);
  min-height: 400px;
}


@media (max-width: 700px) {
  .presentation {
    width: 90%;
  }
}


/* ******************************************* */
/* *	             Flex                   * */
/* ******************************************* */


.galerie-flex {
  display: flex;
  justify-content: center; /* centre la série horizontalement */
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;         /* passe à la ligne si nécessaire */
	margin-bottom: 10px;
	padding: 20px 0;
}

.carte {
  position: relative;
  display: block;
  height: 250px;
	width: auto;
  max-width: 300px;
  overflow: hidden;
  color: white;
  text-decoration: none;
}

.carte img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.titre {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 10px 10px;
  background: linear-gradient(transparent, rgb(0 0 0 / 80%));
  font-weight: bold;
	opacity: 0;
  transition: opacity 0.2s ease;
text-align: center;
}

.carte:hover .titre,
.carte:focus-visible .titre {
  opacity: 1;
}

.fond {
  position: relative;
  isolation: isolate;
}

.fond::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("./media/impressions/numerique_2009_singularite.jpg") center / cover no-repeat;
  opacity: 0.6;
}

/* ******************************************* */
/* *	         Testimonials                * */
/* ******************************************* */

.testimonials-slideshow {
	box-sizing: border-box;
	position: relative;
	background:  rgba(100, 130, 160, 0.7);
  max-width: 100%; /* même largeur, limitée sur les grands écrans */
	width: 100%;
	overflow: hidden;
  margin: 0 auto;
  padding: 0;
}

  /* Slides */
.mySlides {						/* IMPORTANT: on supprime aspect-ratio (cause fréquente du mismatch hauteur/écran) */	
	box-sizing: border-box;
	height: 700px;
  overflow-y: auto; /* permet de lire un témoignage plus long */
	padding: 24px 48px;
	text-align: center;
	display: none; 			/* JS le remet en block */
}

  .mySlides q {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 auto 18px;
  padding: 0;
  font-style: italic;
  line-height: 1.25;
  }

  .mySlides img {
    float: none;
    margin: 0 auto 18px;
    border-radius: 50%;
    width: 96px;
    height: 96px;
    object-fit: cover;
    display: block;
  }

  .mySlides > .author {
    font-size: 18px;
    margin: 0;
    color: cornflowerblue;
    font-style: italic;
    text-align: center;
  }

  .mySlides > .truc {
    margin: 0 auto;
    text-align: center;
    max-width: 560px;
    line-height: 1.25;
  }

  /* Next & previous buttons */
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 14px;
    color: white;
    font-weight: bold;
    font-size: 22px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 2;
  }

  .prev { left: 8px; border-radius: 3px 0 0 3px; }
  .next { right: 8px; border-radius: 0 3px 3px 0; }

  .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
    color: white;
  }

  .dot-container {
    text-align: center;
    padding: 14px 10px;
    background: #ddd;
  }

  .dot {
    cursor: pointer;
    height: 14px;
    width: 14px;
    margin: 0 3px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  }

  .active, .dot:hover { background-color: #717171; }

  /* Tablettes */
  @media (min-width: 768px) {
    .mySlides {
      height: auto;
    padding: 20px 32px;
    }

    .mySlides q { max-width: 980px; }

    .mySlides img {
      width: 110px;
      height: 110px;
    }

    .mySlides > .author {
      font-size: 20px;
    }

    .mySlides > .truc {
      max-width: 620px;
    }

    .prev, .next {
      font-size: 24px;
      padding: 16px;
    }
  }

  /* Desktop */
  @media (min-width: 1024px) {
    .mySlides {
      padding: 32px 30px;
      min-height: 550px;
    }

    .mySlides img {
      width: 150px;
      height: 150px;
    }
  }
