/* studio.css : la page Studio (03/12) et sa réservation en feuille, sur la référence « Réserve ton moment » : calendrier
   du mois en pastilles, horaires en grille, récapitulatif crème, bouton cerise. Galerie agrandie (visionneuse) partagée. */

html[data-vue="studio"] body { background: #FFFDFA; }
.st { --clair: #F5EFE6; background: #FFFDFA; padding-bottom: clamp(56px, 6vw, 96px); overflow-x: clip; }
.st h1, .st h2 { font-weight: 400; color: var(--encre); letter-spacing: -.01em; }
.st h1 em, .st h2 em { font-style: italic; }
.st-sur, .resa__sur { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--or-texte, var(--or)); }
.st-section { padding: clamp(64px, 7vw, 112px) var(--bord) 0; }
.st-titre { margin: 0; text-align: center; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; }
.st-titre--gauche { text-align: left; }
.st-chapo { margin: 10px 0 0; max-width: 36em; font-size: 15.5px; line-height: 1.6; color: var(--voile); }

/* Ouverture : le texte et les faits à gauche, la photo pleine hauteur à droite */
.st-ouverture { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: min(calc(100svh - var(--annonce)), 820px); padding-top: var(--entete); }
.st-ouverture__texte { align-self: center; display: grid; justify-items: start; padding: clamp(36px, 4vw, 64px) clamp(28px, 4vw, 72px) clamp(36px, 4vw, 64px) var(--bord); }
.st-ouverture h1 { margin: 16px 0 0; font-size: clamp(40px, 4.2vw, 62px); line-height: 1.02; }
.st-ouverture__texte > p:not(.st-sur) { margin: 18px 0 0; max-width: 30em; font-size: 16.5px; line-height: 1.65; color: var(--encre); }
.st-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; }
.st-faits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; width: 100%; max-width: 520px; margin: 32px 0 0; border-top: 1px solid var(--filet); }
.st-faits div { padding: 12px 0; border-bottom: 1px solid var(--filet); }
.st-faits dt { font-size: 12.5px; letter-spacing: .04em; color: var(--voile); }
.st-faits dd { margin: 2px 0 0; font-size: 15px; color: var(--encre); }
.st-ouverture__photo { position: relative; margin: 0; overflow: hidden; background: var(--puits); }
.st-ouverture__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* L'expérience en quatre temps */
.st-experience { padding-bottom: clamp(56px, 6vw, 88px); background: var(--clair); margin-top: clamp(64px, 7vw, 112px); }
.st-temps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); max-width: 1180px; margin: clamp(28px, 3vw, 44px) auto 0; padding: 0; list-style: none; counter-reset: t; }
.st-temps li { counter-increment: t; display: grid; align-content: start; gap: 8px; }
.st-temps li::before { content: counter(t, decimal-leading-zero); font-size: 13px; letter-spacing: .14em; color: var(--cerise); }
.st-temps strong { font-size: 19px; font-weight: 500; color: var(--encre); }
.st-temps p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--voile); }

/* La carte des soins */
.st-carte-tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(24px, 2.6vw, 36px); }
.st-carte-tete .onglets-carte { margin: 0; }
.soins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 40px); }
.soin { display: grid; align-content: start; gap: 0; min-width: 0; }
.soin__media { position: relative; overflow: hidden; border-radius: 4px; background: var(--puits); aspect-ratio: 4 / 3; }
.soin__photo { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.soin__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: opacity .7s var(--sortie), transform 1.2s var(--sortie); }
.soin__photo2 { opacity: 0; }
@media (hover: hover) {
  .soin__media:hover .soin__photo2 { opacity: 1; }
  .soin__media:hover .soin__photo img { transform: scale(1.03); }
}
.soin__photo:focus-visible { outline: 2px solid var(--encre); outline-offset: -4px; }
.soin__nb { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(28, 20, 15, .55); color: #fff; font-size: 12px; pointer-events: none; }
.soin__vignettes { display: flex; gap: 8px; margin-top: 8px; }
.soin__vignettes button { width: 54px; height: 54px; padding: 0; border: 1px solid transparent; border-radius: 3px; overflow: hidden; cursor: zoom-in; background: var(--puits); transition: border-color .25s; }
.soin__vignettes button:hover { border-color: var(--encre); }
.soin__vignettes img { width: 100%; height: 100%; object-fit: cover; }
.soin__corps { display: grid; justify-items: start; gap: 10px; padding-top: 18px; }
.soin__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: 100%; }
.soin h3 { margin: 0; font-size: clamp(20px, 1.7vw, 24px); font-weight: 400; line-height: 1.2; color: var(--encre); }
.soin__prix { margin: 0; font-size: 18px; font-weight: 500; color: var(--cerise); white-space: nowrap; }
.soin__meta { margin: 0; font-size: 13.5px; color: var(--voile); }
.soin__accroche { margin: 2px 0 0; max-width: 36em; font-size: 15.5px; line-height: 1.6; color: var(--encre); }
.soin__etapes { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; counter-reset: e; }
.soin__etapes li { counter-increment: e; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--clair); font-size: 13px; color: var(--encre); }
.soin__etapes li::before { content: counter(e); font-size: 11px; color: var(--cerise); }
.soin__plus { width: 100%; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.soin__plus summary { display: flex; justify-content: space-between; align-items: center; min-height: 46px; cursor: pointer; font-size: 14.5px; color: var(--encre); list-style: none; }
.soin__plus summary::-webkit-details-marker { display: none; }
.soin__plus summary::after { content: '+'; font-size: 18px; color: var(--voile); }
.soin__plus[open] summary::after { content: '−'; }
.soin__plus h4 { margin: 14px 0 4px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--voile); }
.soin__plus p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.65; color: var(--encre); }
.soin__resa { margin-top: 6px; border-radius: 6px; }
.soin__bientot { margin: 6px 0 0; font-size: 14px; color: var(--voile); font-style: italic; }
.soin--bientot .soin__media img { filter: saturate(.85); }
.st-mention { margin: 28px 0 0; font-size: 12.5px; color: var(--voile); }
.st-questions .faq-page { max-width: 820px; margin: 0 auto; }
.faq-page__titre { margin: 0 0 clamp(20px, 2.2vw, 32px); text-align: center; font-size: clamp(28px, 2.6vw, 40px); font-weight: 400; color: var(--encre); }

/* ─── La réservation : une feuille modale ─── */
.resa { width: min(980px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); margin: auto; padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--encre); overflow: hidden; }
.resa::backdrop { background: rgba(28, 20, 15, .5); backdrop-filter: blur(2px); }
.resa[open] { animation: resa-entre .35s var(--sortie); }
@keyframes resa-entre { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.resa__feuille { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'tete cal' 'pied heures' 'note heures';
  gap: 0 clamp(24px, 3vw, 44px); max-height: calc(100svh - 32px); overflow: auto; padding: clamp(24px, 3vw, 40px); overscroll-behavior: contain; }
.resa__fermer { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--clair, #F5EFE6); color: var(--encre); cursor: pointer; }
.resa__fermer svg { width: 14px; height: 14px; }
.resa__tete { grid-area: tete; }
.resa h2 { margin: 10px 0 0; font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; color: var(--cerise); }
.resa__soin { display: flex; gap: 14px; align-items: center; margin: 22px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--filet); }
.resa__soin img { width: 92px; height: 92px; flex: none; border-radius: 12px; object-fit: cover; }
.resa__soin div { display: grid; gap: 3px; }
.resa__soin strong { font-size: 17px; font-weight: 500; }
.resa__soin span { font-size: 14px; color: var(--voile); }
.resa__soin b { font-size: 16px; font-weight: 500; }
.resa__cal { grid-area: cal; padding-top: 6px; }
.resa__mois { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-right: 48px; }
.resa__mois p { margin: 0; font-size: 17px; font-weight: 500; text-transform: capitalize; }
.resa__mois button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--filet); background: none; color: var(--encre); cursor: pointer; transition: border-color .25s; }
.resa__mois button:hover:not(:disabled) { border-color: var(--encre); }
.resa__mois button:disabled { opacity: .3; cursor: default; }
.resa__mois svg { width: 14px; height: 14px; }
.resa__semaine, .resa__jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.resa__semaine span { padding: 6px 0; font-size: 12.5px; color: var(--voile); }
.resa__jours button { height: 44px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--encre); cursor: pointer; transition: background .2s, color .2s; }
.resa__jours button:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--clair, #F5EFE6); }
.resa__jours button:disabled { color: rgba(59, 36, 24, .26); cursor: default; }
.resa__jours button { position: relative; }
.resa__jours button.auj::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--or); }
.resa__jours button[aria-pressed="true"] { background: var(--cerise); color: #fff; font-weight: 500; }
.resa__jours[aria-busy="true"] button { color: rgba(59, 36, 24, .26); }
.resa__vide { margin: 10px 0 0; font-size: 13.5px; color: var(--voile); }
.resa__heures { grid-area: heures; padding-top: 22px; }
.resa__heures h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px; font-size: 16px; font-weight: 500; }
.resa__heures h3 span { font-size: 13.5px; font-weight: 400; color: var(--voile); }
.resa__heures h3 span::first-letter { text-transform: uppercase; }
.resa__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.resa__grille button { min-height: 46px; border: 1px solid var(--filet); border-radius: 8px; background: #fff; font: inherit; font-size: 14.5px; color: var(--cerise); cursor: pointer; transition: border-color .2s, background .2s; }
.resa__grille button:hover { border-color: var(--cerise); }
.resa__grille button[aria-pressed="true"] { border-color: var(--cerise); background: #F5EAE6; font-weight: 500; }
.resa__pied { grid-area: pied; display: grid; align-content: start; gap: 12px; padding-top: 22px; }
.resa__recap { padding: 16px 18px; border-radius: 10px; background: var(--clair, #F5EFE6); }
.resa__recap > p { margin: 0 0 10px; font-size: 14px; color: var(--voile); }
.resa__recap > p strong { color: var(--encre); font-weight: 500; }
.resa__recap dl { display: grid; gap: 6px; margin: 0; }
.resa__recap dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.resa__recap dt { color: var(--encre); }
.resa__recap dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.resa__total { padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--filet); }
.resa__total dt, .resa__total dd { color: var(--voile) !important; font-weight: 400 !important; font-size: 14px; }
.resa__ok { min-height: 54px; border-radius: 8px; font-size: 15.5px; }
.resa__note { grid-area: note; margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--voile); }
.resa__deroule { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: e; }
.resa__deroule li { counter-increment: e; display: inline-flex; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--clair, #F5EFE6); font-size: 13px; }
.resa__deroule li::before { content: counter(e); font-size: 11px; color: var(--cerise); }
.resa__prepa { margin: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--voile); }
.resa__prepa strong { font-weight: 500; color: var(--encre); }

/* Galerie agrandie */
.visionneuse { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 14, 10, .94); color: #fff; }
.visionneuse::backdrop { background: rgba(20, 14, 10, .6); }
.visionneuse__haut { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.visionneuse__haut p { margin: 0; font-size: 15px; }
.visionneuse__haut span { margin-left: 10px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.visionneuse__fermer { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.visionneuse__fermer svg { width: 16px; height: 16px; }
.visionneuse__piste { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.visionneuse__piste::-webkit-scrollbar { display: none; }
.visionneuse__piste figure { flex: 0 0 100%; display: grid; place-items: center; align-content: center; gap: 12px; margin: 0; padding: 70px 70px 40px; scroll-snap-align: center; }
.visionneuse__piste img { max-width: 100%; max-height: calc(100svh - 170px); object-fit: contain; border-radius: 4px; }
.visionneuse__piste figcaption { max-width: 640px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .7); }
.visionneuse__fleche { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.visionneuse__fleche svg { width: 18px; height: 18px; }
.visionneuse__fleche--g { left: 16px; } .visionneuse__fleche--d { right: 16px; }
.visionneuse__points { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.visionneuse__points i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.visionneuse__points i.actif { background: #fff; }

@media (max-width: 1000px) { .st-temps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .st-ouverture { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .st-ouverture__photo { order: -1; height: clamp(300px, 52svh, 460px); }
  .st-ouverture__texte { padding: 28px var(--marge) 0; }
  .st-section { padding-inline: var(--marge); }
  .soins { grid-template-columns: minmax(0, 1fr); }
  /* La réservation devient une feuille d'application : plein écran, le récapitulatif et le bouton collés en bas. */
  .resa { width: 100vw; max-height: 100svh; height: 100svh; margin: 0; border-radius: 0; }
  .resa[open] { animation: resa-monte .38s var(--sortie); }
  .resa__feuille { display: block; height: 100svh; max-height: none; padding: 20px var(--marge) 0; }
  .resa__cal { padding-top: 18px; }
  .resa__pied { position: sticky; bottom: 0; z-index: 2; margin: 22px calc(var(--marge) * -1) 0; padding: 14px var(--marge) calc(14px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px rgba(59, 36, 24, .08); }
  .resa__recap { padding: 12px 14px; }
  .resa__recap dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
  .resa__recap dl div { display: grid; gap: 0; }
  .resa__recap dl div dt { font-size: 12.5px; color: var(--voile); }
  .resa__total { display: none !important; }
  .resa__soin img { width: 64px; height: 64px; }
  .resa__deroule, .resa__prepa { display: none; }
  .resa__note { margin: 14px 0 0; padding-bottom: 8px; }
  .resa__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .visionneuse__piste figure { padding: 64px 12px 48px; }
  .visionneuse__fleche { display: none; }
}
@keyframes resa-monte { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .resa[open] { animation: none; } .soin__photo img { transition: none; } }
.calme .resa[open] { animation: none; }

/* Feuille de réservation au téléphone (audit du 04/12) : un pied collant de 118 px au lieu de 214, pour que le calendrier
   et la première rangée d'heures restent visibles à la hauteur utile de Safari. La phrase d'invite se cache tant
   qu'aucune heure n'est choisie ; la ligne du rendez-vous revient dès qu'elle l'est. */
@media (max-width: 900px) {
  .resa__pied { margin-top: 16px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .resa__recap { padding: 0 0 8px; background: none; }
  .resa__recap > p:not(:has(strong)) { display: none; }
  .resa__recap dl { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .resa__recap dl div { display: flex; gap: 6px; }
  .resa__heures { scroll-margin-bottom: 140px; }
}
