/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

@font-face {
    font-family: "GinoraRegular";
    src: url("https://eventsetdomaines.fr/wp-content/themes/astra-child/Fonts/GinoraSansRegular.otf") format('opentype');
}


h1,
h2,
h3,
h4,
h5,
h6,
.GinoraRegular {
    font-family: "GinoraRegular" !important;
}

/* Map */
/* Stylisation de la sélection Select2 */
.select2-container--default .select2-selection--single {
    border-radius: 4px;
    height: 34px;
    line-height: 34px;
    padding: 0 8px;
}

/* Couleur du texte de la sélection */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #E94B28;
    line-height: 34px;
}

/* Bouton de flèche */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

/* Surlignage des options lors du survol */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #F9F9F9;
    color: #E94B28;
}

button.select2-selection__clear {
    color: #888888;
    line-height: 0.5em;
}

div#map-filters {
    display: flex;
    margin-right: 15px;
    gap: 15px;
    flex-direction: column;
}

div#map-franchise-map {
    z-index: 1;
}

/* Personnalisation de Select2 pour une apparence plus moderne */
.select2-container--default .select2-selection--single {
    background-color: #F9F9F9;
    border-radius: 4px;
    padding: 5px 10px;
    height: auto;
    transition: border-color 0.3s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333;
    font-size: 14px;
}

/* Optionnel : Ajout d'une légère ombre pour plus de relief */
.select2-container--default .select2-selection--single {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

span.select2-dropdown.select2-dropdown--below {
    top: 34px;
    padding: 5px 15px;
}

.select2-dropdown .select2-results__options {
    /* Pour Firefox */
    scrollbar-width: thin;
    scrollbar-color: #f1f1f4 transparent;
}

.select2-dropdown .select2-results__options:hover {
    scrollbar-color: lightgrey transparent;
}

/* Pour Chrome, Edge, Safari */
.select2-dropdown .select2-results__options::-webkit-scrollbar {
    width: 8px;
}

.select2-dropdown .select2-results__options::-webkit-scrollbar-track {
    background: transparent;
}

.select2-dropdown .select2-results__options::-webkit-scrollbar-thumb {
    background-color: #f1f1f4;
    border-radius: 10px;
    border: 2px solid transparent;
}

.map-franchise-wrapper {
    position: relative;
    min-height: 500px;
    /* Hauteur minimale égale à celle de votre carte */
}

#map-franchise-map {
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 500px;
}

#map-franchise-details {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    max-height: 500px;
    /* limite la hauteur */
    overflow-y: auto;
    /* active un scroll vertical si le contenu dépasse */
    transition: all 0.3s ease;
}


#map-franchise-sidebar {
    width: 30%;
    height: 500px;
    overflow-y: auto;
}

.loader {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #E94B28;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#classic-posts-container {
    background: none;
    padding: 20px;
}

.classic-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    gap: 20px;
    justify-content: center;
}


.classic-post-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    text-align: center;
    transition: box-shadow 0.3s ease;
    border-top-left-radius: 250px;
    border-top-right-radius: 250px;
    overflow: hidden;
}

.classic-post-image {
    padding: 0;
}

.classic-post-image img {
    max-width: 100%;
    height: 30vh;
    display: block;
    margin: 0;
    width: 100%;
    border-top-left-radius: 250px;
    border-top-right-radius: 250px;
}

.classic-post-content {
    padding: 15px;
    background-color: #ed4924;
    flex-grow: 1;
    padding-bottom: 50px;
}

.classic-post-content h3 {
    margin: 10px 0;
    font-size: 25px;
    font-weight: 500;
    font-family: "Roboto", Sans-serif;
    color: white;
    text-decoration: none !important;
}

.classic-post-content h3:hover {
    color: white;
}

.classic-post-link:hover {
    color: white !important;
}

.classic-post-content a {
    text-decoration: none !important;
}

.infos-domaine {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: #ed4924;
}

.classic-post-card .infos-domaine {
    color: white;
}

.infos-domaine img {
    max-width: 35px;
}

.infos-domaine div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.classic-post-card-around {
    padding: 20px;
    background-color: #ffffff6b;
    border-radius: 250px 250px 0 0;
    transition: background-color 0.3s ease-in-out;
}

.classic-post-card-around:hover {
    background-color: #fff;
}

.button-domaine-container {
    margin-top: 10px;
}

.button-domaine-container a {
    text-decoration: none !important;
    color: white;
    background-color: #ed4924;
    padding: 10px 25px;
    display: inline-block;
    text-transform: uppercase;
}

.infos-domaine span {
    font-size: 0.8rem;
}

.button-domaine-container a:hover {
    background-color: #f5e8da;
    color: #ed4924;
}

@media screen and (max-width: 1100px) {
    #map-franchise-sidebar {
        /* display: none !important; */
        width: 100% !important;
        height: auto !important;
    }

    .map-franchise-wrapper {
        flex-direction: column;
    }

    div#map-filters{
        margin-right: 0 !important;
    }

    #map-filters span.select2.select2-container.select2-container--default {
        width: 100% !important;
    }

    #map-franchise-map {
        width: 100% !important;
    }

    #map-franchise-list {
        display: none;
    }
}

#map-franchise-map .leaflet-pane.leaflet-tile-pane {
    filter: brightness(0.9);
}