/*
Theme Name: Hydros
Author: Baptiste Dezitter
Version: 1.0
*/

/* Forcer le menu en mode burger dès 950px */
@media (min-width: 600px) and (max-width: 950px) {
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
      .is-menu-open
    ) {
    display: none;
    background-color: transparent;
    width: auto;
    z-index: unset;
  }
}
/* Style de la modale du menu */
.wp-block-navigation__responsive-container.is-menu-open {
  padding-top: var(--wp--preset--spacing--spacing-10);
}

/* Style du champ email dans le footer */

/* Style du champ email dans le footer */
.newsletter input[type="email"] {
  background-color: transparent;
  color: transparent;
  border: 1px solid var(--wp--preset--color--white);
  border-radius: var(--wp--custom--radius--full);
  padding: var(--wp--preset--spacing--spacing-3)
    var(--wp--preset--spacing--spacing-5);
  font-size: var(--wp--preset--font-size--xs);
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.newsletter input[type="email"]::placeholder {
  color: var(--wp--preset--color--neutral-300);
  opacity: 1;
}

/* Style du champ email générique .champ-email */
.champ-email {
  background-color: transparent;
  color: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--white);
  border-radius: var(--wp--custom--radius--full);
  padding: var(--wp--preset--spacing--spacing-3)
    var(--wp--preset--spacing--spacing-4);
  font-size: var(--wp--preset--font-size--base);
  box-sizing: border-box;
  font-family: inherit;
}

.champ-email:focus {
  outline: none;
  border-color: var(--wp--preset--color--white);
}

.champ-email::placeholder {
  color: var(--wp--preset--color--neutral-300);
  opacity: 1;
}

/* Style des boutons avec SVG seul */
.btn-icon-only {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--black) !important;
  border: 1px solid var(--wp--preset--color--white);
  border-radius: 999px;
  transition: all 300ms ease-in-out;
  text-decoration: none;
  padding: 0;
  overflow: hidden;
}

.btn-icon-only svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  display: block;
  transition: stroke 300ms ease-in;
}

.btn-icon-only:focus {
  outline: none;
}

.btn-icon-only:hover {
  background-color: transparent;
  border-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--white) !important;
}

/* Style du bouton dans le header */
.button-header a {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--spacing-2);
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--black) !important;
  border-radius: var(--wp--custom--radius--full);
  padding: var(--wp--preset--spacing--spacing-4)
    var(--wp--preset--spacing--spacing-6) !important;
  text-decoration: none;
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 400;
  border: 1px solid var(--wp--preset--color--white);
  transition: all 200ms ease-in-out;
}
.button-header a:hover {
  background-color: transparent;
  color: var(--wp--preset--color--white) !important;
  stroke: currentColor;
  transition: all 200ms ease-in-out;
}
.wp-block-navigation .wp-block-navigation-item__content.button-header {
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--black);
}

/* Style du bouton dans le footer */

.btn-custom-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--spacing-2);
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--black);
  border-radius: var(--wp--custom--radius--full);
  padding-top: var(--wp--preset--spacing--spacing-4);
  padding-bottom: var(--wp--preset--spacing--spacing-4);
  padding-left: var(--wp--preset--spacing--spacing-6);
  padding-right: var(--wp--preset--spacing--spacing-5);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 400;
  border: 1px solid var(--wp--preset--color--white);
  transition: all 200ms ease-in;
  white-space: nowrap;
  box-sizing: border-box;
}

/* CIBLE le span à l'intérieur pour qu’il hérite bien */
a.button-header .wp-block-navigation-item__label {
  font: inherit;
  color: inherit;
  white-space: nowrap;
}

/* Style icon */

.btn-custom-icon:hover {
  background-color: transparent;
  color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--white);
}
.btn-custom-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: stroke 200ms ease-in;
}

/* Footer button group */
.row-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 950px) {
  .row-container {
    width: 70%;
  }
}

.header-sticky {
  position: sticky;
  top: 0;
  z-index: 9999;
}
.header-shadow {
  box-shadow: 0px 1px 2px rgba(72, 72, 72, 0.2);
}

.text-gradient {
  background: #99cece;
  background: linear-gradient(
    0deg,
    rgba(153, 206, 206, 1) 0%,
    rgba(255, 252, 242, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* pour compatibilité étendue */
  color: transparent;
}

/* Permet de bien prednre en compte le full width*/
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Supprimer les marges entre les blocs*/
.wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}

/* Supprimer le blockGap par défaut à l'intérieur des Group */
.wp-block-group > * + * {
  margin-block-start: 0 !important;
}

/* Chevauchement des sections */
.overlap-top {
  margin-top: -4rem; /* Marge négative pour faire remonter la section*/
  position: relative;
  z-index: 1; /*Indique que ce bloc doit être au-dessus d’autres éléments*/
}

/* Flou sur le mot Troubles */
.blur {
  filter: blur(3px);
  opacity: 01;
}

/* chevauchement du groupe qui contient la vidéo */
.section-overlap-video {
  position: relative;
  margin-top: -3rem; /* ajuste cette valeur selon l'effet souhaité */
  z-index: 5;
}

/* Mise en page du container */
.video-responsive-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 50px;
  aspect-ratio: 16 / 9;
}

.video-responsive-container iframe {
  width: 100%;
  height: 90vh;
  border: none;
  display: block;
  border-radius: 50px;
}

/* style du bouton au dessus de la cuisine */
.btn-custom {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--spacing-2);
  background: var(--wp--preset--color--accent-orange);
  color: var(--wp--preset--color--white);
  border-radius: var(--wp--custom--radius--full);
  padding-top: var(--wp--preset--spacing--spacing-4);
  padding-bottom: var(--wp--preset--spacing--spacing-4);
  padding-left: var(--wp--preset--spacing--spacing-6);
  padding-right: var(--wp--preset--spacing--spacing-6);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 400;
  border: 1px solid var(--wp--preset--color--accent-orange);
  transition: all 200ms ease-in;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-custom:hover {
  background-color: transparent;
  color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--white);
}

/* Par défaut, cacher la version mobile sur les grands écrans */
.mobile-version {
  display: none;
}

/* Cacher la version desktop sur les petits écrans */
@media screen and (max-width: 540px) {
  .desktop-version {
    display: none;
  }
  .mobile-version {
    display: block;
  }
}

/* Section avec les deux images */
/* Le conteneur doit être relatif pour positionner en absolu à l’intérieur */
.container-image-relatif {
  position: relative;
  display: inline-block;
}

/* Image logo Bcorp en absolu dans le coin bas gauche */
.bcorp-logo {
  position: absolute;
  bottom: -4rem;
  left: -4rem;
  width: 12rem;
  z-index: 1;
}

/* Force l'image Bcorp à se centrer en mobile */
@media screen and (max-width: 950px) {
  .bcorp-logo {
    left: 50%;
    bottom: -5rem;
    transform: translateX(-50%);
    width: 12rem;
  }
}

/* Force les colonnes du Bento à avoir la même height  */
.equal-height-columns {
  align-items: stretch;
}
.equal-height-columns > .wp-block-column {
  display: flex;
  flex-direction: column;
}
.equal-height-columns > .wp-block-column > * {
  flex: 1 1 auto;
}
/* Force l’image à remplir toute la hauteur sans déformation */
.image-fill-height img {
  height: 100%;
  max-height: 80vh;
  width: auto;
  object-fit: contain;
  display: block;
}

/* CARROUSEL de logo */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  padding: 2rem 0;
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: scroll-left 15s linear infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.logo-marquee.animate .logo-track {
  animation-play-state: running;
  opacity: 1;
}

.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}
.fade-in-on-load {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.fade-in-on-load.loaded {
  opacity: 1;
  transform: translateY(0);
}
/* Fin */

/* Animation d'entrée du site */
.fade-in-on-load {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease-out,
    transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}

.fade-in-on-load.fade-in-start {
  opacity: 1;
  transform: translateY(0);
}

.delay-0 {
  transition-delay: 0.1s;
}
.delay-1 {
  transition-delay: 0.4s;
}
.fade-delayed-move {
  transition: transform 1.2s ease 0.6s; /* Décalé */
}

/* AJOUT : animation de fondu ultra douce spécifique à l’image de la fontaine */
.fade-image {
  /* On applique une durée longue à l’opacité */
  transition: opacity 2.4s cubic-bezier(0.33, 1, 0.68, 1),
    transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);

  /* ⛔️ Important : on met une `opacity: 0` initiale sans delay ici */
  opacity: 0;
  transform: translateY(50px);
}

.fade-image.fade-in-start {
  opacity: 1;
  transform: translateY(0);
}

/* forcer l'affichage de Gilroy */
body {
  font-family: var(--wp--preset--font-family--gilroy);
}

/* Fin */

/* Masquer sur mobile */
.hide-on-mobile {
  display: block;
}

@media screen and (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* Retirer le padding right dans mon footer en mobile  */
.no-padding-mobile {
  padding-right: var(--wp--preset--spacing--spacing-30);
}

@media screen and (max-width: 768px) {
  .no-padding-mobile {
    padding-right: 0px !important;
  }
}

/* DOUCE POLUVALENCE GRAIDENT */
.in-text-gradient {
  background: linear-gradient(to right, #131313 -10%, #f7af93 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Mise en page des images avec gros texte */
/* SECTION CONTAINER */
.copper-hero {
  position: relative;
  background: linear-gradient(to bottom, #1a1a1a, #333);
  padding: var(--wp--preset--spacing--spacing-80) 1rem;
  text-align: center;
  overflow: hidden;
}

.copper-label {
  z-index: 2;
}

/* MOT CUIVRE EN GÉANT AVEC DÉGRADÉ */
.copper-bg-word {
  font-family: var(--wp--preset--font-family--gilroy);
  font-weight: 800;
  font-size: clamp(8rem, 14vw, 15rem);
  letter-spacing: 2.3rem;
  text-transform: uppercase;
  line-height: 1;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  /* Centrage absolu dans le conteneur */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);

  z-index: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;

  /* Animation */
  opacity: 0;
  transition: opacity 2s ease, transform 2s ease;
  will-change: opacity, transform;
}
.copper-bg-word.visible {
  opacity: 1;
  transform: translate(-50%, -50%); /* léger "lift" pour l'effet */
}

/* IMAGE AU PREMIER PLAN */
.copper-product {
  max-width: 35vw;
  height: auto;
  position: relative;
  z-index: 2;
}
/* Animation du mot */
.fade-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.fade-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gradient du mot CUIVRE */
.copper-text {
  background: linear-gradient(to bottom, #f8fafc 0%, #e78a53 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Gradient du mot PURE */
.pure-text {
  background: linear-gradient(to bottom, #fffcf2 50%, #343333 130%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Gradient du mot VANTA */
.vanta-text {
  background: linear-gradient(
    to bottom,
    rgba(25, 25, 25, 0.3) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Container de la vidéo + Water etc...*/
.water-hero-section {
  position: relative;
  text-align: center;
  overflow: hidden;
  height: 90vh;
}

.water-hero-mobile {
  position: relative;
  text-align: center;
  overflow: hidden;
  height: 60vh;
}

/* Mise en page Water */
.water-shape {
  font-size: clamp(15rem, 18vw, 20rem);
  letter-spacing: 1rem;
  font-weight: 800;
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 1) 15%,
    rgba(81, 173, 181, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  white-space: nowrap;

  z-index: 2; /* ✅ en-dessous de la vidéo */
  pointer-events: none;
  user-select: none;
}

/* Mise en page Watern mobile */
.water-shape-mobile {
  font-size: 5.5rem;
  letter-spacing: 0.2rem;
  font-weight: 800;
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 1) 15%,
    rgb(81, 173, 181) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  white-space: nowrap;

  z-index: 2; /* ✅ en-dessous de la photo */
  pointer-events: none;
  user-select: none;
}

/* VIDEO SPLASH EN OVERLAY */
.hero-splash-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: auto;
  z-index: 5 !important; /* 🚨 tout en haut */
  mix-blend-mode: screen; /* conserve l’effet visuel */
  pointer-events: none;
  aspect-ratio: 16 / 9;
}

/* IMAGE EN OVERLAY */
.hero-splash-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 50vh;
  z-index: 5 !important; /* 🚨 tout en haut */
  mix-blend-mode: screen; /* conserve l’effet visuel */
  pointer-events: none;
  aspect-ratio: 16 / 9;
  opacity: 0.8;
}

/* FAQ */
.sticky-column {
  position: sticky;
  top: 8rem; /* ou 0 si tu veux qu'elle colle tout en haut */
  align-self: flex-start; /* utile si la hauteur varie */
  z-index: 1;
}
.wp-block-columns {
  overflow: visible;
}

@media screen and (max-width: 768px) {
  .sticky-column {
    position: static;
  }
}

.img-min img {
  display: block;
  height: 80vh !important;
  width: 100vw !important;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .img-min img {
    height: 60vh !important;
  }
}

.btn-custom-2 {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--spacing-2);
  background: var(--wp--preset--color--accent-orange);
  color: var(--wp--preset--color--white);
  border-radius: var(--wp--custom--radius--full);
  padding-top: var(--wp--preset--spacing--spacing-4);
  padding-bottom: var(--wp--preset--spacing--spacing-4);
  padding-left: var(--wp--preset--spacing--spacing-6);
  padding-right: var(--wp--preset--spacing--spacing-6);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 400;
  border: 1px solid var(--wp--preset--color--accent-orange);
  transition: all 200ms ease-in;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-custom-2:hover {
  background-color: transparent;
  color: var(--wp--preset--color--dark);
  border-color: var(--wp--preset--color--dark);
}

/* Justifie tous les items d’un Stack à gauche en mobile */
@media screen and (max-width: 768px) {
  .stack-left-mobile {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* Style des blocs interactifs "carte cliquable" */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
  border-radius: 10rem;
  background-color: var(--wp--preset--color--neutral-white);
}

.card-link:hover {
  border-color: var(--wp--preset--color--neutral-500) !important;
  box-shadow: 0px 1px 2px rgba(43, 43, 43, 0.3);
}

.card-link:active {
  border-color: var(--wp--preset--color--neutral-950) !important;
}

/* Style de l'input adresse" */
.champ-adresse {
  padding: 1rem;
  border-radius: 0.5rem;
  border: 2px solid var(--wp--preset--color--neutral-300);
  font-size: var(--wp--preset--font-size--base);
  width: 100%;
  box-sizing: border-box;
}

.champ-adresse:focus {
  outline: none;
  border-color: var(--wp--preset--color--neutral-950);
}

/* Affichage conditionel revendeurs */
.content-revendeur,
.content-experience {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.toggle-revendeur.active,
.toggle-experience.active {
  border-color: var(--wp--preset--color--neutral-950) !important;
  background-color: var(--wp--preset--color--neutral-50);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Catégories */
/* Fondation : vert doux */
.category-fondation .wp-block-post-terms a {
  background-color: var(--wp--preset--color--accent-green);
  color: var(--wp--preset--color--white);
  padding: var(--wp--preset--spacing--spacing-2)
    var(--wp--preset--spacing--spacing-3);
  border-radius: var(--wp--custom--radius--small, 8px);
  display: inline-block;
  font-weight: 400;
  font-size: var(--wp--preset--font-size--xs);
  text-decoration: none;
}

/* Actus : gris foncé */
.category-actus .wp-block-post-terms a {
  background-color: var(--wp--preset--color--neutral-800);
  color: var(--wp--preset--color--white);
  padding: var(--wp--preset--spacing--spacing-2)
    var(--wp--preset--spacing--spacing-3);
  border-radius: var(--wp--custom--radius--small, 8px);
  display: inline-block;
  font-weight: 400;
  font-size: var(--wp--preset--font-size--xs);
  text-decoration: none;
}

/* Astuces : bleu pâle */
.category-astuces .wp-block-post-terms a {
  background-color: var(--wp--preset--color--accent-blue);
  color: var(--wp--preset--color--black);
  padding: var(--wp--preset--spacing--spacing-2)
    var(--wp--preset--spacing--spacing-3);
  border-radius: var(--wp--custom--radius--small, 8px);
  display: inline-block;
  font-weight: 400;
  font-size: var(--wp--preset--font-size--xs);
  text-decoration: none;
}

/* Innovation : orange vif */
.category-innovation .wp-block-post-terms a {
  background-color: var(--wp--preset--color--accent-orange);
  color: var(--wp--preset--color--white);
  padding: var(--wp--preset--spacing--spacing-2)
    var(--wp--preset--spacing--spacing-3);
  border-radius: var(--wp--custom--radius--small, 8px);
  display: inline-block;
  font-weight: 400;
  font-size: var(--wp--preset--font-size--xs);
  text-decoration: none;
}

/* gestion des images blog */
.wp-block-post-featured-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

/* masquer un élément */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}