/* Captcha - Aligné sur les patterns Kiiwe */
.captcha-section {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.captcha-shield-icon {
    pointer-events: none;
}

.captcha-input {
    font-size: 1.1rem !important;
    letter-spacing: 3px;
    font-weight: 600;
    text-align: center;
}

.captcha-input:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(4, 147, 168, 0.15);
}

.captcha-image-wrapper {
    border: 2px solid var(--bs-gray-300);
    background: var(--bs-body-bg);
    transition: border-color 0.2s ease;
}

.captcha-image-wrapper:hover {
    border-color: var(--bs-primary);
}

.captcha-img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 991.98px) {
    .captcha-section .notice .row {
        flex-direction: column;
    }

    .captcha-section .notice .col-lg-6 {
        width: 100%;
    }

    .captcha-image-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Dark mode */
[data-bs-theme="dark"] .captcha-image-wrapper {
    border-color: var(--bs-gray-700);
    background: var(--bs-gray-900);
}

[data-bs-theme="dark"] .captcha-image-wrapper:hover {
    border-color: var(--bs-primary);
}

[data-bs-theme="dark"] .captcha-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(4, 147, 168, 0.25);
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .captcha-img,
    .captcha-image-wrapper {
        transition: none;
    }
}
