/* =========================================================
   Assistant de prise de rendez-vous (rendez-vous.html)
   Une question par écran, gros boutons, gros caractères.
   Sans JavaScript : toutes les questions s’affichent l’une sous l’autre.
   ========================================================= */
.rv { position: relative; padding: clamp(20px, 3vw, 40px); border-radius: 28px; background: rgba(255, 255, 255, .94); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 108px; }
.rv[data-societe="georgette"], .rv-done[data-societe="georgette"] { --acc: #B9774F; --acc-deep: #8F4F2C; --acc-soft: rgba(233, 174, 136, .2); }
.rv [hidden], .rv-done [hidden] { display: none !important; }
.rv > * + * { margin-top: 26px; }
.rv .hp + input + .rv__step, .rv .hp { margin-top: 0; }

/* compteur d’étapes */
.rv__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.rv__count { font-size: 18px; font-weight: 600; color: var(--acc-deep); }
.rv__dots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rv__dots li { width: 36px; height: 8px; border-radius: 8px; background: var(--soft); transition: background-color .3s; }
.rv__dots li.is-done { background: var(--acc); }
.rv__dots li.is-on { background: var(--ink); }

/* un écran = une question */
.rv__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.rv__step > * + * { margin-top: 20px; }
.rv:not(.is-js) .rv__step + .rv__step { padding-top: 36px; border-top: 1px solid var(--line); }
.rv__q { display: block; width: 100%; padding: 0; font: 500 clamp(26px, 3vw, 38px)/1.15 var(--display); letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.rv__q:focus { outline: none; }
.rv__q:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.rv__n { display: block; margin-bottom: 8px; font: 600 16px/1.3 var(--sans); letter-spacing: 0; color: var(--acc-deep); }
.rv.is-js .rv__n, .rv.is-js .rv-nojs { display: none; }
/* astérisque des cases obligatoires : seulement avec JavaScript, où ces cases n’apparaissent que si elles sont exigées */
.rv:not(.is-js) .rv-req { display: none; }
.rv__help { max-width: 62ch; font-size: 18px; line-height: 1.55; color: var(--t2); }
.rv__help a { color: var(--ink); font-weight: 500; }
.rv__help--small { font-size: 16px; }
.rv__sub { font-size: 17px; font-weight: 600; color: var(--ink); }
.rv__group { display: grid; gap: 16px; padding: 18px; border-radius: 18px; background: rgba(10, 10, 10, .03); }
.rv .field + .field, .rv__group + .field, .rv .field + .rv__group { margin-top: 20px; }
.rv .field__help { font-size: 15px; color: var(--t2); }

/* grandes cartes à choisir (sociétés, prestations, lieux) */
.rv-opts { display: grid; gap: 12px; }
.rv-opts--2 { grid-template-columns: 1fr 1fr; }
.rv-opts--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.rv-opt { position: relative; display: block; cursor: pointer; }
.rv-opt input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rv-opt__in {
  position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 22px 60px 22px 22px; border-radius: 22px; background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(10, 10, 10, .24); transition: box-shadow .2s, background-color .2s;
}
.rv-opt__in::after { content: ""; position: absolute; right: 20px; top: 22px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px rgba(10, 10, 10, .4); }
.rv-opt:hover .rv-opt__in { box-shadow: inset 0 0 0 2px var(--ink); }
.rv-opt input:checked + .rv-opt__in { background: var(--acc-soft); box-shadow: inset 0 0 0 3px var(--ink); }
.rv-opt input:checked + .rv-opt__in::after {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: none;
}
.rv-opt input:focus-visible + .rv-opt__in { outline: 3px solid var(--ink); outline-offset: 3px; }
.rv-opt__t { font: 500 clamp(23px, 2.3vw, 30px)/1.15 var(--display); letter-spacing: -.035em; color: var(--ink); }
.rv-opt__k { order: -1; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--acc-deep); }
.rv-opt__k::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--mint), var(--teal)); }
.rv-opt--warm .rv-opt__k { color: #8F4F2C; }
.rv-opt--warm .rv-opt__k::before { background: linear-gradient(135deg, var(--blush), var(--apri)); }
.rv-opt--warm input:checked + .rv-opt__in { background: rgba(233, 174, 136, .2); }
.rv-opt--forme input:checked + .rv-opt__in { background: rgba(63, 174, 159, .12); }
.rv-opt__d { font-size: 17px; line-height: 1.5; color: var(--t2); }
.rv-opt__p { font-size: 18px; font-weight: 600; color: var(--ink); }
.rv-opt--line .rv-opt__t { font: 600 19px/1.35 var(--sans); letter-spacing: -.01em; }
.rv-opt--line .rv-opt__in { padding: 18px 58px 18px 20px; border-radius: 18px; }
.rv-opt--line .rv-opt__in::after { top: 18px; }
.rv__grp { min-width: 0; margin: 0; padding: 0; border: 0; }
.rv__grp + .rv__grp { margin-top: 30px; }
.rv__grp-t { margin-bottom: 12px; padding: 0; font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--acc-deep); }
.rv__prestas > .field__err { margin-top: 14px; }
/* prestation déjà choisie (arrivée depuis un bouton « Prendre rendez-vous » ou « Souscrire ») */
.rv-choix { display: grid; gap: 12px; justify-items: start; }
.rv-choix > p { margin: 0; }

/* étape 3 : créneaux */
.rv-slots > * + * { margin-top: 16px; }
.rv-slots__chosen { padding: 14px 18px; border-radius: 16px; background: var(--acc-soft); font-size: 18px; font-weight: 600; color: var(--ink); }
.rv-slots__status { min-height: 1.5em; font-size: 17px; color: var(--t2); }
.rv-slots[aria-busy="true"] .rv-slots__status::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: rv-tourne 1s linear infinite; }
@keyframes rv-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rv-slots[aria-busy="true"] .rv-slots__status::before { animation: none; } }
.rv-slots__list { display: grid; gap: 12px; }
.rv-day { min-width: 0; margin: 0; padding: 16px 18px; border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.rv-day__t { margin-bottom: 10px; padding: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.rv-day__row { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-slot { position: relative; }
.rv-slot input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rv-slot > span { display: grid; place-items: center; min-width: 96px; min-height: 54px; padding: 0 18px; border-radius: 999px; background: var(--soft); font-size: 18px; font-weight: 600; color: var(--ink); transition: background-color .2s, color .2s; }
.rv-slot:hover > span { box-shadow: inset 0 0 0 2px var(--ink); }
.rv-slot input:checked + span { background: var(--ink); color: #fff; }
.rv-slot input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.rv-slots__more { display: flex; flex-wrap: wrap; gap: 10px; }
.rv-slots__none { padding: 16px 18px; border-radius: 16px; background: rgba(10, 10, 10, .04); font-size: 17px; }
.rv-souhait > * + * { margin-top: 20px; }
.rv-souhait__info { margin-top: 0; }
.rv .choice--3 { grid-template-columns: repeat(3, 1fr); }
.rv-link { display: inline; padding: 6px 0; border: 0; background: none; font: 500 17px/1.45 var(--sans); color: var(--ink); text-align: left; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.rv-link:hover { text-decoration-thickness: 2px; }
.rv-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* étape 5 : récapitulatif */
.rv-recap { display: grid; gap: 14px; }
.rv-recap__sec { padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.rv-recap__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 6px; }
.rv-recap__t { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--acc-deep); }
.rv-recap__dl { margin: 0; }
.rv-recap__dl > div { display: grid; grid-template-columns: minmax(130px, 36%) 1fr; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.rv-recap__dl > div:first-child { border-top: 0; }
.rv-recap__dl dt { font-size: 16px; color: var(--t2); }
.rv-recap__dl dd { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.rv-recap .note { margin-top: 0; }
.rv__terms { display: grid; gap: 22px; }
.rv__term { display: grid; gap: 10px; }
.rv__term .consent + .field__err, .rv__term .consent__more { margin-top: 0; }
.rv .consent span { line-height: 1.5; }
.rv .consent small { font-size: 15px; color: var(--t2); }

/* boutons Retour / Continuer */
.rv__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 6px; }
.rv__nav .btn { min-height: 60px; padding: 0 32px; font-size: 18px; }
.rv__nav [data-next], .rv__nav [type="submit"] { margin-left: auto; }
.rv__nav--first [data-next] { margin-left: 0; }
.rv:not(.is-js) .rv__nav--last [type="submit"] { margin-left: 0; width: 100%; }
.rv__status:empty { display: none; }
.rv__status { font-size: 18px; }
.rv__status .btn { display: flex; margin-top: 14px; }
.rv__status .more { display: inline-block; margin-top: 12px; font-size: 17px; }

/* écran final */
.rv-done { display: grid; gap: 16px; padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); scroll-margin-top: 108px; }
.rv-done[hidden] { display: none; }
.rv-done__k { font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--acc-deep); }
.rv-done p { font-size: 18px; line-height: 1.55; color: var(--t1); }
.rv-done .rv-done__t { margin: 0; font: 500 clamp(28px, 3vw, 40px)/1.15 var(--display); letter-spacing: -.035em; color: var(--ink); }
.rv-done__t:focus { outline: none; }
.rv-done__t:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.rv-done p.rv-done__k { font-size: 15px; }
.rv-done__ref b { display: inline-block; margin-left: 4px; padding: 6px 14px; border-radius: 12px; background: var(--acc-soft); font-size: 22px; font-weight: 600; letter-spacing: .05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rv-done__pay { display: grid; gap: 10px; justify-items: start; }
.rv-done__pay .note, .rv-done .note { margin-top: 0; }
.rv-done__pay .fine { margin: 0; }
.rv-done__privacy { font-size: 16px !important; color: var(--t2) !important; }
.rv-done .btns { margin-top: 4px; }

/* ---------- Téléphone ---------- */
@media (max-width: 720px) {
  .rv { padding: 20px 16px; border-radius: 22px; }
  .rv-opts--2 { grid-template-columns: 1fr; }
  .rv-opt__in { padding: 18px 56px 18px 18px; }
  .rv__nav { display: grid; grid-template-columns: auto 1fr; }
  .rv__nav .btn { width: 100%; padding: 0 18px; }
  .rv__nav--first, .rv:not(.is-js) .rv__nav { grid-template-columns: 1fr; }
  .rv__nav [data-next], .rv__nav [type="submit"] { margin-left: 0; }
  .rv-slot > span { min-width: 84px; padding: 0 14px; }
  .rv-day { padding: 14px; }
  .rv-recap__sec { padding: 16px; }
  .rv-recap__dl > div { grid-template-columns: 1fr; }
  .rv-done .btns .btn, .rv-done__pay .btn { width: 100%; }
}
@media (max-width: 420px) {
  .rv .choice--3 { grid-template-columns: 1fr; border-radius: 26px; }
}
@media (max-width: 340px) {
  .rv__nav { grid-template-columns: 1fr; }
}

/* ---------- Impression ---------- */
@media print {
  .rv__nav, .rv-done .btns { display: none !important; }
}

/* ---------- Téléphone : textes plus petits (retours du 8 novembre 2026) ---------- */
@media (max-width: 720px) {
  .rv { scroll-margin-top: 80px; }
  .rv__count { font-size: 16px; }
  .rv__q { font-size: 22px; }
  .rv__help { font-size: 16px; }
  .rv__help--small { font-size: 14.5px; }
  .rv__sub { font-size: 16px; }
  .rv-opt__t { font-size: 18px; }
  .rv-opt__d { font-size: 15px; }
  .rv-opt__p { font-size: 16px; }
  .rv-done .rv-done__t { font-size: 23px; }
  .rv-done p { font-size: 16px; }
  .rv__nav .btn { min-height: 52px; font-size: 16.5px; }
}
