/* La page publique de réservation (lot 13, 01/10/2026). Marque blanche : aucune couleur ni police de
   Rosmaryn imposée, l'accent vient de « Votre marque » (--rdv-accent, posé dans la page).
   Téléphone d'abord ; clair par défaut, sombre selon le réglage de l'appareil. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/cormorant-garamond-normal-latin.woff2') format('woff2'); }

:root {
  --rdv-fond: #F6F5F2; --rdv-carte: #FFFFFF; --rdv-encre: #1B1D21; --rdv-doux: #5A5D66;
  --rdv-ligne: #DEDBD4; --rdv-risque: #A3352B; --rdv-risque-doux: #FBEAE8; --rdv-ok: #2C6A50;
  --rdv-accent: #1F2933; --rdv-sur-accent: #FFFFFF;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --rdv-fond: #121417; --rdv-carte: #1B1E23; --rdv-encre: #ECEDEF; --rdv-doux: #A9ADB5;
    --rdv-ligne: #2F333A; --rdv-risque: #F0938A; --rdv-risque-doux: #3A1F1C; --rdv-ok: #7FCBA6; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.rdv { margin: 0; background: var(--rdv-fond); color: var(--rdv-encre);
  font: 400 16px/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.rdv-page { max-width: 40rem; margin: 0 auto; padding: 1.4rem 1rem 3rem; }

.rdv-tete { text-align: center; margin: .4rem 0 1.4rem; }
.rdv-logo { max-height: 3.4rem; max-width: 70%; object-fit: contain; }
.rdv-nom { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.75rem; font-weight: 600; line-height: 1.15; margin: .3rem 0 0; }
.rdv-cabinet { margin: .15rem 0 0; color: var(--rdv-doux); font-size: .92rem; }
.rdv-titre { font-size: 1.3rem; line-height: 1.3; margin: 0 0 .8rem; font-weight: 650; }
/* Le mot d'accueil du praticien (06/10/2026, éditeur : « très mal intégré, voire pas ») : c'était une ligne grise collée en
   haut, sans marge, que le cadre d'un site hôte rognait presque. C'est maintenant un mot d'introduction, tenu par un
   filet à la couleur du praticien, dans le corps de texte de la page. */
.rdv-accueil { margin: .15rem 0 1.4rem; padding: .9rem 1.15rem; color: var(--rdv-encre); font-size: 1.02rem; line-height: 1.55;
  border-left: 3px solid var(--rdv-accent); border-radius: 0 12px 12px 0; background: var(--rdv-carte); }
@supports (background: color-mix(in srgb, red 10%, white)) {
  .rdv-accueil { background: color-mix(in srgb, var(--rdv-accent) 8%, var(--rdv-carte)); }
}
[data-rdv-ui="carbon"] .rdv-accueil { border-radius: 0; }
[data-rdv-ui="material"] .rdv-accueil { border-left: 0; border-radius: 18px; padding: 1rem 1.25rem; }
.rdv-avis { font-size: .85rem; background: var(--rdv-carte); border: 1px dashed var(--rdv-ligne); border-radius: 10px; padding: .6rem .8rem; }

.rdv-carte { background: var(--rdv-carte); border: 1px solid var(--rdv-ligne); border-radius: 14px; padding: 1rem 1rem 1.1rem; margin: 0 0 1rem; min-width: 0; }
fieldset.rdv-carte { margin-left: 0; margin-right: 0; }
.rdv-carte--message { text-align: center; padding: 1.6rem 1.2rem; }
.rdv-carte--message a { color: inherit; font-weight: 600; }
/* (03/11/2026) Le bouton « Payer … et confirmer » de la dernière étape : sa couleur, pas celle d'un lien. */
.rdv-carte--message a.rdv-bouton { display: flex; align-items: center; justify-content: center; margin-top: .4rem; color: var(--rdv-sur-accent); text-decoration: none; }
.rdv-etape { font-weight: 650; font-size: 1.02rem; padding: 0 .25rem; display: flex; align-items: center; gap: .5rem; }
.rdv-etape span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--rdv-accent); color: var(--rdv-sur-accent); font-size: .85rem; }
.rdv-aide { margin: .2rem 0 .8rem; color: var(--rdv-doux); font-size: .88rem; }

.rdv-erreurs { background: var(--rdv-risque-doux); color: var(--rdv-risque); border-radius: 12px; padding: .7rem .9rem; margin: 0 0 1rem; }
.rdv-erreurs p { margin: .2rem 0; }

/* Les choix (moyen, créneau) : de vraies cases radio, habillées. */
.rdv-moyens { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.rdv-choix, .rdv-creneau { position: relative; }
.rdv-choix input, .rdv-creneau input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rdv-choix span, .rdv-creneau span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .45rem 1rem;
  border: 1.5px solid var(--rdv-ligne); border-radius: 999px; background: var(--rdv-carte); font-weight: 550;
}
.rdv-creneau span { min-width: 5.2rem; border-radius: 10px; font-variant-numeric: tabular-nums; }
.rdv-choix input:checked + span, .rdv-creneau input:checked + span { background: var(--rdv-accent); border-color: var(--rdv-accent); color: var(--rdv-sur-accent); }
.rdv-choix input:focus-visible + span, .rdv-creneau input:focus-visible + span { outline: 3px solid var(--rdv-accent); outline-offset: 2px; }

.rdv-jours { display: grid; gap: .5rem; }
.rdv-jour { border: 1px solid var(--rdv-ligne); border-radius: 12px; }
.rdv-jour > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .7rem .9rem; min-height: 2.75rem; }
.rdv-jour > summary::-webkit-details-marker { display: none; }
.rdv-jour__nom { font-weight: 600; }
.rdv-jour__n { color: var(--rdv-doux); font-size: .82rem; white-space: nowrap; }
.rdv-jour[open] > summary { border-bottom: 1px solid var(--rdv-ligne); }
.rdv-creneaux { display: flex; flex-wrap: wrap; gap: .45rem; padding: .7rem .9rem .9rem; }

.rdv-champs { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: .5rem; }
.rdv-champs label { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; color: var(--rdv-doux); min-width: 0; }
.rdv-champs input { font: inherit; color: var(--rdv-encre); background: var(--rdv-fond); border: 1.5px solid var(--rdv-ligne); border-radius: 10px; padding: .65rem .75rem; min-height: 2.9rem; width: 100%; }
.rdv-champs input:focus { outline: none; border-color: var(--rdv-accent); }
@media (min-width: 560.02px) { .rdv-champs { grid-template-columns: 1fr 1fr; } .rdv-champs__large { grid-column: 1 / -1; } }
.rdv-accord { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 .4rem; font-size: .9rem; cursor: pointer; }
.rdv-accord input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; flex: 0 0 auto; accent-color: var(--rdv-accent); }
.rdv-rgpd { font-size: .82rem; color: var(--rdv-doux); }
.rdv-rgpd > summary { cursor: pointer; text-decoration: underline; padding: .3rem 0; }
.rdv-rgpd p { margin: .4rem 0; }

.rdv-envoi { position: sticky; bottom: 0; background: linear-gradient(to bottom, transparent, var(--rdv-fond) 30%); padding: 1rem 0 .4rem; }
.rdv-choix-resume { margin: 0 0 .5rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.rdv-bouton { display: block; width: 100%; min-height: 3.1rem; border: 0; border-radius: 12px; background: var(--rdv-accent); color: var(--rdv-sur-accent);
  font-family: inherit; font-size: 1.02rem; font-weight: 650; line-height: 1.2; cursor: pointer; padding: .8rem 1rem; }
.rdv-bouton:focus-visible { outline: 3px solid var(--rdv-encre); outline-offset: 2px; }

.rdv-leurre { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rdv-pied { margin-top: 2rem; font-size: .78rem; color: var(--rdv-doux); text-align: center; }
/* En sombre, un accent foncé se confond avec la carte : le choix porte en plus un liseré clair. */
@media (prefers-color-scheme: dark) {
  .rdv-choix input:checked + span, .rdv-creneau input:checked + span { box-shadow: 0 0 0 2px var(--rdv-encre); }
  .rdv-etape span { box-shadow: 0 0 0 1.5px var(--rdv-encre); }
}

/* Le fuseau horaire et le choix chez soi (02/10/2026, audit des écrans, lot B). */
.rdv-fuseau { white-space: nowrap; }
.rdv-aide--autre { font-weight: 600; color: var(--rdv-encre); }
.rdv-choix-resume__local { font-weight: 400; color: var(--rdv-doux); }

/* ── Dans la fiche de l'annuaire (rosmaryn.app/praticiens/<nom>/), 05/10/2026 ─────────────────────────────
   `data-rdv-theme` : le thème de la fiche l'emporte sur le réglage de l'appareil. `rdv--cadre` : la page n'a plus de
   fond ni de marges à elle, elle se fond dans la fiche qui l'affiche (rp_rdv_cadre, inc/rdv-en-ligne.php). */
:root[data-rdv-theme="clair"] { --rdv-fond: #F6F5F2; --rdv-carte: #FFFFFF; --rdv-encre: #1B1D21; --rdv-doux: #5A5D66;
  --rdv-ligne: #DEDBD4; --rdv-risque: #A3352B; --rdv-risque-doux: #FBEAE8; --rdv-ok: #2C6A50; color-scheme: light; }
:root[data-rdv-theme="sombre"] { --rdv-fond: #121417; --rdv-carte: #1B1E23; --rdv-encre: #ECEDEF; --rdv-doux: #A9ADB5;
  --rdv-ligne: #2F333A; --rdv-risque: #F0938A; --rdv-risque-doux: #3A1F1C; --rdv-ok: #7FCBA6; color-scheme: dark; }
html:has(> body.rdv--cadre) { background: transparent; }
body.rdv--cadre { background: transparent; }
.rdv--cadre .rdv-page { max-width: none; margin: 0; padding: 0; }
.rdv--cadre .rdv-carte:last-child, .rdv--cadre .rdv-form > :last-child { margin-bottom: 0; }
/* (06/10/2026, éditeur : « le bouton Confirmer le rendez-vous est sur fond blanc sur différentes compos ») Hors cadre, la zone du
   bouton colle en bas de l'écran sur un fondu vers le fond de la page. Dans un cadre, il n'y a ni défilement (le cadre a la hauteur
   de son contenu) ni fond à soi : ce fondu peignait une bande claire sur la page qui encadre, quelle que soit sa couleur. */
.rdv--cadre .rdv-envoi { position: static; background: none; padding-bottom: 0; }
/* (06/10/2026, éditeur) la phrase sous la liste des séances respire : 5 px de plus au-dessus. */
.rdv-offres + .rdv-aide { margin-top: calc(.2rem + 5px); }

/* ── Le calendrier de « Date et heure » (05/10/2026) ──────────────────────────────────────────────────────
   Une grille de mois : les jours libres sont des boutons, les autres sont éteints. Sous la grille, les
   heures du seul jour touché (le reste des jours est masqué par le script, jamais retiré du formulaire). */
.rdv-cal { margin: .2rem 0 .9rem; }
.rdv-cal[hidden] { display: none; }
.rdv-cal__barre { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.rdv-cal__mois { margin: 0; font-weight: 650; font-size: 1.02rem; text-transform: capitalize; }
.rdv-cal__fleche { width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--rdv-ligne); border-radius: 50%; background: transparent; color: var(--rdv-encre); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.rdv-cal__fleche:disabled { opacity: .3; cursor: default; }
.rdv-cal__fleche:focus-visible, .rdv-cal__jour:focus-visible { outline: 3px solid var(--rdv-accent); outline-offset: 2px; }
.rdv-cal__grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.rdv-cal__js { text-align: center; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--rdv-doux); padding-bottom: .2rem; }
.rdv-cal__jour { display: grid; place-items: center; aspect-ratio: 1; min-height: 2.5rem; max-height: 3.2rem; width: 100%; padding: 0; border: 1.5px solid transparent; border-radius: 10px;
  background: transparent; color: var(--rdv-doux); font: inherit; font-variant-numeric: tabular-nums; opacity: .45; }
.rdv-cal__jour.est-libre { opacity: 1; color: var(--rdv-encre); font-weight: 600; border-color: var(--rdv-ligne); background: var(--rdv-fond); cursor: pointer; }
.rdv-cal__jour.est-auj { text-decoration: underline; text-underline-offset: 3px; }
.rdv-cal__jour[aria-pressed="true"] { background: var(--rdv-accent); border-color: var(--rdv-accent); color: var(--rdv-sur-accent); }
.rdv-cal__jour.est-choisi:not([aria-pressed="true"]) { border-color: var(--rdv-accent); }
@media (prefers-color-scheme: dark) { .rdv-cal__jour[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--rdv-encre); } }
:root[data-rdv-theme="sombre"] .rdv-cal__jour[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--rdv-encre); }
:root[data-rdv-theme="clair"] .rdv-cal__jour[aria-pressed="true"] { box-shadow: none; }
/* En mode calendrier, un seul jour est montré : son titre n'est plus un bouton d'accordéon. */
.rdv-jours--cal .rdv-jour[hidden] { display: none; }
.rdv-jours--cal .rdv-jour { border: 0; }
.rdv-jours--cal .rdv-jour > summary { pointer-events: none; padding: .2rem 0 .5rem; min-height: 0; border-bottom: 0; }
.rdv-jours--cal .rdv-jour[open] > summary { border-bottom: 0; }
.rdv-jours--cal .rdv-creneaux { padding: 0; }

/* ══ LA POPUP DE LA RÉSERVATION (03/11/2026, éditeur : « à l'envoi, une popup par-dessus le formulaire pour la validation, et
   pour une erreur, bien visible ; stylisée et bien dessinée ») Couleur du praticien (--rdv-accent) ; vert pour la confirmation
   dans le picto, rouge pour l'erreur. Hors cadre : centrée à l'écran. Dans un cadre : en haut du formulaire (la page qui encadre
   défile jusqu'à elle). Sans liseré ni halo : un voile, une carte unie, une ombre. ══ */
html.a-rdv-pop:not(:has(.rdv-pop--cadre)) { overflow: hidden; }
.rdv-pop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.rdv-pop--cadre { position: absolute; inset: 0 0 auto 0; min-height: 100%; align-items: flex-start; padding-top: 24px; }
.rdv-pop__voile { position: absolute; inset: 0; background: rgba(12, 14, 18, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: rdv-pop-voile .25s ease-out; }
.rdv-pop__boite { position: relative; width: min(440px, 100%); box-sizing: border-box; padding: 34px 28px 24px; text-align: center; outline: none;
  background: var(--rdv-carte); color: var(--rdv-encre); border-radius: 22px 6px 22px 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .12);
  animation: rdv-pop-boite .34s cubic-bezier(.2, .9, .3, 1.2); }
.rdv-pop__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--rdv-doux);
  font-family: inherit; font-size: 1.7rem; font-weight: 400; line-height: 1; cursor: pointer; }
.rdv-pop__x:hover { background: color-mix(in srgb, var(--rdv-encre) 8%, transparent); color: var(--rdv-encre); }
.rdv-pop__ico { display: inline-grid; place-items: center; margin: 0 auto 10px; color: var(--rdv-ok); }
.rdv-pop--err .rdv-pop__ico { color: var(--rdv-risque); }
.rdv-pop--ok .rdv-pop__ico svg path:last-child { stroke-dasharray: 40; stroke-dashoffset: 40; animation: rdv-pop-trait .5s .22s ease-out forwards; }
.rdv-pop__titre { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.rdv-pop__titre::after { content: ""; display: block; width: 42px; height: 2px; margin: 12px auto 0; background: var(--rdv-accent); }
.rdv-pop__l { margin: 0 0 10px; font-size: 1.02rem; line-height: 1.55; color: var(--rdv-encre); }
.rdv-pop__l + .rdv-pop__l { color: var(--rdv-doux); font-size: .94rem; }
.rdv-pop__liste { margin: 0 0 6px; padding: 0; list-style: none; text-align: left; }
.rdv-pop__liste li { position: relative; margin: 0 0 8px; padding: 10px 12px 10px 38px; border-radius: 12px; background: var(--rdv-risque-doux); color: var(--rdv-encre); font-size: .96rem; line-height: 1.45; }
.rdv-pop__liste li::before { content: "!"; position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 5px; background: var(--rdv-risque); color: #fff;
  font: 800 .78rem/18px system-ui, sans-serif; text-align: center; }
.rdv-pop__gestes { margin: 18px 0 0; }
.rdv-pop__ok { min-width: 10rem; }
.rdv-pop__autre { display: block; margin: 14px auto 0; padding: 6px 4px; background: none; border: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }   /* (10/11/2026) « Réserver un autre créneau », sous « Parfait » */
.rdv-pop__autre:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.rdv-pop.est-fermee .rdv-pop__voile { opacity: 0; transition: opacity .2s; }
.rdv-pop.est-fermee .rdv-pop__boite { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .2s, transform .2s; }
@keyframes rdv-pop-voile { from { opacity: 0; } }
@keyframes rdv-pop-boite { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes rdv-pop-trait { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .rdv-pop__voile, .rdv-pop__boite, .rdv-pop--ok .rdv-pop__ico svg path:last-child { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 480px) { .rdv-pop__boite { padding: 30px 20px 20px; } .rdv-pop__titre { font-size: 1.3rem; } }
