/* Force tous les titres à utiliser The Seasons */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-seasons) !important;
}


/* ===== CALENDAR PAGE STYLES ===== */

/* Calendar Header */
.calendar-header {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.calendar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.header-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Main Calendar Layout */
.calendar-main {
    padding: 60px 0;
    background: #f8f9fa;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Services Panel */
.services-panel {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    grid-column: 1 / -1;
}

.services-panel h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
}

.services-grid::-webkit-scrollbar {
    width: 8px;
}

.services-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.services-grid::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 10px;
}

.services-grid::-webkit-scrollbar-thumb:hover {
    background: #F7931E;
}

.service-card {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.service-card:hover {
    border-color: #FF6B35;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    background: #fffaf8;
}

.service-card.selected {
    border-color: #DC2626;
    border-width: 3px;
    background: #FFF5F5;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.service-card.free {
    border-color: #28a745;
}

.service-card.free:hover {
    background: #f0fff4;
    border-color: #28a745;
}

.service-card.free.selected {
    background: #F0FFF4;
    border-color: #28a745;
    border-width: 3px;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.service-icon {
    font-size: 2rem;
    color: #FF6B35;
    flex-shrink: 0;
    transition: color 0.3s ease;
    line-height: 1;
}

.service-card:hover .service-icon {
    color: #DC2626;
}

.service-card.selected .service-icon {
    color: #DC2626;
    transform: scale(1.1);
}

.service-info {
    flex: 1;
    min-width: 0;
}

.service-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: #1a1a1a;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-card:hover .service-info h3 {
    color: #DC2626;
}

.service-card.selected .service-info h3 {
    color: #DC2626;
    font-weight: 800;
}

.service-duration {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.service-duration i {
    font-size: 0.8rem;
}

.service-card.selected .service-duration {
    color: #6c757d;
}

.service-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin-top: 0.5rem;
    margin-bottom: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    flex: 1;
}

.service-card.selected .service-description {
    color: #6c757d;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #DC2626;
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-align: right;
}

.service-price.free {
    color: #28a745;
}

.service-card:hover .service-price {
    color: #DC2626;
    transform: scale(1.08);
}

.service-card.selected .service-price {
    color: #DC2626;
    font-weight: 900;
    border-top-color: #DC2626;
}

.service-card.free.selected .service-price {
    color: #28a745;
}

/* Theme Selector Section */
.theme-selector-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    grid-column: 1 / -1;
}

.theme-selector-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-selector-section h2 i {
    color: #FF6B35;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.theme-card {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.theme-card:hover {
    border-color: #FF6B35;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.theme-card.selected {
    border-color: #22C55E;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.3);
}

.theme-icon {
    font-size: 2rem;
    color: #FF6B35;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.theme-card:hover .theme-icon {
    color: #DC2626;
    transform: scale(1.1);
}

.theme-card.selected .theme-icon {
    color: #22C55E;
}

.theme-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.3rem 0;
}

.theme-info p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.theme-card.selected .theme-info h4 {
    color: #22C55E;
}

/* Calendar Widget */
.calendar-widget {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.nav-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.nav-btn:hover {
    background: #FF6B35;
    border-color: #FF6B35;
    color: white;
}

.current-month {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.calendar-grid {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.calendar-header-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
}

.day-header {
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    border-right: 1px solid #e9ecef;
}

.day-header:last-child {
    border-right: none;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: white;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.other-month {
    color: #adb5bd;
    background: #f8f9fa;
}

.calendar-day.today {
    border: 2px solid #FF6B35;
    color: #FF6B35;
    font-weight: 700;
    background: white;
}

.calendar-day.selected {
    background: #DC2626;
    color: white;
    font-weight: 700;
    border: 2px solid #DC2626;
}

.calendar-day.today.selected {
    background: #DC2626;
    color: white;
    border: 2px solid #DC2626;
}

.calendar-day.blocked-date {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    position: relative;
}

.calendar-day.blocked-date::after {
    content: '🔒';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
}

.calendar-day.blocked-date:hover {
    transform: none !important;
    cursor: not-allowed !important;
}

.no-slots-available {
    text-align: center;
    padding: 30px 20px;
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 10px;
    color: #dc2626;
    font-weight: 600;
    font-size: 16px;
}

.time-slot.booked {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    border-color: #d1d5db !important;
}

.time-slot.booked:hover {
    transform: none !important;
    background: #f3f4f6 !important;
}

.calendar-day.has-appointment::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #28a745;
    border-radius: 50%;
}

.calendar-day.selected.has-appointment::after {
    background: white;
}

/* Time Slots Section */
.time-slots-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.time-slots-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.time-slot {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    background: white;
    font-size: 1.05rem;
}

.time-slot:hover {
    border-color: #FF6B35;
    background: #fff5f2;
}

.time-slot.selected {
    background: #FF6B35;
    border-color: #FF6B35;
    color: white;
}

.time-slot.booked {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.time-slot.booked:hover {
    border-color: #dee2e6;
    background: #f8f9fa;
}

.confirm-booking {
    width: 100%;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.confirm-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Appointments Panel */
.appointments-panel {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    max-height: 800px;
    overflow-y: auto;
}

.appointments-panel h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.appointments-section {
    margin-bottom: 2rem;
}

.appointments-section h3 {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appointment-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid #FF6B35;
    transition: all 0.3s ease;
}

.appointment-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.appointment-item.completed {
    border-left-color: #28a745;
    background: #f8fff9;
}

.appointment-item.cancelled {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.appointment-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.appointment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #FF6B35;
}

.appointment-card.past {
    opacity: 0.85;
    background: #f8f9fa;
}

.appointment-card.past:hover {
    border-color: #95a5a6;
}

.appointment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.appointment-header > i {
    font-size: 2rem;
    color: #FF6B35;
    flex-shrink: 0;
}

.appointment-card.past .appointment-header > i {
    color: #95a5a6;
}

.appointment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.appointment-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.paid-badge, .free-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.paid-badge {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.free-badge {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.appointment-service {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.appointment-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.appointment-status.upcoming {
    background: #fff3cd;
    color: #856404;
}

.appointment-status.completed {
    background: #d4edda;
    color: #155724;
}

.appointment-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.appointment-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.appointment-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.appointment-actions {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.modify-btn, .cancel-btn, .action-btn {
    flex: 1;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modify-btn, .action-btn.edit {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.modify-btn:hover, .action-btn.edit:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.cancel-btn, .action-btn.cancel {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.cancel-btn:hover, .action-btn.cancel:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.no-modify-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.no-modify-warning i {
    font-size: 1rem;
}

.no-appointments {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.no-appointments i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Payment Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.payment-modal {
    max-width: 550px;
    width: 95%;
    margin: 2rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.modal-close:hover {
    background: #FF6B35;
    color: white;
    transform: rotate(90deg);
}

.service-summary {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 3px solid #FF6B35;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

.service-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

.service-summary::after {
    content: '💳';
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.1;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed rgba(255, 107, 53, 0.3);
}

.summary-service {
    font-weight: 800;
    color: #2c3e50;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-service::before {
    content: '📋';
    font-size: 1.5rem;
}

.summary-price {
    font-weight: 800;
    color: white;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    padding: 0.7rem 1.3rem;
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #2c3e50;
    font-size: 1.05rem;
    font-weight: 500;
    background: white;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.summary-detail:hover {
    transform: translateX(5px);
    border-color: #FF6B35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.summary-detail i {
    color: #FF6B35;
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
}

.summary-detail span {
    flex: 1;
}

.payment-content {
    margin-top: 1rem;
}

.payment-form-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.payment-form-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.card-input-label i {
    color: #FF6B35;
    font-size: 1.1rem;
}

#card-element {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 60px;
}

.card-input-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
    padding: 0.5rem 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.card-input-help i {
    color: #3498db;
    font-size: 0.9rem;
}

#card-element:focus,
#card-element.StripeElement--focus {
    border-color: #FF6B35;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

#card-element.StripeElement--invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

#card-element.StripeElement--complete {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
}

#card-errors {
    color: #dc3545;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#card-errors:not(:empty)::before {
    content: '⚠️';
}

.payment-security {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    background: #f8fff9;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #d4edda;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.payment-actions .btn-secondary {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-actions .btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
}

.payment-actions .btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border: 2px solid #FF6B35;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.payment-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.payment-actions .btn-primary i {
    margin-right: 0.5rem;
}

/* Confirmation Modal */
.confirmation-modal {
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.confirmation-content {
    padding: 2rem 0;
}

.confirmation-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.confirmation-message {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.confirmation-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 2rem;
    color: #FF6B35;
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: #2c3e50;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .calendar-layout {
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
    }
    
    .appointments-panel {
        grid-column: 1 / -1;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .calendar-header {
        padding: 60px 0 40px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 2rem;
    }
    
    .header-stats {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .calendar-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-panel,
    .calendar-widget,
    .appointments-panel {
        padding: 1.5rem;
    }
    
    .time-slots {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .calendar-main {
        padding: 40px 0;
    }
    
    .services-panel,
    .calendar-widget,
    .appointments-panel {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .appointment-item {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* ===== SERVICES GRID STYLES ===== */
.services-panel {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.services-panel h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.services-panel h2 i {
    color: #FF6B35;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: #FF6B35;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.service-card.selected {
    border-color: #FF6B35;
    background: linear-gradient(135deg, #fff5f2 0%, #fff 100%);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.service-card.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

/* Styles dupliqués supprimés - voir lignes 178-287 pour les styles corrects */

.service-info p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-details .duration {
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.service-details .duration i {
    color: #FF6B35;
}

.service-details .price {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.service-details .price.free {
    background: #d4edda;
    color: #155724;
}

.service-details .price.paid {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
}

/* Responsive pour les services */
@media (max-width: 768px) {
    .calendar-layout {
        padding: 0 1rem;
    }
    
    .services-panel {
        padding: 1.5rem;
    }
    
    .services-panel h2 {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .theme-selector-section {
        padding: 1.5rem;
    }
    
    .theme-selector-section h2 {
        font-size: 1.5rem;
    }
    
    .themes-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-widget {
        padding: 1.5rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== CALENDAR DAYS STYLES ===== */
.calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.calendar-day.current-month {
    color: #2c3e50;
}

.calendar-day.other-month {
    color: #bdc3c7;
    cursor: default;
}

/* Styles dupliqués supprimés - voir lignes 391-409 pour les styles corrects */

.calendar-day.available {
    cursor: pointer;
}

.calendar-day.available:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    transform: scale(1.1);
}

.calendar-day.past {
    color: #bdc3c7;
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.calendar-day.past::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #bdc3c7;
    transform: translateY(-50%);
}

.calendar-day.past:hover {
    transform: none;
    background: #f8f9fa;
    color: #bdc3c7;
}