/* ── Reveal You – Calendrier v3.0.0 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

#ryc-calendar {
    font-family: 'Georgia', 'Times New Roman', serif;
    max-width: 860px;
    margin: 0 auto;
    color: #111;
    background: #fff;
    padding: 8px 0 32px;
}

/* Navigation */
.ryc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #111;
    margin-bottom: 24px;
}
.ryc-nav-title {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.ryc-nav-btn {
    background: none;
    border: 1px solid #111;
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .95rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s, color .18s;
}
.ryc-nav-btn:hover { background: #111; color: #fff; }

/* Jours semaine */
.ryc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 4px;
}
.ryc-wd {
    text-align: center;
    font-size: .65rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #999;
    padding: 6px 0;
}

/* Grille */
.ryc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

/* Cellule */
.ryc-cell {
    min-height: 90px;
    border: 1px solid #e8e8e8;
    padding: 8px 7px 6px;
    background: #fff;
    vertical-align: top;
    transition: border-color .15s;
}
.ryc-cell:hover { border-color: #ccc; }
.ryc-cell.ryc-other { background: #fafafa; opacity: .4; pointer-events: none; }
.ryc-cell.ryc-today { border-color: #111; }

.ryc-cell-num {
    font-size: .72rem;
    color: #bbb;
    margin-bottom: 5px;
    display: block;
    line-height: 1;
}
.ryc-today .ryc-cell-num {
    background: #111;
    color: #fff;
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: .68rem;
}

/* Événement */
.ryc-event {
    border-left: 2px solid #999;
    padding: 4px 6px;
    margin-bottom: 4px;
    border-radius: 0 3px 3px 0;
    cursor: default;
    position: relative;
}

/* Catégorie */
.ryc-event-cat {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    display: block;
    line-height: 1.3;
    margin-bottom: 1px;
}

/* Titre optionnel */
.ryc-event-title {
    font-size: .67rem;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    display: block;
}

/* Horaire */
.ryc-event-slot {
    font-size: .58rem;
    color: #888;
    letter-spacing: .04em;
    margin-top: 1px;
    display: block;
}

/* Tooltip */
.ryc-event[data-desc]:hover::after {
    content: attr(data-desc);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: #1d1d1d;
    color: #fff;
    font-size: .72rem;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: normal;
    width: 210px;
    z-index: 100;
    pointer-events: none;
    font-family: 'Georgia', serif;
}
.ryc-event[data-desc]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 14px;
    border: 5px solid transparent;
    border-top-color: #1d1d1d;
    z-index: 101;
}

/* Légende */
.ryc-legend {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.ryc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    letter-spacing: .06em;
    color: #555;
}
.ryc-legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Responsive mobile : vue liste ── */
@media (max-width: 640px) {

    #ryc-calendar { padding: 8px 0 24px; }

    /* Navigation */
    .ryc-nav-title { font-size: 1rem; }
    .ryc-nav-btn   { width: 32px; height: 32px; font-size: .85rem; }

    /* Cacher la grille et les jours de semaine */
    .ryc-weekdays,
    .ryc-grid { display: none; }

    /* Vue liste */
    .ryc-list { display: flex; flex-direction: column; gap: 10px; }

    .ryc-list-day {
        border: 1px solid #e8e8e8;
        border-radius: 6px;
        overflow: hidden;
    }
    .ryc-list-day.ryc-list-today { border-color: #111; }

    .ryc-list-day-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        background: #fafafa;
        border-bottom: 1px solid #e8e8e8;
    }
    .ryc-list-today .ryc-list-day-header { background: #111; }

    .ryc-list-day-num {
        font-size: 1.1rem;
        font-weight: 500;
        color: #111;
        line-height: 1;
        min-width: 24px;
    }
    .ryc-list-today .ryc-list-day-num { color: #fff; }

    .ryc-list-day-label {
        font-size: .65rem;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: #999;
    }
    .ryc-list-today .ryc-list-day-label { color: #ccc; }

    .ryc-list-events { padding: 8px 14px; display: flex; flex-direction: column; gap: 8px; }

    .ryc-list-event {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 4px;
        border-left: 3px solid #999;
    }

    .ryc-list-event-icon { font-size: 1.1rem; line-height: 1; flex-shrink: 0; margin-top: 1px; }

    .ryc-list-event-body { flex: 1; min-width: 0; }

    .ryc-list-event-cat {
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .05em;
        text-transform: uppercase;
        display: block;
        margin-bottom: 2px;
    }
    .ryc-list-event-title {
        font-size: .82rem;
        font-weight: 600;
        color: #111;
        display: block;
        margin-bottom: 2px;
    }
    .ryc-list-event-slot {
        font-size: .72rem;
        color: #888;
        display: block;
    }

    /* Légende */
    .ryc-legend { gap: 10px; }
    .ryc-legend-item { font-size: .68rem; }
}
