.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 175px;
    width: 100%;
}

.contact-form-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    width: 60%;
    animation: formAppear 0.6s ease-out;
    position: relative;
}

.contact-form-wrapper h1 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #1d1d1f;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
    opacity: 0;
    animation: formAppear 0.6s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.2s; }
.form-group:nth-child(2) { animation-delay: 0.3s; }
.form-group:nth-child(3) { animation-delay: 0.4s; }
.form-group:nth-child(4) { animation-delay: 0.5s; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    background: #fbfbfd;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}   

.form-group label {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #86868b;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0071e3;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-24px);
    font-size: 12px;
    color: #0071e3;
    background: #fff;
    padding: 0 4px;
}

.submit-btn {
    width: 100%;
    padding: 12px 24px;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: formAppear 0.6s ease-out 0.6s forwards;
}

.submit-btn:hover {
    background: #0077ed;
}

.submit-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        padding: 20px;
    }

    .contact-form-wrapper {
        width: 90%;
        padding: 20px;
    }
    
    .contact-form-wrapper h1 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .submit-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group img {
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

.refresh-captcha {
    padding: 5px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
}

.refresh-captcha:hover {
    background: #e0e0e0;
}

/* Styles pour les notifications toast */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.5s, fadeOut 0.5s 2.5s forwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    min-width: 300px;
    text-align: center;
}

.toast.success {
    background-color: #4CAF50;
    border-left: 4px solid #2E7D32;
}

.toast.error {
    background-color: #f44336;
    border-left: 4px solid #B71C1C;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Adaptation pour mobile */
@media (max-width: 768px) {
    .toast {
        top: 80px;
        right: 10px;
        left: 10px;
        min-width: auto;
        font-size: 14px;
        padding: 12px 20px;
    }
}
