/* ==========================================================================
   lubiancio nails — page /reserver/ : une question par écran
   En-tête léger (logo, progression, quitter), une grande question, de
   grandes cartes à toucher, et une barre en verre toujours au même endroit
   en bas (retour · le total · continuer). Moteur : booking.js
   ========================================================================== */
html { scroll-padding-top: 96px; }
.page-resa { background: var(--bg); min-height: 100vh; min-height: 100dvh; }

/* --- En-tête : logo · progression · quitter ----------------------------- */
.resa-entete {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr minmax(0, 420px) 1fr; align-items: center; gap: 20px;
  padding: 12px clamp(16px, 3vw, 32px);
  background: rgba(242, 242, 240, .8);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
.resa-entete .wordmark { justify-self: start; background: rgba(255, 255, 255, .62); }
.resa-progression { display: flex; align-items: center; gap: 12px; }
.resa-progression__barre { flex: 1; min-width: 0; height: 4px; border-radius: 999px; background: rgba(48, 47, 44, .1); overflow: hidden; }
.resa-progression__barre span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--gris-fonce); transform: scaleX(.1); transform-origin: left center; transition: transform .6s var(--ease); }
.resa-progression__texte { flex: none; min-width: 9.6em; font-size: 10px; line-height: 1; white-space: nowrap; color: var(--ink-soft); }
.resa-quitter { justify-self: end; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 999px; color: var(--ink-soft); transition: color .25s, background .25s; }
.resa-quitter:hover { color: var(--ink); background: rgba(255, 255, 255, .75); }
.resa-quitter span { font-size: 16px; font-weight: 400; line-height: 1; }

/* --- La colonne des questions ------------------------------------------- */
.resa-page { width: min(780px, 100%); margin: 0 auto; padding: clamp(30px, 6vh, 64px) 20px 0; }
.ecran__question { font-size: clamp(42px, 6.6vw, 74px); line-height: .94; letter-spacing: -.055em; }
.ecran__question:focus { outline: none; }
.ecran__aide { margin: 14px 0 clamp(22px, 3.4vw, 34px); max-width: 54ch; font-size: 16.5px; line-height: 1.45; color: var(--ink-soft); }
.ecran__note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

/* Le rappel en haut : inspiration gardée, ou reprise */
.inspi-gardee {
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%;
  margin-bottom: clamp(18px, 3vw, 28px); padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft);
}
.inspi-gardee.a-image { padding: 6px 18px 6px 6px; }
.inspi-gardee img { width: 32px; height: 38px; flex: none; border-radius: 11px; object-fit: cover; background: var(--gris-pale); }
.inspi-gardee span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inspi-gardee strong { color: var(--ink); margin-right: 3px; }
.memo__lien { flex: none; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* --- Les cartes de choix ------------------------------------------------ */
.options { display: grid; gap: 10px; }
.option {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 16px;
  padding: 18px 18px 18px 22px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .25s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.option:has(.option__visuel) { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 12px; }
.option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 18px 34px -26px rgba(40, 39, 36, .5); }
.option:active { transform: scale(.99); }
.option:has(input:checked) { border-color: var(--gris-fonce); box-shadow: 0 0 0 1px var(--gris-fonce), 0 20px 36px -28px rgba(40, 39, 36, .6); }
.option:has(input:focus-visible) { outline: 2px solid var(--gris-fonce); outline-offset: 3px; }
.option__texte { min-width: 0; display: grid; align-content: center; gap: 5px; }
.option__tete { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.option__titre { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 27px); line-height: 1; letter-spacing: -.045em; text-transform: lowercase; }
.option__sous { font-weight: 600; font-size: 15px; line-height: 1.3; }
.option__desc { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.option__fin { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.option__coche {
  width: 24px; height: 24px; flex: none; margin-bottom: auto; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
}
.option__coche::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .3s var(--ease); }
.option:has(input:checked) .option__coche { background: var(--gris-fonce); border-color: var(--gris-fonce); transform: scale(1.06); }
.option:has(input:checked) .option__coche::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.option__coche + .option__prix { margin-top: 12px; }
.option__prix { font-weight: 700; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.option__prix small { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

/* Technique : une photo de pose à gauche */
.option__visuel { width: 92px; min-height: 92px; align-self: stretch; border-radius: 15px; overflow: hidden; background: var(--gris-pale); }
.option--technique .option__visuel img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; transform: scale(1.45); transform-origin: 50% 0; transition: transform .7s var(--ease); }
.option--technique:hover .option__visuel img { transform: scale(1.55); }

/* Nail art : des points pour le niveau de détail */
.points { display: inline-flex; align-items: center; gap: 4px; }
.points i { width: 8px; height: 8px; border-radius: 50%; background: var(--gris-pale); box-shadow: inset 0 0 0 1px rgba(48, 47, 44, .14); }
.points i.on { background: var(--gris-fonce); box-shadow: none; }
.points--libre { padding: 4px 9px; border-radius: 999px; background: var(--gris-pale); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-fonce); }

/* Longueur : trois cartes, les ongles dessinés en haut */
.options--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option.option--longueur { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 12px; padding: 24px 14px 18px; }
.option--longueur .option__visuel { width: auto; min-height: 0; border-radius: 0; overflow: visible; background: none; }
.option--longueur .option__texte { justify-items: center; }
.option--longueur .option__fin { align-items: center; text-align: center; }
.option--longueur .option__coche { position: absolute; top: 12px; right: 12px; margin: 0; }
.option--longueur .option__coche + .option__prix { margin-top: 0; }
.option--longueur .ongles-taille { min-height: 80px; margin: 0; color: var(--ink-soft); }
.option--longueur .ongle-icone svg { width: 34px; height: 75px; }
.option--longueur:has(input:checked) .ongles-taille { color: var(--ink); }

/* « vous hésitez ? » */
.astuce { margin-top: 18px; }
.astuce summary { display: inline-flex; align-items: center; gap: 10px; padding: 8px 2px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14.5px; }
.astuce summary::-webkit-details-marker { display: none; }
.astuce summary::before { content: "?"; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--gris-pale); font-size: 12px; font-weight: 800; transition: background .25s, color .25s; }
.astuce[open] summary::before { background: var(--gris-fonce); color: #fff; }
.astuce p { margin-top: 6px; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.astuce p strong { color: var(--ink); }

/* --- L'inspiration ------------------------------------------------------ */
.insp-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option-grande {
  position: relative; display: grid; align-content: start; justify-items: start; gap: 8px; text-align: left;
  padding: 12px 12px 22px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .25s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.option-grande:hover { border-color: var(--gris-fonce); transform: translateY(-2px); box-shadow: 0 22px 40px -30px rgba(40, 39, 36, .55); }
.option-grande:has(input:focus-visible) { outline: 2px solid var(--gris-fonce); outline-offset: 3px; }
.option-grande__apercu { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.option-grande__apercu img, .option-grande__apercu i { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; object-fit: cover; background: var(--gris-pale); }
.option-grande__apercu img.est-detoure { object-position: 50% 18%; }
.option-grande__icone { width: 100%; aspect-ratio: 2.45 / 1; display: grid; place-items: center; margin-bottom: 8px; border-radius: 14px; background: var(--gris-brume); color: var(--ink); }
.option-grande__icone svg { width: 34px; height: 34px; }
.option-grande__titre { padding: 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(21px, 2.4vw, 25px); line-height: 1; letter-spacing: -.045em; text-transform: lowercase; }
.option-grande__desc { padding: 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.option-grande.is-travail { pointer-events: none; opacity: .55; }
.option-grande.is-travail .option-grande__icone svg { animation: respire 1s ease-in-out infinite; }

.insp-choisie {
  display: grid; grid-template-columns: clamp(120px, 27%, 196px) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 28px);
  padding: 14px; border-radius: 26px; background: var(--paper);
  border: 1px solid var(--gris-fonce); box-shadow: 0 0 0 1px var(--gris-fonce), 0 24px 44px -34px rgba(40, 39, 36, .6);
}
.insp-choisie__image { display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--gris-pale); }
.insp-choisie__image img { width: 100%; height: 100%; object-fit: cover; }
.insp-choisie__image.est-detoure img { object-fit: contain; }
.insp-choisie__texte { min-width: 0; display: grid; justify-items: start; gap: 6px; }
.insp-choisie__texte .label { color: var(--gris-fonce); }
.insp-choisie__titre { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); line-height: 1; letter-spacing: -.05em; text-transform: lowercase; overflow-wrap: anywhere; }
.insp-choisie__source { font-size: 14px; color: var(--ink-soft); }
.insp-choisie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.insp-choisie__actions .btn:has(input:focus-visible) { outline: 2px solid var(--gris-fonce); outline-offset: 3px; }
.insp-erreur { margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: #F6ECE9; color: #9D4538; font-size: 14px; font-weight: 600; }

/* --- Le jour et l'heure ------------------------------------------------- */
.creneau { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.creneau .cal, .creneau .slots { padding: 18px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.creneau .cal__title { font-size: 17px; }
.creneau .day { font-size: 14px; }
.creneau .slots { scroll-margin-top: 84px; }
.creneau .slots__day { font-size: 17px; }
.creneau .slot { padding: 11px 12px; border-radius: 13px; }
.creneau .slot span { font-size: 15.5px; }

/* --- Les coordonnées ---------------------------------------------------- */
.resa-v5 .fields { gap: 14px; }
.resa-v5 .field span { font-size: 10.5px; }
.resa-v5 .field em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; }
.resa-v5 .field input, .resa-v5 .field textarea { padding: 15px 16px; border-radius: 15px; background: var(--paper); font-size: 16px; }
.resa-v5 .field input::placeholder, .resa-v5 .field textarea::placeholder { color: rgba(48, 47, 44, .32); }
.resa-v5 .field input:focus, .resa-v5 .field textarea:focus { background: #fff; }

/* --- Le récapitulatif : une ligne par réponse --------------------------- */
.recap { display: grid; gap: 10px; }
.recap__liste { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.recap__ligne { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; }
.recap__ligne + .recap__ligne { border-top: 1px solid var(--line); }
.recap__q { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.recap__r { min-width: 0; display: flex; align-items: center; gap: 12px; }
.recap__txt { min-width: 0; font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.recap__txt small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--ink-soft); overflow-wrap: anywhere; }
.recap__txt em { font-style: normal; font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.recap__note { font-style: italic; }
.recap__vignette { width: 42px; height: 52px; flex: none; border-radius: 11px; overflow: hidden; background: var(--gris-pale); }
.recap__vignette img { width: 100%; height: 100%; object-fit: cover; }
.recap__vignette.est-detoure img { object-position: 50% 18%; }
.recap__modif { flex: none; padding: 8px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.recap__modif:hover { text-decoration-thickness: 2px; }
.recap__totaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.recap__totaux > div { display: grid; align-content: start; gap: 8px; padding: 15px 16px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.recap__totaux .label { font-size: 10px; color: var(--ink-soft); }
.recap__totaux strong { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.recap__totaux .recap__total-ligne { background: var(--gris-fonce); border-color: var(--gris-fonce); color: #fff; }
.recap__totaux .recap__total-ligne .label { color: rgba(255, 255, 255, .7); }

.regles { display: grid; gap: 12px; margin-top: 12px; padding: 18px 20px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.regles .label { font-size: 10px; color: var(--ink-soft); }
.regles ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.regles li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.regles li::before { content: ""; position: absolute; left: 4px; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--gris-fonce); }
.regles li strong { color: var(--ink); }
.resa-v5 .consent { align-items: center; margin-top: 4px; padding: 15px 16px; border-radius: 16px; font-weight: 600; font-size: 15px; }
.resa-v5 .consent input { width: 22px; height: 22px; margin: 0; }

/* --- Retour du paiement, et « c'est réservé » --------------------------- */
.ecran.en-attente .ecran__aide::before {
  content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 10px; vertical-align: -2px;
  border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--ink); animation: tourne .8s linear infinite;
}
.ecran--fin { display: grid; justify-items: center; text-align: center; padding-top: clamp(4px, 3vh, 32px); }
.fin__check { width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--gris-fonce); color: #fff; font-size: 34px; box-shadow: 0 22px 40px -22px rgba(40, 39, 36, .7); }
.ecran--fin.entre-avant .fin__check { animation: pop .8s var(--ease) .1s backwards; }
.fin__texte { max-width: 48ch; margin: 16px auto 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); }
.fin__suite { width: 100%; margin-top: 28px; padding: 20px 22px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); text-align: left; }
.fin__suite .label { margin-bottom: 14px; font-size: 10px; color: var(--ink-soft); }
.fin__suite ol { margin: 0; padding: 0; list-style: none; counter-reset: fin; display: grid; gap: 12px; }
.fin__suite li { counter-increment: fin; position: relative; min-height: 26px; padding-left: 40px; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.fin__suite li::before { content: counter(fin); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--gris-pale); color: var(--ink); font-size: 12px; font-weight: 700; }
.fin__suite li strong { color: var(--ink); }
.fin__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* --- Le message d'aide, juste au-dessus de « continuer » ---------------- */
.ecran__erreur {
  width: fit-content; max-width: 100%; margin: 24px auto 0;
  display: flex; align-items: center; gap: 10px; padding: 11px 18px 11px 11px; border-radius: 20px;
  background: var(--gris-nuit); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  animation: monte .4s var(--ease) both;
}
.ecran__erreur::before { content: "!"; flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--gris-nuit); font-size: 13px; font-weight: 800; }

/* --- Sous chaque question, dans la page : retour · le total · continuer --- */
.resa-bas { padding: 28px 20px calc(56px + env(safe-area-inset-bottom, 0px)); }
.resa-bas__inner {
  width: min(740px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 22px 46px -20px rgba(40, 39, 36, .5);
}
.resa-bas__retour { padding: 15px 20px; }
.resa-bas__retour.est-cache { visibility: hidden; }
.resa-bas__resume { min-width: 0; display: grid; justify-items: center; text-align: center; line-height: 1.15; }
.resa-bas__resume .label { max-width: 100%; font-size: 9.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resa-bas__resume strong { margin-top: 2px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.045em; white-space: nowrap; }
/* Le bouton qui fait avancer : verre fumé, pour qu'on le trouve tout de suite */
.resa-bas .btn.btn--primary.resa-bas__suivant {
  min-width: 172px; padding: 17px 26px; font-size: 11.5px; color: #fff;
  background:
    linear-gradient(180deg, rgba(70, 68, 64, .94), rgba(44, 43, 40, .9)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .08) 40%, rgba(255, 255, 255, .06) 62%, rgba(255, 255, 255, .38)) border-box;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), inset 0 0 14px rgba(255, 255, 255, .06), 0 14px 28px -14px rgba(0, 0, 0, .55);
}
.resa-bas .btn.btn--primary.resa-bas__suivant::after { background: radial-gradient(70% 90% at 20% 0%, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 60%); }
.resa-bas .btn.btn--primary.resa-bas__suivant:hover { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .36), inset 0 0 18px rgba(255, 255, 255, .1), 0 18px 32px -14px rgba(0, 0, 0, .6); }
.resa-bas .btn.btn--primary.resa-bas__suivant[disabled] { opacity: .6; cursor: progress; transform: none; }

/* --- Fenêtre « mes tableaux » (choisir une épingle sans quitter la page) - */
.cueillette {
  width: min(1040px, calc(100% - 24px)); max-width: none; height: min(86vh, 920px); max-height: none;
  padding: 0; border: 0; border-radius: 28px; overflow: hidden;
  background: var(--bg); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5);
}
.cueillette[open] { display: flex; flex-direction: column; animation: dialogue .45s var(--ease) both; }
.cueillette::backdrop { background: rgba(32, 31, 29, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cueillette__tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 4px; }
.cueillette__aide { padding: 0 24px; font-size: 14.5px; color: var(--ink-soft); }
.cueillette__tableaux { flex: none; flex-wrap: nowrap; justify-content: flex-start; margin: 0; padding: 14px 24px; overflow-x: auto; scrollbar-width: none; }
.cueillette__tableaux::-webkit-scrollbar { display: none; }
.cueillette__tableaux .tableau { flex: none; }
.cueillette__grille { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 24px; columns: 4 190px; column-gap: 12px; }
.cueillette__epingle {
  position: relative; display: block; width: 100%; margin: 0 0 12px; break-inside: avoid;
  aspect-ratio: var(--ratio, 4 / 5); border-radius: 18px; overflow: hidden; background: var(--c, var(--gris-pale));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cueillette__epingle img { width: 100%; height: 100%; object-fit: cover; }
.cueillette__epingle.est-detoure { background: var(--paper); }
.cueillette__epingle.est-detoure img { object-fit: contain; }
.cueillette__epingle span {
  position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cueillette__epingle:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .5); }
.cueillette__epingle.is-choisie { box-shadow: 0 0 0 3px var(--gris-fonce); }
.cueillette__epingle.is-choisie::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--gris-fonce); color: #fff; font-size: 14px; font-weight: 700; }
.cueillette__chargement { padding: 40px 0; text-align: center; color: var(--ink-soft); column-span: all; }

/* --- Mouvements --------------------------------------------------------- */
.ecran.entre-avant { animation: entre-avant .55s var(--ease) backwards; }
.ecran.entre-arriere { animation: entre-arriere .55s var(--ease) backwards; }
.ecran.entre-avant :is(.option, .option-grande, .recap__liste, .recap__totaux, .regles, .insp-choisie, .cal, .slots) { animation: monte .6s var(--ease) backwards; }
.ecran.entre-avant :is(.option, .option-grande):nth-child(2) { animation-delay: .04s; }
.ecran.entre-avant :is(.option, .option-grande):nth-child(3) { animation-delay: .08s; }
.ecran.entre-avant .option:nth-child(4) { animation-delay: .12s; }
.ecran.entre-avant .option:nth-child(5) { animation-delay: .16s; }
.ecran.entre-avant :is(.recap__totaux, .slots) { animation-delay: .06s; }
.ecran.entre-avant .regles { animation-delay: .12s; }
@keyframes entre-avant { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes entre-arriere { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
@keyframes monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes dialogue { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes feuille { from { transform: translateY(100%); } to { transform: none; } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes respire { 50% { transform: scale(.88); opacity: .6; } }

/* --- Téléphone ---------------------------------------------------------- */
@media (max-width: 639px) {
  html { scroll-padding-top: 76px; }
  .resa-entete { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; }
  .resa-entete .wordmark { padding: 6px 12px; font-size: 16px; }
  .resa-quitter { padding: 8px 6px; }
  .resa-page { padding: 26px 16px 0; }
  .ecran__question { font-size: clamp(38px, 11.6vw, 52px); }
  .ecran__aide { margin-bottom: 22px; font-size: 15.5px; }

  .option { gap: 12px; padding: 16px 14px 16px 18px; border-radius: 20px; }
  .option:has(.option__visuel) { padding-left: 10px; }
  .option__visuel { width: 74px; min-height: 74px; border-radius: 13px; }
  .option__titre { font-size: 23px; }
  .option__sous { font-size: 14.5px; }
  .option__desc { font-size: 13px; }
  .options--trois { grid-template-columns: minmax(0, 1fr); }
  .option.option--longueur { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: stretch; text-align: left; gap: 14px; padding: 12px 14px 12px 12px; }
  .option--longueur .option__texte { justify-items: start; }
  .option--longueur .option__fin { align-items: flex-end; text-align: right; }
  .option--longueur .option__coche { position: static; margin-bottom: auto; }
  .option--longueur .option__coche + .option__prix { margin-top: 12px; }
  .option--longueur .ongles-taille { min-width: 70px; min-height: 0; gap: 4px; }
  .option--longueur .ongle-icone svg { width: 26px; height: 57px; }

  .insp-deux { grid-template-columns: minmax(0, 1fr); }
  .option-grande__icone { aspect-ratio: 3.4 / 1; }
  .insp-choisie { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 10px; border-radius: 22px; }
  .insp-choisie__titre { font-size: 25px; }

  .creneau { grid-template-columns: minmax(0, 1fr); }
  .creneau .cal, .creneau .slots { padding: 14px; border-radius: 20px; }

  .recap__ligne { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 13px 12px 13px 16px; }
  .recap__q { grid-column: 1; }
  .recap__r { grid-column: 1; grid-row: 2; }
  .recap__modif { grid-column: 2; grid-row: 1 / 3; }
  .recap__totaux { grid-template-columns: 1fr 1fr; }
  .recap__totaux .recap__total-ligne { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .regles { padding: 16px; }

  .resa-bas { padding: 22px 16px calc(36px + env(safe-area-inset-bottom, 0px)); }
  .resa-bas__inner { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "resume resume" "retour suivant"; gap: 8px; padding: 10px 8px 8px; border-radius: 28px; }
  .resa-bas__resume { grid-area: resume; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 10px; }
  .resa-bas__resume strong { font-size: 19px; }
  .resa-bas__retour { grid-area: retour; padding: 16px; }
  .resa-bas__retour.est-cache { display: none; }
  .resa-bas .btn.btn--primary.resa-bas__suivant { grid-area: suivant; width: 100%; min-width: 0; }
  .resa-bas__inner:has(.est-cache) .resa-bas__suivant { grid-column: 1 / -1; }

  .cueillette { width: 100%; height: calc(100% - 36px); margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .cueillette[open] { animation: feuille .5s var(--ease) both; }
  .cueillette__tete { padding: 18px 16px 2px; }
  .cueillette__aide { padding: 0 16px; }
  .cueillette__tableaux { padding: 12px 16px; }
  .cueillette__grille { columns: 2; column-gap: 10px; padding: 4px 14px 28px; }
  .cueillette__epingle { margin-bottom: 10px; border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .ecran.entre-avant, .ecran.entre-arriere, .ecran.entre-avant *, .cueillette[open], .ecran__erreur { animation: none !important; }
  .resa-progression__barre span { transition: none; }
}

/* Les heures : deux colonnes sur ordinateur, trois sur téléphone, « jusqu'à » sur une ligne */
.creneau .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.creneau .slot { text-align: left; }
.creneau .slot small { white-space: nowrap; }
@media (max-width: 639px) { .creneau .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } .creneau .slot { padding: 10px; } .creneau .slot small { letter-spacing: .02em; } }
