.rdv-widget, .rdv-result {
    --rdv-ink: #14322A;
    --rdv-green: #1E6B50;
    --rdv-border: #E2F0E8;
    --rdv-muted: #6B7E74;
    --rdv-soft: #F4FAF6;
    color: var(--rdv-ink);
    font-family: 'Hanken Grotesque', Arial, sans-serif;
}
.rdv-widget *, .rdv-result * { box-sizing: border-box; }
.rdv-widget [hidden], .rdv-result [hidden] { display: none; }
.rdv-widget button { font-family: inherit; cursor: pointer; }
.rdv-widget button:disabled { opacity: .45; cursor: default; }
.rdv-widget button:focus-visible, .rdv-widget input:focus-visible, .rdv-result a:focus-visible {
    outline: 3px solid #7CF0B5; outline-offset: 2px;
}
.rdv-tab {
    position: fixed; right: 0; top: 42%; transform: translateY(-50%); z-index: 400;
    background: var(--rdv-green); color: #fff; border: 0; padding: 18px 12px;
    border-radius: 14px 0 0 14px; box-shadow: -4px 6px 24px #14322a33;
    font-size: 14px; font-weight: 800; writing-mode: vertical-rl; letter-spacing: .02em;
    display: flex; align-items: center; gap: 10px; white-space: nowrap;
    max-height: calc(100dvh - 24px);
}
.rdv-tab::before {
    content: ""; width: 9px; height: 9px; border-radius: 50%; background: #7CF0B5;
    box-shadow: 0 0 0 0 #7CF0B5; animation: rdv-pulse 2s infinite;
}
.rdv-tab[aria-expanded="true"] { visibility: hidden; }
@keyframes rdv-pulse { 70% { box-shadow: 0 0 0 9px #7CF0B500; } 100% { box-shadow: 0 0 0 0 #7CF0B500; } }
.rdv-panel {
    position: fixed; right: 52px; top: 50%; transform: translateY(-50%); width: 290px;
    max-width: calc(100vw - 70px); max-height: calc(100dvh - 24px);
    background: #fff; border-radius: 22px; box-shadow: 0 20px 60px #14322a40;
    z-index: 410; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rdv-border);
}
.rdv-head { background: var(--rdv-ink); color: #fff; padding: 14px 16px; display: flex; gap: 11px; align-items: center; flex-shrink: 0; }
.rdv-avatar {
    flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--rdv-green);
    border: 2px solid #7CF0B5; display: grid; place-items: center; font: 500 20px 'Newsreader', Georgia, serif;
}
.rdv-head h3 { margin: 0 0 2px; font: 500 17px/1.15 'Newsreader', Georgia, serif; padding-right: 22px; }
.rdv-head span { font-size: 11.5px; opacity: .8; line-height: 1.3; display: block; }
.rdv-close { position: absolute; right: 8px; top: 8px; background: #ffffff22; border: 0; color: #fff; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; }
.rdv-steps { display: flex; gap: 5px; padding: 10px 16px 0; flex-shrink: 0; }
.rdv-steps i { flex: 1; height: 4px; border-radius: 9px; background: var(--rdv-border); }
.rdv-steps i.on { background: var(--rdv-green); }
.rdv-body { padding: 12px 16px 16px; overflow-y: auto; }
.rdv-body label { font-size: 12px; font-weight: 800; color: var(--rdv-muted); text-transform: uppercase; letter-spacing: .05em; }
.rdv-day-heading { display: flex; align-items: center; justify-content: space-between; }
.rdv-day-heading button, .rdv-back { border: 0; background: transparent; color: var(--rdv-green); font-size: 12px; padding: 2px 6px; }
.rdv-day-heading button { font-size: 18px; }
.rdv-days { display: flex; gap: 6px; margin: 6px 0 11px; }
.rdv-day {
    flex: 1; text-align: center; padding: 6px 2px; border: 1.5px solid var(--rdv-border);
    border-radius: 12px; font-size: 12px; color: var(--rdv-muted); font-weight: 700; background: #fff;
}
.rdv-day b { display: block; font: 500 17px 'Newsreader', Georgia, serif; color: var(--rdv-ink); }
.rdv-day.on { border-color: var(--rdv-green); background: var(--rdv-soft); }
.rdv-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.rdv-slot { padding: 8px 0; text-align: center; border: 1.5px solid var(--rdv-border); border-radius: 10px; font-weight: 700; font-size: 13px; background: #fff; color: var(--rdv-ink); }
.rdv-slot.on { background: var(--rdv-green); color: #fff; border-color: var(--rdv-green); }
.rdv-body input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--rdv-border); border-radius: 10px; font: inherit; font-size: 14px; margin: 4px 0 10px; }
.rdv-btn { display: block; width: 100%; background: var(--rdv-green); color: #fff; border: 0; padding: 11px; border-radius: 10px; font: 800 14px 'Hanken Grotesque', Arial, sans-serif; text-align: center; text-decoration: none; }
.rdv-continue { margin-top: 14px; }
.rdv-note, .rdv-status { font-size: 11.5px; color: var(--rdv-muted); line-height: 1.45; margin: 10px 0 0; }
.rdv-status:empty { display: none; }
.rdv-status { color: var(--rdv-green); }
.rdv-timezone { margin-top: 6px; font-size: 10px; }
.rdv-recap { background: var(--rdv-soft); border: 1px solid var(--rdv-border); border-radius: 12px; padding: 12px 14px; font-weight: 700; margin: 8px 0; font-size: 13px; }
.rdv-ok { text-align: center; padding-top: 4px; }
.rdv-check { width: 48px; height: 48px; border-radius: 50%; background: #E3F5EC; color: var(--rdv-green); font-size: 24px; display: grid; place-items: center; margin: 0 auto 14px; }
.rdv-ok h3 { margin: 0 0 6px; font: 500 19px 'Newsreader', Georgia, serif; }
.rdv-ok .rdv-note { font-size: 12.5px; }
.rdv-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rdv-welcome-overlay {
    position: fixed; inset: 0; z-index: 500; background: #14322a99;
    display: flex; overflow: auto; padding: 12px;
}
.rdv-welcome { width: 100%; max-width: 440px; margin: auto; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px #0004; }
.rdv-welcome-head { position: relative; background: var(--rdv-ink); color: #fff; padding: 16px 42px 16px 18px; }
.rdv-welcome-head h2 { font: 600 22px/1.2 'Newsreader', Georgia, serif; margin: 4px 0; }
.rdv-welcome-head p { font-size: 13.5px; margin: 0; }
.rdv-welcome-eyebrow { font-size: 11px; letter-spacing: .08em; font-weight: 700; opacity: .7; }
.rdv-welcome-close { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #ffffff26; color: #fff; }
.rdv-welcome-content { padding: 14px 18px 18px; }
.rdv-welcome-benefit { background: #fff0e0; border: 1px solid #f1c79a; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; color: #a8410c; font-size: 14px; }
.rdv-welcome-benefit small { display: block; font-weight: 600; margin-top: 2px; }
.rdv-welcome-separator { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; color: var(--rdv-muted); font-size: 12.5px; }
.rdv-welcome-separator::before, .rdv-welcome-separator::after { content: ''; flex: 1; height: 1px; background: var(--rdv-border); }
.rdv-welcome-booking .rdv-steps { padding: 6px 0 0; }
.rdv-welcome-booking .rdv-body { padding: 12px 0 0; overflow: visible; }
.rdv-result { margin: 0; min-height: 100dvh; display: grid; place-items: center; background: #FBFAF6; padding: 20px; }
.rdv-result main { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--rdv-border); border-radius: 22px; overflow: hidden; }
.rdv-result header { background: var(--rdv-ink); color: #fff; font: 500 22px 'Newsreader', Georgia, serif; padding: 18px 24px; }
.rdv-result-content { padding: 24px; }
.rdv-result h1 { font: 500 26px 'Newsreader', Georgia, serif; margin: 0 0 12px; }
.rdv-result p { line-height: 1.5; }
.rdv-result .rdv-btn { margin-top: 20px; }
.rdv-result .rdv-home { display: block; color: var(--rdv-green); font-size: 13px; margin-top: 16px; text-align: center; }
@media (max-width: 600px) {
    .rdv-tab { padding: 12px 8px; font-size: 12px; border-radius: 10px 0 0 10px; }
    .rdv-panel { right: 10px; left: 10px; width: auto; max-width: none; top: auto; bottom: max(12px, env(safe-area-inset-bottom)); transform: none; max-height: min(560px, calc(100dvh - 24px)); }
    .rdv-head { padding: 12px 16px; }
}
@media (max-width: 768px) {
    /* Les règles génériques de l'accueil mobile ne doivent pas décaler la fenêtre. */
    .rdv-widget .rdv-welcome, .rdv-widget .rdv-body section { padding-left: 0 !important; padding-right: 0 !important; }
    .rdv-widget .rdv-welcome-head { padding: 16px 42px 16px 18px !important; }
    .rdv-widget .rdv-welcome-head h2 { font-size: 22px !important; }
}
@media (prefers-reduced-motion: reduce) { .rdv-tab::before { animation: none; } }
