/* Styles Public */
.reservation-button-wrapper {
    margin: 20px 0;
}

.reservation-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.reservation-btn:hover:not(.disabled) {
    background-color: #005a87;
}

.reservation-btn.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.reservation-full {
    color: #dc3545;
    font-weight: bold;
    margin-top: 10px;
}

/* Modal */
.reservation-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.reservation-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reservation-modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #000;
}

.reservation-modal-content h2 {
    margin-top: 0;
    color: #333;
}

.availability-info {
    padding: 12px;
    background-color: #e7f3ff;
    border-left: 4px solid #007cba;
    border-radius: 4px;
    margin-bottom: 20px;
}

.availability-info p {
    margin: 0;
    color: #0a3a5c;
    font-size: 14px;
}

.reservation-form {
    display: flex;
    flex-direction: column;
}

.reservation-form .form-group {
    margin-bottom: 20px;
}

.reservation-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.reservation-form .required {
    color: #dc3545;
}

.reservation-form input,
.reservation-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.reservation-form input:focus,
.reservation-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Participants Section */
.participants-container {
    margin-top: 20px;
}

.participants-section h3 {
    color: #007cba;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    font-size: 16px;
}

.participant-group {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.participant-group h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.participant-group .form-group {
    margin-bottom: 15px;
}

.participant-group .form-group:last-child {
    margin-bottom: 0;
}

.reservation-form button {
    padding: 12px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.reservation-form button:hover {
    background-color: #005a87;
}

.reservation-form button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Messages */
.reservation-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

.reservation-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.reservation-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 600px) {
    .reservation-modal-content {
        padding: 20px;
        width: 95%;
    }

    .reservation-btn {
        width: 100%;
        padding: 15px;
        font-size: 18px;
    }
}

/* Popup de confirmation de réservation */
.reservation-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.reservation-success-popup {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #28a745;
    color: white;
    font-size: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.reservation-success-popup h2 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 24px;
}

.reservation-success-popup p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
}

.reservation-success-popup .spam-notice {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
    color: #856404;
    font-size: 14px;
}

.close-success-popup {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.close-success-popup:hover {
    background-color: #005a87;
}
