/* ══ LOGIN REQUIRED ══════════════════════════════════════════ */
.rdv-login-required {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rdv-login-box {
  background: var(--surface-white);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 59, 104, 0.08);
  border: 1px solid var(--border-subtle);
}

.rdv-login-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.rdv-login-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.rdv-login-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.rdv-login-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .rdv-login-box {
    padding: 32px 20px;
  }
  .rdv-login-btns {
    flex-direction: column;
  }
  .rdv-login-btns .btn {
    width: 100%;
  }
}


/* ═══════════════════════════════════════════════
   LAYOUT RDV — 2 colonnes
═══════════════════════════════════════════════ */
.rdv-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.rdv-col-aside {
  position: sticky;
  top: 20px;
}

[class^="fa-"], [class*=" fa-"] {
  color: var(--brand-accent);
}

/* ═══════════════════════════════════════════════
   RDV ACTIFS — bandeau or en haut
═══════════════════════════════════════════════ */
/* ── Autocomplete membre (admin uniquement) ── */
.rdv-member-select {
  margin-bottom: 24px;
  position: relative;
}

#rdv-member-input {border-radius: 10px !important;
border: 1px solid var(--border-subtle) !important;
padding: 6px 10px !important;
  width: 350px;
  min-width: 250px;}

.rdv-autocomplete-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 59, 104, 0.12);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
}

.rdv-autocomplete-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.12s;
  border-bottom: 1px solid var(--border-subtle);
}

.rdv-autocomplete-item:last-child {
  border-bottom: none;
}

.rdv-autocomplete-item:hover {
  background: #f0f6ff;
  color: var(--brand-primary);
}

.rdv-autocomplete-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}


.rdv-active-block {
  background: var(--surface-white);
  border: 2px solid var(--brand-accent);
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
}

.rdv-active-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.rdv-active-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.rdv-active-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rdv-active-type {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.rdv-active-date,
.rdv-active-adress {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════
   BOUTON ANNULER RDV ACTIF
═══════════════════════════════════════════════ */
.rdv-btn-cancel {
  flex-shrink: 0;
  background: none;
  color: #c0392b;
  border: 1.5px solid #c0392b;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
  white-space: nowrap;
}

.rdv-btn-cancel:hover {
  background: #fdeaea;
}

/* ═══════════════════════════════════════════════
   STEPS
═══════════════════════════════════════════════ */
.rdv-steps {
  display: flex;
  align-items: center;
  margin: 64px 0;
}

.rdv-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.rdv-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.rdv-step.active .rdv-step-num {
  background: var(--brand-primary);
  color: #fff;
}

.rdv-step-label { color: var(--text-muted); }

.rdv-step.active .rdv-step-label {
  color: var(--brand-primary);
  font-weight: 700;
}

.rdv-step-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  margin: 0 8px;
}

/* ═══════════════════════════════════════════════
   TYPES DE RDV
═══════════════════════════════════════════════ */
/* ── Titre hors du flex ── */
#rdv-type-section .rdv-type-title {
  flex-basis: 100%;
  width: 100%;
}
.rdv-type-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 16px;
}

#rdv-type-section  {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}


.rdv-type {
  flex: 1;
  display: flex;
  min-width: 180px;
  align-items: center;
  gap: 12px;
  background: var(--surface-white);
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 22px;
  cursor: pointer;
  transition: border-color 0.18s;
  font-family: inherit;
}

.rdv-type-input {
  accent-color: var(--brand-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.rdv-type-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
}

.rdv-type-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.rdv-type.active {
  border-color: var(--brand-primary);
  background: #EDF2F8;
}

/* ═══════════════════════════════════════════════
   CRÉNEAUX
═══════════════════════════════════════════════ */
.rdv-date-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.rdv-samedi-block { margin-bottom: 28px; }

.rdv-samedi-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  padding: 8px 14px;
  background: #EDF2F8;
  border-radius: 8px;
  display: inline-block;
}

.rdv-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rdv-slot {
  padding: 10px 20px;
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--surface-white);
  cursor: pointer;
  transition: all 0.18s;
  min-width: 90px;
  text-align: center;
}

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

.rdv-slot.selected {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.rdv-slot.full {
  background: #f5f5f5;
  color: #bbb;
  border-color: #e0e0e0;
  cursor: not-allowed;
  text-decoration: line-through;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════
   CONFIRM BOX
═══════════════════════════════════════════════ */
.rdv-confirm-box {
  background: var(--surface-white);
  border-radius: 16px;
  border: 2px solid var(--brand-primary);
  padding: 28px;
  display: block !important;
  margin: 34px 0;
}

.rdv-confirm-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.rdv-confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.rdv-confirm-row:last-of-type { border-bottom: none; }

.rdv-confirm-label { color: var(--text-muted); }

.rdv-confirm-val { font-weight: 600; }

.rdv-confirm-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.rdv-btn-main {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s;
}

.rdv-btn-main:hover { background: var(--brand-secondary); }

.rdv-btn-main.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.rdv-btn-sec {
  background: none;
  color: var(--brand-primary);
  border: 1.5px solid var(--border-subtle);
  padding: 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.rdv-btn-sec:hover {
  border-color: var(--brand-primary);
  background: #EDF2F8;
}

/* ═══════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════ */
.rdv-empty {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════
   SUCCÈS
═══════════════════════════════════════════════ */
.rdv-success {
  text-align: center;
  padding: 48px 20px;
  display: none;
}

.rdv-success.show { display: block; }

.rdv-success-icon {
  width: 72px;
  height: 72px;
  background: var(--status-success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.rdv-success-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--status-success-text);
  margin-bottom: 8px;
}

.rdv-success-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.rdv-action{
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  gap: 12px;
}
.rdv-action .btn{
  min-width: 280px!important;

}

.rdv-success-btn {
  display: inline-block;
  background: var(--brand-primary);
  color: #fff;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s;
}

.rdv-success-btn:hover { background: var(--brand-secondary); }

/* ═══════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════ */
.rdv-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.rdv-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.rdv-toast.success { background: var(--status-success-text); }
.rdv-toast.error   { background: #c0392b; }

/*!* ═══════════════════════════════════════════════*/
/*   VOIR PLUS*/
/*═══════════════════════════════════════════════ *!*/
.rdv-voir-plus {
  display: block;
  margin-bottom: 16px;
  transition: all 0.18s;
  text-align: center;
}



/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .rdv-layout {
    grid-template-columns: 1fr;
  }

  .rdv-col-aside {
    position: static;
    order: -1;
  }

  .rdv-active-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .rdv-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  }
