.contact-container {
    width: 90%;
    max-width: 600px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
    margin: 150px auto 20px auto;
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header_menu a {background-color : #ffffff00;color: white;}    

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #333;
    margin-bottom: 4px;
}

.champsobligatoire {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.champsobligatoire i {
    color: #ff1717;
    font-size: 0.7em;
    margin: 0;
}

label {
    font-weight: 600;
    color: #333;
}

input, textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: #3b7df3;
    outline: none;
}

textarea {
    height: 300px;
    resize: none;
    min-height: 300px;
}

.btn-container {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #3b7df3;
    color: white;
    padding: 12px 20px;
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #2461d3;
    transform: translateY(-2px);
}

h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8em;
}

.g-recaptcha {
    display: block;
    transform: translateX(-50%);
    position: relative;
    left: 50%;
}

.toast {
    visibility: hidden;
    position: fixed;
    top: 30px;
    right: 30px;
    background-color: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    z-index: 999999;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: pointer;
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #f44336;
}

.toast.warning {
    background-color: #ff9800;
}

.toast.info {
    background-color: #2196F3;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

.input-refresh-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.refresh-captcha {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #495057;
    padding: 0;
}

.refresh-captcha:hover {
    background-color: #e9ecef;
    transform: rotate(180deg);
    color: #228be6;
    border-color: #228be6;
}

@media screen and (max-width: 480px) {
    .contact-container {
        width: 85%;
        padding: 20px;
        margin: 130px auto 15px auto;
    }
    
    .form-group {
        gap: 6px;
    }

    textarea {
    height: 200px;
    resize: none;
    min-height: 200px;
}
    
    input, textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn-container {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .champsobligatoire {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
        margin: 15px 0;
    }

    .toast {
        width: 90%;
        top: 20px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .refresh-captcha {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .contact-container h2 {
        font-size: 1.5em;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
}

/* Styles pour les icônes */
.contact-container i {
    color: #3b7df3;
    width: 20px;
    text-align: center;
}

.contact-container h2 i {
    font-size: 1.1em;
    width: auto;
}

.btn i {
    color: inherit;
    width: auto;
    margin: 0;
}

/* Animation au survol des boutons */
.btn:hover i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Style des boutons amélioré */
.btn:hover {
    background-color: #2461d3;
    transform: translateY(-2px);
}

/* Amélioration du style du captcha */
label[for="captcha"] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
