/* =============================
   MASQUAGE DES ÉLÉMENTS
============================= */

/* Cache le bloc qui contient la classe avec "message" */
div[class*="message"] {
    display: none;
}

/* Masquer les labels spécifiques pour les quatre formulaires */
label[for^="hb-form-1-check"],
label[for^="hb-form-2-check"],
label[for^="hb-form-3-check"],
label[for^="hb-form-4-check"],
label[for="hb-form-1-adults"],
label[for="hb-form-2-adults"],
label[for="hb-form-3-adults"],
label[for="hb-form-4-adults"] {
    display: none;
}

/* Masquer le titre de recherche */
.hb-title.hb-title-search-form {
    display: none;
}


/* =============================
   STYLES GÉNÉRAUX DES BOUTONS
============================= */

/* Boutons Raven */
.raven-button,
a.raven-button {
    display: inline-block;
    position: relative;
    padding: 12px 24px;
    border-radius: 3px;
    line-height: 1;
    text-align: center;
    background-color: #84CCA4 !important;
    color: #fff !important;
    transition: all .5s;
    -webkit-transition: all .5s;
}

/* Boutons de soumission formulaires principaux */
#hb-form-1-hb-search-form-submit,
#hb-form-2-hb-search-form-submit,
#hb-form-3-hb-search-form-submit,
#hb-form-4-hb-search-form-submit {
    background-color: #66CC99;
    color: white;
    border-radius: 5px;
    border: none;
    box-shadow: none;
    outline: none;
}

/* =============================
   STYLES DES VIGNETTES 9 ET 19 SUR LA CARTE 
============================= */
.dm-etang-post-item[data-dm-item-number="9"],
.dm-etang-post-item[data-dm-item-number="19"] {
    background: rgb(51,212,255) !important;
}

/* =============================
   CARTE DES POSTES — SURVOL D'UN NUMÉRO
   Effet piloté avec le SVG inliné (cf. custom.js) :
   - léger zoom de la pastille (retour visuel),
   - le trait de délimitation de la zone correspondante passe en BLANC.
============================= */
.dm-etang-post-container > .dm-etang-post-items > .dm-etang-post-item {
    transition: transform .15s ease;
}
.dm-etang-post-container > .dm-etang-post-items > .dm-etang-post-item:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Plan SVG inliné : largeur fluide, le viewBox gère le ratio */
.dm-etang-inline-map {
    display: block;
    width: 100%;
    height: auto;
}

/* Trait de la zone du poste survolé : noir -> blanc */
.dm-etang-inline-map [id^="poste"].dm-zone-hl .s1,
.dm-etang-inline-map [id^="poste"].dm-zone-hl path {
    fill: #fff !important;
    stroke: #fff !important;
    transition: fill .15s ease, stroke .15s ease;
}



/* =============================
   STYLES DES CHAMPS DE FORMULAIRE
============================= */

/* Inputs dates et Nb de pêcheur */
[id^="hb-form-1-check"],
[id^="hb-form-2-check"],
[id^="hb-form-3-check"],
[id^="hb-form-4-check"],
#hb-form-1-adults,
#hb-form-2-adults,
#hb-form-3-adults,
#hb-form-4-adults {
    border: 1px solid #ccc;
    border-radius: 5px;
    min-height: 29px;
    font-size: 12px;
    color: #888;
    margin-top: 32px;
    padding-left: 7px;
    max-height: 28px !important;
}

/* Placeholder et option désactivée */
[id^="hb-form-1-check"]::placeholder,
[id^="hb-form-2-check"]::placeholder,
[id^="hb-form-3-check"]::placeholder,
[id^="hb-form-4-check"]::placeholder,
#hb-form-1-adults option[disabled],
#hb-form-2-adults option[disabled],
#hb-form-3-adults option[disabled],
#hb-form-4-adults option[disabled] {
    font-size: 12px;
    color: #888;
}

/* Style général du select (Nb de pêcheur) */
.hb-adults {
    appearance: none; /* Supprime le style natif */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    font-size: 1rem;
    color: black;
    position: relative;
    margin-top: 32px;
    padding-left: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2328a745' d='M1.5 5.5l6 6 6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

/* Correction pour Firefox / IE */
.hb-adults::-ms-expand {
    display: none; /* Supprime les flèches supplémentaires dans IE/Edge */
}

/* =============================
   AUTRES AJUSTEMENTS
============================= */

/* Ajustement du bloc RÉSERVER VOTRE SESSION */
.elementor-heading-title {
    margin-bottom: 25px !important;
}

/* =============================
   CARTE DES POSTES — CENTRAGE DES ONGLETS (raven-tabs)
   Remplace l'ancien hack « margin-left:100px » cassé par jupiterx-core 4.50.0.
   Méthode robuste : la liste prend la largeur de son contenu et se centre via
   marges auto (fonctionne quel que soit le comportement flex), avec retour à la
   ligne propre si trop d'onglets. Général : vaut pour tous les étangs.
============================= */
.raven-tabs .raven-tabs-list {
    width: -moz-fit-content !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

/* =============================
   SOUS-MENUS MOBILE / TABLETTE
============================= */

/* Fond vert plus clair pour différencier les sous-menus du menu principal */
.elementor-element-1663252 .raven-nav-menu-mobile .raven-submenu,
.elementor-element-20ee57b .raven-nav-menu-mobile .raven-submenu {
    background-color: #99DDBB !important;
    border-radius: 5px;
}

.elementor-element-1663252 .raven-nav-menu-mobile .raven-submenu li > a,
.elementor-element-20ee57b .raven-nav-menu-mobile .raven-submenu li > a {
    background-color: #99DDBB !important;
}

/* =============================
   MEDIA QUERIES (VERSION MOBILE)
============================= */
@media only screen and (max-width: 768px) {
    /* Margin top ajusté uniquement pour les champs de dates */
    .hb-check-dates-wrapper {
        margin-top: -25px !important;
    }

    /* Laisse le champ "Nb de pêcheur" avec un léger ajustement si besoin */
    .hb-people-wrapper.hb-people-wrapper-adults {
        margin-top: -25px !important;
    }
}
