/* Style général */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100% !important;
  object-fit: cover;
  height: auto;
}

body {
  font-family: "Be Vietnam Pro", sans-serif;
}

/* Header */
header {
  background-image: url(../img/header-ortega.webp);
  height: 90dvh;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.maintitle {
  font-size: 3rem !important;
}

.img-header {
  display: none;
}

/* Navbar */
.hr {
  /* centre verticalement les enfants entre eux */
  align-items: center;

  /* active flexbox */
  display: flex;

  /* garde le texte centré s’il passe sur plusieurs lignes ou si flexbox n’est pas supporté */
  text-align: center;
}

.hr::before,
.hr::after {
  /* remplir le fond du trait permet également d’utiliser des images ou dégradés ! */
  background: currentColor;

  /* nécessaire pour afficher les pseudo-éléments */
  content: "";

  /* partage le reste de la largeur disponible */
  flex: 1;

  /* l’unité « em » garantit un ratio constant avec la taille du texte */
  height: 0.025em;

  /* espace les traits du texte */
  margin: 0 1em;
}

nav {
  letter-spacing: 1px;
}

/* effet de soulignement animé sur les liens au survol */
.hover-underline-animation {
  display: inline-block;
  position: relative;
  font-weight: 900;
}

.hover-underline-animation::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: white;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Accueil */
.galerie {
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 1024px) {
  .galerie {
    display: none;
  }
}

.carousel {
  display: none;
}

@media screen and (max-width: 1024px) {
  .carousel {
    display: block;
    margin-top: 3rem;
  }
}

.carousel-item img {
  height: 90vh;
}

.img-galerie {
  opacity: 0.9;
  height: 500px;
  width: 350px;
}

.img-galerie:hover {
  opacity: 1;
  transition: 500ms;
}

.section1 {
  margin-top: 5rem !important;
}

.section2 {
  margin-top: 5rem !important;
}

.section3 {
  margin-top: 5rem !important;
}

/* carousel */
.carousel1 {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.carousel1 img {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: cover;
}

.carousel2 {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.carousel2 img {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: contain;
  background-color: #fff;
}

.lh-text {
  line-height: 2.4rem;
  font-size: 1.2rem;
}

.mb-titre {
  margin-bottom: 5rem;
}

/* tarifs */
#tarifs ul {
  list-style: none;
  padding: 0;
}

/* rdv */
#rdv a {
  display: flex;
  justify-content: center;
  text-decoration: none;
}

#rdv a p {
  font-weight: 900;
}

h2 {
  font-weight: 900;
  font-size: 3rem !important;
}

.title-avis {
  height: 5vh;
}

.call {
  letter-spacing: 2px;
}

/* rédéfinition de la class bootstrap */
.btn-call {
  color: black;
  background-color: white;
  border: 3px solid black;
  font-weight: 900;
  border-radius: 0;
  box-shadow: 10px 10px 0px 0px black;
  transition: 200ms;
}

.btn-call:hover {
  color: white;
  background-color: black;
  border: 3px solid black;
  box-shadow: 0px 0px 0px 0px black;
  transition: 200ms;
}

/* contact */
#contact ul {
  list-style: none;
  padding: 0;
}

#contact a {
  text-decoration: none;
  color: black;
}

.row {
  width: 100%;
  margin: 0;
  padding: 0;
}

.border-bot {
  border-bottom: 1px solid black;
}

/* Footer */
footer {
  background-color: black;
  color: white;
  font-weight: 900;
  margin-top: 10rem;
}

.reset-margin {
  margin: 0 !important;
}

footer a {
  text-decoration: none;
  color: white;
}

footer a:hover {
  text-decoration: none;
  color: white;
}

footer .py-center {
  padding-top: 80px;
}

/* responsive */
@media screen and (max-width: 768px) /* smartphone */ {
  /* header {
    background-image: none !important;
    height: 0;
  } */

  header {
    background-image: none !important;
    height: auto;
  }

  .img-header {
    display: block;
    height: 75dvh;
    width: 100%;
  }

  .carousel1 {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
  }

  .carousel1 img {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: contain;
    background-color: #fff;
  }

  footer {
    height: 400px;
  }

  .section2 {
    display: flex;
    flex-direction: column-reverse;
  }

  .mb-titre {
    flex-direction: column;
  }

  .mb-titre a {
    margin-top: 1rem;
    /* Ajoutez une marge pour séparer les éléments */
  }

  .mb-responsive-avis {
    margin-bottom: 3rem;
  }

  .histoire-responsive {
    margin-top: 2rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) /* tablette */ {
  footer {
    height: 280px;
  }
}
