/* Bouton « Partager » et son panneau (components/_share_button.html.twig). */
.fe-share { display: inline-block; }
.fe-share__open {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem 1rem; border-radius: 999px;
    border: 1px solid rgba(232, 184, 74, .6); background: transparent; color: #e8b84a;
    font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
.fe-share__open:hover, .fe-share__open:focus-visible { background: #e8b84a; color: #0d0b0f; }

.fe-share__dialog {
    width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
    padding: 1rem 1rem 1.1rem; border: 1px solid rgba(232, 184, 74, .35); border-radius: 18px;
    background: #141016; color: #f5efe6; overflow: auto;
}
.fe-share__dialog::backdrop { background: rgba(5, 3, 8, .72); }
.fe-share__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.fe-share__title { font-size: 1.05rem; margin: 0; font-weight: 700; }
.fe-share__close { background: none; border: 0; color: #f5efe6; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.fe-share__tabs { display: flex; gap: .4rem; margin-bottom: .7rem; }
.fe-share__tabs button {
    flex: 1; padding: .4rem; border-radius: 10px; border: 1px solid rgba(245, 239, 230, .2);
    background: transparent; color: #f5efe6; cursor: pointer;
}
.fe-share__tabs button.is-active { background: #6e1222; border-color: #6e1222; }
.fe-share__preview { background: #0d0b0f; border-radius: 12px; overflow: hidden; display: flex; justify-content: center; }
.fe-share__preview img { display: block; width: auto; max-width: 100%; height: auto; max-height: 52vh; }
.fe-share__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .8rem; }
.fe-share__actions button {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .55rem .6rem; border-radius: 12px; border: 1px solid rgba(245, 239, 230, .22);
    background: transparent; color: #f5efe6; font-weight: 600; cursor: pointer;
}
.fe-share__actions .fe-share__primary { grid-column: 1 / -1; background: #e8b84a; border-color: #e8b84a; color: #0d0b0f; }
.fe-share__actions button:disabled { opacity: .5; cursor: progress; }
.fe-share__networks { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .5rem; }
.fe-share__network {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .55rem .6rem; border-radius: 12px; border: 1px solid rgba(245, 239, 230, .22);
    color: #f5efe6; font-weight: 600; text-decoration: none;
}
.fe-share__network:hover, .fe-share__network:focus-visible { color: #0d0b0f; background: #f5efe6; }
.fe-share__hint { font-size: .8rem; color: #bdb4a8; margin: .7rem 0 0; }
.fe-share__status { font-size: .85rem; color: #e8b84a; margin: .35rem 0 0; min-height: 1.2em; }

/* Bouton « J'aime » d'un article (components/_article_like_button.html.twig), posé à côté de « Partager ».
   Glitch RGB au clic sur le cadre seulement, jamais sur le texte (charte). */
.fe-article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.fe-article-like {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem 1rem; border-radius: 999px;
    border: 1px solid rgba(232, 184, 74, .6); background: transparent; color: #e8b84a;
    font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, color .15s;
}
.fe-article-like:hover, .fe-article-like:focus-visible { background: rgba(232, 184, 74, .15); color: #ffc107; }
.fe-article-like.is-liked { background: #ffc107; border-color: #ffc107; color: #0d0b0f; }
.fe-article-like:active { animation: fe-article-like-glitch .28s steps(2, end); }
.fe-article-like.htmx-request { animation: fe-article-like-glitch .5s steps(2, end) infinite; }
@keyframes fe-article-like-glitch {
    0%   { box-shadow: 2px 0 0 rgba(255, 0, 60, .8), -2px 0 0 rgba(0, 220, 255, .8); }
    50%  { box-shadow: -2px 0 0 rgba(255, 0, 60, .8), 2px 0 0 rgba(0, 220, 255, .8); }
    100% { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fe-article-like:active, .fe-article-like.htmx-request { animation: none; }
}

/* Variante discrète (fiches artistes, Clubs Cinéma) : un simple lien, pas un bouton voyant. */
.fe-share__open--quiet {
    padding: 0; border: 0; border-radius: 0; background: none; color: #bdb4a8;
    font-weight: 500; font-size: .875rem; gap: .35rem;
}
.fe-share__open--quiet:hover, .fe-share__open--quiet:focus-visible {
    background: none; color: #e8b84a; text-decoration: underline; text-underline-offset: 3px;
}
