/* Styles pour la modale de connexion */
.login-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);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 25px;
    border: 1px solid #e0e0e0;
    width: 90%;
    max-width: 550px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.4s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    position: relative;
}

.modal-header h4 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    right: 0;
    top: -5px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #555;
}

.modal-body .login-section {
    background-color: #f9f9f9 !important;
    padding: 20px !important;
    border-radius: 5px !important;
    border-left: 4px solid #dcdfe0 !important;
    margin-bottom: 20px !important;
    transition: all 0.3s ease;
}

.modal-body .form-recap {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.modal-body .form-recap h5 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-body .form-recap p {
    margin-bottom: 8px;
    font-size: 0.95em;
}

.modal-body .form-recap strong {
    margin-right: 5px;
    color: #555;
}

.modal-body .form-recap span {
    color: #333;
    word-break: break-word;
}

.modal-body .form-recap p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer button {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-footer button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 15px;
    }
    
    .modal-header h4 {
        font-size: 18px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-body .form-recap p {
        font-size: 0.9em;
    }
}
