/*
 * Les Barons du Son — raccords TrustEvent.
 * Habille ce que la préprod n'avait pas : blocs dynamiques (billetterie,
 * programmation), corps d'articles saisis dans le back-office (HTML sans classes)
 * et emplacements vides de l'éditeur.
 */

/* Les blocs dynamiques restent transparents pour les grilles du thème
   (sauf dans l'éditeur, où il faut pouvoir les sélectionner). */
html:not(.te-editing) #bdsEditorial [data-te-block],
html:not(.te-editing) #bdsFestival2027 [data-te-block] { display: contents; }

/* --- Corps d'article : éléments simples au style éditorial --------------- */
#bdsEditorial .ee-story-copy blockquote:not([class]) {
  position: relative; margin: 40px 0; padding: 33px 34px; border-radius: 22px;
  background: #31184b; color: #fff; font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35; font-weight: 900; letter-spacing: -.025em;
}
#bdsEditorial .ee-story-copy blockquote:not([class])::before {
  content: '“'; position: absolute; right: 16px; top: -21px; font-size: 105px;
  font-weight: 900; color: rgba(250, 173, 72, .27); line-height: 1;
}
#bdsEditorial .ee-story-copy blockquote:not([class]) p { margin: 0; font: inherit; color: inherit; }
#bdsEditorial .ee-story-copy figure:not([class]) { margin: 34px 0 42px; }
#bdsEditorial .ee-story-copy figure:not([class]) img,
#bdsEditorial .ee-story-copy > p > img {
  width: 100%; height: 370px; object-fit: cover; border-radius: 22px;
}
#bdsEditorial .ee-story-copy figure:not([class]) figcaption { font-size: 11px; color: #776985; margin-top: 10px; }
#bdsEditorial .ee-story-copy ul,
#bdsEditorial .ee-story-copy ol { margin: 0 0 1.4em; padding-left: 1.3em; line-height: 1.75; }
#bdsEditorial .ee-story-copy ul { list-style: disc; }
#bdsEditorial .ee-story-copy ol { list-style: decimal; }
#bdsEditorial .ee-story-copy a:not([class]) { color: #7C3AED; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 590px) {
  #bdsEditorial .ee-story-copy blockquote:not([class]) { font-size: 24px; padding: 27px 23px; margin: 30px 0; }
  #bdsEditorial .ee-story-copy figure:not([class]) img,
  #bdsEditorial .ee-story-copy > p > img { height: 245px; }
}

/* --- Lecteur intégré (Spotify, YouTube) --------------------------------- */
.te-embed { margin: 32px 0; border-radius: 22px; overflow: hidden; }
.te-embed iframe { display: block; width: 100%; border: 0; }

/* --- Billetterie -------------------------------------------------------- */
.te-tickets { color: #2E1065; }
.te-tickets .te-block-title { font-size: clamp(26px, 3vw, 38px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 20px; }
.te-tickets-list { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.te-ticket {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border: 1px solid #e7dff3; border-radius: 18px; background: #fff;
  box-shadow: 0 10px 30px -18px rgba(46, 16, 101, .35);
}
.te-ticket-main { display: grid; gap: 4px; }
.te-ticket-name { font-weight: 900; }
.te-ticket-desc { font-size: 14px; color: #6b5a80; }
.te-ticket-price { font-weight: 900; color: #7C3AED; white-space: nowrap; }
.te-ticket.is-sold-out { opacity: .55; }
.te-ticket.is-sold-out .te-ticket-price { color: #6b5a80; }
.te-tickets-closed { padding: 18px 22px; border-radius: 18px; background: #F5F0E8; font-weight: 700; }
.te-tickets .te-button {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  background: #F97316; color: #fff; font-weight: 900; text-decoration: none;
  box-shadow: 0 0 40px rgba(249, 115, 22, .35); transition: transform .2s;
}
.te-tickets .te-button:hover { transform: translateY(-2px); }

/* --- Programmation ------------------------------------------------------ */
.te-lineup { color: #2E1065; }
.te-lineup-group + .te-lineup-group { margin-top: 36px; }
.te-lineup-day {
  display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px;
  background: #7C3AED; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.te-lineup-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.te-lineup-item { display: grid; gap: 6px; }
.te-lineup-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.te-lineup-name { font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.te-lineup-bio { font-size: 14px; color: #6b5a80; }

/* --- Formulaires et inscription (blocs TrustEvent) ---------------------- */
.te-newsletter input[type="email"],
.te-form input, .te-form select, .te-form textarea {
  border: 1px solid #d9cdea; border-radius: 14px; padding: 12px 14px; font: inherit;
}

/* --- Éditeur : emplacements à remplir ----------------------------------- */
.te-placeholder {
  display: block; padding: 18px; border: 2px dashed #c4b5fd; border-radius: 18px;
  background: rgba(124, 58, 237, .05); color: #6d28d9; font-weight: 700; text-align: center;
}
.te-placeholder--image { min-height: 220px; display: grid; place-items: center; }

/* --- Pied de page : page légale courante (la préprod le posait en style en ligne) --- */
#site-footer a[aria-current="page"][href*="mentions-legales"],
#site-footer a[aria-current="page"][href*="politique-de-confidentialite"],
#site-footer a[aria-current="page"][href*="gestion-des-cookies"] { color: #FA812E; font-weight: 700; }

/* --- Groupes de boutons dont tous les liens sont masqués (billetterie, exposants) --- */
.bds-cta-group:not(:has(a)) { display: none; }

/* Bloc « Newsletter » (accueil 2027) : champ piège hors écran, case de consentement, envoi. */
.b27-newsletter-hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.b27-newsletter{position:relative}
.b27-newsletter-consent{display:flex;gap:10px;align-items:flex-start;margin-top:14px;font-size:13px;line-height:1.5;color:var(--muted-night,#d9cdee);text-align:left}
.b27-newsletter-consent input{width:18px;height:18px;margin-top:1px;flex:none;accent-color:var(--red,#e5243b)}
.b27-newsletter.is-sending .b27-button{opacity:.7;cursor:progress}

/* --- Événements de l'en-tête (Agenda), du menu mobile et du pied : DA « Festival 2027 » ---
   Cartes marquées .bds-event (--festival / --marche) ; panneaux du menu .bds-agenda-panel.
   Les !important l'emportent sur les utilitaires Tailwind de la préprod. */
#site-header, #site-footer {
  --bds27-ink: #270b30; --bds27-paper: #feffeb; --bds27-night: #2a0238; --bds27-red: #da0045;
  --bds27-kraft: #c9b090; --bds27-kraft-ink: #3a3028; --bds27-kraft-violet: #8d5795;
}
.bds-agenda-panel {
  border-radius: 0 !important; background: var(--bds27-paper) !important;
  border: 2px solid var(--bds27-ink) !important; box-shadow: 6px 6px 0 var(--bds27-ink) !important;
  --tw-ring-shadow: 0 0 #0000 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.bds-agenda-panel > div[aria-hidden="true"] { display: none !important; }
.bds-agenda-panel > div { padding: 12px !important; }

.bds-event {
  border-radius: 0 !important; isolation: isolate;
  background: var(--bds27-night) !important; color: var(--bds27-paper) !important;
  box-shadow: 4px 4px 0 var(--bds27-red) !important; --tw-ring-shadow: 0 0 #0000 !important;
  margin: 0 6px 6px 0; transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s cubic-bezier(.22,1,.36,1) !important;
}
.bds-event:hover { transform: translate(-2px, -2px) !important; box-shadow: 6px 6px 0 var(--bds27-red) !important; }
.bds-event:focus-visible { outline: 2px solid var(--bds27-red) !important; outline-offset: 3px; }
/* Décors de l'ancienne DA (halos flous, pictos flottants, voile au survol) */
.bds-event .blur-3xl, .bds-event .floaty, .bds-event .bg-gradient-to-r { display: none !important; }
.bds-event > div[style*="background-image"] { opacity: .12 !important; mix-blend-mode: normal !important; }
/* Festival : spirale de la DA 2027 en fond (remplace l'ancienne photo) */
.bds-event--festival > div[style*="background-image"] { display: none !important; }
.bds-event--festival::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 50%; right: -8%; width: 62%; aspect-ratio: 1439 / 2145; translate: 0 -50%;
  background: url("/files/sites/1/2026/11/01b727281b305061889f.svg") no-repeat center / contain;
  opacity: .5; rotate: -12deg;
}
/* Textes */
.bds-event, .bds-event span, .bds-event .text-white, .bds-event .text-bds-cream { color: var(--bds27-paper) !important; }
.bds-event [class*="text-white/"], .bds-event [class*="text-bds-cream/"] { color: #ddd0e2 !important; }
.bds-event:hover .font-black { color: var(--bds27-paper) !important; text-decoration: underline; text-decoration-color: var(--bds27-red); text-underline-offset: 3px; }
/* Pictogramme et pastille (« 2 jours », « Gratuit ») */
.bds-event > span:first-of-type { border-radius: 0 !important; background: var(--bds27-red) !important; color: var(--bds27-paper) !important; --tw-ring-shadow: 0 0 #0000 !important; }
.bds-event > span:first-of-type svg { color: var(--bds27-paper) !important; }
.bds-event .rounded-full { border-radius: 0 !important; background: var(--bds27-red) !important; color: var(--bds27-paper) !important; --tw-ring-shadow: 0 0 #0000 !important; letter-spacing: .08em; text-transform: uppercase; }

/* Grand Marché : papier kraft, encre brune, accent violet (comme sa section) */
.bds-event--marche { background: var(--bds27-kraft) !important; box-shadow: 4px 4px 0 var(--bds27-kraft-violet) !important; }
.bds-event--marche:hover { box-shadow: 6px 6px 0 var(--bds27-kraft-violet) !important; }
.bds-event--marche, .bds-event--marche span, .bds-event--marche .text-white { color: var(--bds27-kraft-ink) !important; }
.bds-event--marche [class*="text-white/"] { color: #4a3e33 !important; }
.bds-event--marche:hover .font-black { color: var(--bds27-kraft-ink) !important; text-decoration-color: var(--bds27-kraft-violet); }
.bds-event--marche > span:first-of-type, .bds-event--marche .rounded-full { background: var(--bds27-kraft-ink) !important; color: #f3e7d6 !important; }
.bds-event--marche > span:first-of-type svg { color: #f3e7d6 !important; }
.bds-event--marche > div[style*="background-image"] { opacity: .18 !important; }
.bds-event > span:last-of-type svg { color: #ff2f6d !important; }
.bds-event--marche > span:last-of-type svg { color: var(--bds27-kraft-violet) !important; }
