/* ============================================================
   GLAIEULS iCal CALENDAR — calendar.css
   ============================================================ */

.glaieuls-calendar-wrap {
    max-width: 420px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Navigation ── */
.glaieuls-cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.glaieuls-cal-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #2c3e50;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.glaieuls-cal-btn:hover {
    background: #1a252f;
    color: #fff !important;
}

.glaieuls-cal-btn.disabled {
    background: #ccc;
    color: #fff !important;
    cursor: default;
    pointer-events: none;
}

/* ── Titre du mois ── */
.glaieuls-cal-month {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.glaieuls-cal-title {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ── Tableau ── */
.glaieuls-cal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.glaieuls-cal-table thead th {
    background: #34495e;
    color: #ecf0f1;
    text-align: center;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glaieuls-cal-table tbody td {
    text-align: center;
    padding: 0;
    height: 44px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #f0f0f0;
    transition: transform 0.1s;
}

/* ── États des jours ── */
.glaieuls-day.glaieuls-available {
    background: #e8f5e9;
    color: #2e7d32;
    cursor: default;
}

.glaieuls-day.glaieuls-available:hover {
    background: #c8e6c9;
    transform: scale(1.05);
}

.glaieuls-day.glaieuls-booked {
    background: #ffebee;
    color: #c62828;
    cursor: not-allowed;
    position: relative;
}

.glaieuls-day.glaieuls-booked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 1px;
    background: #e57373;
    transform: translateY(-50%);
}

.glaieuls-day.glaieuls-today {
    background: #fff3e0;
    color: #e65100;
    font-weight: 700;
    border: 2px solid #ff9800 !important;
}

.glaieuls-day.glaieuls-past {
    background: #fafafa;
    color: #bdbdbd;
    cursor: default;
}

.glaieuls-empty {
    background: #fafafa;
}

/* ── Légende ── */
.glaieuls-cal-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 13px;
}

.glaieuls-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-weight: 500;
}

.glaieuls-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.glaieuls-dot.available {
    background: #66bb6a;
}

.glaieuls-dot.booked {
    background: #ef5350;
}

.glaieuls-dot.today {
    background: #ff9800;
    border: 2px solid #e65100;
}

/* ── Dernière synchronisation ── */
.glaieuls-cal-sync-info {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .glaieuls-calendar-wrap {
        max-width: 100%;
    }

    .glaieuls-cal-table tbody td {
        height: 36px;
        font-size: 12px;
    }

    .glaieuls-cal-title {
        font-size: 16px;
    }

    .glaieuls-cal-legend {
        gap: 12px;
        font-size: 12px;
    }
}
