/* La prise de rendez-vous (26/10). Les couleurs viennent des jetons de main.css (--off-white, --ink, --ink-soft,
   --ink-faint), qui basculent seuls en theme sombre. Aucun aplat dore : l accent est un CONTOUR, navy en clair,
   or en sombre. */
.rdv {
  --rdv-accent: var(--navy);
  --rdv-trait: var(--ink-faint);
  --rdv-rayon: 14px;
  background: var(--off-white);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}
html[data-theme="dark"] .rdv { --rdv-accent: var(--gold-2); }

.rdv-tete { padding: 18px var(--edge); }
.rdv-tete__logo img { height: 2.75rem; width: auto; display: block; }
@media (max-width: 900px) { .rdv-tete__logo img { height: 2.1rem; } }

.rdv-page { padding: 8px var(--edge) 48px; max-width: 1120px; margin: 0 auto; box-sizing: content-box; }
.rdv-carte {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  border: 1px solid var(--rdv-trait);
  border-radius: var(--rdv-rayon);
  min-height: 520px;
}
.rdv-carte[aria-busy="true"] .rdv-corps { opacity: .55; }

.rdv-info { padding: 28px; border-right: 1px solid var(--rdv-trait); min-width: 0; }
.rdv-info__sur { margin: 0 0 6px; font-size: var(--fs-small); color: var(--ink-soft); letter-spacing: .02em; }
.rdv-info__titre { margin: 0 0 18px; font-family: 'Playfair Display', Georgia, serif; font-weight: 590; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.rdv-info__faits { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.rdv-info__faits li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; }
.rdv-info__faits svg { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: currentColor; }
.rdv-info__desc { margin: 0 0 22px; color: var(--ink-soft); line-height: 1.55; white-space: pre-line; }
.rdv-fuseau { display: grid; gap: 6px; font-size: var(--fs-small); color: var(--ink-soft); }
.rdv-fuseau select, .rdv-champ input, .rdv-champ textarea, .rdv-champ select {
  font: inherit; font-size: 1rem; color: var(--ink); background: transparent;
  border: 1px solid var(--rdv-trait); border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; min-width: 0;
}
.rdv-fuseau select option, .rdv-champ select option { color: #0B052F; }
.rdv-fuseau select:focus-visible, .rdv-champ input:focus-visible, .rdv-champ textarea:focus-visible, .rdv-champ select:focus-visible,
.rdv button:focus-visible, .rdv a:focus-visible { outline: 2px solid var(--rdv-accent); outline-offset: 2px; }

.rdv-corps { padding: 28px; min-width: 0; transition: opacity .2s; }

/* Etape 1 : le mois, puis les heures du jour choisi */
.rdv-choix { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 200px); gap: 28px; }
.rdv-mois__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rdv-mois__nom { margin: 0; font-size: 1.05rem; font-weight: 590; text-transform: capitalize; }
.rdv-mois__nav { display: flex; gap: 6px; }
.rdv-rond {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rdv-trait); background: transparent;
  color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.rdv-rond:disabled { opacity: .3; cursor: default; }
.rdv-rond svg { width: 16px; height: 16px; stroke: currentColor; }
.rdv-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rdv-grille__jsem { text-align: center; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 4px; }
.rdv-jour {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-soft);
  font: inherit; font-size: .95rem; cursor: default; position: relative; padding: 0; min-width: 0;
}
.rdv-jour--libre { border-color: var(--rdv-trait); color: var(--ink); font-weight: 590; cursor: pointer; }
.rdv-jour--libre:hover { border-color: var(--rdv-accent); }
.rdv-jour[aria-pressed="true"] { border: 2px solid var(--rdv-accent); }
.rdv-jour--auj::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.rdv-jour:disabled { opacity: .45; }

.rdv-heures__tete { margin: 0 0 12px; font-size: 1rem; font-weight: 590; }
.rdv-heures__liste { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px; }
.rdv-heure {
  font: inherit; font-weight: 590; color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--rdv-trait); border-radius: 10px; padding: 11px 8px; text-align: center;
}
.rdv-heure:hover { border-color: var(--rdv-accent); }
.rdv-vide { color: var(--ink-soft); line-height: 1.5; margin: 0; }

/* Etape 2 : le formulaire */
.rdv-resume { border: 1px solid var(--rdv-trait); border-radius: 12px; padding: 14px 16px; margin: 0 0 22px; line-height: 1.5; }
.rdv-resume strong { display: block; font-size: 1.05rem; }
.rdv-resume span { color: var(--ink-soft); font-size: .95rem; }
.rdv-form { display: grid; gap: 16px; max-width: 560px; }
.rdv-champ { display: grid; gap: 6px; }
.rdv-champ > span { font-size: .95rem; font-weight: 510; }
.rdv-champ em { font-style: normal; color: var(--ink-soft); font-weight: 400; }
.rdv-champ textarea { min-height: 96px; resize: vertical; }
.rdv-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.rdv-btn {
  font: inherit; font-weight: 590; cursor: pointer; border-radius: var(--radius-full); padding: 12px 22px;
  border: 1.5px solid var(--rdv-accent); background: transparent; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.rdv-btn--fort { background: var(--navy); color: #FCFCFC; border-color: var(--navy); }
html[data-theme="dark"] .rdv-btn--fort { background: transparent; color: var(--ink); border-color: var(--gold-2); border-width: 2px; }
.rdv-btn--discret { border-color: var(--rdv-trait); }
.rdv-btn:disabled { opacity: .5; cursor: progress; }
.rdv-erreur { margin: 0; padding: 12px 14px; border: 1px solid #b42318; border-radius: 10px; color: #b42318; line-height: 1.45; }
html[data-theme="dark"] .rdv-erreur { border-color: #f97066; color: #fda29b; }

/* Etape 3 : c est note */
.rdv-fait { max-width: 560px; }
.rdv-fait__marque { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--rdv-accent); display: grid; place-items: center; margin-bottom: 14px; }
.rdv-fait__marque svg { width: 20px; height: 20px; stroke: currentColor; }
.rdv-fait h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 590; font-size: 1.6rem; margin: 0 0 8px; }
.rdv-fait p { line-height: 1.55; color: var(--ink-soft); }
.rdv-lien { display: flex; gap: 8px; align-items: stretch; margin: 6px 0 18px; }
.rdv-lien input { flex: 1; min-width: 0; font: inherit; font-size: .85rem; color: var(--ink); background: transparent; border: 1px solid var(--rdv-trait); border-radius: 10px; padding: 10px 12px; }

.rdv-pied { text-align: center; color: var(--ink-soft); font-size: var(--fs-small); margin: 18px 0 0; }

@media (max-width: 900px) {
  .rdv-carte { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .rdv-info { border-right: 0; border-bottom: 1px solid var(--rdv-trait); padding: 22px; }
  .rdv-corps { padding: 22px; }
  .rdv-choix { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rdv-heures__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; }
}
@media (max-width: 420px) {
  .rdv-info, .rdv-corps { padding: 18px 16px; }
  .rdv-page { padding-left: 12px; padding-right: 12px; }
  .rdv-grille { gap: 4px; }
  .rdv-heures__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rdv-lien { flex-direction: column; }
}
