/* --- CONTAINER DISPONIBILITÉS --- */
.availability-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    margin-top: 20px;
}

/* Label + select véhicule */
.vehicle-label {
    color: #e5f9f8;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.vehicle-select {
    background: #0d1b2a;
    color: #00d1c7;
    border: 1px solid #00d1c7;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* --- RESET FULLCALENDAR GLOBAL --- */
.fc, .fc * {
    font-family: 'Inter', sans-serif !important;
    box-shadow: none !important;
}

/* --- CONTENEUR CALENDRIER (DARK GLASS) --- */
#calendar {
    background: rgba(13, 27, 42, 0.55);
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(0, 209, 199, 0.35);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* --- HEADER DES JOURS --- */
.fc-col-header-cell {
    background: rgba(255,255,255,0.04) !important;
    border: none !important;
    padding: 12px 0 !important;
    font-weight: 600;
    color: #e5f9f8 !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Titre semaine */
.fc-toolbar-title {
    color: #00d1c7;
    font-weight: 700;
    font-size: 20px;
}

/* --- GRILLE & HEURES --- */
.fc-timegrid-slot-label {
    color: #9ca3af !important;
    font-size: 13px !important;
    font-weight: 500;
    padding-right: 10px !important;
}

.fc-timegrid-slot {
    height: 32px !important;
    border-color: rgba(255,255,255,0.05) !important;
}

.fc-timegrid-col {
    border-color: rgba(255,255,255,0.05) !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border: 1px solid rgba(255,255,255,0.05) !important;
}

/* --- BOUTONS FULLCALENDAR --- */
.fc-button {
    background: #00d1c7 !important;
    border: none !important;
    color: #0d1b2a !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    font-weight: 600 !important;
}

.fc-button:hover {
    background: #00b8ae !important;
}

/* --- JOUR ACTUEL --- */
.fc-day-today {
    background: rgba(0, 209, 199, 0.08) !important;
}

/* --- RESET EVENTS PAR DÉFAUT (mais pas nos classes) --- */
.fc-event:not(.tc-pending-slot):not(.tc-saved-slot) {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.fc-event:not(.tc-pending-slot):not(.tc-saved-slot) .fc-event-main {
    background: none !important;
    border: none !important;
    color: transparent !important;
}

/* 🔥 IMPORTANT : restaurer les clics */
.fc-event .fc-event-main {
    pointer-events: auto !important;
}

/* --- CRÉNEAUX ENREGISTRÉS (BLEU) --- */
.fc-event.tc-saved-slot {
    background: rgba(0, 209, 255, 0.25) !important;
    border: 2px solid rgba(0, 209, 255, 0.8) !important;
    border-radius: 6px !important;
    box-shadow: 0 0 8px rgba(0, 209, 255, 0.4);
    cursor: pointer;
}

.fc-event.tc-saved-slot .fc-event-main {
    background: transparent !important;
    color: transparent !important;
}

/* --- CRÉNEAUX PENDING (TURQUOISE) --- */
.fc-event.tc-pending-slot {
    background: rgba(0, 209, 199, 0.45) !important;
    border: 2px solid #00d1c7 !important;
    border-radius: 6px !important;
    box-shadow: 0 0 10px rgba(0, 209, 199, 0.6);
    cursor: pointer;
}

.fc-event.tc-pending-slot .fc-event-main {
    background: transparent !important;
    color: transparent !important;
}

/* --- CARDS --- */
.card-clickable {
    display: flex;
    align-items: center;
    padding: 22px;
    border-radius: 16px;
    background: rgba(13, 27, 42, 0.35) !important;
    backdrop-filter: blur(14px);
    border: 2px solid rgba(0,209,199,0.65);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: 0.25s ease;
}

.card-clickable:hover {
    background: rgba(0,209,199,0.12);
    border-color: rgba(0,209,199,0.75);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,209,199,0.25);
}

.cdc-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #00d1c7;
}

.cdc-subtitle {
    margin: 4px 0 6px;
    font-size: 14px;
    color: #e5f9f8;
    opacity: 0.85;
}

.cdc-cta {
    font-size: 14px;
    font-weight: 600;
    color: #00d1c7;
    text-decoration: underline;
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* --- PANEL DISPONIBILITÉS --- */
/* .dispos-panel {
    margin-top: 25px;
    animation: fadeIn 0.4s ease;
} */
/* --- PANEL DISPONIBILITÉS --- */
.dispos-panel {
    margin-top: 25px;
    animation: fadeIn 0.4s ease;
    position: relative;          
    z-index: 1;                  
    pointer-events: auto;        
}

/* Quand le panel est masqué → il ne doit PLUS bloquer les clics */
.dispos-panel.hidden {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}


.hidden {
    display: none !important;
}

.btn-primary {
    background: #00d1c7;
    color: #0d1b2a;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn-primary:hover {
    background: #00b8ae;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------ */
/* 📱📱📱 VERSION SMARTPHONE (FULLCALENDAR MOBILE) */
/* ------------------------------------------------------ */

@media (max-width: 768px) {

    /* Réduction padding */
    #calendar {
        padding: 8px !important;
    }

    /* Titre plus petit */
    .fc-toolbar-title {
        font-size: 16px !important;
    }

    /* Header compact */
    .fc-col-header-cell {
        padding: 6px 0 !important;
        font-size: 11px !important;
    }

    /* Heures plus petites */
    .fc-timegrid-slot-label {
        font-size: 10px !important;
        padding-right: 4px !important;
    }

    /* Hauteur des slots réduite */
    .fc-timegrid-slot {
        height: 26px !important;
    }

    /* Scroll vertical fluide */
    .fc-scroller {
        overflow-y: auto !important;
        max-height: 60vh !important;
    }

    /* Events plus visibles */
    .fc-event.tc-pending-slot,
    .fc-event.tc-saved-slot {
        border-width: 1px !important;
        box-shadow: none !important;
    }

    /* Cards */
    .availability-container,
    .card-dispos {
        padding: 12px !important;
    }

    .vehicle-select {
        width: 100%;
    }
}
