/**
 * Styles frontend pour Webp Tarteaucitron
 *
 * @package Webp_Tarteaucitron
 */

/* ==========================================================================
   Placeholders reCAPTCHA (inspirés de Complianz)
   ========================================================================== */

/* Conteneur du placeholder reCAPTCHA */
.g-recaptcha[data-service="recaptcha"],
.recaptcha-invisible[data-service="recaptcha"] {
    position: relative;
    max-width: initial !important;
    height: 80px !important;
    margin-bottom: 20px;
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Message du placeholder */
.g-recaptcha[data-service="recaptcha"]::before,
.recaptcha-invisible[data-service="recaptcha"]::before {
    content: "⚠️ Veuillez accepter les cookies pour valider avec reCAPTCHA";
    display: block;
    padding: 10px 15px;
    color: #666;
    font-size: 14px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Version mobile */
@media only screen and (max-width: 400px) {
    .g-recaptcha[data-service="recaptcha"],
    .recaptcha-invisible[data-service="recaptcha"] {
        height: 100px !important;
    }

    .g-recaptcha[data-service="recaptcha"]::before,
    .recaptcha-invisible[data-service="recaptcha"]::before {
        font-size: 13px;
        padding: 10px;
    }
}

/* État activé (après consentement) */
.g-recaptcha.tac-activated,
.recaptcha-invisible.tac-activated {
    background: transparent;
    border: none;
    height: auto !important;
}

.g-recaptcha.tac-activated::before,
.recaptcha-invisible.tac-activated::before {
    content: none;
}

/* ==========================================================================
   Placeholders YouTube (si nécessaire)
   ========================================================================== */

.youtube_player {
    position: relative;
    background: #000;
    display: block;
}

.youtube_player::after {
    content: "";
    display: block;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

/* ==========================================================================
   Messages d'erreur pour formulaires
   ========================================================================== */

.webp-tarteaucitron-form-notice {
    background: #fff9e6;
    border-left: 4px solid #f0b429;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.5;
}

.webp-tarteaucitron-form-notice strong {
    color: #f0b429;
}

.webp-tarteaucitron-form-notice a {
    color: #0073aa;
    text-decoration: underline;
}

.webp-tarteaucitron-form-notice a:hover {
    color: #005177;
}
