
.bdo-rdv-wrap {
    max-width: 980px;
    margin: 20px auto;
    font-family: inherit;
}
.bdo-rdv-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    font-size: 14px;
}
.bdo-rdv-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 6px;
}
.bdo-rdv-dot.available { background: #2e9d55; }
.bdo-rdv-dot.unavailable { background: #d74b4b; }

.bdo-rdv-day,
.bdo-rdv-customer,
.bdo-rdv-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.bdo-rdv-day h3,
.bdo-rdv-customer h3 {
    margin-top: 0;
}
.bdo-rdv-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bdo-rdv-slot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
}
.bdo-rdv-slot.is-available {
    background: #eaf7ef;
    border-color: #8ed0a7;
    cursor: pointer;
}
.bdo-rdv-slot.is-available:hover {
    background: #dff2e7;
}
.bdo-rdv-slot.is-unavailable {
    background: #fdecec;
    border-color: #efb0b0;
    color: #8f3030;
}
.bdo-rdv-fields,
.bdo-rdv-grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.bdo-rdv-fields label,
.bdo-rdv-grid-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}
.bdo-rdv-fields input,
.bdo-rdv-fields textarea,
.bdo-rdv-grid-form input,
.bdo-rdv-grid-form select {
    width: 100%;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
}
.bdo-rdv-full {
    grid-column: 1 / -1;
}
.bdo-rdv-submit {
    margin-top: 16px;
    border: 0;
    border-radius: 10px;
    padding: 13px 20px;
    background: #1f6d3d;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.bdo-rdv-submit:hover {
    opacity: .92;
}
.bdo-rdv-small {
    font-size: 13px;
    color: #666;
}
.bdo-rdv-notice {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.bdo-rdv-notice.success {
    background: #eaf7ef;
    border: 1px solid #8ed0a7;
}
.bdo-rdv-notice.error {
    background: #fdecec;
    border: 1px solid #efb0b0;
}
.bdo-rdv-empty {
    padding: 20px;
    background: #f6f6f6;
    border-radius: 10px;
}
.bdo-rdv-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
}
.bdo-rdv-available { background: #eaf7ef; color: #1f6d3d; }
.bdo-rdv-blocked { background: #fdecec; color: #8f3030; }
.bdo-rdv-booked { background: #fff1cf; color: #795800; }
.bdo-rdv-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.bdo-rdv-table-wrap {
    overflow-x: auto;
}
.bdo-rdv-admin .bdo-rdv-card {
    max-width: 1100px;
}
@media (max-width: 700px) {
    .bdo-rdv-fields,
    .bdo-rdv-grid-form {
        grid-template-columns: 1fr;
    }
    .bdo-rdv-full {
        grid-column: auto;
    }
    .bdo-rdv-slot {
        width: 100%;
    }
}

.bdo-rdv-login-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.bdo-rdv-login-card h3 {
    margin-top: 0;
}
.bdo-rdv-account-button {
    display: inline-block;
    margin: 10px 0;
    border-radius: 10px;
    padding: 13px 20px;
    background: #1f6d3d;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}
.bdo-rdv-account-button:hover {
    opacity: .92;
}

/* Calendrier client — version 2 */
.bdo-rdv-calendar-card,
.bdo-rdv-slot-panel {
    background: #fff;
    border: 1px solid #e6e2dc;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 5px 22px rgba(0,0,0,.05);
}
.bdo-rdv-calendar-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.bdo-rdv-month-title { margin: 0; text-align: center; font-size: 24px; }
.bdo-rdv-month-nav {
    width: 42px;
    height: 42px;
    border: 1px solid #d9d4cc;
    border-radius: 50%;
    background: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}
.bdo-rdv-month-nav:hover { background: #f6f3ef; }
.bdo-rdv-weekdays,
.bdo-rdv-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}
.bdo-rdv-weekdays { margin-bottom: 8px; color: #67615b; font-size: 13px; font-weight: 700; text-align: center; }
.bdo-rdv-calendar-day,
.bdo-rdv-calendar-blank {
    aspect-ratio: 1 / 1;
    min-height: 44px;
}
.bdo-rdv-calendar-day {
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.bdo-rdv-calendar-day.is-available { background: #eaf7ef; border-color: #8ed0a7; color: #1f6d3d; }
.bdo-rdv-calendar-day.is-unavailable { background: #fdecec; border-color: #efb0b0; color: #8f3030; }
.bdo-rdv-calendar-day.is-closed { background: #f3f1ee; color: #aaa39b; }
.bdo-rdv-calendar-day.is-available:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(31,109,61,.14); }
.bdo-rdv-calendar-day.is-selected { outline: 3px solid #c6a76a; outline-offset: 2px; }
.bdo-rdv-calendar-day.is-today { text-decoration: underline; text-underline-offset: 4px; }
.bdo-rdv-calendar-day:disabled { cursor: default; }
.bdo-rdv-dot.closed { background: #c7c2bc; }
.bdo-rdv-slot-panel h3 { margin: 0 0 5px; }
.bdo-rdv-slot input { accent-color: #1f6d3d; }
@media (max-width: 520px) {
    .bdo-rdv-calendar-card { padding: 14px; }
    .bdo-rdv-weekdays, .bdo-rdv-calendar-grid { gap: 5px; }
    .bdo-rdv-calendar-day, .bdo-rdv-calendar-blank { min-height: 38px; }
    .bdo-rdv-month-title { font-size: 20px; }
}

/* Navigation espace client — v2.1 */
.bdo-rdv-return-wrap { margin: 0 0 20px; }
.bdo-rdv-return-button {
    display: inline-flex; align-items: center; padding: 12px 20px;
    background: #f4ead8; color: #c66f00 !important; border: 1px solid #e1b66f;
    border-radius: 9px; font-weight: 700; text-decoration: none !important;
}
.bdo-rdv-return-button:hover { background: #c66f00; color: #fff !important; }
.bdo-rdv-register-card { max-width: 760px; margin: 20px auto; }
.bdo-rdv-session-overlay { position: fixed; inset: 0; z-index: 999999; background: rgba(0,0,0,.48); display:flex; align-items:center; justify-content:center; padding:20px; }
.bdo-rdv-session-modal { width:min(480px,100%); background:#fff; border-radius:16px; padding:28px; box-shadow:0 20px 60px rgba(0,0,0,.25); text-align:center; }
.bdo-rdv-session-modal h3 { margin-top:0; }
.bdo-rdv-session-actions { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:20px; }
.bdo-rdv-session-actions button, .bdo-rdv-session-actions a { border:0; border-radius:9px; padding:12px 18px; font-weight:700; cursor:pointer; text-decoration:none; }
.bdo-rdv-session-actions button { background:#1f6d3d; color:#fff; }
.bdo-rdv-session-actions a { background:#f2f2f2; color:#333; }

/* Suivi des confirmations — v2.2 */
.bdo-rdv-email-log { min-width: 245px; }
.bdo-rdv-email-log > div { margin-bottom: 7px; }
.bdo-rdv-mail-status { display: inline-block; line-height: 1.35; }
.bdo-rdv-my-bookings { margin-bottom: 20px; }
.bdo-rdv-my-bookings h3 { margin-top: 0; }
.bdo-rdv-my-booking-row {
    display: grid;
    grid-template-columns: 120px 110px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ece8e2;
}
.bdo-rdv-my-booking-row:last-of-type { border-bottom: 0; }
.bdo-rdv-client-status { font-weight: 700; }
.bdo-rdv-client-confirmed { color: #1f6d3d; }
.bdo-rdv-client-pending { color: #795800; }
.bdo-rdv-client-cancelled { color: #8f3030; }
@media (max-width: 620px) {
    .bdo-rdv-my-booking-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Lecture et accusé de réception — v2.3 */
.bdo-rdv-mail-status.opened { color: #795800; }
.bdo-rdv-mail-status.ack { color: #1f6d3d; font-weight: 700; }
