/*
 * Encart « Afficher la vidéo / la carte » des contenus tiers bloqués avant accord
 * (assets/js/consentement-tiers.js, core/consentement-tiers/consentement-tiers.php).
 * Fichier hors build et hors @layer : il passe devant les couches de css/app.css.
 * Sombre par défaut (thème du site), clair sous body.theme-light.
 */
.riffx-ct-placeholder {
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: var(--riffx-ct-ratio, 16 / 9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    padding: 1.25rem;
    background: #17141f;
    color: #f4f2f8;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    text-align: center;
    overflow: hidden;
}
.riffx-ct-placeholder--fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    margin: 0;
    z-index: 2;
}
/* Barre devant une publication X / Instagram / TikTok : la citation reste lisible dessous. */
.riffx-ct-placeholder--bar {
    aspect-ratio: auto;
    max-width: 550px;
    margin: 1rem auto .5rem;
    padding: 1rem;
}
.riffx-ct-placeholder__inner {
    max-width: 34rem;
}
.riffx-ct-placeholder__text {
    margin: 0 0 1rem;
    font-size: .9375rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.riffx-ct-placeholder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    justify-content: center;
}
.riffx-ct-placeholder__btn,
.riffx-ct-settings-btn {
    min-height: 44px;
    padding: .625rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: #7C3AED;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.riffx-ct-placeholder__btn:hover,
.riffx-ct-placeholder__btn:focus-visible,
.riffx-ct-settings-btn:hover,
.riffx-ct-settings-btn:focus-visible {
    background: #6D28D9;
}
.riffx-ct-placeholder__btn:focus-visible,
.riffx-ct-placeholder__link:focus-visible,
.riffx-ct-settings-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.riffx-ct-placeholder__link {
    min-height: 44px;
    padding: .5rem .25rem;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: .875rem;
    text-decoration: underline;
    cursor: pointer;
}
body.theme-light .riffx-ct-placeholder {
    background: #f3f1f7;
    color: #1b1f24;
    border-color: rgba(0, 0, 0, .12);
}

/* Petits écrans : les iframes audio (SoundCloud, Bandcamp) sont basses, le texte doit tenir. */
@media (max-width: 576px) {
    .riffx-ct-placeholder {
        aspect-ratio: auto;
        min-height: 12rem;
        padding: 1rem;
    }
    .riffx-ct-placeholder--fill {
        min-height: 0;
    }
    .riffx-ct-placeholder__text {
        font-size: .875rem;
    }
}

/* Fiche évènement : la carte n'a plus d'aperçu statique (il venait de Google) et main.css
   ne donne pas de hauteur à .acf-map : hauteur fixe. Pas d'aspect-ratio : combiné à une
   hauteur minimale, il élargissait le bloc au-delà de la colonne (439 px pour 222). */
.content-block--map .acf-map--consent {
    position: relative;
    height: 13rem;
}
/* main.css pose sur .acf-map une marge négative (-30px, -20px en mobile) pour que la carte
   touche les bords de la carte d'infos (overflow hidden) : l'encart compense par son
   padding, sinon son texte et ses boutons sont coupés à gauche et à droite. */
.content-block--map .acf-map--consent .riffx-ct-placeholder {
    padding: 1rem 2.75rem;
    border: 0;
    border-radius: 0;
}
.content-block--map .acf-map--consent .riffx-ct-placeholder__text {
    margin-bottom: .5rem;
    font-size: .75rem;
}
.content-block--map .acf-map--consent .riffx-ct-placeholder__actions {
    flex-direction: column;
    gap: 0;
}
@media (max-width: 576px) {
    .content-block--map .acf-map--consent .riffx-ct-placeholder {
        padding: 1rem 2rem;
    }
}
