/*
Theme Name: Aquazen Pôle 2025
Author: Les Imageurs
Description: Mise en ligne le 20/11/2025
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aquazen2025

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/****** CSS RESET ******/

html {
  scroll-behavior: smooth;
}

body {
  font-size: 0.9375rem;
  line-height: 1.5;
  font-family: var(--epilogue-font);
  color: var(--blue-dark-color);
}

body.no-scroll {
  overflow: hidden;
  height: 100%;
}

button {
  font-family: var(--epilogue-font);
}

.wp-block-columns {
  gap: 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 600;
}

p a,
.wp-block-list a {
  position: relative;
  text-decoration: none;
  border-bottom: 1px solid var(--blue-dark-color);
  transition: border-color 0.3s ease-out;
}

p a:hover,
.wp-block-list a:hover {
  border-color: transparent;
  color: var(--green-dark-color);
}

p,
.wp-block-list {
  line-height: 1.7;
  margin-bottom: 10px;
}

/* Sitemap */
.page-sitemap ul.sitemap,
.page-sitemap ul.sitemap ul {
  padding-left: 20px;
}
.page-sitemap ul.sitemap li {
  margin-bottom: 10px;
}
.page-sitemap ul.sitemap li:first-child {
  margin-top: 10px;
}
.page-sitemap ul.sitemap > li > ul > li:last-child {
  margin-bottom: 20px;
}

.wp-block-list li {
  list-style: none;
  position: relative;
  padding-left: 1rem;
}

.wp-block-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 0.9375rem;
}

a:hover,
a:visited {
  color: inherit;
  text-decoration: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.wp-block-image {
  margin: 0;
}

@media (max-width: 781px) {
  .wp-block-buttons.is-content-justification-right {
    justify-content: center;
  }
}

/****** BOUTONS SIMPLES ET TÉLÉCHARGER ******/
.btn-filled .wp-block-button__link,
a.back-to-shop {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  line-height: 2;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 10px;
  background-color: var(--btn-color);
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease-out;
  z-index: 2;
}

.btn-filled .wp-block-button__link,
a.back-to-shop {
  color: var(--white-color);
}

.btn-filled .wp-block-button__link::after,
.btn-download-filled .wp-block-button__link::after,
a.back-to-shop::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--blue-dark-color);
  transition: all 0.4s ease-out;
  z-index: -1;
}

.btn-filled .wp-block-button__link:hover::after,
.btn-download-filled .wp-block-button__link:hover::after,
a.back-to-shop:hover::after {
  left: 0;
}

.btn-filled .wp-block-button__link:hover,
.btn-download-filled .wp-block-button__link:hover,
a.back-to-shop:hover {
  color: var(--white-color);
}

.btn-filled .wp-block-button__link:before,
.btn-download-filled .wp-block-button__link:before,
a.back-to-shop::before,
a.button.wc-backward::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background-size: contain !important;
  z-index: 2;
}

.btn-filled .wp-block-button__link:before {
  background: url("images/arrow_white.svg") no-repeat center;
}

a.back-to-shop::before,
a.button.wc-backward::before {
  background: url("images/arrow_white_left.svg") no-repeat center;
  margin-right: 10px;
}

.btn-download-filled .wp-block-button__link:before {
  background: url("images/download_white.svg") no-repeat center;
}

a.back-to-shop {
  margin-top: 24px;
}

/****** BOUTON PANIER ******/
.btn-basket-filled .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  line-height: 2;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--white-color);
  background-color: var(--btn-color);
}

.btn-basket-filled .wp-block-button__link:after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("images/panier_white.svg") no-repeat center;
  background-size: contain;
  margin-left: 10px;
}

/****** BOUTON TÉLÉPHONE ******/
.btn-phone-filled .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  line-height: 2;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--btn-color);
  background-color: var(--white-color);
}

.btn-phone-filled .wp-block-button__link:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("images/telephone_dark.svg") no-repeat center;
  background-size: contain;
  margin-right: 10px;
}

/****** FOOTER ******/
footer {
  background-color: var(--blue-light-color);
  color: var(--blue-dark-color);
  border-top: 1px solid var(--white-color); /* Bordure uniquement en haut */
}

.footer-row {
  padding: 50px 0;
}

.footer-title {
  font-size: 13px;
  opacity: 0.7;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

footer .social-media {
  gap: 20px;
}

/*** Bloc 1 - Logo ***/
.footer-logo img {
  width: 100px;
  padding: 10px;
  height: auto;
  background-color: #fff;
  border-radius: 200px;
  border-radius: 200px;
  background-color: var(--white-color);
  padding: 10px;
}

/*** Bloc 2 - Contact ***/
.footer-contact {
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}

.footer-contact p {
  margin: 0;
}

.footer-contact a {
  color: var(--green-dark-color);
}

.underline-link {
  position: relative;
  display: inline-block;
}

.underline-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--green-dark-color);
  bottom: 0;
  left: 0;
}

/*** Bloc 3 - Liens utiles ***/
.footer-nav {
  font-size: 13px;
  font-weight: 500;
  line-height: 23px;
}

footer a {
  border-bottom: none;
}

footer .back-to-espace {
  position: fixed;
  bottom: 0;
  z-index: 2;
}

footer .back-to-espace a {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white-color);
  background-color: var(--blue-dark-color);
  transition: all 0.3s ease-out;
}

footer .back-to-espace svg {
  height: 25px;
  width: 25px;
}

footer .back-to-espace svg path {
  stroke: var(--white-color);
  transition: stroke 0.3s ease-out;
}

footer .back-to-espace a:hover {
  background-color: var(--blue-mid-color);
  color: var(--blue-dark-color);
}

footer .back-to-espace a:hover svg path {
  stroke: var(--blue-dark-color);
}

@media (max-width: 781px) {
  footer .back-to-espace a {
    padding: 10px;
    border-radius: 0 10px 0 0;
  }

  footer .back-to-espace a svg {
    display: none;
  }

  footer .back-to-espace {
    left: 0;
  }
}

@media (min-width: 782px) {
  footer .back-to-espace {
    right: 0;
  }
  footer .back-to-espace a {
    border-radius: 10px 0 0 0;
  }
}

/* Newsletter */
#sib_signup_form_1 p.sib-email-area {
  height: 36px;
  width: 100%;
  position: relative;
}

#sib_signup_form_1 p.sib-email-area input[type="email"] {
  font-family: var(--epilogue-font);
  border-radius: 10px;
  padding: 5px 11px;
  background-color: var(--white-color);
  border: 0.5px solid var(--blue-mid-color);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.625;
  color: var(--grey-color);
  width: 100%;
  height: 100%;
}

#sib_signup_form_1 input[type="email"]:focus {
  border: 0.5px solid var(--blue-dark-color);
}

#sib_signup_form_1 input[type="email"]::placeholder {
  color: var(--grey-color) !important;
}

#sib_signup_form_1 input[type="submit"] {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 12px;
  width: 12px;
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  border: none;
  background: none;
}

#sib_signup_form_1 .fs80 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
}

.custom-checkbox {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: flex-start;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.custom-checkbox span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 1.5px var(--green-dark-color);
  border-radius: 4px;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  margin-right: 4px;
}

.custom-checkbox input[type="checkbox"]:checked + span::before {
  background-image: url("images/input-check.svg");
  border-color: var(--green-dark-color);
}

#sib_signup_form_1 .sib-email-area::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 11px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  background-image: url("images/arrow_green.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/****** FOOTER COPYRIGHT ******/

.footer-menu-copyright {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (min-width: 782px) {
  .footer-menu-copyright {
    justify-content: flex-end;
  }
}

.footer-copyright {
  padding: 30px 0;
  border-top: 1px solid var(--white-color);
}

.footer-copyright p {
  margin: 0;
  font-weight: 600;
}

#footer_menu li {
  align-items: center;
  display: flex;
  position: relative;
  font-weight: 600;
}

.menu-footer .menu-item a,
.footer-copyright {
  color: var(--blue-dark-color);
  font-size: 12px;
  line-height: 26px;
  font-weight: 400;
}

footer .imageurs {
  background: url("images/imageurs-signature-site.svg") no-repeat right center;
  width: 230px;
  height: 30px;
}

/****** PRODUITS ******/
.products-grid,
ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 781px) {
  .products-grid > a:nth-child(n + 4) {
    display: none;
  }
}

@media (min-width: 601px) and (max-width: 781px) {
  .products-grid,
  ul.products {
    grid-template-columns: 2fr;
  }
}

@media (max-width: 600px) {
  .products-grid,
  ul.products {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.product-card-link {
  height: 100%;
}

.product-card {
  border-radius: 12px;
  overflow: hidden;
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  min-height: 100%;
}

.product-card .product-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 40px;
  flex-grow: 1;
}

@media (max-width: 781px) {
  .product-card .product-content {
    padding: 24px;
  }
}

.product-card .product-espace {
  text-transform: uppercase;
  letter-spacing: 2px;
}

.product-card .product-description {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card .product-thumbnail {
  overflow: hidden;
  height: 250px;
  position: relative;
}

.product-card .product-thumbnail img {
  transition: transform 0.5s ease;
  will-change: transform;
}

.product-card:hover .product-thumbnail img {
  transform: scale(1.05);
}

.product-card .product-thumbnail img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 10px 10px 0 0;
}

.product-card .product-thumbnail::after {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  background-color: #000000;
  opacity: 0.1;
  border-radius: 10px 10px 0 0;
}

.product-card .product-category {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 400;
  line-height: 23.4px;
  letter-spacing: 1px;
}

.product-card .product-title a {
  font-size: 24px;
  font-weight: 400;
  line-height: 24px;
}

.product-card .product-excerpt {
  font-size: 15px;
  font-weight: 400;
  line-height: 25px;
}

.product-card .product-excerpt ul {
  list-style-position: inside;
}

.product-card .product-ctc {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
  gap: 15px;
}

.product-card .product-ctc > :only-child {
  margin-left: auto;
}

.product-card .product-price {
  background-color: var(--white-color);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  height: 43px;
}

.product-card .product-price.promo {
  height: inherit;
  flex-direction: column;
  align-items: flex-start;
}
.product-card .product-price.promo del {
  font-size: 85%;
  position: relative;
  text-decoration: inherit;
}
.product-card .product-price.promo del::after {
  content: "";
  position: absolute;
  top: 47%;
  left: 0;
  width: 100%;
  height: 1px;
  rotate: -10deg;
  background: var(--blue-dark-color);
  pointer-events: none;
}
.product-card .product-price.promo ins {
  text-decoration: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  margin: unset !important;
  width: unset !important;
  float: unset !important;
}

.woocommerce ul.products::after,
.woocommerce ul.products::before,
.woocommerce-page ul.products::after,
.woocommerce-page ul.products::before {
  content: none !important;
}

img:is([sizes="auto" i], [sizes^="auto," i]) {
  contain-intrinsic-size: unset;
}

/* Liens */
.link-wrapper {
  position: relative;
}

.link-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.link-wrapper a {
  position: relative;
  z-index: 2;
}

.link-wrapper a::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
}

/******* Messages ******/
.info-message,
.success-message,
.error-message,
.warning-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  padding: 13px 13px 13px 39px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  position: relative;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  margin: 20px 0;
}

.info-message,
.woocommerce-info {
  color: var(--info-color);
  background-color: var(--info-bg-color);
}
.warning-message {
  color: var(--warning-color);
  background-color: var(--warning-bg-color);
}
.success-message,
.woocommerce-message {
  color: var(--success-color);
  background-color: var(--success-bg-color);
}
.error-message,
.woocommerce-error {
  color: var(--error-color);
  background-color: var(--error-bg-color);
}

.info-message a,
.success-message a,
.error-message a,
.woocommerce-error a,
.woocommerce-info a,
.woocommerce-message a {
  font-weight: 600;
}

.success-message::before,
.woocommerce-message::before {
  content: "";
  height: 16px;
  width: 16px;
  position: absolute;
  top: 13px;
  left: 13px;
  background-image: url("images/circle-success.svg");
  background-size: contain;
  background-repeat: no-repeat;
  color: var(--success-color);
}

.error-message::before,
.woocommerce-error::before {
  content: "";
  height: 16px;
  width: 16px;
  position: absolute;
  top: 13px;
  left: 13px;
  background-image: url("images/circle-error.svg");
  background-size: contain;
  background-repeat: no-repeat;
  color: var(--success-color);
}

.info-message::before,
.woocommerce-info::before {
  content: "";
  height: 16px;
  width: 16px;
  position: absolute;
  top: 13px;
  left: 13px;
  background-image: url("images/circle-info.svg");
  background-size: contain;
  background-repeat: no-repeat;
  color: var(--success-color);
}

.warning-message::before {
  content: "";
  height: 16px;
  width: 16px;
  position: absolute;
  top: 13px;
  left: 13px;
  background-image: url("images/circle-warning.svg");
  background-size: contain;
  background-repeat: no-repeat;
  color: var(--success-color);
}

.woocommerce-mini-cart-notices .undo-remove {
  all: unset;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-weight: 600;
  font-family: var(--epilogue-font);
  cursor: pointer;
}

.banner-image-gauche {
  padding: 2rem;
  padding-left: 30%;
}

@media all and (max-width: 1199px) {
  .banner-image-gauche {
    padding-left: 2rem;
  }
  .banner-image-gauche img {
    display: none;
  }
}
