/* 
Theme Name: L'entre-Pot(s)
Author: Jibéo
Author URI: https://jibeo.fr
Template: hello-elementor
Version: 1.0.0
*/

.page-header{display: none;}

.rightsection ul li a{
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center!important;
}


.red{color: #992232;}

a.elementor-button span.elementor-button-text, button.elementor-button span.elementor-button-text, .elementor-field-group button.elementor-button span.elementor-button-text{text-decoration-line:line-through; text-decoration-color: #992232!important;}
a.elementor-button:hover span.elementor-button-text, button.elementor-button:hover span.elementor-button-text{text-decoration-line:none!important;}

.trait-noir a.elementor-button span.elementor-button-text, button.elementor-button span.elementor-button-text{text-decoration-line: line-through; text-decoration-color: #000!important;}


.elementor-form .elementor-form-fields-wrapper .elementor-field-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0px;
  margin-bottom: 12px;
}

.elementor-form .elementor-form-fields-wrapper .elementor-field-label {
  display: block !important;
  /* flex: 0 0 60px !important; */
  /* width: 80px !important; */
  /* min-width: 80px !important; */
  margin: 0 !important;
  padding: 0 !important;
}

.elementor-form .elementor-form-fields-wrapper .elementor-field-textual {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

.elementor-form textarea {
  background-image: linear-gradient(transparent calc(100% - 0.5px), #F3F0E24D 1px);
  /* adapte #ffffff à la couleur de tes lignes */
  background-size: 100% 3em; /* 2em = hauteur de ligne, à ajuster selon ton line-height */
  background-attachment: local;
  line-height: 3em; /* doit correspondre au background-size */
  padding-top: 0;
  resize: none; /* optionnel : empêche le redimensionnement */
  border-bottom: none!important;
}

/* MAP*/

#map-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Si le widget HTML a un conteneur Elementor autour */
.elementor-widget-html {
  width: 100%;
  overflow: hidden;
}

  /* Zones cliquables */
  g[data-region] {
    cursor: pointer;
    transition: opacity 0.2s;
  }
  g[data-region]:hover path,
  g[data-region]:hover polygon {
    opacity: 0.7;
    filter: brightness(1.15);
  }

  /* Tooltip */
  #svg-tooltip {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 100;
  }
  #svg-tooltip rect {
    fill: rgba(20,12,4,0.88);
    rx: 4;
  }
  #svg-tooltip text {
    fill: #f0e6d0;
    font-family: Georgia, serif;
    font-size: 14px;
  }

/* Conteneur Elementor du widget carte */
.elementor-widget-html svg,
#map-svg {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
}

/* Supprimer tout overflow caché sur les parents */
.elementor-widget-html {
  position: relative;
  width: 100%;
  /* ratio A3 paysage : 841/1190 = 70.7% */
  padding-bottom: 70.7%;
  height: 0;
}

#map-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
}

.vignette_link h2{
  text-underline-offset: 20px;
  text-decoration-thickness: 10px!important;
}

/* DOMAINES GRILLE */

.domaines-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .domaines-grille {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .domaines-grille {
        grid-template-columns: 1fr;
    }
}

.domaine-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.domaine-card:hover { transform: translateY(-3px); }

.domaine-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.domaine-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.domaine-card h3 {
  padding: 12px 14px 14px;
  font-size: 0.95rem;
}

.chargement {
  grid-column: 1/-1;
  text-align: center;
  color: #999;
  padding: 40px 0;
}

#region-results {
  padding: 40px 0;
  transition: opacity 0.3s;
}

#region-titre{
  font-size: 30px;
  line-height: 40px;
  font-family: "WS Stubed"!important;
  font-weight: normal!important;
}

.carte-recherche {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #333;
  padding: 8px 0;
  margin: 20px 0;
}

.carte-recherche svg {
  color: #888;
  flex-shrink: 0;
}

#carte-search {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  width: 100%;
  color: #333;
}

#carte-search::placeholder {
  color: #aaa;
}

#modale-domaine {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modale-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  cursor: pointer;
}

#modale-contenu {
  position: relative;
  z-index: 1;
  background: #fff;
  width: 92%;
  max-width: 900px;
  height: 85vh;
  border-radius: 6px;
  overflow: hidden;
}

#modale-fermer {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modale-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

body.modale-ouverte {
  overflow: hidden;
}

/* Désactive le dropdown flottant */
.elementor-nav-menu .sub-menu {
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: none;
  box-shadow: none !important;
  background: transparent !important;
  min-width: auto !important;
  padding: 0 !important;
}

/* Affiche le sous-menu quand le parent est actif/hover */
.elementor-nav-menu li:hover > .sub-menu,
.elementor-nav-menu li.current-menu-parent > .sub-menu,
.elementor-nav-menu li.current-menu-ancestor > .sub-menu {
  display: block !important;
}

.elementor-nav-menu ul.sub-menu {margin-top: 20px; width: 100%;}

/* Style des items du sous-menu */
.elementor-nav-menu .sub-menu li a {
  font-size: 25px!important;
  line-height: 40px;
  font-family: "WS Stubed"!important;
  font-weight: normal!important;
  display: block;
  text-align: center; /* adapte selon ton alignement */
  color: #992232;     /* adapte selon ta couleur */
  font-size: 0.9em;
  padding: 4px 0;
}

.elementor-nav-menu .sub-menu li.current-menu-item a, .elementor-nav-menu .sub-menu li a:hover{background:none!important;}
/*.elementor-nav-menu .sub-menu li.current-menu-item a{border-bottom: #000 solid 5px;}*/