/* ============================================
   TCM BOOKING - STYLES FRONTEND
   ============================================ */

/* Calendrier */
.tcm-agenda-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tcm-agenda-header {
    text-align: center;
    margin-bottom: 40px;
}

.tcm-agenda-header h2 {
    font-family: var(--tcm-font-titre, 'Cormorant Garamond', serif);
    font-size: 2rem;
    color: var(--tcm-noir, #1a1a1a);
    margin-bottom: 8px;
}

.tcm-booking-step {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.tcm-booking-step h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.tcm-step-num {
    display: inline-flex;
    width: 32px;
    height: 32px;
    background: var(--tcm-or, #c9a96e);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Calendrier mini */
#tcm-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.tcm-cal-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    padding: 8px 0;
}

.tcm-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.tcm-cal-day:hover:not(.tcm-cal-disabled):not(.tcm-cal-past) {
    background: #f5f0e8;
    border-color: var(--tcm-or, #c9a96e);
}

.tcm-cal-day.tcm-cal-selected {
    background: var(--tcm-or, #c9a96e);
    color: white;
}

.tcm-cal-day.tcm-cal-today {
    font-weight: 700;
    color: var(--tcm-vert, #4a6741);
}

.tcm-cal-day.tcm-cal-disabled,
.tcm-cal-day.tcm-cal-past {
    color: #ddd;
    cursor: not-allowed;
}

/* Créneaux */
#tcm-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tcm-slot {
    padding: 12px 8px;
    text-align: center;
    border: 2px solid #e8ddd0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}

.tcm-slot:hover {
    border-color: var(--tcm-or, #c9a96e);
    background: #faf7f2;
}

.tcm-slot.tcm-slot-selected {
    background: var(--tcm-or, #c9a96e);
    border-color: var(--tcm-or, #c9a96e);
    color: white;
}

.tcm-slot.tcm-slot-unavailable {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
    font-size: 0.75rem;
}

/* Résumé */
.tcm-booking-summary {
    background: #f8f6f3;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.tcm-summary-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.tcm-motif-field label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #666;
}

.tcm-motif-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8ddd0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    box-sizing: border-box;
}

.tcm-booking-privacy-note {
    background: #f0f7f0;
    border-left: 3px solid var(--tcm-vert, #4a6741);
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #4a6741;
    border-radius: 0 4px 4px 0;
    margin-bottom: 20px;
}

/* Boutons */
.tcm-btn-confirm {
    display: block;
    width: 100%;
    background: var(--tcm-or, #c9a96e);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.tcm-btn-confirm:hover {
    background: var(--tcm-vert, #4a6741);
    transform: translateY(-1px);
}

.tcm-btn-back {
    background: none;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    transition: all 0.2s;
}

.tcm-btn-back:hover { border-color: #999; color: #333; }

/* Succès */
.tcm-booking-success {
    text-align: center;
    padding: 50px 30px;
    background: #f0f7f0;
    border-radius: 8px;
}

.tcm-success-icon { font-size: 3rem; margin-bottom: 16px; }
.tcm-booking-success h3 { color: var(--tcm-vert, #4a6741); margin-bottom: 12px; }

/* Espace patient - mes RDV */
.tcm-mon-espace { max-width: 800px; margin: 0 auto; padding: 30px 20px; }

.tcm-espace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tcm-rdv-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--tcm-or, #c9a96e);
}

.tcm-rdv-futur { border-left-color: var(--tcm-vert, #4a6741); }
.tcm-rdv-passe { border-left-color: #ddd; opacity: 0.7; }

.tcm-rdv-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tcm-rdv-day { font-size: 1.8rem; font-weight: 700; line-height: 1; color: var(--tcm-or, #c9a96e); }
.tcm-rdv-month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: #999; }
.tcm-rdv-year { font-size: 0.75rem; color: #bbb; }

.tcm-rdv-heure { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.tcm-rdv-duree { font-size: 0.82rem; color: #999; }
.tcm-rdv-motif { font-size: 0.82rem; color: #666; margin-top: 6px; font-style: italic; }

.tcm-statut-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f0f7f0;
    color: var(--tcm-vert, #4a6741);
}

.tcm-statut-annule { background: #fef0f0; color: #c0392b; }
.tcm-statut-termine { background: #f5f5f5; color: #888; }

.tcm-btn-annuler {
    display: block;
    margin-top: 8px;
    background: none;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 4px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s;
}
.tcm-btn-annuler:hover { background: #e74c3c; color: white; }

.tcm-annulation-impossible { font-size: 0.72rem; color: #aaa; display: block; margin-top: 8px; }

.tcm-confidentialite-notice {
    margin-top: 30px;
    padding: 14px 18px;
    background: #f0f7f0;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #4a6741;
}

/* Inscription */
.tcm-inscription-wrap { max-width: 540px; margin: 40px auto; padding: 0 20px; }
.tcm-inscription-box { background: white; border-radius: 8px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.tcm-inscription-sub { color: #666; margin-bottom: 28px; font-size: 0.95rem; }

.tcm-form-error {
    background: #fef0f0;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.tcm-form-group { margin-bottom: 16px; }
.tcm-form-group label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: #444; font-weight: 600; }
.tcm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.tcm-privacy-checkbox { margin-bottom: 16px; font-size: 0.85rem; }
.tcm-privacy-checkbox a { color: var(--tcm-or, #c9a96e); }
.tcm-privacy-note {
    background: #f0f7f0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #4a6741;
    margin-bottom: 20px;
}

.tcm-login-link { text-align: center; margin-top: 20px; font-size: 0.9rem; color: #666; }
.tcm-login-link a { color: var(--tcm-or, #c9a96e); }

/* Loading */
.tcm-loading { text-align: center; padding: 20px; color: #999; }
.tcm-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid #ddd;
    border-top-color: var(--tcm-or, #c9a96e);
    border-radius: 50%;
    animation: tcm-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes tcm-spin { to { transform: rotate(360deg); } }

.tcm-error-msg {
    background: #fef0f0;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
}

.tcm-notice {
    background: #faf7f2;
    border: 1px solid #e8ddd0;
    padding: 20px 24px;
    border-radius: 6px;
    text-align: center;
}

@media (max-width: 600px) {
    #tcm-slots-grid { grid-template-columns: repeat(3, 1fr); }
    .tcm-rdv-card { grid-template-columns: 60px 1fr; }
    .tcm-rdv-card > *:last-child { grid-column: 1 / -1; }
    .tcm-form-row { grid-template-columns: 1fr; }
}
