/* Page de réservation, mise en valeur (js/resa-wahou.js) : photos, description au survol, détail, bandeau photo */

/* Photo de chaque prestation (à la place de l'icône) */
.rp-contenu { grid-template-columns: 64px minmax(0, 1fr) auto 14px; }
.rp-icone.rw-photo { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: #EFE6DA; box-shadow: 0 6px 14px -8px rgba(44,30,15,0.45); }
.rp-icone.rw-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.rp-liste .rp-ligne:hover .rw-photo img, .rp-liste .rp-ligne.selected .rw-photo img { transform: scale(1.08); }
@media (max-width: 600px) {
  .rp-contenu { grid-template-columns: 56px minmax(0, 1fr) auto 12px; }
  .rp-icone.rw-photo { width: 56px; height: 56px; border-radius: 12px; }
}

/* Description : apparaît au survol sur ordinateur, toujours visible sur la prestation choisie */
.rw-desc { display: block; max-height: 0; opacity: 0; overflow: hidden; font-size: 0.84rem; line-height: 1.5; color: var(--text); margin-top: 0; transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease; }
@media (hover: hover) and (pointer: fine) {
  .rp-liste .rp-ligne:hover .rw-desc { max-height: 7em; opacity: 1; margin-top: 0.35rem; }
  .rp-liste .rp-ligne:hover { box-shadow: 0 10px 26px -18px rgba(44,30,15,0.55); transform: translateY(-1px); }
}
/* Prestation choisie : la description passe sur toute la largeur, sous la ligne */
.rp-liste .rp-ligne.selected .rw-desc { display: none; }
.rw-plus-desc { margin: 0 0 0.7rem; font-size: 0.88rem; line-height: 1.55; color: var(--text); }
.rp-liste .rp-ligne { transition: border-color 0.2s, background 0.2s, box-shadow 0.25s, transform 0.2s; }

/* Prestation choisie : ce qui est inclus et quelques photos */
.rp-liste.rp-choisi .rp-ligne.selected > .rw-plus { display: block !important; padding: 0 0.85rem 0.9rem; animation: rw-ouvre 0.35s ease both; }
@keyframes rw-ouvre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.rw-inclus { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.1rem 0 0.7rem; }
.rw-inclus span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.28rem 0.65rem; border-radius: 999px; background: rgba(166,124,82,0.10); color: var(--text); font-size: 0.78rem; font-weight: 500; }
.rw-inclus span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rw-galerie { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.45rem; }
.rw-galerie img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 10px; background: #EFE6DA; display: block; }
@media (max-width: 600px) { .rw-galerie img { aspect-ratio: 1 / 1; } }

/* Bandeau d'accueil en photo : on entre dans l'ambiance avant de choisir */
.resa-hero.rw-hero { position: relative; color: #fff; background: #2a1a0d url(/images/spa-privatif-jacuzzi-villeneuve-dascq.webp) center 60% / cover no-repeat; }
.resa-hero.rw-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,15,6,0.55) 0%, rgba(25,15,6,0.45) 45%, rgba(25,15,6,0.78) 100%); }
.resa-hero.rw-hero > * { position: relative; }
.resa-hero.rw-hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.resa-hero.rw-hero .resa-accroche { color: rgba(255,255,255,0.88); }
.resa-hero.rw-hero .step-label { color: rgba(255,255,255,0.72); }
.resa-hero.rw-hero .step-item.active .step-label { color: #fff; }
.resa-hero.rw-hero .step-item.done .step-label { color: #F2D7AE; }
.resa-hero.rw-hero .step-circle { border-color: rgba(255,255,255,0.55); color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); }
.resa-hero.rw-hero .step-item.active .step-circle { background: var(--accent); border-color: var(--accent); color: #fff; }
.resa-hero.rw-hero .step-item:not(:last-child)::after { background: rgba(255,255,255,0.3); }
.resa-hero.rw-hero { padding-bottom: 1.6rem; }

/* Peu de créneaux restants ce jour-là */
.rw-rare { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.7rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(194,140,32,0.12); color: #8A5F12; font-size: 0.82rem; font-weight: 600; }
.rw-rare::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #D89A2B; box-shadow: 0 0 0 3px rgba(216,154,43,0.2); }
.rw-rare[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { .rw-desc, .rp-icone.rw-photo img, .rp-liste .rp-ligne { transition: none !important; } .rw-plus { animation: none !important; } }

/* ── Téléphone : rien ne dépasse de l'écran, à aucune étape ── */
.resa-layout > *, .resa-card, .step-panel, .date-slots, .date-row, .date-row .field-group { min-width: 0; max-width: 100%; }
.step-nav { flex-wrap: wrap; }
.step-nav .btn { min-width: 0; }
@media (max-width: 480px) {
  .step-nav { gap: 0.6rem; }
  .step-nav .btn { flex: 1 1 0; justify-content: center; padding-left: 0.8rem; padding-right: 0.8rem; white-space: nowrap; }
}
/* « Date souhaitée » : l'iPhone donnait au champ date une largeur propre qui débordait du cadre */
#booking-date { -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; min-height: 50px; text-align: left; line-height: 1.2;
  padding-right: 2.8rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A67C52' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 20px 20px; }
#booking-date::-webkit-date-and-time-value { text-align: left; margin: 0; }
#booking-date::-webkit-calendar-picker-indicator { opacity: 0; width: 2.4rem; height: 100%; position: absolute; right: 0; top: 0; cursor: pointer; }
.date-row .field-group { position: relative; }

/* ── Créneaux : libres en vert, pris grisés et barrés, choisi en doré ── */
.slot-btn { background: #F1F8F3; border-color: rgba(46,125,82,0.32); color: #1F5A3E; font-weight: 600; }
.slot-btn:hover { border-color: #2E7D52; color: #17472F; background: #E6F3EA; }
.slot-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(143,104,66,0.8); }
.slot-btn.unavailable { background: transparent; border-color: var(--border-s); color: var(--text-muted); font-weight: 500; opacity: 0.45; }
.slot-btn.unavailable:hover { border-color: var(--border-s); color: var(--text-muted); background: transparent; }
.slot-btn.promo:not(.selected):not(.unavailable) { border-color: rgba(196,154,60,0.7); }
/* Petits écrans : étapes lisibles, badge de période qui passe à la ligne au lieu de déborder */
.price-preview-head { flex-wrap: wrap; gap: 0.4rem 0.6rem; }
.pp-period-badge { max-width: 100%; white-space: normal; }
@media (max-width: 380px) {
  .step-label { font-size: 0.58rem; letter-spacing: 0.04em; }
  .stepper { padding: 0; }
  .price-preview { padding-left: 0.9rem; padding-right: 0.9rem; }
}

/* ── Moment sur mesure : bandeau compact sous la liste (caché une fois une prestation choisie) ── */
.rw-sm { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin: 0.2rem 0 1.2rem; padding: 0.75rem 0.9rem; border-radius: 14px; background: #FBF5EC; border: 1px solid rgba(166,124,82,0.25); }
.rp-choisi ~ .rw-sm { display: none; }
.rw-sm-photo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.rw-sm-corps { flex: 1 1 220px; min-width: 0; }
.rw-sm-titre { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.rw-sm-texte { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.rw-sm-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.rw-sm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rw-sm-tel { background: var(--accent); color: #fff; }
.rw-sm-wa { background: #fff; color: #1E7A47; border: 1px solid rgba(37,160,90,0.45); }
.rw-sm-mail { background: #fff; color: #7E5A36; border: 1px solid rgba(143,104,66,0.35); }
.rw-sm-btn:hover { filter: brightness(0.97); }
@media (max-width: 600px) { .rw-sm-actions { width: 100%; } .rw-sm-btn { flex: 1; } }
.rw-reprise { margin: 0 0 0.7rem; padding: 0.55rem 0.8rem; border-radius: 10px; background: #EEF6F0; border: 1px solid rgba(46,125,82,0.3); color: #1F5A3E; font-size: 0.86rem; font-weight: 600; }
.rw-reprise.pris { background: #FFF6E5; border-color: rgba(194,140,32,0.35); color: #8A5F12; }
