/* Réservation (étapes 1 et 2) : version allégée pour le téléphone.
   Étapes terminées repliées sur leur résumé, barre fixe en bas (prix + action), textes secondaires repliés. */

/* ---------- Bugs d'affichage ---------- */
.reservation-container { overflow-x: clip !important; }
.main-content { max-width: 100% !important; box-sizing: border-box !important; }
.cm-reconnu { max-width: 100% !important; box-sizing: border-box !important; }
/* Pastille « Total » du haut et barre d'icônes du bas : remplacées par la barre fixe */
body.cm-barre-on #cmPrixTotal,
body.cm-barre-on .progress-bar-container { display: none !important; }
body.cm-barre-on #toTop { bottom: 84px !important; }
body.cm-barre-on { padding-bottom: 76px; }

/* ---------- Étapes terminées : une ligne ---------- */
.progressive-section.cm-replie { padding: 10px 14px !important; margin-bottom: 10px !important; }
.progressive-section.cm-replie > *:not(.selected-display):not(.cm-resume):not(.rr-price-recap) { display: none !important; }
.progressive-section.cm-replie .selected-display { margin: 0 !important; padding: 8px 10px !important; }
.progressive-section.cm-replie .selected-label { font-size: .72rem !important; }
.progressive-section.cm-replie .selected-value,
.progressive-section.cm-replie .selected-display .selected-info > div,
.progressive-section.cm-replie .selected-display .selected-info > span:not(.selected-label) { font-size: .98rem !important; }
.cm-resume { display: flex; align-items: center; gap: 10px; }
/* Le résumé ne sert que quand l'étape est repliée : ouverte, le champ suffit (pas d'e-mail en double) */
.progressive-section:not(.cm-replie) > .cm-resume { display: none !important; }
.cm-resume-t { flex: 1; min-width: 0; }
.cm-resume-t small { display: block; color: #64748b; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.cm-resume-t b { display: block; color: #1d5486; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-modifier { flex: none; border: 1.5px solid #b9d7f2; background: #f5faff; color: #1d5486; border-radius: 10px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }

/* ---------- Calendrier : pas de semaines passées ---------- */
.calendar-day.cm-passe { display: none !important; }

/* ---------- Date choisie : bande de jours au-dessus des heures ---------- */
#dateSection.cm-date-cachee { display: none !important; }
.date-creneau { align-items: flex-start; }
.cm-jours-bloc { margin: 4px 0 14px; }
.cm-jours-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cm-jours-tete > span { color: #475569; font-weight: 700; font-size: .9rem; }
.cm-autre-date { border: none; background: none; color: #2f7db8; font: inherit; font-weight: 700; font-size: .92rem; text-decoration: underline; padding: 4px 0; cursor: pointer; white-space: nowrap; }
.cm-jours { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.cm-jour { flex: none; min-width: 58px; min-height: 58px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px solid #cbd5e1; border-radius: 12px; background: #fff; color: #1f2937; font: inherit; cursor: pointer; padding: 6px 8px; }
.cm-jour small { font-size: .75rem; color: #64748b; text-transform: lowercase; }
.cm-jour b { font-size: 1.1rem; }
.cm-jour:hover { border-color: #2f7db8; }
.cm-jour.cm-vide { background: #f1f5f9; border-color: #e2e8f0; color: #94a3b8; }
.cm-jour.cm-vide small { color: #94a3b8; }
.cm-jour.cm-choisi { background: #2f7db8; border-color: #2f7db8; color: #fff; }
.cm-jour.cm-choisi small { color: #e0efff; }
.cm-pas-dispo { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #f5faff; border: 1px solid #dbe9f5; color: #1f2937; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cm-jour-suivant { border: none; border-radius: 10px; background: #2f7db8; color: #fff; font: inherit; font-weight: 700; padding: 9px 14px; cursor: pointer; }

/* ---------- Boutons d'heure : grille pleine largeur, une ligne, bordure simple ---------- */
#timeSlotsContainer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin-top: 12px !important; }
@media (min-width: 769px) { #timeSlotsContainer { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; } }
#timeSlotsContainer .time-slot { min-height: 56px !important; padding: 10px 8px !important; border: 1.5px solid #cbd5e1 !important; border-radius: 12px !important; box-shadow: none !important; animation: none !important; background: #fff !important; justify-content: center; gap: 2px; transition: border-color .15s, background .15s; }
#timeSlotsContainer .time-slot:hover:not(.disabled) { border-color: #2f7db8 !important; box-shadow: none !important; }
#timeSlotsContainer .time-slot-time { white-space: nowrap !important; font-size: 17px !important; font-weight: 700 !important; color: #1f2937 !important; margin: 0 !important; }
#timeSlotsContainer .time-slot-availability { border: none !important; background: none !important; padding: 0 !important; margin: 0 !important; font-size: 12px !important; color: #64748b !important; white-space: nowrap; }
#timeSlotsContainer .time-slot-availability span { margin: 0 !important; }
#timeSlotsContainer .time-slot-availability i { display: none; }
#timeSlotsContainer .time-slot.selected { background: #2f7db8 !important; border-color: #2f7db8 !important; }
#timeSlotsContainer .time-slot.selected .time-slot-time, #timeSlotsContainer .time-slot.selected .time-slot-availability { color: #fff !important; }
@media (max-width: 360px) { #timeSlotsContainer .time-slot-time { font-size: 15px !important; } }

/* ---------- Heure : consigne discrète ---------- */
#timeSection .cm-choix-heure { background: none !important; border: none !important; padding: 4px 0 !important; font-size: .9rem !important; color: #475569 !important; font-weight: 600 !important; }

/* ---------- Formules : conseil plus court ---------- */
.rr-formule-conseil { font-size: .85rem !important; padding: 8px 10px !important; }

/* ---------- Intervenantes : cartes plus courtes ---------- */
#technicianSection .cmt3-criteres, #technicianSection .cmt3-espace { display: none !important; }
#technicianSection .technician-card { padding: 10px 12px !important; }
#technicianSection .cmt3-choisir { min-height: 0 !important; padding: 9px !important; margin-top: 6px !important; }
#technicianSection .section-header p, #technicianSection .familiar-technicians-section > p, #technicianSection .other-technicians-section > p { display: none !important; }

/* ---------- Section finale ---------- */
.cm-coord { display: flex; align-items: flex-start; gap: 10px; background: #f5faff; border: 1.5px solid #dbe9f5; border-radius: 14px; padding: 12px; margin: 6px 0 12px; }
.cm-coord-t { flex: 1; min-width: 0; line-height: 1.5; color: #1f2937; font-size: .95rem; }
.cm-coord-t small { display: block; color: #64748b; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.cm-coord-t .cm-coord-adr { color: #475569; font-size: .88rem; }
.cm-coord-t .cm-coord-adr:empty { display: none; }
#finalSection .cm-cache-coord { display: none !important; }
#finalSection .cm-format-aide { display: none !important; }
.cm-avant-confirmer.cm-plie ul, .cm-avant-confirmer.cm-plie > a { display: none !important; }
.cm-pli-cliquable { cursor: pointer; position: relative; padding-right: 22px !important; }
.cm-pli-cliquable::after { content: '▾'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #2f7db8; }
.cm-avant-confirmer:not(.cm-plie) .cm-pli-cliquable::after { content: '▴'; }
.cm-pli-box { border: 1px solid #dbe9f5; border-radius: 12px; margin: 10px 0; background: #fff; }
.cm-pli-tete { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; border: none; background: none; padding: 12px 14px; font: inherit; font-weight: 700; color: #1d5486; font-size: .95rem; cursor: pointer; text-align: left; }
.cm-pli-tete i { font-style: normal; color: #2f7db8; transition: transform .2s; }
.cm-pli-box:not(.cm-ferme) .cm-pli-tete i { transform: rotate(180deg); }
.cm-pli-box.cm-ferme .cm-pli-corps { display: none; }
.cm-pli-corps { padding: 0 12px 12px; }
.cm-pli-corps .cm-tel-important { margin: 0 !important; }
.cm-avant-confirmer .cm-avant-court { margin: 4px 0 0; color: #475569; font-size: .9rem; line-height: 1.5; }
.cm-avant-confirmer .cm-lire { border: none; background: none; color: #2f7db8; font: inherit; font-weight: 700; font-size: .88rem; padding: 4px 0; cursor: pointer; text-decoration: underline; }

/* Récapitulatif : lignes serrées */
#finalSection .cm-recap .cm-recap-ligne { padding-top: 6px !important; padding-bottom: 6px !important; min-height: 0 !important; position: relative; }
#finalSection .cm-recap .cm-recap-ligne.cm-avec-crayon { padding-right: 46px !important; }
#finalSection .cm-recap .cm-recap-ligne > .cm-crayon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
#finalSection .cm-recap .cm-recap-ligne .cm-adr-edit { margin-top: 6px; }
#finalSection .cm-recap .cm-recap-valeur { font-size: 1rem !important; line-height: 1.35 !important; }
#finalSection .cm-recap .cm-recap-titre { margin-bottom: 4px !important; }
#finalSection .cm-recap .cm-tel-important { font-size: .85rem !important; line-height: 1.45 !important; padding: 8px 10px !important; }
#finalSection .cm-optionnel { padding-top: 6px !important; padding-bottom: 6px !important; }
#finalSection .cm-optionnel .form-section-title { margin-bottom: 4px !important; font-size: .95rem !important; }
.progressive-section.cm-replie .selected-display [class*="prix"], .progressive-section.cm-replie .selected-display [class*="price"] { display: none !important; }

/* Icône crayon (comme sur les étapes repliées) et adresse modifiable sur place */
.cm-crayon { flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: #eaf4fb; color: #1d5486; cursor: pointer; padding: 0; }
#finalSection .cm-recap .cm-recap-ligne .cm-crayon { width: 34px; height: 34px; }
.cm-adr-edit { display: flex; flex-direction: column; gap: 6px; }
.cm-adr-edit textarea { width: 100%; box-sizing: border-box; border: 2px solid #b9d7f2; border-radius: 12px; padding: 8px 10px; font: inherit; font-size: .95rem; line-height: 1.4; }
.cm-adr-actions { display: flex; gap: 8px; }
.cm-adr-ok { border: none; border-radius: 10px; background: #2f7db8; color: #fff; font: inherit; font-weight: 700; padding: 8px 14px; cursor: pointer; }
.cm-adr-annuler { border: none; border-radius: 10px; background: #eef2f7; color: #334155; font: inherit; font-weight: 700; padding: 8px 14px; cursor: pointer; }
.cm-adr-err { margin: 0; color: #b45309; font-size: .85rem; }
.cm-adr-err:empty { display: none; }

/* ---------- Barre fixe en bas ---------- */
.cm-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; border-top: 1px solid #dbe9f5; box-shadow: 0 -6px 20px #0f172a1a; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.cm-barre-prix { flex: 1; min-width: 0; line-height: 1.2; }
.cm-barre-prix small { display: block; color: #64748b; font-size: .75rem; }
.cm-barre-prix b { font-size: 1.25rem; color: #1d5486; }
.cm-barre-prix button { border: none; background: none; color: #2f7db8; font: inherit; font-size: .8rem; font-weight: 700; text-decoration: underline; padding: 0 0 0 6px; cursor: pointer; }
.cm-barre-go { flex: none; border: none; border-radius: 14px; background: linear-gradient(135deg, #2f7db8, #589fd6); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; padding: 13px 18px; min-height: 50px; cursor: pointer; }
.cm-barre-go:disabled { opacity: .55; }
.cm-barre-go.cm-cache { display: none; }

/* ---------- Étape 1 (page du service) ---------- */
#reservation-form .price-estimation.cm-prix-simple.cm-doublon { display: none !important; }
.service-sidebar .help-box-modern { display: none !important; }
.cm-avantages-pli > ul, .cm-avantages-pli > .cm-avantages-liste { display: none !important; }
.cm-avantages-pli.cm-ouvert > ul, .cm-avantages-pli.cm-ouvert > .cm-avantages-liste { display: block !important; }
.cm-avantages-btn { border: none; background: none; color: #2f7db8; font: inherit; font-weight: 700; font-size: .88rem; padding: 6px 0; cursor: pointer; text-decoration: underline; }
#reservation-form .cm-quartier-doublon { display: none !important; }
#reservation-form .btn-group label, #reservation-form label.btn { white-space: normal !important; }
#reservation-form .gender-label { white-space: normal !important; line-height: 1.15 !important; text-align: center; }
#reservation-form .gender-text { min-width: 0; }

/* Ordinateur : barre du récapitulatif en carte centrée, au-dessus du bas de l'écran, qui s'arrête avant le bas de page */
@media (min-width: 992px) {
	body.cm-barre-on { padding-bottom: 0; }
	.cm-barre { position: sticky; left: auto; right: auto; bottom: 24px; width: calc(100% - 48px); max-width: 760px; margin: 28px auto 32px; border: 1px solid #cfe0f0; border-radius: 16px; box-shadow: 0 12px 32px #0f172a29; padding: 14px 16px 14px 22px; gap: 20px; }
	.cm-barre-prix small { font-size: .85rem; }
	.cm-barre-prix b { font-size: 1.5rem; }
	.cm-barre-prix button { font-size: .9rem; }
	.cm-barre .cm-barre-go { min-width: 220px; font-size: 1.05rem; padding: 13px 22px; }
	body.cm-barre-on #toTop { bottom: 24px !important; }
}

/* Calendrier : titres des jours exactement au-dessus des dates (colonnes égales, même écart, « DIM » jamais coupé) */
.modern-calendar .calendar-weekdays,
.modern-calendar .calendar-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; padding: 1px; }
.modern-calendar .weekday { padding: 10px 0; letter-spacing: 0; min-width: 0; overflow: hidden; }
