/* Body */
body {
  background-color: whitesmoke;
}

/* Header banner  */
.header {
  background-size: cover; 
  background:url('assets/back.jpg') rgba(0, 0, 0, 0.35);
  background-blend-mode:overlay;
  height: 65vh;
  position: relative;
}

.title-main {
  position: absolute;
  bottom: 0;
  font-family: 'Cormorant Garamond';
  font-size: max(2.5vmax, 34px);
}

/* Navbar  */
.nav-title {
  visibility: hidden;
  font-family: 'Cormorant Garamond';
}

.nav-title.scrolled {
  visibility: visible;
  transition: visibility 250ms ease-in;
} 

.nav-title h1 {
  font-size: 1.7vmax;
}

/* Fixed navbar animation */
@media (min-width: 1250px) {
  .navbar-fixed-top {
    line-height: 85%;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    transition: background-color 250ms ease-in;
    color: rgba(0, 0, 0, 0.9);
  }

  .navbar-nojs {
    position: absolute;
  }
  
  .navbar-fixed-top a, .navbar-fixed-top a:visited {
    transition: color 250ms ease-in;
  }

  .navbar-fixed-top a:hover, .navbar-fixed-top a.nav-link.active {
    transition: color 250ms ease-in;
  }

  .navbar-fixed-top.scrolled {
    background-color: rgb(208, 235, 240);
    transition: background-color 250ms ease-out;
    border-radius: 0% 0% 22% 0%;
    box-shadow: 0 .5rem .75rem rgba(0,0,0,.15);
  }
  
  .navbar-fixed-top.scrolled a, .navbar-fixed-top.scrolled a:visited {
    color:rgba(0, 0, 0, 0.6) !important;
    transition: color 250ms ease-in;
  }

  .navbar-fixed-top.scrolled a:hover, .navbar-fixed-top.scrolled a.nav-link.active {
    color:rgba(0, 0, 0, 1) !important;
    transition: color 250ms ease-in;
  }
}

@media (max-width: 1249px) {
  .navbar-fixed-top {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    transition: background-color 250ms ease-in;
    line-height: 85%;
}

  
  .navbar-fixed-top a, .navbar-fixed-top a:visited {
    transition: color 250ms ease-in;
  }

  .navbar-fixed-top a:hover, .navbar-fixed-top a.nav-link.active {
    transition: color 250ms ease-in;
  }
}

.navbar-fixed-top a {
  font-size: max(1.2vmax, 16px);
}

/* Body */
.container-md {
  border-radius: 0% 0% 15px 15px;
}

@media (min-width: 1600px) {
  .container-md {
    max-width: 1450px;
  }
}

.text-justify {
  text-align: justify;
}

.to-opac {
  opacity: 0%;
  transition: opacity 0ms;
}

.to-opac.opac {
  opacity: 100%;
  transition: opacity 500ms ease-in;
}
.card {
  height: 100%;
}

ul {
  list-style: circle;
}

.public {
  margin-left: .12em;
  margin-right: .12em;
}
  
.photo-ld {
  width: 34%; 
  margin-left: 27%;
  border-radius: 50%;
  border: 5px solid rgb(168, 222, 230, 0.8);
}

abbr[title] {
  text-decoration-thickness: from-font;
}

@media (min-width: 992px) {
  #galerie {
    width: 50%;
    margin-left: 25%;
  }
  
  #bilan, #suivi, #tarifs, #rdv, #tsa, #tdc, #tdah {
    margin-left: 1em;
    margin-right: 1em;
  }
}

/* Public section animation */
@media (min-width: 992px) {
  .public-1 {
    opacity: 0%;
    transition: opacity 0ms;
  }

  .public-2 {
    opacity: 0%;
    transition: opacity 0ms;
  }

  .public-3 {
    opacity: 0%;
    transition: opacity 0ms;
  }

  .public-1.opac {
    opacity: 100%;
    transition: opacity 500ms ease-in;
  }

  .public-2.opac {
    opacity: 100%;
    transition: opacity 500ms ease-in;
  }

  .public-3.opac {
    opacity: 100%;
    transition: opacity 500ms ease-in;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  
  .photo-ld {
    width: 50%; 
    margin-left: 25%;
    border-radius: 50%;
    border: 5px solid rgb(168, 222, 230, 0.8);
  }

  .public-1 {
    opacity: 0%;
    transition: opacity 0ms;
  }

  .public-2 {
    opacity: 0%;
    transition: opacity 0ms;
  }

  .public-3 {
    opacity: 0%;
    transition: opacity 0ms;
  }

  .public-1.opac {
    opacity: 100%;
    transition: opacity 500ms ease-in;
  }

  .public-2.opac {
    opacity: 100%;
    transition: opacity 500ms ease-in;
  }

  .public-3.opac {
    opacity: 100%;
    transition: opacity 500ms ease-in;
  }
}

@media (max-width: 575px) {
  
  .photo-ld {
    width: 60%; 
    margin-left: 20%;
    border-radius: 50%;
    border: 5px solid rgb(168, 222, 230, 0.8);
  }

  .public-1 {
    opacity: 0%;
    transition: opacity 0ms;
  }

  .public-2 {
    opacity: 0%;
    transition: opacity 0ms;
  }

  .public-3 {
    opacity: 0%;
    transition: opacity 0ms;
  }

  .public-1.opac {
    opacity: 100%;
    transition: opacity 500ms ease-in;
  }

  .public-2.opac {
    opacity: 100%;
    transition: opacity 500ms ease-in;
  }

  .public-3.opac {
    opacity: 100%;
    transition: opacity 500ms ease-in;
  }
}


.carousel-caption {
  text-shadow: 1px 1px 1px gray;
  width: 84%;
  left: 8%;
}

/* detail container */
.detail {
  position: relative;
}

/* detail text */
.detail .detailtext {
  visibility: hidden;
  width: 75%;
  background-color:rgba(208, 235, 240, .75);
  text-align: center;
  padding: 5px;
  border-radius: 6px;

  /* Position the detail text */
  position: absolute;
  bottom:0;
  transform: translateY(25%);
  left:-77%;
  z-index: 1;

  /* Fade in detail */
  opacity: 0;
  transition: opacity 0.3s;
}

/* detail arrow */
.detail .detailtext::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: 0px; 
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(208, 235, 240, .75);
}

@media (max-width:1200px) {
  /* detail text */
  .detail .detailtext {
    width: 100%;
    left:0;
    bottom: auto;
    transform: translateY(-110%);
    background-color:rgba(208, 235, 240, 1);
  }

  /* detail arrow */
  .detail .detailtext::after {
    top: 100%;
    left: 50%;
    margin-left: 0px; 
    border-width: 5px;
    border-style: solid;
    border-color: rgba(208, 235, 240, 1) transparent transparent transparent;
  }
}

/* TDA/H table */
table.tdah tr{
  border-bottom-style: none ;
}

table.tdah th {
   width: 33.3%;
}

/* Button rdv */
.btn-rdv {
  display: flex;
  justify-content: center;
}

/* Show the detail text when you mouse over the detail container */
.detail:hover .detailtext {
  visibility: visible;
  opacity: 1;
}

/* Footer  */
.footer {
  background-color: rgb(168, 222, 230, 0.5);
  /* background-color:rgb(235, 134, 76, 0.3); */
  border-radius: 0% 0% 15px 15px;
}

.footer #map {
  margin: auto;
  width: 80%;
  height: 80%;
}

.pre-gmap {
  width: 80%;
  margin-left: 10%;
}

.pre-gmap img {
  width: 100%;
  margin-bottom: 10px;
}

.legals-link {
  position: relative;
  text-align: center;
  width: 100%;
  bottom: 10px;
}

.legals-link a{
  color: gray;
  font-size: small;
  text-decoration: none;
}

.legals-link a:hover {
  color: black;
  text-align: center;
  font-size: small;
  text-decoration: none;
}

#legalsLabel{
  width: 100%;
  text-align: center;
}

.modal-body img {
  width: 100%;
}