/* ============================================================
   NOVEAN Booking Template — Feuille de style du module
   ============================================================
   Contient UNIQUEMENT le module réutilisable :
     · base (variables, reset, boutons, preloader)
     · widget de réservation (tunnel + calendrier)
     · espace client "Mon espace"
     · bulle flottante + popup de réservation
   Le style du site vitrine (header, hero, sections…) reste propre
   à chaque client et n'est pas inclus ici.

   Palette : modifiez les variables :root pour changer les couleurs
   sur tout le module d'un seul coup.
   ============================================================ */

:root {
  --color-bg: #fdf8f6;
  --color-dark: #3a2c2e;
  --color-primary: #c98ba0;
  --color-primary-dark: #b06f86;
  --color-light: #f7e4ea;
  --color-cream: #f3e6da;
  --color-text: #5a4d4f;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== Preloader (page Mon espace) ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--color-bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 0.02em;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
.preloader__logo span { color: var(--color-primary); }
.preloader__bar {
  width: 160px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-light);
  overflow: hidden;
}
.preloader__bar-fill {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  animation: preloaderSlide 1.2s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(150%); }
  100% { transform: translateX(150%); }
}

/* ===== Barre de progression de scroll ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  z-index: 1001;
  transition: width 0.1s ease-out;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer { margin-top: auto; }

img { max-width: 100%; display: block; height: auto; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

h1, h2, h3 { font-family: var(--font-heading); color: var(--color-dark); font-weight: 600; }

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 16px 36px;
}
.btn--outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--color-dark);
}
.btn--ghost { border-color: var(--color-primary); color: var(--color-primary-dark); padding: 10px 24px; font-size: 0.9rem; }
.btn--ghost:hover { background: var(--color-primary); color: #fff; }

/* ===== En-têtes de section (utilisés par la popup de réservation) ===== */
.section__kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}
.section__title {
  text-align: center;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 48px;
}
.section__title--left { text-align: left; }

/* ===== Pied de page ===== */
.footer { background: var(--color-dark); color: var(--color-cream); padding: 28px 0; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}
.footer__credit { opacity: 0.85; }
.footer__credit a { color: inherit; text-decoration: underline; }

/* ===== Rendez-vous / Booking widget ===== */
.booking-card {
  max-width: 700px;
  margin: 2.5rem auto 0;
  background: #fff;
  border: 1px solid rgba(58, 44, 46, 0.15);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(58, 44, 46, 0.08);
}

.booking-card--account {
  max-width: none;
  margin: 0;
}

.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.booking-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.booking-step-dot.active {
  background: var(--color-primary);
  color: #fff;
}

.booking-step-line {
  flex: 1;
  height: 2px;
  background: var(--color-light);
  max-width: 60px;
}

.booking-panel { display: none; }
.booking-panel.active { display: block; animation: fadeIn 0.3s ease; }

.booking-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

/* ===== Onglets de catégorie (multi-catégories via config.js) ===== */
.booking-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.booking-categories:empty { display: none; margin: 0; }

.booking-category-tab {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--color-light);
  background: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.booking-category-tab:hover { border-color: var(--color-primary); }
.booking-category-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.booking-services {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.booking-service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--color-light);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
  gap: 1rem;
}

.booking-service-card:hover {
  border-color: var(--color-primary);
  background: var(--color-light);
}

.booking-service-card.active {
  border-color: var(--color-primary);
  background: var(--color-light);
}

.booking-service-name {
  font-weight: 600;
  color: var(--color-dark);
}

.booking-service-meta {
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.booking-date {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-light);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  background: #fff;
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.6rem;
}

.booking-slot {
  padding: 0.6rem;
  border: 1px solid var(--color-light);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: all 0.2s;
}

.booking-slot:hover {
  border-color: var(--color-primary);
}

.booking-slot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.booking-hint {
  color: #6b5c5e;
  font-size: 0.95rem;
}

.booking-calendar {
  background: var(--color-light);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.booking-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.booking-calendar__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-dark);
  text-transform: capitalize;
}

.booking-calendar__nav {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.booking-calendar__nav:hover {
  background: var(--color-primary);
  color: #fff;
}

.booking-calendar__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.booking-calendar__weekdays,
.booking-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.booking-calendar__weekdays span {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  padding-bottom: 0.4rem;
}

.booking-calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
}

.booking-calendar__day:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.booking-calendar__day.active {
  background: var(--color-primary);
  color: #fff;
}

.booking-calendar__day.disabled,
.booking-calendar__day.empty {
  background: transparent;
  color: var(--color-text);
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.booking-form label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--color-dark);
  font-weight: 600;
}

.booking-form input,
.booking-form textarea {
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-light);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
}

.booking-form textarea {
  resize: vertical;
  min-height: 80px;
}

.booking-summary {
  background: var(--color-light);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.summary-row {
  padding: 0.4rem 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--color-text);
}

.summary-row strong {
  color: var(--color-dark);
}

.booking-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.booking-actions button {
  flex: 1;
}

.booking-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking-success,
.booking-error {
  text-align: center;
  padding: 1.25rem;
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
}

.booking-success {
  background: #e6f4ea;
  color: #1e7d3a;
}

.booking-error {
  background: #fbe7e9;
  color: #c0392b;
  margin-top: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .booking-card { padding: 1.25rem; border-radius: 18px; }
  .booking-step-line { max-width: 30px; }
}

/* ===== Espace client ===== */
.account-app__header {
  background: linear-gradient(135deg, #3a2c2e 0%, #5a4540 100%);
  padding: 1.25rem 1.25rem;
  box-shadow: 0 6px 24px rgba(58, 44, 46, 0.15);
}
.account-app__header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.account-app__header-inner h1 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0;
}
.account-app__header-inner h1 span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-light);
  margin-top: 0.15rem;
}
.account-app__header-actions { display: flex; align-items: center; gap: 10px; }
.account-app__header .logout-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.account-app__header .logout-btn:hover { background: rgba(255, 255, 255, 0.18); }

.account {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  padding: 2rem 20px 80px;
  min-height: 70vh;
}

.account-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 2.5rem auto 0;
  width: fit-content;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.account-back-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.account-back-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}
.account-back-link:hover svg { transform: translateX(-3px); }

.account-panel {
  background: #fff;
  border: 1px solid rgba(58, 44, 46, 0.15);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(58, 44, 46, 0.08);
}

.account-panel .apt-card:last-child { margin-bottom: 0; }

.account__box {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(58, 44, 46, 0.08);
  margin-bottom: 1.5rem;
}

.account__box h1, .account__box h2 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.account__box p.hint { font-size: 0.9rem; opacity: 0.75; margin-bottom: 1rem; }

.account input, .account textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-light);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.account .form-row { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; }
.account .form-row label { font-size: 0.85rem; font-weight: 600; color: var(--color-dark); }
.account .form-row-2 { display: flex; gap: 0.75rem; }
.account .form-row-2 > div { flex: 1; }

/* hint générique (espace client) */
.hint { font-size: 0.9rem; opacity: 0.75; }

/* ===== Carte profil ===== */
.profile-card {
  background: #fff;
  border: 1px solid rgba(58, 44, 46, 0.15);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(58, 44, 46, 0.08);
  margin-bottom: 1.5rem;
}

.profile-card__banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.profile-card__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.profile-card__email {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.2rem 0 0;
}

.profile-card__form { padding: 2rem; }

.form-row__field { position: relative; }
.form-row__field .form-row__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
  pointer-events: none;
}
.form-row__field input { padding-left: 2.6rem; }

#saveProfileBtn { margin-top: 0.5rem; }

@media (max-width: 600px) {
  .profile-card__banner { padding: 1.5rem; gap: 1rem; }
  .profile-avatar { width: 52px; height: 52px; font-size: 1.2rem; }
  .profile-card__name { font-size: 1.2rem; }
  .profile-card__form { padding: 1.5rem; }
}

.account__tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.account__tab {
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--color-light);
  background: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--color-text);
}

.account__tab.active { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }

.account__view { display: none; }
.account__view.active { display: block; animation: fadeIn 0.3s ease; }

.account__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.account__header h1 { margin-bottom: 0; }

.apt-card {
  background: #fff;
  border: 1px solid rgba(58, 44, 46, 0.15);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(58, 44, 46, 0.06);
  border-left: 4px solid var(--color-light);
  margin-bottom: 0.85rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.apt-card:hover { box-shadow: 0 8px 24px rgba(58, 44, 46, 0.09); transform: translateY(-1px); }

.apt-card.status-confirmed { border-left-color: #6fbf73; }
.apt-card.status-cancelled { border-left-color: #c0392b; opacity: 0.6; }
.apt-card.status-pending { border-left-color: #e0a96d; }

.apt-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.apt-summary__right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.apt-chevron { width: 18px; height: 18px; color: var(--color-primary-dark); transition: transform 0.2s ease; flex-shrink: 0; }
.apt-card.expanded .apt-chevron { transform: rotate(180deg); }

.apt-main { flex: 1; min-width: 200px; max-width: 100%; overflow-wrap: anywhere; }
.apt-date { font-weight: 700; color: var(--color-dark); font-size: 1.05rem; }
.apt-service { color: var(--color-primary); font-weight: 600; margin-top: 0.2rem; }
.apt-notes { margin-top: 0.4rem; font-size: 0.85rem; opacity: 0.7; font-style: italic; }

.apt-details {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-light);
  overflow-wrap: anywhere;
}
.apt-card.expanded .apt-details { display: block; }

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.pending { background: #fbeede; color: #b9762f; }
.status-badge.confirmed { background: #e6f4ea; color: #1e7d3a; }
.status-badge.cancelled { background: #fbe7e9; color: #c0392b; }

.apt-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.apt-actions button {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-light);
  background: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: var(--color-text);
}
.apt-actions button:hover { background: var(--color-light); }
.apt-actions button.danger:hover { background: #fbe7e9; color: #c0392b; }

/* ===== Pagination rendez-vous ===== */
.apt-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 1.25rem 0;
}
.apt-pagination__btn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--color-light);
  background: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.apt-pagination__btn:hover:not(:disabled):not(.active) { background: var(--color-light); }
.apt-pagination__btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.apt-pagination__btn:disabled { opacity: 0.35; cursor: default; }

.empty-msg { text-align: center; padding: 2.5rem 1rem; opacity: 0.6; }

.account-error { color: #c0392b; font-size: 0.9rem; margin-top: 0.5rem; display: none; }
.account-success { color: #1e7d3a; font-size: 0.9rem; margin-top: 0.5rem; display: none; }

.reschedule-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-light);
  width: 100%;
  display: none;
}
.reschedule-box.active { display: block; }

/* ===== Responsive - Espace client ===== */
@media (max-width: 640px) {
  .account { padding: 1.5rem 14px 60px; }

  .account-app__header { padding: 1rem; }
  .account-app__header-inner h1 { font-size: 1.4rem; }

  .account__box { padding: 1.25rem; border-radius: 16px; }
  .account-panel { padding: 1rem; border-radius: 18px; }
  .account__box h1 { font-size: 1.6rem; }
  .account__box h2 { font-size: 1.3rem; }

  .account__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin: 0 0 1.25rem;
  }
  .account__tab {
    padding: 0.55rem 0.4rem;
    font-size: 0.78rem;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    min-width: 0;
  }

  .apt-card { padding: 1rem; }
  .apt-date { font-size: 0.98rem; }
  .apt-actions { width: 100%; }
  .apt-actions button { flex: 1; text-align: center; }

  .booking-card { padding: 0; }
  .booking-card--account { padding: 0.75rem; }
  .booking-slots { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 0.45rem; }
  .booking-slot { padding: 0.5rem; font-size: 0.85rem; }
  .booking-calendar { padding: 0.75rem; }
  .booking-calendar__day { font-size: 0.82rem; border-radius: 8px; }
  .booking-calendar__title { font-size: 1.05rem; }

  .account .form-row-2 { flex-direction: column; gap: 0; }

  .booking-actions { flex-direction: column-reverse; }
  .booking-actions button { width: 100%; }

  #saveProfileBtn, #sendCodeBtn, #verifyCodeBtn { width: 100%; }
}

/* ===== Bulle flottante "Prendre rendez-vous" ===== */
.rdv-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border: none;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(176, 111, 134, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.rdv-bubble:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.rdv-bubble__icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .rdv-bubble {
    bottom: 16px;
    right: 16px;
    padding: 0.85rem;
    font-size: 1.3rem;
  }
  .rdv-bubble span { display: none; }
  .rdv-bubble__icon {
    width: 1.4rem;
    height: 1.4rem;
  }
}

/* ===== Popup de prise de rendez-vous ===== */
body.rdv-modal-open { overflow: hidden; }

.rdv-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rdv-modal.open { display: flex; }

.rdv-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(58, 44, 46, 0.55);
  backdrop-filter: blur(2px);
}

.rdv-modal__content {
  position: relative;
  background: var(--color-bg);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.rdv-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--color-light);
  color: var(--color-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.rdv-modal__close:hover { background: var(--color-primary); color: #fff; }

@media (max-width: 600px) {
  .rdv-modal { padding: 0; }
  .rdv-modal__content {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    padding: 1.25rem;
    padding-top: 3.5rem;
  }
  .rdv-modal__content .section__kicker { margin-bottom: 6px; }
  .rdv-modal__content .section__title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.25;
  }
  .rdv-modal__content .booking-card { padding: 0.5rem; }
  .booking-steps { margin-bottom: 1.25rem; }
}

/* ===== Accessibilité : focus clavier visible ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.booking-slot:focus-visible,
.booking-service-card:focus-visible,
.booking-category-tab:focus-visible,
.booking-calendar__day:focus-visible,
.account__tab:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 2px;
  border-radius: 6px;
}
