/* Prise de rendez-vous, lot 1 (28/11/2026). La carte de l'écran 43 (style.css, .fen-fin) garde sa forme ; ici : son état
   « écrivez-moi » et le parcours (choix, formulaire, confirmation), dans la même famille que la carte : nuit, givre,
   rose pour ce qui est choisi. Aucun texte sous 18 px. */

/* ---------- la carte sans créneau : « écrivez-moi » ---------- */
.fen-fin.rs-vide .rs-liste { display: none; }
.rs-mot { display: block; padding: 16px 22px 20px; font-size: 20px; line-height: 1.4; color: var(--lecture); }
.rs-mail { display: inline-block; margin-top: 6px; color: var(--givre); font-weight: 600; border-bottom: 1px solid var(--trait-net); }
@media (max-width: 820px) { .rs-mot { padding: 12px 16px 16px; font-size: 18px; } }
/* les heures de la carte alignées, quelle que soit la longueur du jour (« Mercredi 16 déc. ») */
.fen-fin .rs-j { min-width: 8.4em; }

/* ---------- le parcours ---------- */
html.rdv-ouvert { overflow: hidden; }
.rdv {
  --c: #ff5fa8;
  width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 0;
  border: 1px solid rgba(206, 226, 255, 0.16); border-radius: 22px; color: var(--givre); background: rgba(8, 13, 26, 0.97);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 90px -30px rgba(120, 170, 255, 0.55);
  overscroll-behavior: contain; font-family: "Manrope", system-ui, sans-serif;
}
.rdv::backdrop { background: rgba(1, 2, 8, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) {
  .rdv[open] .rdv-boite { animation: rdv-entree 0.42s var(--doux) both; }
  .rdv[open]::backdrop { animation: rdv-fond 0.3s ease both; }
}
@keyframes rdv-entree { from { opacity: 0; transform: translateY(-14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes rdv-fond { from { opacity: 0; } to { opacity: 1; } }

.rdv-tete { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px 22px; background: rgba(8, 13, 26, 0.98); border-bottom: 1px solid rgba(206, 226, 255, 0.09); }
.rdv-tete > svg { flex: none; width: 24px; height: 24px; color: var(--glace); }
.rdv-titre { flex: 1; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; }
.rdv-fermer { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--brume); cursor: pointer; transition: background 0.25s var(--doux), color 0.25s var(--doux); }
.rdv-fermer:hover { background: rgba(206, 226, 255, 0.08); color: var(--givre); }
.rdv-fermer svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.rdv-etape { padding: 20px 22px 24px; }
.rdv-aide { font-size: 18px; color: var(--lecture); margin-bottom: 16px; }

/* jours et heures : la même pastille que les créneaux de la carte */
.rdv-jours, .rdv-heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.rdv-heures { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(206, 226, 255, 0.09); }
.rdv-jour, .rdv-heure {
  --sel: 0; font: inherit; font-size: 18px; color: var(--givre); cursor: pointer; border: 0; border-radius: 14px;
  background: color-mix(in srgb, var(--c) calc(var(--sel) * 14%), rgba(120, 175, 255, 0.05));
  box-shadow: inset 0 0 0 calc(1.3px + var(--sel) * 0.5px) color-mix(in srgb, var(--c) calc(var(--sel) * 100%), rgba(206, 226, 255, 0.24)), 0 0 calc(var(--sel) * 30px) calc(var(--sel) * -8px) var(--c);
  transition: box-shadow 0.25s var(--doux), background 0.25s var(--doux), transform 0.2s var(--doux);
}
.rdv-jour { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 11px; }
.rdv-jour span { color: var(--brume); font-weight: 500; }
.rdv-jour b { font-weight: 600; white-space: nowrap; }
.rdv-jour[aria-pressed="true"] { --sel: 1; }
.rdv-jour[aria-pressed="true"] span { color: var(--givre); }
.rdv-heure { height: 52px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rdv-jour:hover, .rdv-heure:hover { box-shadow: inset 0 0 0 1.6px color-mix(in srgb, var(--c) calc(var(--sel) * 100%), rgba(206, 226, 255, 0.5)), 0 0 calc(var(--sel) * 30px) calc(var(--sel) * -8px) var(--c); }
.rdv-heure:hover { --sel: 0.5; }
.rdv-jour:active, .rdv-heure:active { transform: scale(0.97); }

/* le formulaire */
.rdv-rappel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--c) 12%, rgba(120, 175, 255, 0.05)); box-shadow: inset 0 0 0 1.6px var(--c); }
.rdv-changer { font: inherit; font-size: 18px; font-weight: 500; color: var(--glace); background: none; border: 0; padding: 0; cursor: pointer; border-bottom: 1px solid var(--trait-net); }
.rdv-changer:hover { color: var(--givre); border-color: var(--givre); }
.rdv-form { display: grid; gap: 14px; }
.rdv-champ { display: grid; gap: 6px; font-size: 18px; color: var(--lecture); }
.rdv-champ em { font-style: normal; color: var(--brume); }
.rdv-champ input, .rdv-champ textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--givre); padding: 12px 14px; border: 0; border-radius: 12px;
  background: rgba(120, 175, 255, 0.05); box-shadow: inset 0 0 0 1.3px rgba(206, 226, 255, 0.24); transition: box-shadow 0.25s var(--doux);
}
.rdv-champ input { height: 52px; }
.rdv-champ textarea { resize: vertical; min-height: 84px; line-height: 1.4; }
.rdv-champ input:focus, .rdv-champ textarea:focus { outline: none; box-shadow: inset 0 0 0 1.6px var(--glace); }
.rdv-erreur { font-size: 18px; color: #ffb4d4; line-height: 1.45; }
/* lot 3 : « écrivez-moi » après un échec, le créneau qui vient d'être pris, l'attente de la réponse du serveur */
.rdv-erreur a { color: var(--givre); font-weight: 600; border-bottom: 1px solid var(--trait-net); text-decoration: none; word-break: break-all; }
.rdv-aide.rdv-aide-alerte { color: #ffb4d4; }
.rdv-valider { justify-self: start; margin-top: 6px; cursor: pointer; }
.rdv-valider[disabled] { cursor: progress; opacity: 0.7; }
/* lot 4 : le champ piège, hors de l'écran (pas display:none, que certains robots savent sauter), hors tabulation (tabindex
   et inert) et hors lecteurs d'écran (aria-hidden) ; le contrôle anti-robot (vide tant que Cloudflare ne demande rien) ;
   la mention sur les données */
.rdv-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.rdv-robot:empty { display: none; }
.rdv-mention { font-size: 18px; line-height: 1.45; color: var(--brume); }
.rdv-mention a { color: var(--glace); border-bottom: 1px solid var(--trait-net); text-decoration: none; }
.rdv-mention a:hover { color: var(--givre); border-color: var(--givre); }

/* la confirmation */
.rdv-etape[data-etape="ok"] { display: grid; gap: 12px; justify-items: start; }
.rdv-etape[data-etape="ok"][hidden] { display: none; }
.rdv-coche { width: 44px; height: 44px; box-shadow: 0 0 18px -2px rgba(255, 95, 168, 0.85); border-radius: 50%; }
.rdv-coche circle { fill: var(--c); }
.rdv-coche path { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rdv-merci { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; outline: none; }
.rdv-quand-ok { font-size: 20px; font-weight: 600; }
.rdv-visio, .rdv-suite { font-size: 18px; line-height: 1.45; color: var(--lecture); }
.rdv-meet { color: var(--givre); border-bottom: 1px solid var(--trait-net); text-decoration: none; word-break: break-all; }
.rdv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 8px; }
.rdv-actions .bouton { cursor: pointer; }
.rdv-fin { background: none; cursor: pointer; font-family: inherit; border-top: 0; border-left: 0; border-right: 0; }
.rdv-essai { margin-top: 6px; font-size: 18px; color: var(--brume); padding: 10px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.14); }

@media (max-width: 820px) {
  .rdv-tete { padding: 13px 10px 12px 16px; gap: 10px; }
  .rdv-titre { font-size: 18px; }
  .rdv-etape { padding: 16px 16px 20px; }
  .rdv-jours, .rdv-heures { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rdv-merci { font-size: 24px; }
  .rdv-valider { justify-self: stretch; justify-content: center; }
}
