/* Styles du Système de Réservation de Calendrier */

.elementor-calendar-widget {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* Widget Step Structure */
.widget-step {
    min-height: 200px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.widget-step h2 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-size: 2em;
    font-weight: 600;
}

.widget-step h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
}

/* Calendar Header */
.calendar-header {
    text-align: center;
    margin-bottom: 40px;
}

.calendar-header h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2.2em;
    font-weight: 600;
}

.calendar-header p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.5;
}

/* Step 1: Booking Type Selection */
.booking-type-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.booking-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 120px;
}

.booking-type-btn:hover {
    border-color: #e74c3c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.2);
}

.booking-type-btn.selected {
    border-color: #e74c3c;
    background: #fdf2f2;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.booking-type-btn .btn-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #e74c3c;
}

.booking-type-btn h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.booking-type-btn p {
    margin: 0;
    color: #666;
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    max-width: 250px;
}

/* Step 2: Training Selection */
.training-selection .training-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.training-option {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.training-option:hover {
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.training-option.selected {
    border-color: #e74c3c;
    background: #fdf2f2;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.training-option h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.training-option p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.training-details {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #e74c3c;
    font-weight: 500;
}

.continue-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.continue-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.continue-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Step 3: Calendar Display */
.calendar-instructions {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2196f3;
    text-align: center;
    color: #1565c0;
    font-weight: 500;
}

/* Step 4A & 4B: Event/Booking Details */
.event-summary-card,
.booking-summary-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-summary-card h4,
.booking-summary-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

.event-details,
.booking-details {
    color: #555;
    line-height: 1.6;
}

.event-details p,
.booking-details p {
    margin: 8px 0;
}

.event-details strong,
.booking-details strong {
    color: #333;
}

.booking-details ul {
    margin: 10px 0;
    padding-left: 20px;
}

.booking-details li {
    margin: 5px 0;
}

/* Step 5: Confirmation */
.booking-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.confirmation-content {
    max-width: 500px;
    margin: 0 auto;
}

.confirmation-icon {
    font-size: 72px;
    color: #28a745;
    margin-bottom: 20px;
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-content h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.confirmation-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

/* Back Buttons */
.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.back-btn::before {
    content: '←';
    font-weight: bold;
}

.calendar-header {
    text-align: center;
    margin-bottom: 30px;
}

.calendar-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.2em;
}

.calendar-header p {
    color: #666;
    font-size: 1.1em;
}

.calendar-main {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 5px;
}

.calendar-nav-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.calendar-nav-btn:hover {
    background: #c0392b;
}

#current-month-year {
    font-size: 1.5em;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.calendar-day-header {
    background: #f8f9fa;
    padding: 4px 2px;
    text-align: center;
    font-weight: bold;
    color: #555;
    font-size: 11px;
}

.calendar-day {
    min-height: 25px;
    padding: 2px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.calendar-day:hover {
    background: #f0f8ff;
    transform: translateY(-2px);
}

.calendar-day.other-month {
    color: #ccc;
    background: #fafafa;
}

.calendar-day.available {
    background: #e8f5e8;
    border-color: #27ae60;
}

.calendar-day.available:hover {
    background: #d4edda;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.calendar-day.selected {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.calendar-day.booked {
    background: #ffebee;
    color: #666;
    cursor: not-allowed;
    border-color: #f44336;
    opacity: 0.6;
}

.calendar-day.past {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.weekend {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.calendar-day.unavailable {
    background: #fff3e0;
    color: #e65100;
    cursor: not-allowed;
    border-color: #ff9800;
    opacity: 0.8;
}

.calendar-day.unavailable:hover {
    background: #fff3e0;
    transform: none;
    box-shadow: none;
}

.calendar-day.weekend::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(108, 117, 125, 0.1) 2px,
        rgba(108, 117, 125, 0.1) 4px
    );
    pointer-events: none;
}

.calendar-day.today {
    font-weight: bold;
    border: 2px solid #27ae60;
    background: #d4edda;
    color: #155724;
}

.calendar-day.has-events {
    position: relative;
    padding: 4px;
}

.calendar-day-number {
    font-size: 12px;
    font-weight: 500;
}

.calendar-day-status {
    font-size: 10px;
    margin-top: 2px;
    padding: 2px 4px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.1);
}

/* Calendar Events Styles */
.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 2px;
    max-height: 30px;
    overflow: hidden;
}

.calendar-event {
    font-size: 8px;
    padding: 1px 3px;
    border-radius: 2px;
    color: white;
    cursor: pointer;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-event:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.calendar-event.event-full {
    opacity: 0.6;
    cursor: not-allowed;
}

.calendar-event.event-full:hover {
    transform: none;
}

.event-title {
    display: block;
    font-weight: 500;
}

.event-time {
    display: block;
    font-size: 7px;
    opacity: 0.9;
}

.event-status {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(220, 53, 69, 0.9);
    font-size: 6px;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Event Modal Styles */
.event-modal {
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.event-modal h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3em;
}

.event-details {
    margin-bottom: 20px;
}

.event-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.event-detail-label {
    font-weight: 500;
    color: #666;
}

.event-detail-value {
    color: #333;
}

.event-registration-form {
    border-top: 2px solid #e74c3c;
    padding-top: 20px;
    margin-top: 20px;
}

.registration-form-group {
    margin-bottom: 15px;
}

.registration-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.registration-form-group input,
.registration-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.registration-form-group input:focus,
.registration-form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.registration-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.training-selection {
    margin-bottom: 30px;
}

.training-selection h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

#training-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.training-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.training-option:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
    transform: translateY(-2px);
}

.training-option.selected {
    border-color: #e74c3c;
    background: #fdf2f2;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.training-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.training-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
}

.training-info p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.training-duration {
    font-size: 12px;
    color: #e74c3c;
    font-weight: bold;
    background: #fdf2f2;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Training Option with Color Indicator */
.training-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.training-color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.training-content {
    flex: 1;
}

.training-content h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
}

.training-content p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.training-details {
    display: flex;
    gap: 15px;
    font-size: 12px;
    font-weight: 500;
}

.training-details .duration {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 2px 6px;
    border-radius: 3px;
}

.training-details .days {
    color: #666;
}

/* Selected Dates Section */
.selected-dates-section {
    background: linear-gradient(135deg, #e8f5e8 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.selected-dates-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.selected-dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    min-height: 40px;
    align-items: flex-start;
}

.selected-date-item {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.4);
    margin: 6px 4px;
    position: relative;
    min-width: 140px;
    justify-content: space-between;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.selected-date-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.5);
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

.selected-date-item .date-text {
    flex: 1;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.selected-date-item .remove-date {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 8px;
    width: auto;
    height: auto;
    opacity: 0.7;
}

.selected-date-item .remove-date:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
    opacity: 1;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.selected-date-item .remove-date::before {
    content: '×';
    font-size: 18px;
    line-height: 1;
}

.dates-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.no-dates-selected {
    color: #666;
    font-style: italic;
    padding: 20px 0;
    text-align: center;
}

.booking-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.booking-summary h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.booking-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #27ae60;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.booking-form h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.2em;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-legend h4 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.legend-color.available {
    background: #e8f5e8;
    border-color: #27ae60;
}

.legend-color.selected {
    background: #e74c3c;
    border-color: #c0392b;
}

.legend-color.booked {
    background: #ffebee;
    border-color: #f44336;
}

.legend-color.weekend {
    background: #f8f9fa;
    border-color: #6c757d;
}

.legend-color.event {
    background: #007cba;
    border-color: #0056b3;
}

/* Styles de la modale */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* États de chargement */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #e74c3c;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages d'alerte */
.alert {
    padding: 12px 20px;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid;
    font-size: 14px;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .elementor-calendar-widget {
        padding: 15px;
    }
    
    .widget-step {
        padding: 15px;
        min-height: 300px;
    }
    
    .widget-step h2 {
        font-size: 1.5em;
    }
    
    .calendar-main {
        padding: 20px;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .calendar-grid {
        font-size: 14px;
    }
    
    .calendar-day {
        min-height: 20px;
        padding: 1px;
    }
    
    .booking-type-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .booking-type-btn {
        padding: 25px 20px;
    }
    
    .booking-type-btn .btn-icon {
        font-size: 40px;
    }
    
    .training-options {
        grid-template-columns: 1fr;
    }
    
    .training-option {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    .back-btn {
        width: 100%;
        justify-content: center;
    }
    
    .continue-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    .calendar-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .event-summary-card,
    .booking-summary-card {
        padding: 20px;
    }
    
    .confirmation-icon {
        font-size: 60px;
    }
    
    /* Mobile styles for selected dates */
    .selected-dates-list {
        justify-content: center;
        gap: 8px;
    }
    
    .selected-date-item {
        min-width: 120px;
        padding: 8px 12px;
        font-size: 13px;
        margin: 3px;
        border-radius: 18px;
    }
    
    .selected-date-item .remove-date {
        font-size: 16px;
        margin-left: 6px;
    }
    
    .selected-date-item .remove-date::before {
        font-size: 16px;
    }
    
    .dates-actions {
        justify-content: center;
        margin-top: 15px;
    }
    
    .dates-actions .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .calendar-header h2 {
        font-size: 1.8em;
    }
    
    .calendar-day-header {
        padding: 10px 2px;
        font-size: 12px;
    }
    
    .calendar-day {
        min-height: 45px;
        padding: 4px;
    }
    
    .calendar-day-number {
        font-size: 14px;
    }
    
    .training-option {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .training-color {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Intégration avec le thème du site */
.elementor-calendar-widget {
    font-family: inherit;
}

.elementor-calendar-widget .calendar-header h2 {
    font-family: inherit;
    font-weight: inherit;
}

/* Amélioration de l'accessibilité */
.calendar-day:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
}

/* Animation pour les transitions */
.training-option,
.calendar-day,
.btn {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Large calendar view for better event display */
@media (min-width: 769px) {
    .calendar-day {
        min-height: 80px;
    }
    
    .calendar-events {
        max-height: 60px;
    }
    
    .calendar-event {
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .event-time {
        font-size: 8px;
    }
}

/* Mobile adjustments for events */
@media (max-width: 768px) {
    .calendar-day.has-events {
        min-height: 60px;
    }
    
    .calendar-events {
        max-height: 30px;
    }
    
    .calendar-event {
        font-size: 7px;
        padding: 1px 2px;
    }
    
    .event-time {
        display: none; /* Hide time on mobile for space */
    }
}

/* Additional styles for new functionality */

/* Public Events Legend */
.public-events-legend {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 3px solid #007cba;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.legend-dot.public-event {
    background: #007cba;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #007cba;
}

.legend-dot.weekend {
    background: #6c757d;
    opacity: 0.7;
}

/* Enhanced Weekend Styling */
.calendar-day.weekend {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.calendar-day.weekend::before {
    content: '🚫';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    opacity: 0.5;
}

/* Public Event Banner Styling */
.calendar-event.public-training {
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    color: white;
    font-weight: 500;
    border-radius: 4px;
    padding: 2px 6px;
    margin: 1px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.calendar-event.public-training:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.4);
    z-index: 20;
}

.calendar-event.public-training .event-title {
    font-size: 9px;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.calendar-event.public-training .event-time {
    font-size: 7px;
    opacity: 0.9;
}

/* Event Modal Enhancements */
.event-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
}

.event-modal-close {
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.event-modal-close:hover {
    color: #e74c3c;
}

.event-modal-body {
    padding: 0;
}

.event-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Event Details in Modal */
.event-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.event-detail-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007cba;
}

.event-detail-item strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-detail-item span {
    color: #666;
    font-size: 14px;
}

/* Enhanced Calendar Day with Events */
.calendar-day.has-public-events {
    border: 2px solid #007cba;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

.calendar-day.has-public-events:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #e3f2fd 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Booking Type Button Enhancements */
.booking-type-btn {
    transition: all 0.3s ease;
    border: 2px solid;
    font-weight: 500;
    min-height: 44px;
}

.booking-type-option[data-type="group"] .booking-type-btn {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.booking-type-option[data-type="group"] .booking-type-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.booking-type-option[data-type="public"] .booking-type-btn {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.booking-type-option[data-type="public"] .booking-type-btn:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
}

/* Legend Color Updates */
.legend-color.public-event {
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    border-color: #007cba;
}

/* Mobile Event Modal */
@media (max-width: 768px) {
    .event-modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .event-detail-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .event-modal-actions {
        flex-direction: column;
    }
    
    .event-modal-actions .btn {
        width: 100%;
    }
}

/* Loading State for Event Modal */
.event-modal.loading .event-modal-content {
    opacity: 0.7;
    pointer-events: none;
}

.event-modal .loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}