/* 
Theme Name: ARTGO Theme base
Author: ARTGO Média
Author URI: https://www.artgomedia.com
 */

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  font-size: 100%;
  vertical-align: baseline;
  scroll-behavior: smooth;
}

a,
a:hover {
  text-decoration: none;
}

p a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;
  /* display: block; */
}

p,
ul,
ol {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
}

#artgo-body-mask {
  display: none;
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9500;
}

#artgo-body-mask.active {
  display: block;
}

/* ***** Breadcrumbs **** */

.yoast-breadcrumbs {
  font-size: var(--wp--preset--font-size--xxs);
  font-style: italic;
  display: flex;
  flex-wrap: wrap;
}

.tax-product_cat .yoast-breadcrumbs {
  justify-content: flex-start;
}

/* ***** Headings **** */

/* ***** Buttons **** */

.artgo-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--wp--preset--color--primary-800);
  color: var(--wp--preset--color--neutral-950);
  font-size: var(--wp--preset--font-size--s);
  line-height: 1;
  padding: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--xs);
  text-decoration: none;
  width: fit-content;
}

.artgo-btn--light {
  border-color: var(--wp--preset--color--neutral-00);
  color: var(--wp--preset--color--neutral-00);
}

.artgo-btn:hover {
  background-color: var(--wp--preset--color--primary-800);
  color: var(--wp--preset--color--neutral-00);
}

.artgo-btn--light:hover {
  background-color: var(--wp--preset--color--neutral-00);
  color: var(--wp--preset--color--primary-800);
}

.artgo-btn::after {
  content: url(./assets/img/deco-btn.svg);
  line-height: 1;
}

.artgo-btn--light::after {
  filter: brightness(0) invert(1);
}

.artgo-btn--light:hover::after {
  filter: none;
}

#artgo-up-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 9000;
  translate: 200% 0;
  opacity: 1;
  overflow: hidden;
  background-color: var(--wp--preset--color--primary-800);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  transition:
    translate 0.4s ease,
    background-color 0.4s ease,
    scale 0.4s ease;
}

#artgo-up-btn::before {
  content: url(assets/img/long-arrow.svg);
  rotate: -90deg;
}

#artgo-up-btn.active {
  translate: 0 0;
}

#artgo-up-btn:hover {
  background-color: var(--wp--preset--color--primary-700);
  scale: 1.1;
}

/***** Credits *****/

.artgo-credit {
  position: absolute;
  z-index: 100;
  bottom: 20px;
  right: 20px;
  padding: 0px 8px;
  height: 30px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--wp--preset--color--neutral-00);
  font-size: 0.75rem;
  line-height: 1.2;
  font-family: inherit;
  font-weight: 400;
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 30px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.artgo-credit-span {
  font-size: 0;
  opacity: 0;
  transform: translateX(5px);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.artgo-credit:hover {
  background: rgba(0, 0, 0, 0.8);
}

.artgo-credit:hover .artgo-credit-span {
  font-size: 0.75rem;
  opacity: 1;
  transform: translateX(0);
}

/***** Gallery block *****/

.artgo .sl-wrapper {
  z-index: 9500;
}

.artgo .sl-overlay {
  background: var(--wp--preset--color--neutral-950);
  z-index: 9400;
}

.artgo .sl-wrapper :is(.sl-close, .sl-navigation button, .sl-counter) {
  color: var(--wp--preset--color--neutral-00);
}

.artgo :is(.sl-next div, .sl-prev div) {
  position: relative;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--wp--preset--color--primary-800);
  height: 50px;
  width: 50px;
  background-color: var(--wp--preset--color--primary-800);
  transition: 0.3s ease;
}

.artgo .sl-next div {
  transform: rotate(180deg);
}

/***** Pagination *****/

.artgo-pagination-block {
  display: flex;
  justify-content: center;
}

.artgo-pagination-block .wp-pagenavi {
  display: flex;
  justify-content: center;
}

.artgo-pagination-block
  :is(
    .wp-pagenavi .current,
    .wp-pagenavi .page,
    .wp-pagenavi .nextpostslink,
    .wp-pagenavi .previouspostslink
  ) {
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: inherit;
  font-size: var(--wp--preset--font-size--m);
}

.artgo-pagination-block
  :is(.wp-pagenavi .nextpostslink, .wp-pagenavi .previouspostslink) {
  content: url(./assets/img/deco-btn-alt.svg);
  padding: 0;
  transform: rotate(45deg);
  text-decoration: none !important;
}

.artgo-pagination-block :is(.wp-pagenavi .last, .wp-pagenavi .first) {
  background-color: transparent;
  border-radius: 50%;
  color: inherit;
  border: 1px solid var(--wp--preset--color--primary-800);
  text-decoration: none !important;
}

.artgo-pagination-block :is(.wp-pagenavi .previouspostslink) {
  transform: rotate(225deg);
}

.artgo-pagination-block .wp-pagenavi span.current {
  color: var(--wp--preset--color--primary-800);
  font-weight: 600;
  background: none;
  border-radius: 50%;
}

.artgo-pagination-block .wp-pagenavi a:hover {
  text-decoration: underline;
}

.artgo-pagination-block :is(.wp-pagenavi a, .wp-pagenavi span) {
  text-decoration: none;
  border: none;
  padding: 3px 5px;
  margin: 2px;
}

/* ***** Slider swiper **** */

.artgo-slider-btns {
  display: flex;
  justify-content: flex-end;
  gap: var(--wp--preset--spacing--s);
  margin-bottom: var(--wp--preset--spacing--xs);
  padding-right: 10vw;
}

.slider-prev-btn,
.slider-next-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--secondary);
  font-style: italic;
  color: var(--wp--preset--color--primary-800);
}

.slider-prev-btn::before {
  content: url(./assets/img/long-arrow.svg);
  transform: rotate(180deg);
  line-height: 0;
}
.slider-next-btn::after {
  content: url(./assets/img/long-arrow.svg);
  line-height: 0;
}

/***** Effets d'apparition *****/

.artgo-effect-clip {
  clip-path: inset(90% 0 0 0);
  transition: clip-path 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.artgo-effect-clip.active {
  clip-path: inset(0 0 0 0);
}

.artgo-effect-fade {
  /* z-index: 1; */
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.artgo-effect-fade.active {
  opacity: 1;
}

.artgo-appear-left {
  transform: translateX(-40px);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.artgo-appear-right {
  transform: translateX(40px);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.artgo-appear-bottom {
  transform: translateY(40px);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

:is(.artgo-appear-right, .artgo-appear-bottom, .artgo-appear-left).active {
  transform: translateY(0);
  opacity: 1;
}

.artgo-appear-pop {
  transform: scale(0.8);
  transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.artgo-appear-pop.active {
  transform: scale(1);
}

/* Delays */

.artgo-appear-delay-1 {
  transition-delay: 0.2s;
}
.artgo-appear-delay-2 {
  transition-delay: 0.4s;
}
.artgo-appear-delay-3 {
  transition-delay: 0.6s;
}
.artgo-appear-delay-4 {
  transition-delay: 0.8s;
}
.artgo-appear-delay-5 {
  transition-delay: 1s;
}


/* SITEMAP */

.wsp-container h2 {
  margin-bottom: var(--wp--preset--spacing--s);
}

ul > li > ul {
  padding-left: 20px;
}

@media only screen and (max-width: 1023px) {
  body {
    padding-bottom: 45px;
  }
}
