/* ========================================
   RL ARTTECH - STYLES MODAL
   Modal de prise de rendez-vous
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: var(--color-white);
    margin: 3% auto;
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--color-gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-gray-medium);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--color-black);
    background-color: var(--color-gray-light);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.rdv-form .form-group {
    margin-bottom: 1.5rem;
}

/* === NOTIFICATIONS === */
.notification {
    position: fixed;
    top: 100px;
    right: -400px;
    width: 90%;
    max-width: 400px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-strong);
    border-radius: 8px;
    overflow: hidden;
    z-index: 10001;
    transition: right 0.3s ease;
}

.notification.show {
    right: 2rem;
}

.notification-content {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-success {
    border-left: 4px solid #22c55e;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-info {
    border-left: 4px solid var(--color-primary);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-gray-medium);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.notification-close:hover {
    background-color: var(--color-gray-light);
    color: var(--color-black);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .notification {
        right: -100%;
        max-width: none;
    }
    
    .notification.show {
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}
