.fda-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.92); /* Lisibilité : opaque, flou conservé pour le style */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    z-index: 999999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 10px 0; /* Compacted */
}

.fda-consent__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.fda-consent__left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 300px;
}

.fda-consent__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #e5e5e5;
}

.fda-consent__text {
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    color: #f0f0f0;
}

.fda-consent__link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.fda-consent__link:hover,
.fda-consent__link:focus {
    color: #ffffff;
    opacity: 0.85;
}

.fda-consent__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.fda-consent__button {
    appearance: none;
    border: none;
    border-radius: 4px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.fda-consent__button:hover {
    opacity: 0.9;
}

/* Prominence égale : les deux boutons sont pleins, même taille/poids (conforme CNIL). */
.fda-consent__button--accept {
    background-color: #4a75bd; /* Bleu du thème Enfold */
    color: #ffffff;
}

.fda-consent__button--refuse {
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.fda-consent__button--refuse:hover {
    background-color: rgba(255, 255, 255, 0.28);
    opacity: 1;
}

/* Fallback Revoke Tab (If footer injection fails) */
.fda-consent-revoke {
    position: fixed;
    bottom: 0;
    right: 20px;
    background-color: rgba(0,0,0,0.6);
    color: #ffffff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    z-index: 999998;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
}

.fda-consent-revoke--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fda-consent-revoke:hover {
    background-color: rgba(0,0,0,0.9);
}

/* Inline Link styling for Enfold Footer area */
.fda-consent-revoke-inline {
    display: block;
    float: right;
    color: inherit;
    text-decoration: none !important;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.fda-consent-revoke-inline:hover {
    opacity: 1;
    text-decoration: none !important;
}

@media (max-width: 600px) {
    .fda-consent__container {
        flex-direction: column;
        text-align: center;
    }
    .fda-consent__left {
        flex-direction: column;
    }
    .fda-consent__actions {
        width: 100%;
        justify-content: center;
    }
}

/* Video Placeholder */
.fda-consent-video-placeholder {
    position: relative;
    width: 100%;
    min-height: 250px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.fda-consent-video-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Fix for responsive video wrappers (Enfold theme, WP core) */
.avia-iframe-wrap .fda-consent-video-placeholder,
.wp-block-embed__wrapper .fda-consent-video-placeholder,
.fluid-width-video-wrapper .fda-consent-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: auto;
}

.fda-consent-video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 20px;
}

.fda-consent-video-overlay p {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.4;
    color: #ffffff;
}
