/*!
Theme Name: Kava Child
Theme URI:
Author: Zemez
Author URI:
Description: Kava child theme.
Template: kava
Version: 1.0.1
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kava-child
*/
@font-face {
    font-family: 'CMU Serif';
    src: url('/wp-content/themes/kava-child/fonts/cmunrm-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CMU Serif Bold';
    src: url('/wp-content/themes/kava-child/fonts/cmunbx-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'CMU Serif Italic';
    src: url('/wp-content/themes/kava-child/fonts/cmunsi-webfont.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'CMU Serif Bold Italic';
    src: url('/wp-content/themes/kava-child/fonts/cmunbxo-webfont.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

/* Forcer CMU Serif sur tous les titres H1, H2, H3 */
h1, h2, h3 {
    font-family: 'CMU Serif', serif !important;
    font-weight: normal;
}

/* Forcer les versions bold et italic */
h1 strong, h2 strong, h3 strong {
    font-family: 'CMU Serif Bold', serif !important;
    font-weight: bold;
}

h1 em, h2 em, h3 em {
    font-family: 'CMU Serif Italic', serif !important;
    font-style: italic;
}

h1 strong em, h2 strong em, h3 strong em {
    font-family: 'CMU Serif Bold Italic', serif !important;
    font-weight: bold;
    font-style: italic;
}

.subtitle{
    font-family: 'CMU Serif', serif !important;
    font-weight: normal;
}

/* Sticky header transition */
#site-header {
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease, padding 0.3s ease;
  padding: 5px 2%; /* Hauteur initiale du header avec padding sur les côtés */
}

#site-header.scrolled {
  background-color: white;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  padding: 5px 2%; /* Réduction de la hauteur du header au scroll avec padding constant */
}

/* Swap logos */
.logo-black { display: none; }

#site-header.scrolled .logo-white { display: none; }
#site-header.scrolled .logo-black { display: block; }

/* Menu text */
#site-header .jet-mega-menu-item__link--top-level,
#site-header .jet-mega-menu-item__label {
  color: white;
}

#site-header.scrolled .jet-mega-menu-item__link--top-level,
#site-header.scrolled .jet-mega-menu-item__label {
  color: black;
}

/* Menu text hover */
#site-header.scrolled .jet-mega-menu-item__link--top-level:hover {
  color: #333;
}

/* Underline effect on menu items */
.jet-mega-menu-item__inner {
  position: relative;
  display: inline-block;
}

.jet-mega-menu-item__label {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.jet-mega-menu-item__label::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #E9BD38;
  transition: width 0.3s ease-in-out;
}

.jet-mega-menu-item__inner:hover .jet-mega-menu-item__label::before {
  width: 100%;
}

.btn {
  --color: black;
  font-family: inherit;
  display: inline-block;
  height: 2.6em;
  line-height: 2.5em;
  overflow: hidden;
  padding: 0 20px; /* Ajuste la taille horizontale */
  font-size: 17px;
  z-index: 1;
  color: #E9BD38;
  background-color: #E9BD38;
  border-radius: 6px;
  position: relative;
  transition: color 0.3s ease-in-out;
  border: none; /* Supprime la bordure par défaut */
  cursor: pointer;
}

/* Effet de fond au hover */
.btn::before {
  content: "";
  position: absolute;
  background: #16988E;
  width: 300%; /* S'assure que l'effet couvre tout */
  height: 300%;
  top: 100%;
  left: 50%;
  transform: translateX(-10%);
  border-radius: 20%;
  transition: top 0.3s ease-in-out;
  z-index: -1;
}

.btn:hover {
  color: white;
}

.btn:hover::before {
  top: -50%;
}

/* Bloc image avec formes décoratives */
.custom-image-with-shapes {
    position: relative;
    display: block;
    overflow: visible;
    z-index: 0; /* le conteneur reste derrière l'image */
}

/* L’image passe devant les formes */
.custom-image-with-shapes img {
    position: relative;
    z-index: 2;
}

/* Forme jaune à gauche */
.custom-image-with-shapes::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: url('/wp-content/uploads/2025/02/14_jaune.svg') no-repeat center/contain;
    left: -60px;
    bottom: -60px;
    opacity: 0;
    transform: scale(0.5) translateY(30px);
    transition: opacity 0.3s ease-out 0.8s, transform 1s ease-out 0.3s;
    z-index: 1;
}

/* Forme verte à droite */
.custom-image-with-shapes::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: url('/wp-content/uploads/2025/02/14_vert.svg') no-repeat center/contain;
    right: -60px;
    top: -60px;
    opacity: 0;
    transform: scale(0.5) translateY(30px);
    transition: opacity 0.3s ease-out 0.8s, transform 1s ease-out 0.3s;
    z-index: 1;
}

/* Quand l’image entre dans l’écran */
.custom-image-with-shapes.in-view::before,
.custom-image-with-shapes.in-view::after {
    opacity: 1;
    transform: scale(1) translateY(0);
}



/* Slider arrows (Glassmorphism effect) */
.elementor-social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border: none;
}

.elementor-social-icon::after {
  content: "";
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #39A9B7;
  transition: bottom 0.3s ease-in-out;
  z-index: 0;
}

.elementor-social-icon:hover::after {
  bottom: 0;
}

.elementor-social-icon svg {
  width: 60%;
  height: 60%;
  fill: rgba(255, 255, 255, 0.8);
  transition: fill 0.3s ease-in-out;
  position: relative;
  z-index: 1;
}

.elementor-social-icon:hover svg {
  fill: #fff;
}
/* Récupérer dynamiquement la largeur du contenu */
.col-align-boxed {
    margin-left: calc((100vw - var(--content-width, 1300px)) * 0.5) !important;
}

/* Assurer que la marge ne casse pas l'affichage sur tablette/mobile */
@media (max-width: 1300px) {
    .col-align-boxed {
        margin-left: 0 !important; /* Désactive la marge */
    }
}
/* SECTION BLEUE AVEC FORMES JAUNE ET VERTE (DÉFINITIF) */
.custom-section-with-shapes {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* FORME JAUNE - HAUT À GAUCHE */
.custom-section-with-shapes::before {
    content: ""; /* This empty string is critical - must not be 'none' */
    position: absolute;
    width: 850px;
    height: 850px;
    background: url('/wp-content/uploads/2025/02/14_jaune.svg') no-repeat center/contain;
    top: -200px;
    left: -300px;
    z-index: 2;
    opacity: 0;
    transform: scale(0.1) translate(-50px, -50px);
    transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
    display: block; /* Add this to ensure the element is created */
}

/* FORME VERTE - BAS À DROITE */
.custom-section-with-shapes::after {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    background: url('/wp-content/uploads/2025/02/14_vert.svg') no-repeat center/contain;
    bottom: -150px;
    right: -250px;
    z-index: 2;
    opacity: 0;
    transform: scale(0.1) translate(50px, 50px);
    transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
}

/* Animation au scroll quand la section est visible */
.custom-section-with-shapes.in-view::before,
.custom-section-with-shapes.in-view::after {
    opacity: 1;
    transform: scale(1) translate(0, 0);
}

.title-with-line {
    position: relative;
    padding-left: 0px; /* Ajuste l'espace entre le trait et le texte */
    display: inline-block;
}

.title-with-line::before {
    content: "";
    position: absolute;
    width: 50px; /* Longueur du trait */
    height: 2px; /* Épaisseur du trait */
    background-color: #E9BD38; /* Couleur du trait */
    left: -70px;
    top: 50%;
    transform: translateY(-50%); /* Centre le trait verticalement */
}

.elementor-button {
  width: auto; /* Ajustable selon ton design */
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 50px; /* Ajuste selon le style voulu */
  background: #16988E;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
  text-decoration: none;
  text-align: center;
}

.elementor-button::after {
  content: "";
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #E9BD38;
  transition: bottom 0.3s ease-in-out;
  z-index: 0;
}

.elementor-button:hover::after {
  bottom: 0;
}

.elementor-button span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease-in-out;
}

.elementor-button:hover span {
  color: #fff;
}

.date-blog {
    opacity: 0;
    transform: scale(0.1) translateY(50px);
    transition: opacity 0.5s ease-out 0.3s, 
                transform 0.5s ease-out 0.3s;
}

.date-blog.in-view {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Conteneur principal */
.custom-box {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

/* Titre */
.custom-box .custom-title {
    transition: transform 0.4s ease-in-out;
    position: relative;
}

/* Texte sous le titre (caché par défaut) */
.custom-box .custom-description {
    opacity: 0;
    max-height: 0;  /* Empêche la description d'occuper de l'espace */
    overflow: hidden;
    transition: opacity 0.4s ease-in-out, max-height 0.4s ease-in-out;
}

/* Effet au survol du bouton */
.custom-box:hover .custom-title {
    transform: translateY(-20px); /* Remonte doucement */
}

.custom-box:hover .custom-description {
    opacity: 1;
    max-height: 100px; /* Permet à la description de se révéler progressivement */
}

/* 1. Texte noir dans le sous-menu */
.jet-mega-menu-sub-menu__list .jet-mega-menu-item__label {
  color: #000 !important;
	text-decoration: bold;
}

.jet-mega-menu .jet-mega-menu-sub-menu .jet-mega-menu-sub-menu__list {
  padding: 10px 15px!important;
}
/* Désactive la césure automatique */
* {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* variables (edit here)*/

:root {
    /* Global Padding Variables - Editable */
    /* Left and Right Padding All /Sections/Containers*/
    --fluid-side-padding-min: 1.25rem; /* 20px */
    --fluid-side-padding-max: 5rem;   /* 80px */

    /* Top and Bottom Padding All Containers*/
    --section-xxl-padding-min: 9.375rem; /* 150px */
    --section-xxl-padding-max: 10rem; /* 160px */ 
  
    --section-xl-padding-min: 6.875rem; /* 110px */
    --section-xl-padding-max: 7.5rem; /* 120px */
  
    --section-l-padding-min: 5.625rem; /* 90px */
    --section-l-padding-max: 6.25rem; /* 100px */
  
    --section-m-padding-min: 5rem; /* 80px */
    --section-m-padding-max: 5rem; /* 80px */
  
    --section-s-padding-min: 3.75rem; /* 60px */
    --section-s-padding-max: 3.75rem; /* 60px */
  
    --section-xs-padding-min: 2.5rem; /* 40px */
    --section-xs-padding-max: 2.5rem; /* 40px */
  
    --section-xxs-padding-min: 1.5rem; /* 24px */
    --section-xxs-padding-max: 1.5rem; /* 24px */
    
    --section-header-padding-min: 1.25rem; /* 20px */
    --section-header-padding-max: 1.25rem; /* 20px */

  
    /* Hero Sections Height Variable */
    --section-hero-height: 100vh; /* 100% the screen height */
  
    /* Offset Padding for Overlay Headers */
    --section-offset-header: 80px; /* Adjust to the overlay header's negative margin */

    /* Width For Narrow Sections*/
    --section-narrow: 62.5rem; /* 1000px */
    --section-narrow-xs: 45rem; /* 720px */
  }


/* CSS Template (do not edit below) */
  
  
  /* Section/Container Padding - Fluid Variants */
  .section-xxl {
    padding-top: clamp(var(--section-xxl-padding-min), 1.087vw + 9.13rem, var(--section-xxl-padding-max));
    padding-bottom: clamp(var(--section-xxl-padding-min), 1.087vw + 9.13rem, var(--section-xxl-padding-max));
    padding-left: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
    padding-right: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
  }
  
  .section-xl {
    padding-top: clamp(var(--section-xl-padding-min), 1.087vw + 6.63rem, var(--section-xl-padding-max));
    padding-bottom: clamp(var(--section-xl-padding-min), 1.087vw + 6.63rem, var(--section-xl-padding-max));
    padding-left: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
    padding-right: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
  }
  
  .section-l {
    padding-top: clamp(var(--section-l-padding-min), 1.087vw + 5.38rem, var(--section-l-padding-max));
    padding-bottom: clamp(var(--section-l-padding-min), 1.087vw + 5.38rem, var(--section-l-padding-max));
    padding-left: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
    padding-right: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
  }
  
  .section-m {
    padding-top: clamp(var(--section-m-padding-min), 0vw + 5rem, var(--section-m-padding-max));
    padding-bottom: clamp(var(--section-m-padding-min), 0vw + 5rem, var(--section-m-padding-max));
    padding-left: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
    padding-right: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
  }
  
  .section-s {
    padding-top: clamp(var(--section-s-padding-min), 0vw + 3.75rem, var(--section-s-padding-max));
    padding-bottom: clamp(var(--section-s-padding-min), 0vw + 3.75rem, var(--section-s-padding-max));
    padding-left: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
    padding-right: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
  }
  
  .section-xs {
    padding-top: clamp(var(--section-xs-padding-min), 0vw + 2.5rem, var(--section-xs-padding-max));
    padding-bottom: clamp(var(--section-xs-padding-min), 0vw + 2.5rem, var(--section-xs-padding-max));
    padding-left: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
    padding-right: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
  }
  
  .section-xxs {
    padding-top: clamp(var(--section-xxs-padding-min), 0vw + 1.5rem, var(--section-xxs-padding-max));
    padding-bottom: clamp(var(--section-xxs-padding-min), 0vw + 1.5rem, var(--section-xxs-padding-max));
    padding-left: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
    padding-right: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
  }
  
  .section-header {
    padding-top: clamp(var(--section-header-padding-min), 0vw + 1.25rem, var(--section-header-padding-max));
    padding-bottom: clamp(var(--section-header-padding-min), 0vw + 1.25rem, var(--section-header-padding-max));
    padding-left: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
    padding-right: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max))!important;
  }
  
  /* Hero Container/Sections Height */
  .section-hero {
    min-height: var(--section-hero-height)!important;
  }

  .section-hero .e-con-inner {
    justify-content: center!important;
}
  
  /* Full Width Sections - No Side Padding */

  .section-full div {
    max-width: 100%!important;
  }
  

  /* Narrow Sections */
  .section-narrow .e-con-inner {
    max-width: var(--section-narrow)!important;
  }

  .section-narrow-xs .e-con-inner {
    max-width: var(--section-narrow-xs)!important;
  }


  /* Offset Padding for Overlay Headers */
  .section-offset {
    padding-top: calc(var(--section-offset-header) + var(--section-xxl-padding-min));
  }
