/*
 * Blocs dynamiques des sites TrustEvent (billetterie, programmation, FAQ, articles…).
 * Chargé avant le thème : un thème redéfinit les variables ou les classes .te-*.
 */
:root {
  --te-site-primary: #4f46e5;
  --te-site-on-primary: #ffffff;
  --te-site-text: #111827;
  --te-site-muted: #4b5563;
  --te-site-border: #e5e7eb;
  --te-site-surface: #f9fafb;
  --te-site-radius: 12px;
}
.te-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: .75rem 1rem; background: #fff; color: #000; }
.te-skip:focus { left: 1rem; top: 1rem; }
.te-preview-bar { position: sticky; top: 0; z-index: 9999; padding: .5rem 1rem; background: #fef3c7; color: #78350f; font: 600 14px/1.4 system-ui, sans-serif; text-align: center; }
.te-block { margin: 0 auto; }
.te-block-title { margin: 0 0 1rem; }
.te-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .75rem 1.25rem; border-radius: 999px; background: var(--te-site-primary); color: var(--te-site-on-primary); font-weight: 700; text-decoration: none; }
.te-button:hover { filter: brightness(1.08); }
.te-button:focus-visible, .te-post-card-link:focus-visible { outline: 3px solid var(--te-site-primary); outline-offset: 3px; }
.te-tickets-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .75rem; }
.te-ticket { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--te-site-border); border-radius: var(--te-site-radius); }
.te-ticket-main { display: grid; gap: .25rem; }
.te-ticket-desc { color: var(--te-site-muted); font-size: .9em; }
.te-ticket-price { font-weight: 800; white-space: nowrap; }
.te-ticket.is-sold-out { opacity: .6; }
.te-tickets-closed { padding: 1rem 1.25rem; border-radius: var(--te-site-radius); background: var(--te-site-surface); }
.te-lineup-group + .te-lineup-group { margin-top: 2rem; }
.te-lineup-day { margin: 0 0 1rem; }
.te-lineup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.te-lineup-item { display: grid; gap: .35rem; }
.te-lineup-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--te-site-radius); }
.te-lineup-bio { color: var(--te-site-muted); font-size: .9em; }
.te-faq-item { border-bottom: 1px solid var(--te-site-border); padding: 1rem 0; }
.te-faq-item summary { cursor: pointer; font-weight: 700; }
.te-faq-answer { margin-top: .75rem; color: var(--te-site-muted); }
.te-infos { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.te-posts-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.te-post-card-link { display: grid; gap: .75rem; color: inherit; text-decoration: none; }
.te-post-card-cover { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--te-site-radius); }
.te-post-card-body { display: grid; gap: .35rem; }
.te-post-card-cat { color: var(--te-site-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; }
.te-post-card-title { font-size: 1.15rem; line-height: 1.3; }
.te-post-card-excerpt { color: var(--te-site-muted); }
.te-pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.te-pagination a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--te-site-border); border-radius: 999px; color: inherit; text-decoration: none; }
.te-pagination a[aria-current="page"] { background: var(--te-site-primary); border-color: var(--te-site-primary); color: var(--te-site-on-primary); }
.te-embed iframe { display: block; width: 100%; border: 0; border-radius: var(--te-site-radius); }
.te-embed--video { position: relative; aspect-ratio: 16 / 9; }
.te-embed--video iframe { position: absolute; inset: 0; height: 100%; }
.te-form-frame, .te-newsletter-frame { display: block; width: 100%; min-height: 640px; border: 0; }
.te-newsletter-frame { min-height: 320px; }
.te-article { max-width: 760px; margin: 0 auto; padding: 3rem 1rem; }
.te-article-head { display: grid; gap: .75rem; margin-bottom: 2rem; }
.te-post-title { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.te-post-lead { margin: 0; font-size: 1.2rem; color: var(--te-site-muted); }
.te-post-meta { margin: 0; color: var(--te-site-muted); font-size: .9rem; }
.te-post-cover { margin: 0 0 2rem; }
.te-post-cover img { width: 100%; height: auto; border-radius: var(--te-site-radius); }
.te-post-body { line-height: 1.7; font-size: 1.075rem; }
.te-post-body img { max-width: 100%; height: auto; }
.te-related { margin-top: 3rem; }
.te-placeholder { padding: .75rem 1rem; border: 1px dashed #a5b4fc; border-radius: 8px; color: #4338ca; background: #eef2ff; font: 500 14px/1.4 system-ui, sans-serif; }
.te-placeholder--image { min-height: 200px; display: flex; align-items: center; justify-content: center; }
.te-consent { position: fixed; inset: auto 1rem 1rem 1rem; z-index: 9998; max-width: 560px; margin: 0 auto; padding: 1.25rem; border-radius: 16px; background: #111827; color: #f9fafb; box-shadow: 0 20px 50px rgba(0,0,0,.35); font: 15px/1.5 system-ui, sans-serif; }
.te-consent p { margin: 0 0 1rem; }
.te-consent a { color: inherit; }
.te-consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.te-consent button { min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid #f9fafb; background: transparent; color: inherit; font-weight: 700; cursor: pointer; }
.te-consent button[data-consent="accept"] { background: #f9fafb; color: #111827; }
.te-divider { max-width: 1200px; margin: 2rem auto; border: 0; border-top: 1px solid currentColor; opacity: .2; }
