/* Style du formulaire de contact custom */

.custom-contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
}

.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"],
.custom-contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.custom-contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Piège à bots : invisible pour les humains, présent pour les robots */
.custom-contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Bouton d'envoi */
.custom-contact-submit {
    background: linear-gradient(135deg, #A680FE, #F9A582);
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    width: auto;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-size: 200% auto;
    transform-origin: center;
    box-shadow: 0 0 10px rgba(166, 128, 254, 0.2);
}

.custom-contact-submit:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 128, 254, 0.4);
    animation: contactButtonGlow 1.5s ease infinite;
}

.custom-contact-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(166, 128, 254, 0.3);
}

@keyframes contactButtonGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.custom-contact-form.submitting .custom-contact-submit {
    animation: contactSubmitPulse 1.5s ease infinite;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes contactSubmitPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(166, 128, 254, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(166, 128, 254, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(166, 128, 254, 0); }
}

.custom-contact-submit::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(270deg, #A680FE, #F9A582, #A680FE);
    background-size: 200% auto;
    border-radius: var(--radius-md);
    z-index: -1;
    animation: contactBorderGlow 3s linear infinite;
}

@keyframes contactBorderGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.custom-contact-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease-out, height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.custom-contact-submit:active::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: 0s;
}

/* Message de réponse (succès / erreur) */
.custom-contact-response {
    margin: 1rem 0 0;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    display: none;
}

.custom-contact-response.is-success,
.custom-contact-response.is-error {
    display: block;
}

.custom-contact-response.is-success {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
}

.custom-contact-response.is-error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #f87171;
}

@media screen and (max-width: 768px) {
    .custom-contact-form {
        padding: 1rem;
    }
}

.custom-contact-form p {
    margin-bottom: 0.75rem;
}

.custom-contact-form p:last-child {
    margin-bottom: 0;
}
