
/* ========================================
   CAPTCHA - Compact et responsive
======================================== */

.contact-captcha {
    width: 100%; 
    margin: 12px 0;
    font-family: inherit;
}

/* Barre principale */

.contact-captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 54px;
    padding: 8px 11px;
    border: 1px solid #d8dee8;
    border-radius: 5px;
    background: #fafbfc;
}

/* Case à cocher */

.contact-captcha-check {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.contact-captcha-check input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.contact-captcha-check label {
    margin: 0;
    color: #263247;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

/* Marque de vérification */

.contact-captcha-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: #64748b;
    font-size: 11px;
}

.contact-captcha-brand i {
    color: #4285f4;
    font-size: 19px;
}

/* Zone de vérification */

.contact-captcha-challenge {
    display: none;
    margin-top: 7px;
    padding: 10px;
    border: 1px solid #dce2ea;
    border-radius: 5px;
    background: #fff;
}

.contact-captcha-challenge.active {
    display: block;
}

.contact-captcha-challenge p {
    margin: 0 0 8px;
    color: #475569;
    font-size: 12px;
}

/* Contenu : image + saisie */

.contact-captcha-content {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-width: 0;
}

/* Image et bouton */

.contact-captcha-image {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 62%;
    min-width: 0;
    margin: 0;
}

.contact-captcha-image img {
    display: block;
    width: 190px;
    max-width: calc(100% - 36px);
    height: 55px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
}

.contact-captcha-image button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid #dce2ea;
    border-radius: 4px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.contact-captcha-image button:hover {
    color: #2563eb;
    background: #f1f5f9;
}

/* Champ de saisie */

.contact-captcha-content > input {
    flex: 1;
    width: 38%;
    min-width: 0;
    height: 39px;
    padding: 7px 9px;
    border: 1px solid #d5dce5;
    border-radius: 4px;
    outline: none;
    color: #263247;
    font-family: inherit;
    font-size: 12px;
}

.contact-captcha-content > input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .09);
}

.contact-captcha-content > input::placeholder {
    color: #98a2b3;
}

/* ========================================
   MOBILE
   Image en première ligne
   Saisie en deuxième ligne
======================================== */

@media (max-width: 480px) {

    .contact-captcha {
        max-width: 100%;
        margin: 10px 0;
    }

    .contact-captcha-box {
        min-height: 50px;
        padding: 7px 9px;
    }

    .contact-captcha-check label {
        font-size: 12px;
    }

    .contact-captcha-brand {
        font-size: 10px;
    }

    .contact-captcha-brand i {
        font-size: 17px;
    }

    .contact-captcha-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .contact-captcha-image {
        flex: none;
        width: 100%;
    }

    .contact-captcha-image img {
        width: 190px;
        max-width: calc(100% - 36px);
    }

    .contact-captcha-content > input {
        flex: none;
        width: 100%;
        height: 38px;
    }
}
