/* 
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 {
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: 0.2s;
  color: inherit;
}

p a:hover {
  outline: dashed !important;
  outline-offset: 4px !important;
  outline-width: thin !important;
  text-decoration: none !important;
  color: var(--wp--preset--color--pink-500);
  border-radius: 5px;
}

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

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

body {
  position: relative;
  overflow-x: hidden;
}

main {
  overflow-x: clip;
}

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

.wp-block-group.is-position-sticky {
  top: var(--wp--preset--spacing--l);
}

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

.yoast-breadcrumbs {
  font-size: var(--wp--preset--font-size--xs);
}

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

#artgo-up-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9000;
  translate: 200% 0;
  box-shadow: var(--wp--preset--shadow--red);
  opacity: 1;
  overflow: hidden;
  background-color: var(--wp--preset--color--red-700);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: translate 0.2s ease;
}

#artgo-up-btn::before {
  content: url(assets/img/arrow-top-btn.svg);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1px;
  transition: top 0.4s ease;
}

#artgo-up-btn::after {
  content: url(assets/img/arrow-top-btn.svg);
  position: absolute;
  top: 100%;
  bottom: 0;
  left: 1px;
  transition: top 0.4s ease;
}

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

#artgo-up-btn:hover::before {
  top: -100%;
}
#artgo-up-btn:hover::after {
  top: 0;
}

/***** 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: var(--wp--custom--radius--s);
  border: 3px solid var(--wp--preset--color--secondary-500);
  height: 50px;
  width: 50px;
  transition: 0.3s ease;
}

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

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

.artgo-pagination-block {
  display: flex;
  justify-content: center;
  margin-top: var(--wp--preset--spacing--3-xl);
}

.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,
    .wp-pagenavi .last,
    .wp-pagenavi .first
  ) {
  width: 30px;
  height: 30px;
  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) {
  background-color: var(--wp--preset--color--red-700);
  border-radius: 50%;
  color: var(--wp--preset--color--neutral-00);
  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--red-700);
  text-decoration: none !important;
}

.artgo-pagination-block .wp-pagenavi span.current {
  border: 1px solid var(--wp--preset--color--red-700);
  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;
}

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

.artgo-neon-red {
  text-shadow: 0 0 40px rgba(230, 0, 96, 0.4);
}

.artgo-neon-blue {
  text-shadow: 0 0 30px var(--wp--preset--color--blue-600);
}

/* 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;
}
.artgo-appear-delay-6 {
  transition-delay: 1.2s;
}

/***** Gform *****/

.artgo .gform_fields {
  row-gap: 24px !important;
}

.artgo label.gfield_label,
.artgo label.gfield_consent_label {
  color: inherit;
}

.artgo label.gfield_consent_label {
  font-size: var(--wp--preset--font-size--xs);
}

.artgo .gform_required_legend {
  font-size: 12px;
  text-align: center;
  margin-bottom: 25px;
}

.artgo .ginput_container input[type="text"],
.artgo .ginput_container input[type="email"],
.artgo .ginput_container input[type="tel"],
.artgo .ginput_container input[type="checkbox"],
.artgo .ginput_container select,
.artgo .ginput_container textarea {
  background: transparent;
  color: inherit;
  border-color: rgba(255, 255, 255, 0.1);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
}

.artgo .ginput_container input[type="text"],
.artgo .ginput_container input[type="email"],
.artgo .ginput_container input[type="tel"],
.artgo .ginput_container select {
  height: 45px;
}

.artgo .ginput_container input[type="checkbox"] {
  border-color: var(--wp--preset--color--pink-500);
}

.artgo .ginput_container select,
.artgo .ginput_container select:hover {
  background-image: url(./assets/img/chevron-menu.svg);
  background-repeat: no-repeat;
  background-position: top 50% right 10px;
}

.artgo .ginput_container select > * {
  color: #000;
}

.artgo .ginput_container input[type="checkbox"]::before {
  color: var(--wp--preset--color--pink-500);
}

.artgo .ginput_container input[type="text"]:focus,
.artgo .ginput_container input[type="email"]:focus,
.artgo .ginput_container input[type="tel"]:focus,
.artgo .ginput_container input[type="checkbox"]:focus,
.artgo .ginput_container select:focus,
.artgo .ginput_container textarea:focus {
  outline-color: rgba(230, 0, 96, 0.6);
}

.artgo .ginput_container input[type="text"]:placeholder-shown,
.artgo .ginput_container input[type="email"]:placeholder-shown,
.artgo .ginput_container input[type="tel"]:placeholder-shown,
.artgo .ginput_container input[type="checkbox"]:placeholder-shown,
.artgo .ginput_container textarea:placeholder-shown {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
}

.artgo
  .ginput_container
  select.gfield_select:has(option.gf_placeholder:checked) {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
}

.artgo .ginput_container .gform_drop_area {
  background: transparent;
  color: inherit;
  border-color: var(--wp--preset--color--neutral-00);
}

.artgo .ginput_container div.gform_drop_area::before {
  color: var(--wp--preset--color--pink-500);
}

.artgo
  .ginput_container
  div.gform_drop_area
  button.button.gform_button_select_files {
  border-color: inherit;
  padding: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--xs);
  border-radius: var(--wp--custom--radius--xl);
  line-height: 1;
  background-color: transparent;
  color: inherit;
}

.artgo
  .ginput_container
  div.gform_drop_area
  button.button.gform_button_select_files:hover {
  border-color: var(--wp--preset--color--pink-500);
  background-color: var(--wp--preset--color--pink-500);
}

.artgo div.gform-footer button.artgo-btn.artgo-btn--gform[type="submit"] {
  background-color: transparent;
  border-radius: var(--wp--custom--radius--xl);
  border-color: var(--wp--preset--color--blue-600);
  border-width: 2px;
  border-style: solid;
  color: inherit;
  font-family: var(--wp--preset--font-family--secondary);
  font-size: var(--wp--preset--font-size--m);
  font-weight: 500;
  line-height: inherit;
  padding-top: var(--wp--preset--spacing--xs);
  padding-right: var(--wp--preset--spacing--l);
  padding-bottom: var(--wp--preset--spacing--xs);
  padding-left: var(--wp--preset--spacing--xs);
  text-decoration: none;
  box-shadow: var(--wp--preset--shadow--blue);
  gap: 10px;
  margin: auto;
}

.artgo
  div.gform-footer
  button.artgo-btn.artgo-btn--gform[type="submit"]::before {
  content: url(./assets/img/arrow-btn.svg);
  display: inline-block;
  line-height: 1;
  height: 31px;
  transition: transform 0.3s ease;
}

.artgo div.gform-footer button.artgo-btn.artgo-btn--gform[type="submit"]:hover {
  border-color: var(--wp--preset--color--red-700);
  box-shadow: var(--wp--preset--shadow--red);
}

.artgo
  div.gform-footer
  button.artgo-btn.artgo-btn--gform[type="submit"]:hover::before {
  transform: rotate(30deg);
}

/***** Slider *****/

.slider-block-wrapper {
  position: relative;
}

.slider-block__controls {
  display: flex;
  gap: 10px;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--wp--preset--color--red-700);
  background-color: var(--wp--preset--color--red-700);
  cursor: pointer;
}

.swiper-button-prev-custom {
  left: 15px;
}

.swiper-button-next-custom {
  right: 15px;
}

.swiper-button-prev-custom svg path,
.swiper-button-next-custom svg path {
  fill: var(--wp--preset--color--neutral-00);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.swiper-button-prev-custom:hover svg path,
.swiper-button-next-custom:hover svg path {
  fill: var(--wp--preset--color--red-700);
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
  background-color: var(--wp--preset--color--neutral-00);
}

.swiper-button-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/***** Réalisations *****/

.realisation_calendrier {
  display: flex;
  align-items: center;
  line-height: 1;
  gap: 8px;
}

.realisation_calendrier::before {
  content: url(assets/img/calendrier.svg);
}

/***** Footer *****/

footer .artgo-footer {
  background:
    url(assets/img/artgo-footer.svg), var(--wp--preset--gradient--blue-gradient) !important;
  background-repeat: no-repeat !important;
  background-position:
    bottom right,
    100% !important;
  background-blend-mode: soft-light;
}

footer a {
  transition: 0.2s;
  text-decoration: none;
}

footer a:not(.wp-block-button__link, .custom-logo-link):hover {
  outline: dashed !important;
  outline-offset: 4px !important;
  outline-width: thin !important;
  text-decoration: none !important;
  color: var(--wp--preset--color--pink-500);
  border-radius: 5px;
}

@media only screen and (max-width: 1023px) {
  .wp-block-group.is-position-sticky {
    top: var(--wp--preset--spacing--2-xl);
  }
}

@media only screen and (max-width: 767px) {
  .artgo-home-img {
    display: none;
  }
  .artgo-footer
    :is(
      .wp-block-group,
      .wp-block-column,
      .wp-block-buttons,
      .wp-block-social-links
    ) {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .artgo-footer .wp-block-image {
    display: inline-block;
    float: unset;
    margin: 16px 0;
  }
  .swiper-button-prev-custom {
    left: -20px;
  }

  .swiper-button-next-custom {
    right: -20px;
  }

  .wp-block-group.artgo-footer .ti-widget.ti-goog {
    margin: 0 auto;
  }

  footer .artgo-footer {
    padding-top: 75px !important;
  }
}
