/*
Theme Name: levaud
Template: twentytwentyfive
*/
/*
html {
  scroll-behavior: auto;
}
html, body {
  overflow-x: hidden;
}*/

@media screen and (min-width: 1024px) {
    .menu-fixe {
      position: sticky !important;
      width: 100%;
      max-width: 300px;
      overflow-y: auto;
      background-color: #fff;
      margin-left: calc((100% - 1260px) / 2) !important;
  
      /* Valeur par défaut : 220px, mais on utilisera la variable GSAP */
      --menu-top: 220px;
      top: var(--menu-top);
      
      /* Optionnel : pour des performances optimales */
      will-change: top;
    }
  
    .accordion-container {
      width: 645px;
      margin-left: calc(((100% - 915px) / 2) + 270px) !important;
    }
  }
  
  
  /* Pour les écrans mobiles */
  @media screen and (max-width: 1023px) {
    .menu-fixe {
      display: none;
    }
    .accordion-container {
      margin-left: auto;
    }
  }

/* on enlève le style sur les <a> */
.menu-fixe a { color: inherit; font-weight: normal; }

/* Applique une transition sur la couleur du lien */
.menu-fixe li > a {
  transition: color 0.3s ease;
}

/* Applique une transition sur la couleur du bullet */
.menu-fixe li::marker {
  transition: color 0.3s ease;
}


/* style de l'item actif */
.menu-fixe li.active > a {
  color: #F72129;
  font-weight: bold;
}

/* colorer le marker (le bullet) */
.menu-fixe li.active::marker {
  color: #F72129;
}

/* Boxes pages vie local */
.info-cards {
  height: 100%;
  background-color: rgba(233, 229, 215, 0.3);
}

.height-100-percent{
  height: 100%;
}

figure {
  margin: 0;
}

/* 
 * Effet hover élégant - À ajouter dans votre style.css
 * Inspiré de l'effet des cartes JSON Posts
 */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Animation border-bottom au hover pour le menu principal uniquement */
.kb-navigation > li > .kb-link-wrap > .kb-nav-link-content {
    position: relative;
    transition: color 0.3s ease;
}

.kb-navigation > li > .kb-link-wrap > .kb-nav-link-content::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F72129;
    transition: width 0.3s ease;
}

.kb-navigation > li > .kb-link-wrap > .kb-nav-link-content:hover::after {
    width: 100%;
}

/* Border-bottom permanent pour les pages actives du menu principal */
.kb-navigation > li.current-menu-item > .kb-link-wrap > .kb-nav-link-content::after,
.kb-navigation > li.current_page_item > .kb-link-wrap > .kb-nav-link-content::after,
.kb-navigation > li > .kb-link-wrap > .kb-nav-link-content.active::after {
    width: 100%;
}

/* Border-bottom pour le parent quand un enfant est actif */
.kb-navigation > li.current-menu-ancestor > .kb-link-wrap > .kb-nav-link-content::after,
.kb-navigation > li.current-page-ancestor > .kb-link-wrap > .kb-nav-link-content::after {
    width: 100%;
}

/* Styles spécifiques pour le sous-menu - uniquement pour les éléments actifs */
.kb-nav-sub-menu > li.current-menu-item > .kb-link-wrap > .kb-nav-link-content,
.kb-nav-sub-menu > li.current_page_item > .kb-link-wrap > .kb-nav-link-content {
    position: relative;
}

.kb-nav-sub-menu > li.current-menu-item > .kb-link-wrap > .kb-nav-link-content::after,
.kb-nav-sub-menu > li.current_page_item > .kb-link-wrap > .kb-nav-link-content::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #F72129;
}

/* Style pour les liens du sous-menu */
.kb-nav-sub-menu a {
    font-size: 18px;
}

/* Bandeau de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #7F95D1;
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner-text {
    margin: 0;
    color: white;
    font-size: 14px;
    line-height: 1.3;
    flex: 1;
}

.cookie-banner-text strong {
    font-weight: 600;
}

.cookie-banner-buttons {
    display: flex;
    gap: 15px;
    margin-left: 30px;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.cookie-btn-info {
    background-color: white;
    color: #7F95D1;
}

.cookie-btn-info:hover {
    background-color: #f0f0f0;
}

.cookie-btn-close {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn-close:hover {
    background-color: white;
    color: #7F95D1;
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
    .cookie-banner {
        height: auto;
        padding: 15px 0;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-banner-text {
        text-align: center;
    }
    
    .cookie-banner-buttons {
        margin-left: 0;
    }
}

/* Variantes pour différents contextes */

/* Effet plus subtil */
.hover-lift-subtle {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hover-lift-subtle:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Effet plus prononcé */
.hover-lift-strong {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.hover-lift-strong:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Effet avec légère rotation */
.hover-lift-tilt {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hover-lift-tilt:hover {
    transform: translateY(-2px) rotate(1deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Effet avec zoom */
.hover-lift-zoom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hover-lift-zoom:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Effet rapide pour boutons */
.hover-lift-fast {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hover-lift-fast:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Désactiver l'effet sur mobile/tactile */
@media (hover: none) {
    .hover-lift,
    .hover-lift-subtle,
    .hover-lift-strong,
    .hover-lift-tilt,
    .hover-lift-zoom,
    .hover-lift-fast {
        transform: none !important;
        transition: box-shadow 0.2s ease;
    }
}

/* Exemples d'utilisation avec des éléments spécifiques */

/* Pour des cartes/articles */
.card.hover-lift,
.article-card.hover-lift {
    border: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
}

/* Pour des boutons */
.btn.hover-lift-fast {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

/* Pour des images */
.image-hover.hover-lift-subtle {
    display: block;
    overflow: hidden;
}

/* Classe utilitaire pour désactiver l'effet */
.no-hover {
    transform: none !important;
    transition: none !important;
}

/* Effet spécial pour les liens */
.link-lift {
    display: inline-block;
    transition: transform 0.2s ease;
}

.link-lift:hover {
    transform: translateY(-1px);
}

main .entry-content .max-width{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Style Neumorphisme Rouge #F72129 pour Amelia */
/* Style Neumorphisme Bleu #7F95D1 pour Amelia - Taille normale */
.am-advsc__duration {
  padding: 25px;
  background: #f0f4ff;
  border-radius: 20px;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.am-advsc__duration .am-select-wrapper {
  width: 100%;
}

.am-advsc__duration .el-select {
  background: #f0f4ff !important;
  border: none !important;
  border-radius: 15px !important;
  box-shadow: 12px 12px 20px rgba(127, 149, 209, 0.2),
              -12px -12px 20px rgba(255, 255, 255, 0.9) !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
}

.am-advsc__duration .el-select:hover {
  box-shadow: 8px 8px 16px rgba(127, 149, 209, 0.25),
              -8px -8px 16px rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-2px) !important;
}

.am-advsc__duration .el-select__wrapper {
  background: transparent !important;
  border: none !important;
  padding: 18px 24px !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
}

.am-advsc__duration .el-select__placeholder span,
.am-advsc__duration .el-select__selected-item span {
  color: #7F95D1 !important;
  font-weight: 600 !important;
  font-size: 17px !important;
  letter-spacing: 0.3px !important;
}

.am-advsc__duration .el-select__icon {
  color: #7F95D1 !important;
  font-size: 18px !important;
} 

.json-post-file-link {
  background-color: #7F95D1;
}

.json-post-description a {
  color: #F72129;
}
