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

.artgo_acf_content p + p,
.acf_content p + p {
  margin-top: 1em;
}

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

mark {
  background-color: transparent !important;
}

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

.grecaptcha-badge {
  display: none !important;
  visibility: hidden !important;
}

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

.yoast-breadcrumbs {
  font-size: var(--wp--preset--font-size--xs);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

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

.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-radius: var(--wp--custom--radius--l);
  border: 1px solid var(--wp--preset--color--primary-800);
  color: var(--wp--preset--color--neutral-950);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1;
  padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--s);
  text-decoration: none;
  text-transform: uppercase;
  width: fit-content;
}

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

.artgo-btn::after {
  content: url(./assets/img/deco-btn.svg);
  line-height: 1;
  height: 25px;
  transition: transform 0.2s ease;
}

.artgo-btn:hover::after {
  transform: rotate(45deg);
}

#artgo-up-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  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.2s ease,
    scale 0.2s ease;
}

#artgo-up-btn::before {
  content: url(assets/img/flame.svg);
  height: 25px;
}

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

#artgo-up-btn:hover {
  scale: 1.2;
}

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

/***** Video block *****/

.video-block {
  aspect-ratio: 16 / 9;
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
}

.video-block a,
.video-block iframe {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--wp--custom--radius--s) var(--wp--custom--radius--s) 0 0;
  overflow: hidden;
}

.video-block iframe {
  border: 0;
  position: absolute;
}

.video-block a::before {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  height: 50px;
  width: 50px;
  background-color: var(--wp--preset--color--neutral-00);
  color: var(--wp--preset--color--primary-800);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: 0.3s;
}
.video-block img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: brightness(0.5);
  transition: 0.3s;
}

.video-block:hover a::before {
  height: 65px;
  width: 65px;
}

.video-block:hover img {
  filter: brightness(1);
}

/***** 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: none;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: var(--wp--preset--spacing--xs);
}

.slider-prev-btn,
.slider-next-btn {
  content: url(./assets/img/deco-btn-alt.svg);
  transform: rotate(45deg);
  width: 45px;
  cursor: pointer;
}

.slider-prev-btn {
  transform: rotate(225deg);
}

/* **** 404 Candle **** */

.wp-block-column:has(.artgo-candle-wrapper) {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.artgo-candle-wrapper {
  margin: 12rem auto 0;
  width: 300px;
  height: 200px;
  position: relative;
}

.artgo-candle-wrapper *,
.artgo-candle-wrapper *:before,
.artgo-candle-wrapper *:after {
  content: "";
  position: absolute;
}

.artgo-candle-body {
  bottom: 0;
  width: 300px;
  height: 200px;
  border-radius: 150px / 40px;
  background:
    url(./assets/img/logo-candle.svg) no-repeat center,
    radial-gradient(101.45% 71.74% at 48.46% 100.05%, #f7a600 0%, #9f1355 100%);
}

.artgo-candle-body:before {
  width: 100%;
  height: 65px;
  border-radius: 50%;
  background: radial-gradient(
    var(--wp--preset--color--primary-50),
    var(--wp--preset--color--primary-600) 45%,
    var(--wp--preset--color--primary-800) 80%
  );
}

.artgo-candle-body:after {
  width: 34px;
  height: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  top: 14px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.5);
  background: radial-gradient(rgba(0, 0, 0, 0.6), transparent 45%);
}

.artgo-candle-thread {
  width: 6px;
  height: 36px;
  top: -17px;
  left: 50%;
  z-index: 1;
  border-radius: 40% 40% 0 0;
  transform: translateX(-50%);
  background: #121212;
  background: linear-gradient(#d6994a, #4b232c, #121212, black, #e8bb31 90%);
}

.artgo-candle-flame {
  width: 24px;
  height: 120px;
  left: 50%;
  transform-origin: 50% 100%;
  transform: translateX(-50%);
  bottom: 100%;
  border-radius: 50% 50% 20% 20%;
  background: rgba(255, 255, 255, 1);
  background: linear-gradient(white 80%, transparent);
  animation:
    AnimatingFlame 6s linear infinite,
    ScalingFlame 5s linear infinite;
}

.artgo-candle-flame:before {
  width: 100%;
  height: 100%;
  border-radius: 50% 50% 20% 20%;
  box-shadow:
    0 0 15px 0 rgba(247, 93, 0, 0.4),
    0 -6px 4px 0 rgba(247, 128, 0, 0.7);
}

@keyframes AnimatingFlame {
  0%,
  100% {
    transform: translateX(-50%) rotate(-2deg);
  }
  50% {
    transform: translateX(-50%) rotate(2deg);
  }
}

@keyframes ScalingFlame {
  0%,
  100% {
    height: 120px;
  }
  50% {
    height: 140px;
  }
}

.artgo-candle-glow {
  width: 26px;
  height: 60px;
  border-radius: 50% 50% 35% 35%;
  left: 50%;
  top: -48px;
  transform: translateX(-50%);
  background: rgba(0, 133, 255, 0.7);
  box-shadow:
    0 -40px 30px 0 #dc8a0c,
    0 40px 50px 0 #dc8a0c,
    inset 3px 0 2px 0 rgba(0, 133, 255, 0.6),
    inset -3px 0 2px 0 rgba(0, 133, 255, 0.6);
}

.artgo-candle-glow:before {
  width: 70%;
  height: 60%;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
}

.artgo-candle-blinking-glow {
  width: 100px;
  height: 180px;
  left: 50%;
  top: -55%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ff6000;
  filter: blur(60px);
  animation: BlinkingAnimation 0.1s infinite;
}

@keyframes BlinkingAnimation {
  50% {
    opacity: 0.8;
  }
}

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

/* **** WooCommerce **** */

.woocommerce-account .woocommerce {
  max-width: var(--wp--style--global--wide-size) !important;
}

.woocommerce .grc-widget-product-summary-icon {
  width: auto !important;
}

.woocommerce-account h2 {
  display: flex !important;
  flex-direction: column;
  gap: var(--wp--preset--spacing--xs);
  color: var(--wp--preset--color--primary-950);
  font-family: var(--wp--preset--font-family--secondary);
  font-size: var(--wp--preset--font-size--2-xl);
  font-weight: 400;
  line-height: 1;
  margin-top: 0;
  text-transform: capitalize;
  text-align: center;
  margin-bottom: 40px;
  padding: 0;
  color: var(--wp--preset--color--primary-950);
}

.woocommerce-account h2::before {
  content: url(./assets/img/deco-h2.svg);
}

.woocommerce-account form.login,
.woocommerce-account form.register {
  border: 0;
}

.woocommerce-account form .form-row label {
  color: var(--wp--preset--color--primary-800);
  font-weight: 500;
}

.woocommerce-account .woocommerce-privacy-policy-text {
  font-size: var(--wp--preset--font-size--xs);
  margin-bottom: 20px;
}

.woocommerce-account button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: fit-content !important;
  transition: gap 0.3s ease;
}

.woocommerce-account button[type="submit"]::after {
  content: url(./assets/img/deco-btn.svg);
  line-height: 1;
  height: 25px;
  transition: transform 0.2s ease;
}

.woocommerce-account input {
  background-color: transparent !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 25%;
}

.woocommerce-MyAccount-navigation-link {
  padding: 20px 0;
}

.woocommerce-MyAccount-navigation-link a {
  color: var(--wp--preset--color--neutral-950);
  font-size: var(--wp--preset--font-size--xs);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none !important;
}

.woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
  color: var(--wp--preset--color--primary-600);
}

.woocommerce-MyAccount-navigation-link:not(:last-child) {
  border-bottom: 1px solid var(--wp--preset--color--primary-800);
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: red;
}

/* Sitemap */

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

.wsp-container ul ul {
  padding-left: 20px;
}

.wc-block-components-address-form__alg_eu_vat-billing_eu_vat_number,
#alg_eu_vat_for_woocommerce_field {
  display: none !important;
}

@media only screen and (max-width: 1280px) {
  .artgo-slider-btns {
    display: flex;
  }
}

@media only screen and (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
    margin-bottom: 30px;
  }
  .wp-block-column:has(.artgo-candle-wrapper) {
    margin-top: 12rem;
  }

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

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

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

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