/*
Theme Name: Domaine Buchignon
Theme URI: 
Author: Ouest Communication
Author URI: 
Description: 
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 7.0
Version: 1.0
Text Domain: domaine-buchignon
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/
html{
  scroll-behavior: smooth;
}
body{
overflow-x: hidden !important;
}
::-webkit-scrollbar{
width: 10px;
border-radius: 5px;
}
::-webkit-scrollbar-thumb {
    background: #43756C;
    border-radius: 5px;
    transition: all 0.15s ease;
}
::-webkit-scrollbar-thumb:hover{
background: #43756C;
}
::-webkit-scrollbar-track {
    background: #333333;
}
::selection {
    background: #A9B188;
    text-shadow: none;
}

.header-bar {
  position: fixed;
  width: 100%;
  z-index: 10;
}


.admin-bar .header-bar{
  top: 26px !important;
}

.main-menu {
  transition: all 0.2s ease-out;
}

.scrolling-active .header-bar{
  backdrop-filter: blur(10px);
  pointer-events: none;
  height: 100px;
  z-index: 1000; 
  overflow: visible;
}

.scrolling-active .header-logo{
  transform: scale(0.6); /* taille réduite à 60% */
  padding-top: 70px;
}

.scrolling-active .header-coords{
  padding-top: 70px;
}

.scrolling-active .header-bar a, .scrolling-active .header-bar li{
  pointer-events: auto !important;
}



.scrolling-active-important .header-bar, body:not(.home).scrolling-active .header-bar{
  background-color: #43756C !important;
}


.scrolling-active .main-menu {
  pointer-events: none;
  transition-duration: 0ms !important;
}
.scrolling-active .main-menu li {
  pointer-events: all;
}
.scrolling-active .menu-column {
  border-width: 0px !important;
}
.scrolling-active .main-menu > div {
  justify-content: left !important;
}

ul.sub-menu,
.navbar ul ul {
  text-align: left;
  /* optionnel : largeur fixe ou auto */
  width: auto;
}

/* Pour les liens eux-mêmes */
ul.sub-menu li a,
.navbar ul ul li a {
  display: block; /* pour prendre toute la largeur disponible */
  text-align: left;
}

nav ul li ul {
  position: absolute; /* positionné relativement au parent */
  top: 100%;          /* juste en dessous de l'élément parent */
  left: 0;            /* aligné à gauche */
  min-width: 180px;   /* largeur minimale */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* optionnel : ombre */
  z-index: 1100;      /* au-dessus de tout */
  overflow: visible;  /* s'assurer que rien n'est caché */
  white-space: nowrap; /* éviter le retour à la ligne */
}

/* Assurer que le menu parent ait un position relative */
nav ul li {
  position: relative;
}

/* Pour que le sous-menu s’affiche au hover */
nav ul li:hover > ul {
  display: block;
}

/* Par défaut, cacher le sous-menu */
nav ul li ul {
  display: none;
}

.site-content nav,
.navbar,
.main-navigation,
.wp-block-cover,
.wp-block-cover-image,
.wp-block-group {
  overflow: visible !important;
}

/* Évite que l'élément parent masque le dropdown */
.header-bar {
  overflow: visible !important;
}

/* Pour les thèmes utilisant Fusion ou Avada */
.fusion-main-menu .fusion-dropdown-menu {
  position: absolute;
  z-index: 9999;
}

/* Si besoin : forcer le dropdown à s’étendre au-dessus */
.main-menu .sub-menu {
  z-index: 9999;
}


