/* Styles pour les cartes d'événements */
.ld-events-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.ld-event-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e5e9;
}

.ld-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ld-event-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ld-event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ld-event-card:hover .ld-event-card-image img {
    transform: scale(1.05);
}

.ld-event-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 3rem;
    color: white;
}

.ld-event-card-content {
    padding: 1.5rem;
}

.ld-event-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.ld-event-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ld-event-title a:hover {
    color: #3498db;
}

.ld-event-date,
.ld-event-location,
.ld-event-price,
.ld-event-participants {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.ld-event-date strong,
.ld-event-location strong,
.ld-event-price strong,
.ld-event-participants strong {
    color: #2c3e50;
    margin-right: 0.5rem;
}

.ld-event-excerpt {
    margin: 1rem 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Styles pour les boutons de réservation et statuts */
.ld-event-reserve-btn {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.ld-event-reserve-btn:hover {
    background: #229954;
    color: white;
}

.ld-event-reserve-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.ld-event-status {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.ld-event-status.passed {
    background: #e74c3c;
    color: white;
}

.ld-event-status.full {
    background: #f39c12;
    color: white;
}

/* Nouveaux styles pour les statuts des événements */
.ld-event-status-passed {
    background: #e74c3c;
    color: white;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.ld-event-status-full {
    background: #f39c12;
    color: white;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

/* Styles pour le formulaire de réservation */
.ld-reservation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ld-reservation-modal.active {
    opacity: 1;
    visibility: visible;
}

.ld-reservation-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.ld-reservation-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width : 70%;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(-50px);
    transition: all 0.3s ease;
    padding: 2rem;
}

.ld-reservation-modal.active .ld-reservation-modal-content {
    transform: scale(1) translateY(0);
}

.ld-reservation-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dc3545;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-reservation-modal-close:hover {
    background: #c82333;
}

/* Styles pour le formulaire */
.ld-reservation-form {
    margin-top: 1rem;
}

.ld-reservation-title {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.ld-reservation-event {
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.ld-form-field {
    margin-bottom: 1.5rem;
}

.ld-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.ld-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.ld-form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ld-form-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.ld-form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.ld-form-submit {
    flex: 1;
    background: #27ae60;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ld-form-submit:hover:not(:disabled) {
    background: #229954;
}

.ld-form-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.ld-form-cancel {
    background: #95a5a6;
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ld-form-cancel:hover {
    background: #7f8c8d;
}

/* Message de succès */
.ld-reservation-success {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #27ae60;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.ld-reservation-success.active {
    transform: translateX(0);
}

.ld-success-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.ld-success-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Styles pour le calendrier */
.ld-events-calendar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid #e1e5e9;
}

.ld-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ld-calendar-prev,
.ld-calendar-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.ld-calendar-prev:hover,
.ld-calendar-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ld-calendar-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.ld-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.ld-calendar-weekdays > div {
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.ld-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 300px;
}

.ld-calendar-day {
    padding: 0.5rem;
    border-right: 1px solid #e1e5e9;
    border-bottom: 1px solid #e1e5e9;
    min-height: 60px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

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

.ld-calendar-day.today {
    background: #e3f2fd;
    font-weight: 600;
}

.ld-calendar-day-number {
    position: absolute;
    top: 0.25rem;
    left: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.ld-calendar-events {
    margin-top: 1.5rem;
    padding-left: 0.5rem;
}

.ld-calendar-event {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 3px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ld-calendar-event:hover {
    background: #2980b9;
}

/* Styles pour la modal d'événement */
.ld-event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ld-event-modal.active {
    opacity: 1;
    visibility: visible;
}

.ld-event-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.ld-event-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(-50px);
    transition: all 0.3s ease;
}

.ld-event-modal.active .ld-event-modal-content {
    transform: scale(1) translateY(0);
}

.ld-event-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dc3545;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-event-modal-close:hover {
    background: #c82333;
}

/* Styles pour la carte d'événement dans la modal */
.ld-event-modal-card {
    margin: 0;
    border-radius: 12px;
    box-shadow: none;
    border: none;
    transform: none;
}

.ld-event-modal-card:hover {
    transform: none;
    box-shadow: none;
}

.ld-event-modal-card .ld-event-card-image {
    height: 250px;
}

.ld-event-modal-card .ld-event-card-content {
    padding: 2rem;
}

.ld-event-modal-card .ld-event-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.ld-event-modal-card .ld-event-date,
.ld-event-modal-card .ld-event-location,
.ld-event-modal-card .ld-event-price,
.ld-event-modal-card .ld-event-participants {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.ld-event-modal-card .ld-event-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.ld-event-modal-card .ld-event-reserve-btn {
    font-size: 1rem;
    padding: 1rem 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .ld-events-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ld-calendar-weekdays > div,
    .ld-calendar-day {
        font-size: 0.8rem;
        padding: 0.5rem 0.25rem;
    }
    
    .ld-calendar-day {
        min-height: 50px;
    }
    
    .ld-calendar-event {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .ld-event-modal-content,
    .ld-reservation-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .ld-event-modal-card .ld-event-card-content,
    .ld-reservation-modal-content {
        padding: 1.5rem;
    }
    
    .ld-event-modal-card .ld-event-title {
        font-size: 1.25rem;
    }
    
    .ld-form-buttons {
        flex-direction: column;
    }
    
    .ld-reservation-success {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Animation pour les cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ld-event-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Animation pour la modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ld-event-modal.active .ld-event-modal-content,
.ld-reservation-modal.active .ld-reservation-modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

/* Styles pour la page de détail d'événement */
.ld-event-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.ld-event-single-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ld-event-single-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.ld-event-single-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.ld-event-single-meta-item {
    text-align: center;
}

.ld-event-single-meta-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.ld-event-single-meta-value {
    color: #555;
    font-size: 1.1rem;
}

.ld-event-single-content {
    line-height: 1.6;
    color: #333;
}

.ld-event-single-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Message informatif */
.ld-info-message {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1565c0;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.ld-info-message strong {
    color: #0d47a1;
}

/* Messages de succès et d'erreur */
.ld-reservation-success,
.ld-reservation-error {
    text-align: center;
    padding: 30px 20px;
}

.ld-reservation-success h3 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.ld-reservation-error h3 {
    color: #c62828;
    margin-bottom: 15px;
}

.ld-reservation-success p,
.ld-reservation-error p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.ld-modal-close {
    background: #2196f3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.ld-modal-close:hover {
    background: #1976d2;
} 