:root {
  --fs-base: clamp(1rem, 1.2vw + 0.4rem, 1.1rem);
  --fs-md: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
}

body {
  height: 100vh;
  background: hsla(187, 9%, 61%, 0.31);
}

section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.bg-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/paysage.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.section1.bg-section::before,
.section3.bg-section::before {
  transform: scaleX(-1);
}

/* ___________________________________________________________________NAVBAR________________________________________________________________ */

header {
  position: fixed;
  top: 0px;
  right: 0;
  width: 100%;
  display: flex;
  z-index: 999;
  align-items: center;
  padding: 15px 25px;
  background: hsla(197, 41%, 73%, 0.4);
}
header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: hsl(197, 41%, 40%);
}
nav {
  margin-left: auto;
}
.navlist {
  display: flex;
  gap: 4rem;
  align-items: center;
}
.navlist a {
  font-size: clamp(1rem, 1.2vw + 0.8rem, 1.5rem);
  font-weight: 700;
  color: hsl(197, 41%, 40%);
  transition: all 0.55s ease;
  position: relative;
  display: inline-block;
}
header button{
  background: transparent;
  border: none;
  z-index: 25;
}
#iconMenu {
  font-size: 40px;
  font-weight: 600;
  color: hsl(197, 41%, 40%);
  display: none;
  cursor: pointer;
  z-index: 999;
  border: none;
}

/* __________animations__________ */

.navlist a:hover {
  color: hsl(194, 37%, 15%);
  transform: scale(1.1);
}

.shake {
  animation: shake 0.3s ease;
}
@keyframes shake {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-2px, 1px);
  }
  40% {
    transform: translate(1.5px, -1.5px);
  }
  60% {
    transform: translate(-1px, 0.5px);
  }
  80% {
    transform: translate(0.5px, -1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@media (max-width: 730px) {

  #iconMenu {
    display: block;
  }
  .navlist {
    position: absolute;
    top: -50vh;
    right: 0;
    width: 100vw;
    height: 50vh;
    background-color: hsla(0, 0%, 0%, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    transition: all 0.5s ease;
    border-radius: 4px 0 0 4px;
    border-bottom: 1px solid rgba(255, 192, 203, 0.524);
    z-index: 20;
  }

  .navlist a {
    color: white;
    z-index: 999;
  }
  .navlist.open {
    top: 0;
  }
}
/* @keyframes to-bottom {
  0% {
    opacity: 0;
    transform: translateY(-150px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
} */

/* ___________________________________________________________Prestations_______________________________________________________________ */

.section1 {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding-top: clamp(60px, 8vh, 100px);
  min-height: 100vh;
}

.container1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1.5rem;
  width: 100%;
  align-content: space-evenly;
  flex: 1;
  height: 100%;
}

.image-container {
  position: relative;
  line-height: 0;
}
.card {
  flex: 1 1 20%;
  max-width: 20%;
  display: flex;
  flex-direction: column;
  border-radius: 7px;
  box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card img {
  width: 100%;
  height: auto;
}
.card_overlay1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    hsla(192, 52%, 39%, 0.4),
    hsla(300, 20%, 39%, 0.4)
  );
  overflow: hidden;
}

.card-content {
  padding: 0.5rem;
  background-color: #bdced1;
  text-align: center;
  height: clamp(50px, 5vw, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-content h2 {
  font-size: clamp(0.9rem, 1.3vw, 1.3rem);
  margin: 0;
  font-weight: 600;
  color: hsl(197, 41%, 40%);
}

.card_overlay2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  container-type: inline-size;
}

.card_overlay2 img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: 0;
}

.overlay-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 90%;
}

.overlay-text p:first-child {
  font-size: 11cqw;
  font-weight: 700;
}
.card_overlay2 p {
  font-size: 7cqw;
  font-weight: 500;
  color: hsl(194, 37%, 15%);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  text-align: center;
  letter-spacing: -1px;
}

.overlay-text p:last-child {
  font-size: 9cqw;
  font-weight: 600;
}

/* _____animations______ */

.card:hover {
  transform: scale(1.05);
}

.card:hover .card_overlay2 {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1024px) {
  
  .card:active {
    transform: scale(1.05);
  }
  .card:active .card_overlay2 {
    opacity: 1;
    visibility: visible;
  }
  .card {
    flex: 1 1 32%;
    max-width: 35%;
  }
  .container1 {
    padding-top: 1rem;
  }
}

@media (max-width: 600px) {
  
  .card {
    flex: 1 1 70%;
    max-width: 70%;
  }
}

/* _________________________________________________________________QualiRépar_____________________________________________________________ */


 .container2 {
  display: flex;
  min-height: 100vh;
  align-items: center;
}
.leftside-sect2,
.rightside-sect2 {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: space-around;
  height: 100vh;
}
.buttonlabel {
  display: flex;
  justify-content: center;
  
}
.logolabel{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
}
.logolabel img {
  width: 70%;
  height: auto;
  object-fit: contain;
}

.buttonlabel button {
  font-size: 1.5cqh;
  padding: 1cqh 2cqw;
  border-radius: 15px;
  color: white;
  background-color: #cc333f;
  border: none;
  font-weight: bold;
  transition: all 0.35s ease;
}
.buttonlabel button:hover {
  transform: scale(1.1);
  background-color: hsl(196, 96%, 72%);
}

.catchline {
  /* flex-grow: 1; */
  max-width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-align: center;
}
.catchline h3 {
  font-size: clamp(2rem, 5vw + 1rem, 5rem);
  font-weight: 700;
  letter-spacing: -2px;
  color: hsl(197, 41%, 40%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-start;
}
.ribbon {
  font-size: clamp(1rem, 2.2vw + 0.6rem, 2rem);
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin: 0 auto;

  --s: clamp(1em, 2.5vw, 5em);
  --d: clamp(0.5em, 1.2vw, 3em);
  --c: clamp(0.5em, 0.8vw, 2em);

  padding: 0 calc(var(--s) + 0.5em) var(--d);
  line-height: 1.8;
  background: conic-gradient(
        at left var(--s) bottom var(--d),
        #0000 25%,
        #0008 0 37.5%,
        #0004 0
      )
      0 /50% 100% no-repeat,
    conic-gradient(
        at right var(--s) bottom var(--d),
        #0004 62.5%,
        #0008 0 75%,
        #0000 0
      )
      100%/50% 100% no-repeat;
  clip-path: polygon(
    0 var(--d),
    var(--s) var(--d),
    var(--s) 0,
    calc(100% - var(--s)) 0,
    calc(100% - var(--s)) var(--d),
    100% var(--d),
    calc(100% - var(--c)) calc(50% + var(--d) / 2),
    100% 100%,
    calc(100% - var(--s) - var(--d)) 100%,
    calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),
    calc(var(--s) + var(--d)) calc(100% - var(--d)),
    calc(var(--s) + var(--d)) 100%,
    0 100%,
    var(--c) calc(50% + var(--d) / 2)
  );
  background-color: #cc333f;
  width: fit-content;
}
.catchline p {
  font-weight: 600;
  color: hsl(197, 41%, 40%);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  font-size: clamp(1.2rem, 2vw + 0.6rem, 2.5rem);
  letter-spacing: -2px;
}

@media (max-width: 900px) {
  .container2 {
    flex-direction: column;
    text-align: center;
  }

  .leftside-sect2,
  .rightside-sect2 {
    width: 100%;
  }
}

/* Animations */
/* .leftside-sect2,
.leftside-sect4 {
  animation: slideInLeft 0.8s forwards;
}

.rightside-sect2,
.rightside-sect4 {
  animation: slideInRight 0.8s forwards;
}
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(+50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
} */

/* _________________________________________________________________Bons plans_____________________________________________________________ */
.section3 {
  flex-direction: column;
}
.container3 {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  /* margin: 0 auto; */
}

.deal_of_the_day h2 {
  font-size: clamp(1.5rem, 2.5vw + 1rem, 4rem);
  font-weight: 700;
  letter-spacing: -2px;
  text-align: center;
  color: hsl(197, 41%, 40%);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.swiper {
    width: 100%;
}
.deal {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 2em;
  margin: 2em 0; 
  justify-content: center;
}

.image-wrapper {
  position: relative;
  width: 25vw;
  flex-shrink: 0;
  overflow: visible;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.price_rubbon {
  font-size: var(--fs-md);
  padding: 0 10px;
  font-weight: bold;
  color: #fff;
  --f: 0.5em;
  --r: 0.8em;
  position: absolute;
  left: 0;
  top: calc(-1 * var(--f));
  background: #cc333f;
  border-left: var(--f) solid #0005;
  border-bottom: var(--r) solid #0000;
  clip-path: polygon(
    var(--f) 0,
    100% 0,
    100% calc(100% - var(--r)),
    calc(50% + var(--f) / 2) 100%,
    var(--f) calc(100% - var(--r)),
    var(--f) var(--f),
    0 var(--f)
  );
}

.image-wrapper2 {
  position: relative;
  width: 25vw;
  display: flex;
  aspect-ratio: 1 / 1;
}

.deal-infos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: auto;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  container-type: inline-size;
}

.deal-infos h3 {
  font-size: 7cqw;
  letter-spacing: -1px;
  padding: 2cqw;
  /* flex-shrink: 0; */
  color: hsl(197, 41%, 40%);
  text-align: center;
  margin-bottom: 3rem;
}
.spec-row {
  display: flex;
  align-items: center;
}
.spec-row .spec1{
  font-size: 6cqw;
  font-weight: 600;
  letter-spacing: -1px;
  text-align: left;
  align-items: center;
  padding-left: 20px;
  color: hsl(197, 41%, 40%);
}
.spec-row .spec2{
  font-size: 5cqw;
  font-weight: 500;
  letter-spacing: -1px;
  text-align: center;
  align-items: center;
  padding-left: 20px;
  color: hsl(197, 41%, 40%);
}

/* .deal-infos p {
  font-size: 6.5cqw;
  font-weight: 600;
  letter-spacing: -1px;
  flex: 0.7;
  text-align: left;
  align-items: center;
  padding-left: 20px;
  color: hsl(197, 41%, 40%);
} */

.used_items_rubbon {
  font-size: clamp(0.5rem, 0.7vw + 0.5rem, 1.5rem);
  padding: 5px 10px;
  font-weight: bold;
  color: #fff;
  --f: 0.5em;
  --r: 0.8em;
  position: absolute;
  bottom: 0px;
  transform: translateY(40%);
  right: calc(-1 * var(--f));
  padding-inline: 0.25em;
  line-height: 1.8;
  background: #cc333f;
  border-top: var(--f) solid #0005;
  border-left: var(--r) solid #0000;
  clip-path: polygon(
    var(--r) 100%,
    100% 100%,
    100% var(--f),
    calc(100% - var(--f)) 0,
    calc(100% - var(--f)) var(--f),
    var(--r) var(--f),
    0 calc(50% + var(--f) / 2)
  );
}

.swiper-button-prev{
  left: 15vw;
}
.swiper-button-next{
  right: 15vw;
}

.catchline-sect3 p {
  font-size: clamp(1.2rem, 1.5vw + 1rem, 3rem);
  text-align: center;
  font-weight: 600;
  letter-spacing: -2px;
  color: hsl(197, 41%, 40%);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {

  .section3{
    margin: 5rem 0;
  }
  .deal {
    flex-direction: column;
    align-items: center;
  }

  .image-wrapper,
  .image-wrapper2{
    width: 90%;
  }
  .deal-infos{
    width: 100%;
  }

  .swiper-button-prev, .swiper-button-next, .swiper-pagination{
    display: none;
  }
}

/* __________________________________________________________Contacts_________________________________________________________________ */

.container4 {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.top-sect4 {
  display: flex;
  gap: 3%;
  padding: 0 3%;
  align-items: stretch;
  height: auto;
  min-height: 60vh;
}
.leftside-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  position: relative;
}
.leftside-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.leftside-adress {
  background: rgba(255, 255, 255, 0.3);
  padding: 1rem;
  z-index: 999;
  text-align: center;
  position: absolute;
  bottom: 8%;
  width: 100%;
}
.leftside-adress p {
  color: hsl(194, 37%, 15%);
  font-size: var(--fs-base);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}
.rightside-map {
  flex: 1;
  width: 100%;
  position: relative;
}
.leftside-photo,
.rightside-map {
  flex: 1 1 0;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.leftside-photo img,
.rightside-map iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.rightside-map iframe {
  min-height: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: none;
  transition: all 0.3s ease;
}
.rightside-map iframe:hover {
  transform: scale(1.02);
}
.bottom-sect4 {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
td {
  padding: 0 1rem;
}
.closed_days p,
td {
  font-size: var(--fs-md);
  font-weight: 500;
  color: hsl(197, 41%, 40%);
}

@media (max-width: 1024px) {

  .top-sect4,
  .bottom-sect4 {
    flex-direction: column;
    gap: 2rem;
  }
  .bottom-sect4 {
    padding: 3% 0;
  }

  .leftside-photo,
  .rightside-map,
  .opening_hours,
  .closed_days {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .leftside-photo,
  .rightside-map {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .opening_hours,
  .closed_days {
    max-height: 300px;
    overflow: auto;
    text-align: center;
  }
  .opening_hours table {
    margin: 0 auto;
    text-align: left;
  }
} 

/* ___________________________________________________________________FOOTER________________________________________________________________ */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2% 3%;
  background: hsla(197, 41%, 73%, 0.4);
  width: 100%;
}

.footer a {
  color: hsl(197, 41%, 40%);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-size: var(--fs-base);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer_right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}

.footer_list {
  display: flex;
  gap: 50px;
  padding: 0;
  margin: 0;
}

.footer_list li {
  display: flex;
  align-items: center;
  font-size: var(--fs-base);
  font-weight: 600;
  gap: 3%;
  color: hsl(197, 41%, 40%);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  position: relative;
}
.footer i {
  font-size: var(--fs-base);
  font-weight: 600;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  padding: 4px;
}

@media (max-width: 1024px){
  .footer_right .text {
    display: none;
  }

  .icon {
    position: relative;
    cursor: pointer;
  }

  .icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -2.2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: hsla(0, 0%, 0%, 0.568);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: var(--fs-base);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 10;
  }

  .icon.show-tooltip::after {
    opacity: 1;
    pointer-events: auto;
  }
  .footer_list li:last-child .icon::after {
    left: auto;
    right: 0;
    transform: none;
  }
}

