/* ── Reveal You – Calendrier d'affichage ── */
*, *::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;
    line-height: 1;
    transition: background .18s, color .18s;
    display: flex; align-items: center; justify-content: center;
}
.ryc-nav-btn:hover { background: #111; color: #fff; }

/* ── En-têtes jours ── */
.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;
}
.ryc-cell.ryc-other { background: #fafafa; opacity: .4; pointer-events: none; }
.ryc-cell.ryc-today { border-color: #111; }

/* Numéro du jour */
.ryc-cell-num {
    font-size: .72rem;
    color: #bbb;
    margin-bottom: 6px;
    display: block;
    font-style: normal;
    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 #111;
    padding: 4px 6px;
    margin-bottom: 4px;
    background: #f7f7f7;
    border-radius: 0 3px 3px 0;
    cursor: default;
    position: relative;
}
.ryc-event-title {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1.3;
    color: #111;
    display: block;
}
.ryc-event-slot {
    font-size: .6rem;
    color: #888;
    letter-spacing: .06em;
    margin-top: 2px;
    display: block;
}

/* ── Tooltip description ── */
.ryc-event[data-desc]:hover::after {
    content: attr(data-desc);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: #111;
    color: #fff;
    font-size: .72rem;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 3px;
    white-space: normal;
    width: 200px;
    z-index: 100;
    pointer-events: none;
    letter-spacing: .02em;
    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: #111;
    z-index: 101;
}

/* ── Légende ── */
.ryc-legend {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.ryc-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    letter-spacing: .08em;
    color: #666;
}
.ryc-legend-dot {
    width: 10px; height: 10px;
    border-left: 2px solid #111;
    background: #f7f7f7;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 580px) {
    .ryc-cell       { min-height: 60px; padding: 5px 3px; }
    .ryc-event-title { font-size: .6rem; }
    .ryc-event-slot  { display: none; }
    .ryc-nav-title   { font-size: 1rem; }
    .ryc-wd          { font-size: .55rem; letter-spacing: .08em; }
}
