
/* Styles pour la modal */
#modal-contact {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #383838B4;
    backdrop-filter: blur(5px);
}

#modal-content {
    background-color: var(--color-background);
    margin: 5% auto;
    padding: 30px 90px;
    border: none;
    width: 90%;
    max-width: 300px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

#close-button {
    color: var(--color-text);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

#close-button:hover,
#close-button:focus {
    color: var(--color-primary);
    text-decoration: none;
}

#modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--color-primary);
    font-weight: normal;
}

#contact-form-modal {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form-modal label {
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

#contact-form-modal input,
#contact-form-modal select,
#contact-form-modal textarea {
    padding: 12px 0px;
    border: none;
    border-bottom: 1px solid var(--color-primary);
    background: var(--color-background);
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: 'Trenda Regular', sans-serif;
}

#contact-form-modal input:focus,
#contact-form-modal select:focus,
#contact-form-modal textarea:focus {
    outline: none;
    border-color: #007bff;
}

#contact-form-modal button {
    background-color: var(--color-background) !important;
    color: var(--color-primary);
    padding: 12px 20px;
    border: 1px solid var(--color-primary);
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    width: 50%;
    align-self: self-end;
    transition: background-color 0.3s;
    font-family: 'Trenda Regular', sans-serif;
}

#contact-form-modal button:hover {
    background-color: var(--color-primary)!important;
    color: var(--color-background);
}

@media (max-width: 600px) {
    #modal-content {
        width: 95%;
        padding: 20px;
    }

    #contact-form-modal button {
        width: 100%;
        align-self: center;
    }
}