/* ===== RESET ET POLICES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f9f9f9;
}

/* ===== EN-TÊTE ===== */
.header {
    background-color: #e6f2f0;
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: none;
    padding: 15px 0;
    transition: transform 0.3s ease;
}

/* Conteneur centré de l'en-tête */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.logo {
    width: auto;
    height: 120px;
    max-width: 100%;
    margin-bottom: 10px;
    border-radius: 50%;
    object-fit: contain;
}

/* Style UNIFORMISE pour tous les textes de l'en-tête */
.services, .cities, .contact-info, .email-link {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center !important;
    margin-bottom: 8px;
}

/* Style spécifique pour les coordonnées */
.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* ===== ONGLETS FIXES ===== */
.fixed-tabs {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #f0f8f7;
    display: flex;
    justify-content: center;
    border-top: 1px solid #ddd;
    flex-wrap: wrap;
    padding: 10px 0;
    margin-top: 0;
}

.tab-button {
    padding: 10px 15px 6px;
    border: none;
    background-color: #f0f8f7;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 2px;
}

.tab-button:hover {
    background-color: #d4edea;
}

.tab-button.active {
    background-color: #b8e0d8;
}

/* ===== CONTENU DES ONGLETS ===== */
.tab-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.tab {
    display: none;
    padding: 20px;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab.active {
    display: block;
}

/* Titres dans les onglets */
.tab h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Open Sans', sans-serif;
}

.tab h2 {
    font-size: 18px;
    color: #444;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    font-family: 'Open Sans', sans-serif;
}

/* Paragraphes dans les onglets */
.tab p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #555;
}

/* ===== ADRESSES (ONGLET "LIEUX") ===== */
.addresses-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.address-box {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.address-box:hover {
    background-color: #e6f2f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.address-box h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

.address-box p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
}

/* ===== LÉGENDE ===== */
.legend-box {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    max-width: 500px;
    text-align: left;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
}

/* ===== CARTE INTERACTIVE ===== */
#interactive-map {
    height: 500px;
    width: 100%;
    margin: 20px auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ===== CALENDRIER ===== */
#calendar {
    width: 100%;
    min-height: 600px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
}

/* Styles pour les événements du calendrier */
.fc-event {
    cursor: pointer;
}

.fc-event-available {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.fc-event-reserved {
    background-color: #f44336;
    border-color: #f44336;
    color: white;
}

/* Formulaire de réservation */
#reservation-form input,
#reservation-form select,
#reservation-form button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#reservation-form input,
#reservation-form select {
    margin-bottom: 15px;
}

#reservation-form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

#reservation-form button:hover {
    background-color: #45a049;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .fixed-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1 0 30%;
        margin: 2px 0;
    }

    .addresses-container {
        flex-direction: column;
    }

    .contact-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    #interactive-map {
        height: 400px;
    }
}

/* Effet de remontée partielle de l'en-tête */
.header.partially-hidden {
    transform: translateY(-70%);
}

/* Blocs de contenu ajoutés dynamiquement depuis l'espace Admin */
.cms-extra { margin-top: 20px; }
.cms-extra-block { margin-bottom: 16px; }
.cms-extra-image { max-width: 100%; border-radius: 8px; }
.cms-extra-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 800px; }
.cms-extra-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
