@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: #032242;
  --text-primary: #e7e9ed;
  --text-info: #282828;
  --text-error: #de1e1b;

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

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--bs-body-bg);
  background-image: url("../images/bg-light-pattern.gif");
  background-size: auto, cover;
  background-position: top, top;

}

/* 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(5, 5, 5, 0.171), rgba(0, 0, 0, 0.137)), url("../images/hero.png");
  background-size: auto, cover;
  background-position: top, center;
  height: 550px;
  padding: 20px;
  margin: 60px 40px !important;
  border-radius: 10px;

  & h1 {
    color: var(--text-primary);

    text-transform: var(--bs-body-bg);
    margin-top: 10px;
    text-shadow: 0 0 10px var(--text-error), 0 0 20px var(--text-error);

  }

  & p {
    position: relative;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--text-info);
    padding: 10px 15px;
    display: inline-block;
    z-index: 1;


    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 2, 14, 0.6);
      border-radius: 10px;
      filter: blur(10px);
      z-index: -1;
    }
  }

  @media (max-width:800px) {
    background-image: linear-gradient(to top, rgba(5, 5, 5, 0), rgba(0, 0, 0, 0.397)), url("../images/hero-cropped.png");
    background-size: auto, cover;
    background-position: top, center;
    padding: 10px;
    margin: 60px 20px !important;


    & h1 {
      margin: 30px 0 30px 0;
    }

  }
}

/* Background Sections, Entête et bas de page */
.section-header {
  background: linear-gradient(to bottom, #032342d2, var(--bg-primary));
}

.section-footer {
  background-color: var(--bg-warning-transparent);
  margin: 0;
  padding: 0;
}

.section-soumission {
  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-polir-vehicule-rouge.jpg");
  background-blend-mode: darken;
  background-size: auto, cover;
  background-position: top, top;
}

.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-polissage.jpg");
  background-blend-mode: darken;
  background-size: auto, cover;
  background-position: center, center
}

.section-degradee {
  background: linear-gradient(to top, var(--bg-secondary), var(--bg-primary));

  & .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: 45px;
    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) 4px solid;
  border-radius: 10px;
  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: var(--bs-success);
  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;
  }
}

@media (min-width: 1200px) {
    .section-resserree {
        max-width: 1080px; 
        margin: 0 auto;
    }
}

/* 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;

  @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);

  &#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;

  @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;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  background: var(--bg-success)
}

/* 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;
  }
}