/* Rendez-vous en ligne : styles propres à la page, construits sur les variables du site (style.css). */
.rdv { --rdv-ok: #1b7f4b; --rdv-ok-bg: #e6f4ec; --rdv-gris: #eef0f3; }
.rdv [hidden] { display: none !important; }
.rdv-test { margin: 0 0 22px; padding: 12px 16px; border: 2px dashed var(--gold); border-radius: 14px; background: #fff8e6; color: #5a4300; font-size: .95rem; }
.rdv-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.rdv-etapes { display: flex; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; flex-wrap: wrap; }
.rdv-etapes li { padding: 6px 14px; border-radius: 999px; background: var(--rdv-gris); color: var(--muted); font-weight: 800; font-size: .92rem; }
.rdv-etapes li.actif { background: var(--navy); color: var(--white); }
.rdv-etapes li.fait { background: var(--mint); color: var(--navy); }
.rdv-annonce { min-height: 1.4em; margin: 0 0 6px; color: var(--muted); font-size: .92rem; }
.rdv-bloc { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 30px rgba(6, 25, 51, .06); }
.rdv-bloc[hidden] { display: none; }
.rdv-bloc h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.rdv-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--white); font-size: 1rem; flex: none; }
.rdv-chargement { color: var(--muted); }

.rdv-semaine + .rdv-semaine { margin-top: 20px; }
.rdv-semaine h3 { margin: 0 0 10px; font-size: .95rem; color: var(--muted); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.rdv-grille { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rdv-jour, .rdv-heure { font: inherit; cursor: pointer; border: 2px solid var(--line); background: var(--white); color: var(--navy); transition: border-color .15s, background .15s, transform .15s; }
.rdv-jour { display: grid; gap: 2px; justify-items: center; padding: 12px 6px; border-radius: 18px; text-align: center; }
.rdv-jour .j-nom { font-size: .78rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.rdv-jour .j-num { font-size: 1.55rem; font-weight: 900; line-height: 1.1; }
.rdv-jour .j-mois { font-size: .8rem; color: var(--muted); }
.rdv-jour .j-etat { margin-top: 4px; font-size: .74rem; font-weight: 800; color: var(--rdv-ok); }
.rdv-jour:hover:not([disabled]), .rdv-heure:hover:not([disabled]) { border-color: var(--navy); transform: translateY(-2px); }
.rdv-jour[aria-pressed="true"], .rdv-heure[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.rdv-jour[aria-pressed="true"] .j-nom, .rdv-jour[aria-pressed="true"] .j-mois, .rdv-jour[aria-pressed="true"] .j-etat { color: #dfe7f1; }
.rdv-jour[disabled], .rdv-heure[disabled] { cursor: not-allowed; background: var(--rdv-gris); border-color: transparent; color: #8c95a4; }
.rdv-jour[disabled] .j-etat { color: #8c95a4; }
.rdv-jour:focus-visible, .rdv-heure:focus-visible, .rdv .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.rdv-plus { margin-top: 18px; }

.rdv-jour-choisi { margin: 0 0 12px; color: var(--muted); font-weight: 700; }
.rdv-jour-choisi::first-letter, .rdv-quand-grand::first-letter, .rdv-resume-liste dd[data-r="quand"]::first-letter { text-transform: uppercase; }
.rdv-heures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rdv-heure { display: grid; gap: 2px; padding: 16px 14px; border-radius: 18px; text-align: center; }
.rdv-heure .h-debut { font-size: 1.5rem; font-weight: 900; }
.rdv-heure .h-fin { font-size: .85rem; opacity: .8; }
.rdv-heure .h-etat { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.rdv-heures-titre { grid-column: 1 / -1; margin: 6px 0 -4px; color: var(--muted); font-size: .85rem; font-weight: 800; text-transform: uppercase; }
.rdv-heure.complet .h-debut, .rdv-heure.pris .h-debut { text-decoration: line-through; text-decoration-thickness: 2px; }

.rdv-form { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.rdv-erreur { min-height: 0; color: var(--red-dark); font-size: .88rem; font-weight: 700; }
.rdv-erreur:empty { display: none; }
.rdv-form .field.invalide input, .rdv-form .field.invalide select { border-color: var(--red); }
.rdv-form .privacy-check.invalide { color: var(--red-dark); }
.rdv-form .form-status.erreur { color: var(--red-dark); }

.rdv-resume { position: sticky; top: 100px; padding: 24px; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.rdv-resume h2 { margin: 0 0 14px; font-size: 1.4rem; color: var(--white); }
.rdv-resume-vide { margin: 0 0 14px; color: #c8d2df; }
.rdv-resume-liste { display: grid; gap: 12px; margin: 0 0 18px; }
.rdv-resume-liste dt { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9fb0c6; }
.rdv-resume-liste dd { margin: 2px 0 0; font-weight: 700; }
.rdv-resume-liste dd[data-r="quand"] { font-size: 1.15rem; }
.rdv-garanties { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; color: #dfe7f1; font-size: .95rem; }
.rdv-garanties li::before { content: "✓"; margin-right: 8px; color: #7ee0a8; font-weight: 900; }
.rdv-tel { margin: 0; color: #c8d2df; font-size: .95rem; }
.rdv-tel a { color: var(--white); font-weight: 800; }

.rdv-ok { border-color: var(--rdv-ok); background: var(--rdv-ok-bg); }
.rdv-ok .rdv-coche { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%; background: var(--rdv-ok); color: var(--white); font-size: 1.9rem; font-weight: 900; }
.rdv-ok h2, .rdv-annulation h2 { margin-bottom: 8px; }
.rdv-quand-grand { margin: 4px 0 10px; font-size: 1.35rem; font-weight: 900; }
.rdv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.rdv-lien-discret { color: var(--muted); font-size: .92rem; }

@media (max-width: 900px) {
  .rdv-layout { grid-template-columns: 1fr; }
  .rdv-resume { position: static; order: -1; }
  .rdv-resume-liste, .rdv-garanties { display: none; }
  .rdv-resume.avec-choix .rdv-resume-liste { display: grid; }
}
@media (max-width: 560px) {
  .rdv-bloc { padding: 18px 14px; }
  .rdv-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rdv-heures { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rdv-jour, .rdv-heure { transition: none; } .rdv-jour:hover, .rdv-heure:hover { transform: none; } }
