/* =====================================================================
   Réservation en ligne (reserver.php) — page publique de la cliente, téléphone d'abord, mode clair.
   Mélange validé : en-tête épuré (nom à empattements), tuiles de catégories en couleur, soins en cartes avec vignette,
   barre sombre flottante. Or Instea pour les actions.
   Mouvement (inspiré de Stripe / PayPal) : courbes « ease-out » courtes (180–320 ms), entrées en glissé + fondu, cascades
   légères, changements d'état en transition (la page n'est pas redessinée à chaque clic, cf. reserver.js).
   Couleur d'une catégorie : --c, déclinée en fond pâle et texte foncé par color-mix.
   ===================================================================== */
:root {
    --fond: #F7F5F0;
    --surface: #FFFFFF;
    --surface-2: #F1EEE7;
    --ligne: #ECE8DE;
    --texte: #2C2A24;
    --texte-2: #5B584F;
    --texte-3: #8A867C;
    --or: #857548;
    --or-fonce: #6E6139;
    --or-texte: #6F6131;
    --or-voile: #F3EFE3;
    --barre: #2C2A24;
    --barre-btn: #C8A863;
    --vert: #1D7348;
    --vert-voile: #E6F4EC;
    --rouge: #B3261E;
    --titre: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --r-badge: 10px;             /* arrondi commun des badges, puces et pastilles */
    --sortie: cubic-bezier(.2, .8, .2, 1);        /* décélération douce (entrées) */
    --ressort: cubic-bezier(.3, 1.4, .5, 1);      /* léger rebond (coches, pastilles) */
    color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }   /* clip (et non hidden) : rien ne déborde en largeur (animations de glissement) sans casser la tête collante */
body { background: var(--fond); color: var(--texte); font: 15px/1.45 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
html.integre body { background: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.rs-erreur { max-width: 520px; margin: 15vh auto; padding: 24px; text-align: center; color: var(--texte-2); }

.rs { max-width: 640px; margin: 0 auto; padding: 0 0 120px; }
.rs-corps { padding: 0 16px; }

/* ---------- En-tête (inspiré de Fresha / Planity) : carrousel de photos (glisser, flèches, défilement automatique),
   fiche compacte de l'institut, puis barre de progression collante ---------- */
.rs-hero { position: relative; height: 210px; overflow: hidden; background: linear-gradient(135deg, #857548, #2C2A24); transition: height .45s var(--sortie); }
.rs-hero.court { height: 112px; }
.rs-galerie { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.rs-galerie::-webkit-scrollbar { display: none; }
.rs-galerie figure { flex: none; width: 100%; height: 100%; margin: 0; scroll-snap-align: start; overflow: hidden; }
.rs-galerie img { width: 100%; height: 100%; object-fit: cover; display: block; animation: rs-zoom 18s ease-in-out infinite alternate; }
.rs-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 18, 14, .30) 0%, rgba(20, 18, 14, 0) 32%, rgba(20, 18, 14, 0) 62%, rgba(20, 18, 14, .30) 100%); }
.rs-compteur { position: absolute; z-index: 2; right: 12px; bottom: 34px; height: 24px; padding: 0 8px; border-radius: var(--r-badge); display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #fff;
    background: rgba(20, 18, 14, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
.rs-compteur svg { width: 13px; height: 13px; }
.rs-points { position: absolute; z-index: 2; left: 0; right: 0; bottom: 38px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.rs-points i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .3s var(--sortie), background .3s; }
.rs-points i.on { width: 18px; background: #fff; }
.rs-galerie-fl { position: absolute; z-index: 2; top: 50%; translate: 0 -60%; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--texte);
    background: rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(20, 18, 14, .2); opacity: 0; transition: opacity .2s, transform .15s; }
.rs-galerie-fl svg { width: 17px; height: 17px; }
.rs-galerie-fl.g { left: 12px; } .rs-galerie-fl.d { right: 12px; }
.rs-hero:hover .rs-galerie-fl, .rs-galerie-fl:focus-visible { opacity: 1; }
.rs-galerie-fl:active { transform: scale(.9); }
.rs-galerie-fl[hidden] { display: none; }
@media (hover: none) { .rs-galerie-fl { display: none; } }
.rs-contact { position: absolute; z-index: 2; top: 12px; right: 12px; display: flex; gap: 8px; animation: rs-entre .5s var(--sortie) both .15s; }
.rs-rond-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--texte); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(20, 18, 14, .18); transition: transform .15s, background .2s; }
.rs-rond-btn:hover { background: #fff; }
.rs-rond-btn:active { transform: scale(.9); }
.rs-rond-btn svg { width: 17px; height: 17px; }

/* Fiche compacte : nom, statut · horaire · adresse sur une ligne, une seule rangée d'atouts et d'infos dépliables */
.rs-fiche { position: relative; z-index: 3; margin-top: -22px; background: var(--fond); border-radius: 22px 22px 0 0; padding: 16px 16px 2px; animation: rs-monte .5s var(--sortie) both .05s; }
.rs-fiche h1 { font-family: var(--titre); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.rs-hero.court + .rs-fiche h1 { font-size: 20px; }
.rs-statut { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; color: var(--texte-3); white-space: nowrap; overflow: hidden; }
.rs-statut b { color: var(--vert); font-weight: 700; }
.rs-statut.ferme b { color: #A15C07; }
.rs-statut .rs-adr { overflow: hidden; text-overflow: ellipsis; }
.rs-point { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); animation: rs-pouls 2s infinite; flex: none; }
.rs-statut.ferme .rs-point { background: #D9A441; animation: none; }
.rs-atouts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px 2px; }
.rs-atouts::-webkit-scrollbar { display: none; }
.rs-atout { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--r-badge); background: var(--surface); border: 1px solid var(--ligne); font-size: 12.5px; font-weight: 600; color: var(--texte-2); }
.rs-atout svg { width: 14px; height: 14px; color: var(--or); }
button.rs-atout { color: var(--or-texte); font-weight: 700; transition: background .2s, border-color .2s; }
button.rs-atout svg { transition: transform .3s var(--sortie); }
button.rs-atout[aria-expanded="true"] { background: var(--or-voile); border-color: var(--or); }
button.rs-atout[aria-expanded="true"] svg { transform: rotate(90deg); }
.rs-info { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--sortie); }
.rs-info.ouvert { grid-template-rows: 1fr; }
.rs-info > div { overflow: hidden; min-height: 0; }
.rs-info-contenu { margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--surface); font-size: 14px; color: var(--texte-2); }
.rs-semaine { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.rs-semaine dt { color: var(--texte-3); text-transform: capitalize; }
.rs-semaine dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rs-semaine .auj { color: var(--texte); font-weight: 700; }
.rs-hero.court + .rs-fiche .rs-atouts, .rs-hero.court + .rs-fiche .rs-info { display: none; }

.rs-tete { position: sticky; top: 0; z-index: 15; background: rgba(247, 245, 240, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    padding: 10px 16px 10px; transition: box-shadow .25s, background .25s; }
.rs-mini { display: flex; align-items: center; gap: 10px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s var(--sortie), opacity .2s, margin .3s var(--sortie); }
.rs-mini b { font-family: var(--titre); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-mono { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--or) center / cover; color: #fff; display: grid; place-items: center; font-family: var(--titre); font-size: 15px; font-weight: 700; }
.rs-tete.compact { background: rgba(255, 255, 255, .92); box-shadow: 0 6px 20px rgba(44, 42, 36, .08); }
.rs-tete.compact .rs-mini { max-height: 36px; opacity: 1; margin-bottom: 10px; }
.rs-etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.rs-etapes li { font-size: 11.5px; font-weight: 600; color: var(--texte-3); letter-spacing: .01em; transition: color .3s; }
.rs-etapes li::before { content: ""; display: block; height: 3px; border-radius: 3px; margin-bottom: 6px; background: linear-gradient(90deg, var(--or) 50%, var(--ligne) 50%) 100% 0 / 200% 100%; transition: background-position .5s var(--sortie); }
.rs-etapes li.fait { color: var(--texte); }
.rs-etapes li.fait::before { background-position: 0 0; }
html.integre .rs-hero { border-radius: 18px 18px 0 0; }
html.integre .rs-tete { position: relative; }

@media (min-width: 700px) {
    .rs { padding-top: 20px; }
    .rs-hero { height: 260px; border-radius: 20px; margin: 0 16px; }
    .rs-hero.court { height: 120px; }
    .rs-fiche { margin-top: 0; background: transparent; padding-top: 16px; }
    .rs-tete { border-radius: 0 0 16px 16px; }
}
@keyframes rs-zoom { from { transform: scale(1.03); } to { transform: scale(1.12); } }
@keyframes rs-pouls { 0% { box-shadow: 0 0 0 0 rgba(29, 115, 72, .45); } 70% { box-shadow: 0 0 0 7px rgba(29, 115, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 115, 72, 0); } }

.rs-titre { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; }
.rs-titre h2 { font-family: var(--titre); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.rs-retour { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--surface); display: grid; place-items: center; transition: transform .15s; }
.rs-retour:active { transform: scale(.92); }
.rs-retour svg { width: 18px; height: 18px; }
.rs-intertitre { font-size: 14px; font-weight: 700; margin: 18px 0 8px; }

/* ---------- Recherche ---------- */
.rs-recherche { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); transition: border-color .2s, box-shadow .2s; }
.rs-recherche:focus-within { border-color: var(--or); box-shadow: 0 0 0 4px var(--or-voile); }
.rs-recherche svg { width: 18px; height: 18px; color: var(--texte-3); flex: none; }
.rs-recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }

/* ---------- Tuiles et puces de catégories ---------- */
.rs-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-tuile { --c: var(--or); position: relative; overflow: hidden; aspect-ratio: 16 / 11; border: 0; border-radius: 14px; padding: 10px 12px; text-align: left; display: flex; align-items: flex-end; color: #fff;
    background: linear-gradient(140deg, color-mix(in srgb, var(--c) 78%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 62%, #000) 100%); isolation: isolate;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--c) 18%, transparent); transition: transform .2s var(--sortie), box-shadow .2s; }
.rs-tuile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--sortie); }
.rs-tuile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .62) 100%); }
.rs-tuile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); z-index: 1; }
.rs-tuile b { font-weight: 700; font-size: 14.5px; line-height: 1.2; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-tuile-nb { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 7px; background: rgba(15, 15, 15, .72); color: #fff; }
.rs-tuile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 28%, transparent); }
.rs-tuile:hover img { transform: scale(1.06); }
.rs-tuile:active { transform: scale(.97); }
.rs-puces { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 4px; padding: 2px 16px 6px; scroll-behavior: smooth; }
.rs-puces::-webkit-scrollbar { display: none; }
.rs-puce { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-badge); font-weight: 600; font-size: 13.5px; white-space: nowrap;
    background: #EDEBE6; color: var(--texte); display: inline-flex; align-items: center; transition: background .2s, color .2s, transform .15s; }
.rs-puce:hover { background: #E2DFD8; }
.rs-puce:active { transform: scale(.95); }
.rs-puce.on { background: var(--texte); color: #fff; }
.rs-puce svg { width: 16px; height: 16px; }
.rs-puce i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, transparent); margin-right: 7px; flex: none; }
.rs-puce.on i { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }

/* ---------- Soins en cartes ---------- */
.rs-section { margin-top: 20px; }
.rs-section > h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.rs-liste { display: flex; flex-direction: column; gap: 8px; }
.rs-carte-soin { --c: var(--or); background: var(--surface); border-radius: 16px; border: 1.5px solid transparent; transition: border-color .25s, box-shadow .25s; }
.rs-carte-soin.on { border-color: var(--or); box-shadow: 0 6px 18px rgba(133, 117, 72, .12); }
.rs-soin { display: flex; align-items: center; gap: 12px; padding: 10px; }
.rs-vignette { position: relative; width: 92px; height: 64px; border-radius: 12px; flex: none; background: color-mix(in srgb, var(--c) 30%, #fff) center / cover no-repeat; }
.rs-vignette i { position: absolute; right: 5px; bottom: 5px; font-style: normal; font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 5px; background: rgba(15, 15, 15, .78); color: #fff; font-variant-numeric: tabular-nums; }
.rs-soin-txt { flex: 1; min-width: 0; }
.rs-soin-nom { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-soin-meta { color: var(--texte-3); font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-ajout { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--or); background: var(--surface); color: var(--or-texte); display: grid; place-items: center; transition: background .2s, color .2s, transform .15s; }
.rs-ajout:active { transform: scale(.88); }
.rs-ajout svg { width: 16px; height: 16px; grid-area: 1 / 1; transition: transform .3s var(--ressort), opacity .2s; }
.rs-ajout .i-coche { transform: scale(0) rotate(-45deg); opacity: 0; }
.rs-carte-soin.on .rs-ajout { background: var(--or); color: #fff; }
.rs-carte-soin.on .rs-ajout .i-plus { transform: scale(0) rotate(90deg); opacity: 0; }
.rs-carte-soin.on .rs-ajout .i-coche { transform: none; opacity: 1; }
.rs-sur-demande { flex: none; font-size: 12px; font-weight: 700; color: var(--texte-3); background: var(--surface-2); border-radius: var(--r-badge); padding: 4px 10px; }
/* Détails et options : repliés, dépliés en douceur quand le soin est choisi (grille 0fr → 1fr) */
.rs-depli { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--sortie); }
.rs-depli > div { overflow: hidden; min-height: 0; }
.rs-carte-soin.ouvert .rs-depli { grid-template-rows: 1fr; }
.rs-soin[data-deplier] { cursor: pointer; border-radius: 14px; }
.rs-soin[data-deplier]:focus-visible { outline: 2px solid var(--or); outline-offset: -2px; }
.rs-details { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--or-texte); }
.rs-details svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .3s var(--sortie); }
.rs-carte-soin.ouvert .rs-details svg { transform: rotate(-90deg); }
.rs-desc { color: var(--texte-2); font-size: 13px; padding: 0 12px 10px 114px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-options { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 12px; }
.rs-options-titre { flex-basis: 100%; font-size: 12px; font-weight: 700; color: var(--texte-3); text-transform: uppercase; letter-spacing: .06em; margin: 2px 2px 2px; }
.rs-option { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 34px; padding: 0 11px 0 9px; border-radius: var(--r-badge); border: 1px solid var(--ligne); background: var(--surface-2); font-size: 13px; transition: border-color .2s, background .2s, transform .15s; }
.rs-option:active { transform: scale(.96); }
.rs-option-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rs-option small { color: var(--texte-3); font-weight: 600; white-space: nowrap; }
.rs-option.on { border-color: var(--or); background: var(--or-voile); }
.rs-option.on small { color: var(--or-texte); }
/* Voir plus / Réduire : lien texte sous les puces (ne doit pas ressembler à une option) */
.rs-options-bascule { flex-basis: 100%; display: inline-flex; align-items: center; gap: 4px; width: max-content; max-width: 100%; height: 30px; margin-top: 2px; padding: 0 2px; border: 0; background: none;
    color: var(--or-texte); font-weight: 700; font-size: 13px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.rs-options-bascule:hover { text-decoration-color: currentColor; }
.rs-options-bascule svg { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .3s var(--sortie); }
.rs-options-bascule[aria-expanded="true"] svg { transform: rotate(-90deg); }
.rs-case { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--texte-3); flex: none; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.rs-case svg { width: 10px; height: 10px; transform: scale(0); transition: transform .25s var(--ressort); }
.rs-option.on .rs-case { background: var(--or); border-color: var(--or); color: #fff; }
.rs-option.on .rs-case svg { transform: none; }
.rs-vide { text-align: center; color: var(--texte-3); padding: 36px 12px; }
.rs-vide a { color: var(--or-texte); }

/* ---------- Avec qui et quand ---------- */
.rs-equipe { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; }
.rs-equipe::-webkit-scrollbar { display: none; }
.rs-pr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px; padding: 10px 10px; border-radius: 16px; border: 1.5px solid transparent; background: var(--surface); transition: border-color .2s, transform .15s; }
.rs-pr:active { transform: scale(.95); }
.rs-pr.on { border-color: var(--or); }
.rs-av { width: 44px; height: 44px; border-radius: 50%; background: var(--or-voile); color: var(--or-texte); display: grid; place-items: center; font-weight: 700; font-size: 16px; transition: background .2s, color .2s; }
.rs-pr.on .rs-av { background: var(--or); color: #fff; }
.rs-av svg { width: 20px; height: 20px; }
.rs-pr span:last-child { font-size: 12.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-jours-barre { display: flex; align-items: center; gap: 6px; }
.rs-jours { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-left: 12px; padding: 6px 18px 6px 12px; margin: -6px 0; scroll-behavior: smooth;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%); }
/* Bandeau qui défile en largeur : les jours arrivent de côté (un glissé vertical serait coupé par le défilement) */
.rs-jours.rs-cascade > * { animation-name: rs-glisse; }
@keyframes rs-glisse { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.rs-jours::-webkit-scrollbar { display: none; }
.rs-jour { flex: none; width: 56px; scroll-snap-align: start; padding: 8px 2px; border-radius: 14px; border: 0; background: var(--surface); text-align: center; line-height: 1.15; transition: background .22s, color .22s, transform .15s; }
.rs-jour:active { transform: scale(.94); }
.rs-jour small { display: block; font-size: 12px; color: var(--texte-3); transition: color .22s; }
.rs-jour b { display: block; font-size: 18px; margin: 2px 0; }
/* Jour complet : grisé par la couleur (l'animation d'entrée remet l'opacité à 1) */
.rs-jour:disabled { cursor: not-allowed; background: transparent; color: #C4C0B6; box-shadow: inset 0 0 0 1px var(--ligne); }
.rs-jour:disabled small { color: #C4C0B6; }
.rs-jour:disabled b { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgba(196, 192, 182, .8); }
.rs-jour.on { background: var(--barre); color: #fff; }
.rs-jour.on small { color: rgba(255, 255, 255, .75); }
.rs-fleche { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--surface); display: grid; place-items: center; transition: opacity .2s; }
.rs-fleche:disabled { opacity: .3; cursor: default; }
.rs-fleche svg { width: 16px; height: 16px; }
.rs-creneaux { min-height: 120px; }
.rs-moment { margin-top: 16px; }
.rs-moment h3 { font-size: 13px; color: var(--texte-3); font-weight: 600; margin: 0 0 8px; }
.rs-heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.rs-heure { height: 44px; border-radius: 12px; border: 0; background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.rs-heure:hover { box-shadow: inset 0 0 0 1.5px var(--or); }
.rs-heure:active { transform: scale(.94); }
.rs-heure.on { background: var(--or); color: #fff; box-shadow: 0 6px 14px rgba(133, 117, 72, .28); }

/* ---------- Formulaire ---------- */
.rs-carte { border-radius: 16px; background: var(--surface); padding: 16px; margin-bottom: 12px; }
.rs-champ { display: block; margin-bottom: 12px; }
.rs-champ > span { display: block; font-size: 13px; font-weight: 600; color: var(--texte-2); margin-bottom: 6px; }
.rs-champ input { width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--fond); font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.rs-champ input:focus { outline: none; border-color: var(--or); background: #fff; box-shadow: 0 0 0 4px var(--or-voile); }
.rs-code input { letter-spacing: .5em; text-align: center; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rs-seg { position: relative; display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.rs-seg button { flex: 1; height: 42px; border: 0; border-radius: 9px; background: none; font-weight: 600; transition: background .2s, color .2s, box-shadow .2s; }
.rs-seg button.on { background: var(--surface); color: var(--or-texte); box-shadow: 0 0 0 1.5px var(--or), 0 2px 6px rgba(44, 42, 36, .08); }
.rs-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-aide { font-size: 13px; color: var(--texte-3); margin: 4px 0 0; }
.rs-msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; background: #FCEBEA; color: var(--rouge); animation: rs-secoue .4s; }
.rs-msg.ok { background: var(--vert-voile); color: var(--vert); animation: rs-entre .3s var(--sortie); }
.rs-lien { border: 0; background: none; padding: 0; color: var(--or-texte); font-weight: 600; font-size: 13px; }

/* ---------- Récapitulatif ---------- */
.rs-recap { display: grid; gap: 10px; }
.rs-recap-l { display: flex; gap: 12px; align-items: flex-start; }
.rs-recap-l svg { width: 20px; height: 20px; color: var(--or-texte); flex: none; margin-top: 1px; }
.rs-recap-l b { display: block; }
.rs-recap-l small { color: var(--texte-3); }
.rs-cure { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--vert-voile); color: var(--vert); font-size: 14px; font-weight: 600; }
.rs-cure svg { width: 18px; height: 18px; flex: none; }

/* ---------- Boutons ---------- */
.rs-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--or); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; transition: background .18s, transform .15s, box-shadow .2s; }
.rs-btn:hover { background: var(--or-fonce); box-shadow: 0 8px 18px rgba(133, 117, 72, .25); }
.rs-btn:active { transform: scale(.98); }
.rs-btn:disabled { opacity: .55; cursor: progress; box-shadow: none; }
.rs-btn.second { background: var(--surface); color: var(--texte); border: 1px solid var(--ligne); }
.rs-btn.second:hover { background: var(--surface-2); box-shadow: none; }
.rs-btn.large { width: 100%; }
.rs-btn svg { width: 18px; height: 18px; }
.rs-rond { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: rs-tourne .7s linear infinite; }

/* ---------- Barre sombre flottante ---------- */
.rs-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; transform: translateY(130%); transition: transform .38s var(--sortie); }
.rs-barre.visible { transform: none; }
.rs-barre > div { pointer-events: auto; max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--barre); color: #fff; box-shadow: 0 12px 32px rgba(20, 18, 14, .3); }
.rs-barre-txt { flex: 1; min-width: 0; }
.rs-barre-txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.rs-barre-txt small { color: rgba(255, 255, 255, .7); }
.rs-barre-txt.change { animation: rs-maj .35s var(--sortie); }
.rs-barre .rs-btn { height: 44px; padding: 0 18px; border-radius: 999px; background: var(--barre-btn); color: #1C1A15; font-size: 15px; }
.rs-barre .rs-btn:hover { background: #D6B979; box-shadow: none; }
.rs-barre .rs-btn:disabled { opacity: .4; cursor: default; }
.rs-barre .rs-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.rs-barre .rs-btn:not(:disabled):hover svg { transform: translateX(3px); }
html.integre .rs-barre { position: sticky; padding: 12px 0 0; }
html.integre .rs { padding-bottom: 8px; }

/* ---------- Squelettes ---------- */
.rs-sq { border-radius: 12px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-2) 40%, #fff 50%, var(--surface-2) 60%, var(--surface-2) 100%) 0 0 / 300% 100%; animation: rs-reflet 1.4s ease-in-out infinite; }

/* ---------- Confirmation ---------- */
.rs-ok { text-align: center; padding: 30px 0 8px; }
.rs-ok-rond { position: relative; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; animation: rs-pop .5s var(--ressort) both; }
.rs-ok-rond::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--vert); animation: rs-onde 1s var(--sortie) .2s both; }
.rs-ok-rond svg { width: 38px; height: 38px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: rs-trace .45s var(--sortie) .25s forwards; }
.rs-ok h2 { font-family: var(--titre); font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.rs-ok p { color: var(--texte-2); margin: 6px 0 0; }
.rs-actions { display: grid; gap: 8px; margin-top: 16px; }

.rs-pied { text-align: center; color: var(--texte-3); font-size: 12.5px; margin-top: 28px; }

/* ---------- Entrées animées : seulement à l'arrivée d'une étape ou d'une liste (pas à chaque clic) ---------- */
.rs-entre { animation: rs-entre .32s var(--sortie) both; }
.rs-entre.arriere { animation-name: rs-entre-arriere; }
.rs-cascade > * { animation: rs-monte .34s var(--sortie) both; animation-delay: calc(min(var(--i, 0), 10) * 28ms); }

@keyframes rs-entre { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes rs-entre-arriere { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes rs-monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rs-maj { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes rs-pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rs-onde { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
@keyframes rs-trace { to { stroke-dashoffset: 0; } }
@keyframes rs-secoue { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes rs-reflet { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes rs-tourne { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ---------- Récapitulatif de la sélection : panneau montant depuis la barre du bas ---------- */
.rs-barre-txt[data-act] { cursor: pointer; text-align: left; border: 0; background: none; color: inherit; padding: 0; display: flex; align-items: center; gap: 8px; font: inherit; }
.rs-barre-txt[data-act] > span { min-width: 0; }
.rs-barre-txt .rs-chevron { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; transition: background .2s; }
.rs-barre-txt .rs-chevron svg { width: 15px; height: 15px; transform: rotate(-90deg); }
.rs-barre-txt[data-act]:hover .rs-chevron { background: rgba(255, 255, 255, .22); }
.rs-voile { position: fixed; inset: 0; z-index: 40; background: rgba(28, 26, 21, .42); opacity: 0; transition: opacity .3s; }
.rs-voile.ouvert { opacity: 1; }
.rs-panier { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 640px; margin: 0 auto; max-height: 86vh; display: flex; flex-direction: column;
    background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(20, 18, 14, .2); transform: translateY(105%); transition: transform .38s var(--sortie);
    padding-bottom: env(safe-area-inset-bottom); font: 15px/1.45 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--texte); }
.rs-panier.ouvert { transform: none; }
.rs-panier.glisse { transition: none; }
.rs-poignee { flex: none; padding: 10px 0 2px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.rs-poignee::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: var(--ligne); }
.rs-panier-tete { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 18px 12px; }
.rs-panier-tete h2 { font-size: 18px; font-weight: 700; }
.rs-panier-tete small { display: block; color: var(--texte-3); font-size: 13px; margin-top: 2px; }
.rs-panier-corps { flex: 1; overflow-y: auto; padding: 0 18px; overscroll-behavior: contain; }
.rs-ligne { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--ligne); animation: rs-monte .3s var(--sortie) both; animation-delay: calc(var(--i, 0) * 40ms); }
.rs-ligne .rs-vignette { width: 64px; height: 48px; }
.rs-ligne-txt { flex: 1; min-width: 0; }
.rs-ligne-nom { font-weight: 600; line-height: 1.3; }
.rs-ligne-meta { color: var(--texte-3); font-size: 13px; margin-top: 2px; }
.rs-ligne-opts { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.rs-ligne-opts li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--texte-2); }
.rs-ligne-opts li span:last-child { color: var(--texte-3); white-space: nowrap; }
.rs-ligne-droite { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.rs-ligne-prix { font-weight: 700; font-variant-numeric: tabular-nums; }
.rs-retirer { border: 0; background: var(--surface-2); color: var(--texte-2); border-radius: 999px; height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 600; transition: background .2s, color .2s; }
.rs-retirer:hover { background: #FCEBEA; color: var(--rouge); }
.rs-ligne.part { animation: rs-sort .25s ease forwards; }
.rs-panier-rdv { display: flex; gap: 10px; align-items: center; margin: 4px 0 12px; padding: 12px; border-radius: 14px; background: var(--or-voile); color: var(--or-texte); font-weight: 600; font-size: 14px; }
.rs-panier-rdv svg { width: 18px; height: 18px; flex: none; }
.rs-totaux { flex: none; padding: 12px 18px 16px; border-top: 1px solid var(--ligne); background: var(--surface); }
.rs-total-l { display: flex; justify-content: space-between; font-size: 14px; color: var(--texte-2); margin-bottom: 4px; }
.rs-total-l.grand { font-size: 18px; font-weight: 700; color: var(--texte); margin: 8px 0 2px; }
.rs-total-note { font-size: 12.5px; color: var(--texte-3); margin: 0 0 12px; }
.rs-panier-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.rs-fermer { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.rs-fermer svg { width: 16px; height: 16px; }
@keyframes rs-sort { to { opacity: 0; transform: translateX(-24px); height: 0; padding: 0; } }

/* ---------- Ordinateur : page élargie, soins sur deux colonnes, catégories sur quatre ---------- */
@media (min-width: 960px) {
    .rs { max-width: 1040px; }
    .rs-hero { height: 340px; }
    .rs-hero.court { height: 150px; }
    .rs-fiche h1 { font-size: 30px; }
    .rs-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
    .rs-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rs-heures { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
    .rs-barre > div { max-width: 1008px; }
    .rs-panier { max-width: 720px; }
    #rs-ident, .rs-recap { max-width: 640px; }
}

/* ---------- Étape « Vos coordonnées » ---------- */
.rs-resume { display: grid; gap: 0; padding: 4px 16px; }
.rs-resume-l { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.rs-resume-l > svg { width: 19px; height: 19px; color: var(--or-texte); flex: none; margin-top: 2px; }
.rs-resume-l > div { flex: 1; min-width: 0; }
.rs-resume-l b { display: block; font-weight: 700; }
.rs-resume-l small { display: block; color: var(--texte-3); font-size: 13px; margin-top: 1px; }
.rs-resume-soins { display: grid; gap: 8px; }
.rs-resume-soin { display: flex; justify-content: space-between; gap: 12px; }
.rs-resume-soin > span { min-width: 0; }
.rs-resume-soin b { font-weight: 600; }
.rs-resume-soin em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-modif { flex: none; border: 0; background: none; padding: 2px 0; color: var(--or-texte); font-weight: 700; font-size: 13px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.rs-modif:hover { text-decoration-color: currentColor; }
.rs-resume .rs-cure { margin: 12px 0 0; }
.rs-resume-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 12px; font-size: 17px; }
.rs-resume-total small { color: var(--texte-3); font-size: 12.5px; font-weight: 500; margin-left: 4px; }
.rs-resume-total b { font-family: var(--titre); font-size: 22px; font-variant-numeric: tabular-nums; }

.rs-ident { padding: 18px 16px; }
.rs-sous-etapes { display: flex; align-items: center; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 12.5px; font-weight: 600; color: var(--texte-3); }
.rs-sous-etapes li { display: flex; align-items: center; gap: 6px; }
.rs-sous-etapes li + li::before { content: ""; width: 18px; height: 1.5px; background: var(--ligne); margin-right: 2px; }
.rs-sous-etapes span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-2); color: var(--texte-3); transition: background .25s, color .25s; }
.rs-sous-etapes span svg { width: 12px; height: 12px; }
.rs-sous-etapes .actif { color: var(--texte); }
.rs-sous-etapes .actif span { background: var(--texte); color: #fff; }
.rs-sous-etapes .fait span { background: var(--vert-voile); color: var(--vert); }
.rs-saisie { position: relative; display: block; }
.rs-saisie > svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--texte-3); pointer-events: none; transition: color .2s; }
.rs-saisie input { padding-left: 42px !important; }
.rs-saisie:focus-within > svg { color: var(--or); }
.rs-champ.erreur input { border-color: var(--rouge); box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.rs-champ em { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--rouge); animation: rs-monte .25s var(--sortie); }
.rs-confiance { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; color: var(--texte-3); text-align: center; }
.rs-confiance svg { width: 14px; height: 14px; flex: none; }
.rs-code-txt { margin: 0 0 14px; font-size: 14px; color: var(--texte-2); }
.rs-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 10px; }
.rs-otp input { width: 100%; height: 56px; padding: 0; text-align: center; font-size: 24px; font-weight: 700; border-radius: 12px; border: 1px solid var(--ligne); background: var(--fond); font-variant-numeric: tabular-nums; transition: border-color .2s, box-shadow .2s, background .2s, transform .15s; }
.rs-otp input:focus { outline: none; border-color: var(--or); background: #fff; box-shadow: 0 0 0 4px var(--or-voile); transform: translateY(-1px); }
.rs-otp input:not(:placeholder-shown), .rs-otp input[value]:not([value=""]) { background: #fff; }
.rs-renvoi { display: block; margin: 10px auto 0; border: 0; background: none; color: var(--or-texte); font-weight: 700; font-size: 13.5px; padding: 6px; }
.rs-renvoi:disabled { color: var(--texte-3); font-weight: 600; cursor: default; }
.rs-premiere { margin: 0 0 14px; font-size: 14px; color: var(--texte-2); }
.rs-premiere b { color: var(--texte); }
.rs-bonjour { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px; border-radius: 14px; background: var(--or-voile); }
.rs-bonjour b { display: block; }
.rs-bonjour small { color: var(--texte-3); }
.rs-ident .rs-btn { margin-top: 6px; }

/* Confirmation : ajout à l'agenda (un bouton principal + « Autre agenda » replié), tuiles pratiques */
.rs-agendas { display: grid; gap: 4px; }
.rs-agenda-principal { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px 10px 12px; border-radius: 16px; background: var(--barre); color: #fff; text-decoration: none; transition: transform .15s, box-shadow .2s; box-shadow: 0 10px 24px rgba(44, 42, 36, .18); }
.rs-agenda-principal:hover { box-shadow: 0 14px 30px rgba(44, 42, 36, .26); }
.rs-agenda-principal:active { transform: scale(.98); }
.rs-agenda-principal > span:last-child { display: grid; font-weight: 700; font-size: 16px; line-height: 1.2; }
.rs-agenda-principal small { font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, .65); }
.rs-agenda-autre { justify-self: center; display: inline-flex; align-items: center; gap: 2px; padding: 8px 10px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--or-texte); cursor: pointer; }
.rs-agenda-autre svg { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .3s var(--sortie); }
.rs-agendas.ouvert .rs-agenda-autre svg { transform: rotate(-90deg); }
.rs-agenda-depli { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--sortie); }
.rs-agendas.ouvert .rs-agenda-depli { grid-template-rows: 1fr; }
.rs-agenda-depli > div { overflow: hidden; display: grid; border-radius: 16px; background: var(--surface); }
.rs-agenda-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; color: var(--texte); font-weight: 600; text-decoration: none; transition: background .15s; }
.rs-agenda-ligne + .rs-agenda-ligne { border-top: 1px solid var(--ligne); }
.rs-agenda-ligne:hover { background: var(--surface-2); }
.rs-agenda-ligne > span:nth-child(2) { flex: 1; }
.rs-agenda-ligne > svg { width: 16px; height: 16px; color: var(--texte-3); }
/* Mini-calendrier : bandeau couleur de l'agenda + jour du rendez-vous */
.rs-cal-ico { flex: none; display: grid; grid-template-rows: 11px 1fr; place-items: center; width: 40px; height: 40px; border-radius: var(--r-badge); overflow: hidden; background: #fff; color: #2C2A24; font: 700 16px/1 var(--titre); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.rs-cal-ico i { width: 100%; height: 100%; background: var(--cal); }
.rs-cal-ico.google { --cal: #1A73E8; }
.rs-cal-ico.apple { --cal: #FF3B30; }
.rs-cal-ico.outlook { --cal: #0F6CBD; }
.rs-raccourcis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.rs-raccourci { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface); color: var(--texte); text-decoration: none; transition: background .15s, transform .15s; }
.rs-raccourci:hover { background: var(--surface-2); }
.rs-raccourci:active { transform: scale(.98); }
.rs-raccourci svg { width: 22px; height: 22px; color: var(--or-texte); margin-bottom: 6px; }
.rs-raccourci b { font-size: 15px; }
.rs-raccourci small { color: var(--texte-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-lien-encore { justify-self: center; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 10px 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 700; color: var(--texte-2); cursor: pointer; transition: background .15s; }
.rs-lien-encore:hover { background: var(--surface-2); }
.rs-lien-encore svg { width: 16px; height: 16px; }

