/* Importation de Font Awesome pour les icônes */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Style général de l'espace privé */
.epc-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #000;
    background-color: #f9f9f9;
}

/* Titre principal */
.epc-wrap h1 {
    color: #000;
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    text-align: center;
}

/* --- NOUVEAU : Style pour la navigation unique et fixe --- */
.epc-global-navigation {
    position: sticky;
    top: 32px; /* S'adapte à la barre d'admin WordPress */
    z-index: 100;
    background: #fff;
    padding: 15px 25px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.epc-nav-button {
    padding: 10px 18px;
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 5px;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease;
}

.epc-nav-button:hover { 
    background: #5d9cec; 
    color: #fff;
    border-color: #5d9cec;
}

.epc-month-display {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
    text-transform: capitalize;
}

/* Conteneur des calendriers côte à côte */
.epc-calendriers-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 25px;
    margin-bottom: 35px;
}

.epc-calendrier {
    flex: 1;
    min-width: 300px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.epc-calendrier h2 {
    color: #000;
    font-size: 20px;
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.epc-calendrier h2 i { color: #5d9cec; }

/* Style des calendriers FullCalendar */
#hibou-calendar, #mirage-calendar, #propriete-calendar {
    min-height: 500px;
    margin-top: 15px;
}

/* --- AJUSTÉ : Style pour les événements (RÉSERVATIONS) --- */
.fc-event {
    cursor: pointer; /* Indique que c'est cliquable pour supprimer */
    background-color: #e74c3c !important;
    border: none !important;
    color: #fff !important; 
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 0.9em;
    transition: transform 0.1s ease, opacity 0.2s ease;
}

.fc-event:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* Couleurs des jours dans le calendrier */
.fc-day { background-color: #e8f8f5; } /* Libre (Bleu vert clair) */
.fc-daygrid-day-number { color: #000 !important; font-weight: 600; }
.fc-col-header-cell-cushion { color: #000 !important; }

/* Conteneur du formulaire */
.epc-form-container {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.epc-form { display: flex; flex-wrap: wrap; gap: 15px; }
.epc-form-group { flex: 1; min-width: 200px; }
.epc-form-group label { display: block; margin-bottom: 8px; font-weight: 600; }

.epc-form-group input, .epc-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #000;
}

/* Boutons */
.epc-button {
    background: #5d9cec;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.epc-button:hover { background: #4a89dc; }

/* Liens iCal */
.epc-ical-links {
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.epc-ical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.epc-ical-item { background: #f9f9f9; padding: 15px; border-radius: 6px; border: 1px solid #eee; }
.epc-url-container { display: flex; margin-top: 10px; }
.epc-url-input { flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 4px 0 0 4px; font-size: 11px; }
.epc-copy-button { background: #5d9cec; color: #fff; border: none; padding: 8px 12px; border-radius: 0 4px 4px 0; cursor: pointer; }

/* --- Popup d'avertissement --- */
#epc-warning-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

#epc-warning-popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    z-index: 10000;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.epc-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

#epc-warning-cancel { background: #eee; border: 1px solid #ccc; padding: 10px 20px; border-radius: 4px; cursor: pointer; }
#epc-warning-confirm { background: #e74c3c; color: #fff; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; }

/* Responsive */
@media (max-width: 1024px) {
    .epc-calendriers-container { flex-direction: column; }
    .epc-global-navigation { top: 0; flex-direction: column; gap: 10px; }
}