@import url('https://fonts.googleapis.com/css2?family=Allura&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lalezar&family=Lavishly+Yours&display=swap');

:root {

  --bs-body-bg: #E7E9ED;
  --bs-body-bg-rgb: 231, 233, 237;
  --bs-header-bg: #060681;
  --text-primary: #e7e9ed;
  --text-info: #282828;
  --text-error: #b73326;

  --bs-font-sans-serif: "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #e4e0e0;
 
  /*background-blend-mode:lighten;*/

}

/* Polices */
.lalezar-regular {
  font-family: "Lalezar", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.inter {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;

  &:focus {
    background-color: var(--text-error);
    clip-path: none;
    color: var(--text-primary);
    display: block;
    font-size: var(--bs-font-sans-serif);
    left: 5px;
    height: auto;
    line-height: normal;
    padding: 15px 23px 14px;
    top: 5px;
    text-decoration: none;
    width: auto;
    z-index: 100000;
  }
}


/* Section Hero  */
.hero {
  background-image: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(231, 233, 237, 0)), url("../images/hero-ford-mustang-2.png");
  background-size: auto, cover;
  background-position: top, center;
  min-height: 500px;
  margin: 0;
  padding: 0;

  & h1 {
    color: var(--text-primary);
    text-transform: var(--bs-body-bg);
    /*background-color: #00020793;*/
    margin-top: 100px;
    text-shadow: 0 0 10px var(--text-error), 0 0 20px var(--text-error);

  }

  @media (max-width:800px) {
    background-image: linear-gradient(to top, rgba(5, 5, 5, 0), rgba(0, 0, 0, 0)), url("../images/hero-ford-mustang-2.png");
    background-size: auto, cover;
    background-position: top, center;
    min-height: 50% !important;

    & h1 {
      color: var(--text-primary);
      background-color: inherit;
      margin-top: 100px;
      text-shadow: 0 0 10px var(--text-error), 0 0 20px var(--text-info);
      transition: text-shadow 0.3s ease;
    }

  }
}

/* Background Sections, Entête et bas de page */

.section-header {
  /*background-color: white;*/
  background-image:
     linear-gradient(
      to top, rgba(231, 233, 237, 0.70), rgba(231, 233, 237, 0.70)),
    url("../images/bg-long-plate-light-tr-50.png");

  background-repeat: repeat;
  background-size: 70px 70px;
  background-position: center;
  background-color: rgb(231, 233, 237);
  /*background-image: linear-gradient(135deg, rgba(8, 8, 8, 0.22), rgba(8, 8, 8, 0.22)), url("../images/metallic-textured-background.png");*/
  /*
  background: linear-gradient(135deg, var(--bs-header-bg), var(--bs-body-bg));*/
  border: 1px solid #060681;
}

.section-footer {
  /*background-color: var(--bg-warning-transparent);*/
   background-image:
     linear-gradient(
      to top, rgba(231, 233, 237, 0.70), rgba(231, 233, 237, 0.70)),
    url("../images/bg-long-plate-light-tr-50.png");

  background-repeat: repeat;
  background-size: 70px 70px;
  background-position: center;
  
  border-top: 1px solid var(--bs-header-bg);
  margin: 0;
  padding: 0;
}

.section-soumission {
  background: var(--bg-info);
  background-color:#b73326;
}

.section-horaire {
  background: var(--bg-info);
  background-image: linear-gradient(to top, rgba(0, 2, 14, 0.411), rgba(10, 10, 10, 0.212)), url("../images/service-estime-dommages.png");
  background-blend-mode: darken;
  background-size: auto, cover;
  background-position: center, center
}

.section-degradee {
 border-top:#282828 1px solid;
 background: #ba948c49;
 background-image: linear-gradient(to top, rgba(0, 2, 14, 0.411), rgba(10, 10, 10, 0.212)), url("../images/blurred-vehicle-entrance-traffic-city.jpg");
/*background-blend-mode:lighten;*/
  background-size: auto, cover;
  background-position: top, center;

  & .ref-logo {
    width: 100px;
  }
}

/* Titre */
h1 {
  font-family: "Lalezar", sans-serif;
  text-align: center;
  font-weight: 100;
  font-size: 60px;
  line-height: 70px;
  padding-top: 70px;

  @media (max-width:800px) {
    font-size: 35px;
    line-height: 50px;
    padding-top: 50px;
  }
}

h2 {
  font-family: "Lalezar", sans-serif;
  text-align: center;
  font-weight: 10;
  font-size: 40px;
  line-height: 50px;
  margin: 0;
  padding: 10px;

  @media (max-width:800px) {
    font-size: 30px;
    line-height: 40px;
  }
}

h3 {
  font-family: "Lalezar", sans-serif;
  text-align: center;
  font-weight: 100;
  font-size: 30px;
  line-height: 40px;

  @media (max-width:800px) {
    font-size: 24px;
    line-height: 34px;
  }
}

a {
  text-decoration: none;

  &:hover {
    color: var(--bs-link-hover-color);
    text-decoration: none;
  }
}

.border-texte {
  border-top: var(--text-error) 5px solid;
  color: var(--text-info);
  background-color: var(--bg-white);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.12);
}

/* Tableau Horaire */
.horaire {
  border-collapse: separate;
  border-spacing: 2px 4px;
  border: 1px solid var(--bs-header-bg);
  border-radius: 8px;
  background-color:#060681;
  text-align: center;
  max-width: 400px;
  margin: 20px auto;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);

  & td,
  th {
    padding: 6px 12px;
    border: 1px solid var(--bs-header-bg);
    background-color: var(--bs-body-bg);
    border-radius: 8px 8px 8px 8px;
    color: var(--text-info);
  }

  & th:first-child {
    text-align: left;
    padding-left: 5px;
  }

  &#conges {
    font-size: 13px;
    max-width: 360px;
  }
}


/* Cartes pivotantes*/

.flip-card {
  background-color: transparent;
  width: 400px;
  height: 250px;
  perspective: 1000px;
  margin: 50px auto;

  &.flip-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.flip-card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--bs-header-bg);
  color: rgb(255, 255, 255);
  border: 1px solid var(--text-info);

  & p {
    position: absolute;
    background-color: var(--bs-header-bg);
    top: 95%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    font-weight: 300;
  }
}

.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--text-error);
  color: white;
  transform: rotateY(180deg);
  border: 1px solid var(--text-info);

  & p {
    position: absolute;
    background-color: var(--bs-header-bg);
    top: 95%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    font-weight: 300;
  }
}


/* Cartes */
.card-serv-accueil {
  width: 22rem;
  height: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
  border: var(--bs-header-bg) 1px solid;

  @media (max-width:800px) {
    width: 22rem;
  }
}

.card-temoignage {
  width: 26rem;
  border-top:#b73326 5px solid;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
   background-color: #ffffff;

  @media (max-width:800px) {
    width: 24rem;
  }

  @media (max-width:400px) {
    width: 20rem;
  }
}

.card-services {
  width: 30rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
  background-color: rgb(255, 255, 255);

  &#googlemap {
    border: var(--bs-header-bg) 1px solid;
  }

  @media (max-width:800px) {
    width: 24rem;
    margin-left: inherit;
  }

  @media (max-width:400px) {
    width: 20rem;
    margin-left: inherit;
  }

}

.card-employe {
  width: 26rem;
  border-top:#b73326 5px solid;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
  background-color: #ffffffa4;

  @media (max-width:800px) {
    width: 24rem;
  }

  @media (max-width:400px) {
    width: 20rem;
  }
}

.medaillon {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  
}

.medaillon-wrapper {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background-color: #3434e9 !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  
}

/* Carousel */

.carousel-custom {
  max-width: 500px;
  justify-content: center;
}

.carousel-indicators {
  position: static;
  margin-top: 30px;
  justify-content: center;

  & .active {
    background-color: var(--text-error);
    opacity: 1;
  }

  & [data-bs-target] {
    border: 1px solid var(--text-info);
    background-color: var(--bs-header-bg);
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    opacity: 0.5;

    &:hover {
      background-color: var(--text-error);
      opacity: 1;
    }

    &.active {
      background-color: var(--text-error);
      opacity: 1;
    }
  }
}

/*   animation slide-in-left  */

.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.2s ease, transform 0.2s ease;

  &.active {
    opacity: 1;
    transform: translateX(0);
  }
}

/* animation logo référence*/

.ref-logo {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;

  &.visible {
    opacity: 1;
    transform: translateY(0);
  }

  &:nth-of-type(1) {
    transition-delay: 0.1s;
  }
}