@import url('https://fonts.googleapis.com/css2?family=Titan+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sriracha&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

/*
  // <weight>: Use a value from 300 to 900
  // <uniquifier>: Use a unique and descriptive class name

  .merriweather-<uniquifier> {
    font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-variation-settings:
    "wdth" 100;
  }
*/


:root {
  --pink: #e4306d;
  --orange: #db7245;
  --orange-light: #db9c45;
  --green: #6fba6b;
  --green-light: #a9ba6b;
  --white: #fffeff;
  --dark: #271f21;
  --blue: #5271a6;
  --filter: #e5e7eb;
}

/* New clearfix */
.group::after {
  content: "";
  display: table;
  clear: both;
}

body {
  color: var(--dark);
}
.container {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

h1, h2 {
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
    /* color: var(--orange); */
}

h1 {
  font-size: 1.8em;
  text-align: center;
  margin: 4em 0 2em;
}

h2 {
  font-size: 1.4em;
  line-height: 1.4em;
  margin-bottom: 1em;
}

h3 {
  font-variant: small-caps;
  text-decoration: underline;
  margin-top: 1em;
  margin-bottom: .5em;
}

span[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

.map {
  height: 40em;
}

.leaflet-marker-icon {
  background-color: #FFF;
  border-radius: 50%;
  border: 2px solid #FFF;
  object-fit: contain;
}

/* @supports (-webkit-background-clip: text) {
  h1, h2 {
		color: transparent;
    background: linear-gradient(350deg, var(--orange) 20%, var(--orange-light) 45% 55%, var(--orange) 80%);
		-webkit-background-clip: text;
  }
} */

.carousel-bg {
  background: 
		/* horizontal and vertical lines */
		conic-gradient(from 90deg at 1px 1px, 
				#0000 25%, #6fba6b50 0%) 
			-.7px -.7px/ 1em 1em, 
		/* main diagonal */
		linear-gradient(45deg, 
				#0000 calc(50% + -1*.7px), 
				#6fba6b50 0 calc(50% + .7px), #0000 0) 0 0/ 2em 2em, 
		/* secondary diagonal */
		linear-gradient(-45deg, 
				#0000 calc(50% + -.7px), 
				#6fba6b50 0 calc(50% + .7px), #0000 0) 0 0/ 2em 2em
    #FFF
    ;
}

.euro-container {
  position: relative;
}

.euro-container::after {
  display: block;
  content: '€';
  position: absolute;
  right: 1em;
  top: 10px;
}

.header-cart-content {
  display: none;
}

.counter {
  color: var(--green);
  background-color: #FFF;
}

#front [data-controller="product-card-carousel"] .swiper-slide {
  width: auto;
  transition: all .2s ease-in-out;
}

[data-controller="product-card-carousel"] .swiper-slide:hover {
  transform: translateY(5px);
}

#front .swiper-pagination-bullet-active {
  background: var(--orange);
}

.mobile-filter {
  margin-top: 1em;
}

.product-cta[data-action="click->filter#mobileShowResults"] {
  margin-bottom: 1em;
}

.selection {
  margin-top: 4em;
  margin-bottom: 4em;
  background: linear-gradient(-14deg, transparent 40%, var(--orange) 40% 60%, transparent 60%);
}

.main-about img {
  border-radius: 1em 1em 0 0;
}

.main-services-container {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--green);
  color: #FFF;
  border-radius: 1em;
  margin-top: 4em;
  margin-bottom: 8em;
}

.main-service {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5em 0;
  height: 8em;
  width: 50%;
}

.main-service svg {
  margin-left: auto;
  margin-right: auto;
}

.filter {
  position: fixed;
  background-color: var(--filter);
  padding: 1em;
  top: -100vh;
  right: 0;
  bottom: 100vh;
  left: 0;
  z-index: 20;
  transition: .5s all ease-in-out;
  max-height: 100vh;
  overflow-y: scroll;
}

.display-mobile-filter .filter {
  display: block;
  top: 0;
  bottom: 0;
  transition: .5s all ease-in-out;
}

.filter [type='checkbox'] {
  border-radius: 4px;
}

.filter [type='checkbox']:checked {
  background-color: var(--orange);
}

.filter-sticker {
  display: none;
}

.main-footer {
  background-color: var(--blue);
}

#google-reviews {
  margin-top: 2em;
  margin-bottom: 2em;
  padding: 2em 0;
}

#front #google-reviews .google-review {
  padding: 1em;
  width: 30em;
  height: 16em;
  max-width: 100%;
  border-radius: 2em;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
  overflow: hidden;
}

.google-review blockquote {
  position: relative;
  height: 8em;
  overflow: hidden;
}

.google-review blockquote::after {
  display: block;
  content: '';
  background: linear-gradient(transparent 70%, 78%, #FFF);
  z-index: 1;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.google-review header {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
}

.google-review header img {
  width: 5em;
}

.google-review p.italic {
  opacity: .8;
  font-size: .8rem;
}

#google-reviews .review-title {
  color: var(--blue);
  font-weight: 600;
}

.main-bottom {
  width: 100vw;
  aspect-ratio: 16/9;
  filter: brightness(.8);
  object-fit: cover;
  -webkit-clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
}

form[name="customer"] {
  max-width: 50em;
  margin-left: auto;
  margin-right: auto;
}

form[name="customer"] > div {
  margin-bottom: 2em;
}

.stock-sticker {
  position: absolute;
  bottom: 1em;
  right: 1em;
  width: 1em;
  height: 1em;
  border-radius: 50%;
}

.stock-sticker[instock] {
  background-color: var(--green);
}

@media screen and (min-width: 768px) {
  #stock-warning {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media screen and (min-width: 1024px) {
  .main-service {
    justify-content: center;
    gap: 1em;
    position: relative;
    height: 10em;
  }
  .main-service + .main-service::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 0;
    bottom: 10%;
    width: 1px;
    background-color: #FFF;
  }

  span[title="Mon panier"]:hover .header-cart-content {
    display: block;
    position: absolute;
    top: 1em;
    right: -1em;
    width: 30rem;
    background-color: #FFF;
    padding: 1em;
    z-index: 10;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;;
  }
  
  .header-cart-element {
    display: flex;
    height: 5em;
    gap: 1em;
    margin-bottom: 1em;
  }

  .header-cart-element + .header-cart-element {
    border-top: 1px solir var(--dark);
  }

  .header-cart-element img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  .header-cart-element .product-image {
    width: 5em;
    height: 5em;
  }

  .header-cart-text {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: calc(100% - 6em);
    color: var(--dark);
  }

  .header-cart-text p:first-child {
    width: 100%;
    font-weight: bold;
    color: var(--blue);
  }

  .product-cta.filter-cta.mobile-filter,
  .product-cta[data-action="click->filter#mobileSwitch"] {
    display: none;
  }

  .main-service {
    width: 25%;
  }

  .mobile-filter {
    display: none;
  }

  .filter {
    display: block;
    width: 20rem;
    transition: all .5s ease-in-out;
    position: absolute;
    top: 0;
    bottom: 0;
    padding: 2em;
    overflow: initial;
    max-height: none;
  }

  .filter-sticker {
    display: block;
    position: absolute;
    right: -3.2rem;
    top: 50%;
    width: 5em;
    transform: rotate(-90deg);
    z-index: 10;
    text-align: center;
    border-radius: 0 0 .5em .5em;
    background-color: var(--filter);
    cursor: pointer;
  }

  .hide-filter {
    transform: translateX(-20rem);
    transition: all .5s ease-in-out;
  }

  .filtered {
    margin-left: 24rem;
    max-width: calc(100vw - 25rem);
    transition: all .5s ease-in-out;
  }

  .filtered:not(.filter-displayed) {
    transform: translateX(-20rem);
    transition: all .5s ease-in-out;
    max-width: 100%;
  }


  #google-reviews {
    margin-top: 8em;
    margin-bottom: 4em;
  }

  .main-bottom {
    aspect-ratio: 32/9;
  }
}