/* ===== FORMULAIRE DE CONTACT ===== */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    transition: background-color 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.contact-overlay.active {
    background: rgba(0, 0, 0, 0.7);
    visibility: visible;
    pointer-events: auto;
}

.contact-modal {
    background: rgb(40, 40, 40);
    color: darkgrey;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 30rem;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(1.25rem);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-overlay.active .contact-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.contact-modal h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 200;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: #999;
    font-size: 0.9rem;
}

.required {
    color: #ff6b6b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgb(60, 60, 60);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
    font-style: italic;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    accent-color: #666;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    color: #999;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-close:hover {
    color: #fff;
}

.security-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #999;
    text-align: center;
}

.security-footer p {
    margin: 0.2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.form-message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    color: #fff;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.visible {
    opacity: 1;
}

.form-message.success {
    background: #4caf50;
}

.form-message.error {
    background: #ff6b6b;
}