/* ============================================================
   KITO — /rendez-vous (préfixe rdv-)
   Réservation de l'appel découverte : calendrier Calendly intégré,
   chargé au clic (consentement), confirmation dans la charte KITO.
   ============================================================ */

.rdv-hero { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.rdv-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin-top: 1.75rem;
  font-size: var(--fs-sm);
  color: var(--k-text-secondary);
}
.rdv-points li { display: inline-flex; align-items: center; gap: 0.5rem; }
.rdv-points svg { color: var(--k-primary-text); flex-shrink: 0; }
.rdv-points strong { color: var(--k-text); }

.rdv { padding-bottom: var(--section-gap); }
.rdv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.rdv-grid > * { min-width: 0; }

/* ── Écran de consentement / confirmation ── */
.rdv-gate,
.rdv-confirmation {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}
.rdv-confirmation:focus { outline: none; }
.rdv-confirmation:focus-visible { outline: 2px solid var(--k-primary-text); outline-offset: 3px; }
.rdv-gate-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  color: var(--k-primary-text);
  background: var(--k-gradient-subtle);
  border: 1px solid var(--k-border-accent);
}
.rdv-gate-icon--ok { color: var(--k-success); }
.rdv-gate-titre {
  margin-top: 1rem;
  font-family: var(--font-primary);
  font-size: var(--fs-2xl);
  color: var(--k-text);
}
.rdv-gate-texte {
  max-width: 52ch;
  margin: 0.75rem auto 0;
  color: var(--k-text-secondary);
  line-height: var(--lh-relaxed);
}
.rdv-gate-texte a,
.rdv-gate-alt a,
.rdv-erreur a { color: var(--k-primary-text); text-decoration: underline; text-underline-offset: 3px; }
.rdv-gate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
}
.rdv-gate-actions .btn { min-height: 48px; }
.rdv-memo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px;
  font-size: var(--fs-sm);
  color: var(--k-text-secondary);
  cursor: pointer;
}
.rdv-memo input { width: 20px; height: 20px; accent-color: var(--k-primary-strong); }
.rdv-gate-alt { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--k-muted); }

/* ── Le calendrier ──
   Calendly redimensionne lui-même son cadre (resize: true) ; la hauteur
   minimale évite un saut de mise en page pendant le chargement. Le cadre
   a un fond clair : il reste posé sur une carte, dans les deux thèmes. */
.rdv-calendrier {
  background: var(--k-card);
  border: 1px solid var(--k-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.rdv-widget { min-height: 700px; }
.rdv-erreur { margin: 0; padding: clamp(1.75rem, 4vw, 2.75rem); text-align: center; line-height: 1.6; }
.rdv-widget iframe { display: block; width: 100%; border: 0; color-scheme: light; }
.rdv-chargement { padding: 3rem 1.5rem; text-align: center; color: var(--k-muted); }

/* ── Colonne latérale ── */
.rdv-aside { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-height) + 1.5rem); }
.rdv-aside-card { padding: 1.5rem; }
.rdv-aside-titre { font-family: var(--font-secondary); font-size: var(--fs-lg); font-weight: 700; color: var(--k-text); margin-bottom: 0.75rem; }
.rdv-aside-card p { font-size: var(--fs-sm); color: var(--k-text-secondary); line-height: var(--lh-snug); }
.rdv-etapes { counter-reset: rdv; display: grid; gap: 0.625rem; }
.rdv-etapes li {
  counter-increment: rdv;
  display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.5rem;
  font-size: var(--fs-sm); color: var(--k-text-secondary); line-height: var(--lh-snug);
}
.rdv-etapes li::before {
  content: counter(rdv, decimal-leading-zero);
  font-family: var(--font-mono); color: var(--k-primary-text);
}
.rdv-aside-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

@media (max-width: 960px) {
  .rdv-grid { grid-template-columns: 1fr; }
  .rdv-aside { position: static; }
}
@media (max-width: 560px) {
  /* Sur iPhone, Calendly affiche date puis heure en une colonne : plus haut. */
  .rdv-widget { min-height: 1050px; }
  .rdv-gate-actions { flex-direction: column; align-items: stretch; }
}
