/* ================================================================
   acbooking.css — Âme & Conscience
   ================================================================ */
:root {
  --acb-bordeaux : #7B2D3E;
  --acb-or       : #C8A96E;
  --acb-or-light : #F5EDD8;
  --acb-ivoire   : #FFFDF9;
  --acb-texte    : #2E2A24;
  --acb-muted    : #7A6F62;
  --acb-border   : #E8DFD2;
  --acb-green    : #2E7D32;
  --acb-green-bg : #E8F5E9;
}

.acb-booking-wrap, .acb-profile-wrap {
  max-width: 720px; margin: 0 auto; padding: 20px;
  font-family: 'Segoe UI', Arial, sans-serif; color: var(--acb-texte);
}

/* ── Header thérapeute ── */
.acb-booking-header {
  background: var(--acb-ivoire); border-radius: 14px; padding: 20px 24px;
  border: 1px solid var(--acb-border); margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.acb-therapist-mini { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.acb-mini-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--acb-or); }
.acb-therapist-mini h1 { font-size: 20px; color: var(--acb-bordeaux); margin: 0 0 4px; }
.acb-title { color: var(--acb-or); font-style: italic; margin: 0; font-size: 14px; }
.acb-duration-info { font-size: 13px; color: var(--acb-muted); margin: 0; }

/* ── Étapes ── */
.acb-step { margin-bottom: 32px; }
.acb-step-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; color: var(--acb-bordeaux);
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--acb-or-light);
}
.acb-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--acb-bordeaux); color: white;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.acb-date-label { font-size: 14px; font-weight: 400; color: var(--acb-muted); margin-left: 4px; }

/* ── Calendrier ── */
.acb-calendar-wrap {
  background: white; border-radius: 14px; border: 1px solid var(--acb-border);
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06);
  max-width: 420px;
}
.acb-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--acb-bordeaux); padding: 10px 16px;
}
.acb-month-label { color: white; font-size: 14px; font-weight: 700; }
.acb-cal-nav-btn {
  background: rgba(255,255,255,.2); border: none; color: white;
  width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.acb-cal-nav-btn:hover { background: rgba(255,255,255,.35); }
.acb-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
}
.acb-cal-dow {
  text-align: center; padding: 10px 4px; font-size: 12px;
  font-weight: 700; color: var(--acb-muted); background: var(--acb-ivoire);
  border-bottom: 1px solid var(--acb-border);
}
.acb-cal-days-grid { padding: 8px; gap: 4px; }
.acb-cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 13px; font-weight: 500; cursor: default;
  transition: all .15s; min-height: 36px;
}
.acb-cal-empty    { background: transparent; }
.acb-cal-past     { color: #ccc; }
.acb-cal-unavailable { color: #bbb; }
.acb-cal-available {
  background: var(--acb-green-bg); color: var(--acb-green);
  font-weight: 700; cursor: pointer; border: 2px solid transparent;
}
.acb-cal-available:hover { background: var(--acb-green); color: white; border-color: var(--acb-green); }
.acb-cal-selected {
  background: var(--acb-bordeaux) !important; color: white !important;
  font-weight: 700; border: 2px solid var(--acb-bordeaux);
}
.acb-cal-loading {
  grid-column: 1 / -1; text-align: center; padding: 30px;
  color: var(--acb-muted); font-style: italic; font-size: 14px;
}

/* Légende */
.acb-cal-legend {
  display: flex; gap: 18px; padding: 8px 16px 12px;
  border-top: 1px solid var(--acb-border); font-size: 12px; color: var(--acb-muted);
}
.acb-legend-dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: middle;
}

/* ── Créneaux ── */
.acb-slots-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.acb-slot {
  padding: 12px 18px; border: 2px solid var(--acb-border); border-radius: 10px;
  background: white; font-size: 15px; font-weight: 600; color: var(--acb-texte);
  cursor: pointer; transition: all .15s; min-width: 80px; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.acb-slot:hover { border-color: var(--acb-bordeaux); color: var(--acb-bordeaux); transform: translateY(-1px); }
.acb-slot-selected { background: var(--acb-bordeaux) !important; border-color: var(--acb-bordeaux) !important; color: white !important; }
.acb-no-slots { color: var(--acb-muted); font-style: italic; font-size: 14px; }

/* ── Formulaire ── */
.acb-summary-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--acb-or-light); border-radius: 10px; padding: 13px 18px;
  margin-bottom: 20px; font-size: 15px; font-weight: 600; color: var(--acb-bordeaux);
}
.acb-btn-change {
  background: none; border: 1px solid var(--acb-bordeaux); color: var(--acb-bordeaux);
  border-radius: 6px; padding: 4px 12px; font-size: 12px; cursor: pointer;
}
.acb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
@media(max-width: 540px) { .acb-form-grid { grid-template-columns: 1fr; } }
.acb-field-full { grid-column: 1 / -1; }
.acb-field { display: flex; flex-direction: column; gap: 5px; }
.acb-field label { font-size: 12px; font-weight: 700; color: var(--acb-bordeaux); text-transform: uppercase; letter-spacing: .03em; }
.acb-field input, .acb-field textarea {
  border: 1px solid var(--acb-border); border-radius: 8px; padding: 10px 13px;
  font-size: 14px; color: var(--acb-texte); background: white; width: 100%; box-sizing: border-box;
}
.acb-field input:focus, .acb-field textarea:focus {
  outline: none; border-color: var(--acb-or); box-shadow: 0 0 0 3px rgba(200,169,110,.2);
}
.acb-btn-submit {
  width: 100%; padding: 16px; background: var(--acb-bordeaux); color: white;
  border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.acb-btn-submit:hover { opacity: .87; }

/* ── Erreurs / Confirmation ── */
.acb-errors { background: #fff0f0; border: 1px solid #fca5a5; border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; }
.acb-errors p { margin: 4px 0; color: #c0392b; font-size: 14px; }
.acb-confirm-box {
  background: var(--acb-ivoire); border: 2px solid var(--acb-or); border-radius: 16px;
  padding: 40px 32px; text-align: center; max-width: 480px; margin: 0 auto;
}
.acb-confirm-icon { font-size: 52px; margin-bottom: 14px; }
.acb-confirm-box h2 { color: var(--acb-bordeaux); font-size: 22px; margin: 0 0 12px; }
.acb-confirm-box p { color: var(--acb-muted); line-height: 1.7; margin: 0; }

/* ── Profil ── */
.acb-profile-card {
  display: flex; gap: 32px; align-items: flex-start;
  background: var(--acb-ivoire); border-radius: 16px; padding: 32px;
  border: 1px solid var(--acb-border); box-shadow: 0 4px 16px rgba(0,0,0,.06); margin-bottom: 24px;
}
@media(max-width: 600px) { .acb-profile-card { flex-direction: column; } }
.acb-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 3px solid var(--acb-or); }
.acb-therapist-name { font-size: 24px; color: var(--acb-bordeaux); margin: 0 0 6px; }
.acb-therapist-title { color: var(--acb-or); font-style: italic; margin: 0 0 16px; font-size: 15px; }
.acb-bio { font-size: 15px; line-height: 1.7; }
.acb-contact { margin-top: 14px; color: var(--acb-muted); font-size: 14px; }
.acb-cta { text-align: center; }
.acb-btn-book {
  display: inline-block; background: var(--acb-bordeaux); color: white;
  padding: 14px 36px; border-radius: 10px; font-size: 16px; font-weight: 700;
  text-decoration: none; transition: opacity .15s;
}
.acb-btn-book:hover { opacity: .87; color: white; }
.acb-btn-secondary {
  display: inline-block; border: 2px solid var(--acb-bordeaux); color: var(--acb-bordeaux);
  padding: 10px 28px; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; margin-top: 16px; transition: all .15s;
}
.acb-btn-secondary:hover { background: var(--acb-bordeaux); color: white; }

/* ── Page confirmation détaillée ── */
.acb-confirm-details {
  background: var(--acb-or-light); border-radius: 10px;
  padding: 16px 20px; margin: 18px 0; text-align: left;
}
.acb-confirm-details p { margin: 6px 0; font-size: 15px; color: var(--acb-texte); }
.acb-confirm-details .acb-muted { color: var(--acb-muted); font-size: 14px; }
.acb-confirm-actions { margin: 20px 0; }
.acb-btn-gcal {
  display: inline-block; background: #4285F4; color: white;
  padding: 11px 24px; border-radius: 8px; text-decoration: none;
  font-size: 14px; font-weight: 600; transition: opacity .15s;
}
.acb-btn-gcal:hover { opacity: .87; color: white; }
.acb-confirm-note {
  font-size: 13px; color: var(--acb-muted); margin: 16px 0 8px; line-height: 1.6;
}
.acb-confirm-cancel {
  font-size: 12px; color: var(--acb-muted); margin: 8px 0 20px;
}
.acb-confirm-cancel a { color: var(--acb-muted); }
.acb-confirm-cancel a:hover { color: var(--acb-bordeaux); }

/* ================================================================
   PORTAIL THÉRAPEUTE
   ================================================================ */
.acb-portal-wrap { max-width: 720px; margin: 0 auto; padding: 20px; font-family: 'Segoe UI', Arial, sans-serif; }

.acb-portal-header {
  display: flex; align-items: center; gap: 18px;
  background: var(--acb-ivoire); border-radius: 14px;
  padding: 20px 24px; border: 1px solid var(--acb-border);
  margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.acb-portal-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--acb-or); }
.acb-portal-header h1 { font-size: 20px; color: var(--acb-bordeaux); margin: 0 0 4px; }
.acb-portal-title { color: var(--acb-or); font-style: italic; font-size: 14px; margin: 0; }

.acb-portal-notif {
  border-radius: 10px; padding: 12px 18px; margin-bottom: 18px; font-size: 14px; font-weight: 600;
}
.acb-notif-ok   { background: #f0fdf4; border: 1px solid #22c55e; color: #14532d; }
.acb-notif-warn { background: #fff7ed; border: 1px solid #f97316; color: #7c2d12; }

.acb-portal-section { margin-bottom: 32px; }
.acb-portal-section-title {
  font-size: 16px; font-weight: 700; color: var(--acb-bordeaux);
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--acb-or-light);
}
.acb-portal-empty { color: var(--acb-muted); font-style: italic; font-size: 14px; }

.acb-rdv-card {
  background: white; border: 1px solid var(--acb-border); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
  display: grid; grid-template-columns: 140px 1fr auto;
  gap: 16px; align-items: start;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.acb-rdv-past { opacity: .75; }
@media(max-width: 600px) { .acb-rdv-card { grid-template-columns: 1fr; } }

.acb-rdv-datetime { display: flex; flex-direction: column; gap: 3px; }
.acb-rdv-date     { font-size: 13px; font-weight: 700; color: var(--acb-bordeaux); }
.acb-rdv-time     { font-size: 18px; font-weight: 700; color: var(--acb-texte); }
.acb-rdv-duration { font-size: 12px; color: var(--acb-muted); }

.acb-rdv-client { display: flex; flex-direction: column; gap: 3px; }
.acb-rdv-client strong { font-size: 15px; color: var(--acb-texte); }
.acb-rdv-email  { font-size: 13px; color: var(--acb-bordeaux); text-decoration: none; }
.acb-rdv-phone  { font-size: 13px; color: var(--acb-muted); }
.acb-rdv-reason { margin: 4px 0 0; font-size: 13px; color: var(--acb-muted); }
.acb-rdv-status { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--acb-or-light); }

.acb-rdv-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

.acb-btn-done {
  background: #2E7D32; color: white; border: none; border-radius: 8px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: opacity .15s;
}
.acb-btn-done:hover { opacity: .87; }

.acb-btn-cancel-rdv {
  background: none; border: 1px solid #fca5a5; color: #c0392b;
  border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.acb-btn-cancel-rdv:hover { background: #fff0f0; }

.acb-cancel-form {
  background: #fff8f8; border: 1px solid #fca5a5; border-radius: 8px;
  padding: 12px; margin-top: 6px; min-width: 240px;
}
.acb-cancel-reason {
  width: 100%; border: 1px solid #fca5a5; border-radius: 6px;
  padding: 8px 10px; font-size: 13px; box-sizing: border-box; resize: vertical;
}
.acb-btn-confirm-cancel {
  background: #c0392b; color: white; border: none; border-radius: 6px;
  padding: 7px 14px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.acb-btn-back {
  background: none; border: 1px solid #ccc; color: var(--acb-muted);
  border-radius: 6px; padding: 7px 14px; font-size: 13px; cursor: pointer;
}

/* ================================================================
   LAYOUT BOOKING : calendrier + créneaux côte à côte sur desktop
   ================================================================ */
.acb-booking-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.acb-calendar-wrap {
  flex-shrink: 0;
  width: 340px;
  max-width: 100%;
}
.acb-slots-panel {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  min-height: 200px;
  background: #FFFDF9;
  border-radius: 10px;
  border: 1px solid var(--acb-border);
  padding: 16px;
  transition: opacity .2s;
}
.acb-slots-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--acb-bordeaux);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--acb-border);
}
/* Sur desktop : le panel est toujours visible (réserve l'espace) */
@media(min-width: 721px) {
  .acb-slots-panel { display: flex !important; flex-direction: column; }
  .acb-slots-panel:empty::after { content: "Cliquez sur une date pour voir les créneaux"; color: var(--acb-muted); font-size: 13px; font-style: italic; }
}
@media(max-width: 720px) {
  .acb-booking-layout { flex-direction: column; }
  .acb-calendar-wrap  { width: 100%; max-width: 400px; }
  .acb-slots-panel    { width: 100%; max-width: 100%; }
  .acb-slots-panel[style*="display:none"] { display: none !important; }
}
