/*
Theme Name: Bleuclair
Theme URI: https://bleuclair.be
Author: Bleuclair
Description: Thème sur mesure pour Bleuclair, la radio qui nous relie (92.9 FM - DAB+). Lecteur persistant, grille horaire avec récurrences (1 semaine sur 2, sur 4…), titres diffusés, podcasts, dédicaces vocales, newsletter, concours et équipe.
Version: 1.5.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: bleuclair
*/

/* ========== Charte ========== */
:root {
  --bc-nuit: #0b3951;
  --bc-clair: #43c2f3;
  --bc-pale: #eaf1f7;
  --bc-blanc: #ffffff;
  --bc-texte: #0b2433;
  --bc-gris: #5b7384;
  --bc-ligne: #d3e1ec;
  --bc-radius: 18px;
  --bc-radius-sm: 10px;
  --bc-ombre: 0 6px 24px rgba(11, 57, 81, .10);
  --bc-max: 1200px;
  --bc-player-h: 76px;
  --bc-font: "League Spartan", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--bc-font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--bc-texte);
  background: var(--bc-blanc);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bc-nuit); text-decoration-color: var(--bc-clair); text-underline-offset: 3px; }
a:hover { color: #1785b3; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; font-weight: 800; color: var(--bc-nuit); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--bc-clair); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 14px; border-radius: 8px; }

.bc-wrap { max-width: var(--bc-max); margin: 0 auto; padding: 0 20px; }
.bc-section { padding: 56px 0; }
.bc-section--pale { background: var(--bc-pale); }
.bc-section--nuit { background: var(--bc-nuit); color: #fff; }
.bc-section--nuit h2, .bc-section--nuit h3 { color: #fff; }
.bc-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.bc-section__head h2 { margin: 0; }
.bc-kicker { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--bc-clair); margin-bottom: 6px; }
.bc-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.bc-more::after { content: " →"; }

/* Boutons */
.bc-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  background: var(--bc-clair); color: var(--bc-nuit); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.bc-btn:hover { transform: translateY(-1px); background: #6fd2f7; color: var(--bc-nuit); }
.bc-btn--nuit { background: var(--bc-nuit); color: #fff; }
.bc-btn--nuit:hover { background: #134f6e; color: #fff; }
.bc-btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.bc-btn--ghost:hover { background: rgba(67,194,243,.15); color: inherit; }
.bc-btn--sm { padding: 9px 14px; font-size: .9rem; }
.bc-btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }

/* ========== En-tête ========== */
.bc-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bc-ligne); }
.admin-bar .bc-header { top: 32px; }
.bc-header__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.bc-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.bc-logo img, .bc-logo svg { height: 52px; width: auto; }
.bc-logo .custom-logo { height: 52px; width: auto; }
.bc-nav { margin-left: auto; }
.bc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.bc-nav li { position: relative; }
.bc-nav a { display: block; white-space: nowrap; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--bc-nuit); }
.bc-nav a:hover, .bc-nav .current-menu-item > a, .bc-nav .current-menu-ancestor > a { background: var(--bc-pale); }
.bc-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 12px; box-shadow: var(--bc-ombre); padding: 8px; flex-direction: column; align-items: stretch; }
.bc-nav li:hover > .sub-menu, .bc-nav li:focus-within > .sub-menu { display: flex; }
.bc-header__listen { flex-shrink: 0; }
.bc-burger { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--bc-nuit); }
.bc-burger svg { width: 28px; height: 28px; fill: currentColor; }

@media (max-width: 1180px) {
  .bc-burger { display: block; }
  .bc-header__listen { display: none; }
  .bc-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--bc-ligne); padding: 10px 20px 20px; max-height: calc(100vh - 76px - var(--bc-player-h)); overflow: auto; }
  .bc-nav.is-open { display: block; }
  .bc-nav ul { flex-direction: column; align-items: stretch; }
  .bc-nav .sub-menu { display: flex; position: static; box-shadow: none; padding: 0 0 0 14px; }
}
@media (max-width: 782px) { .admin-bar .bc-header { top: 46px; } }

/* ========== Hero / À l'antenne ========== */
.bc-hero { background: var(--bc-nuit); color: #fff; position: relative; overflow: hidden; }
.bc-hero__pattern { position: absolute; inset: -20px; font-weight: 800; font-size: 46px; line-height: 1.05; color: transparent; -webkit-text-stroke: 1px rgba(67,194,243,.16); word-spacing: 10px; pointer-events: none; user-select: none; overflow: hidden; }
.bc-hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 56px 20px; }
.bc-hero h1 { color: #fff; margin-bottom: .25em; }
.bc-hero__slogan { font-size: 1.35rem; color: var(--bc-clair); font-weight: 700; margin-bottom: 1.4em; }
.bc-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bc-hero__freq { margin-top: 22px; font-weight: 700; letter-spacing: .06em; opacity: .85; font-size: .95rem; }
.bc-onair { background: #fff; color: var(--bc-texte); border-radius: var(--bc-radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.bc-onair__img { aspect-ratio: 16/10; background: var(--bc-clair) center/cover no-repeat; position: relative; }
.bc-onair__live { position: absolute; top: 14px; left: 14px; background: #e5383b; color: #fff; font-weight: 800; font-size: .8rem; padding: 6px 10px; border-radius: 999px; letter-spacing: .08em; display: flex; align-items: center; gap: 6px; }
.bc-onair__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: bc-pulse 1.4s infinite; }
@keyframes bc-pulse { 50% { opacity: .25; } }
.bc-onair__body { padding: 20px 22px 22px; }
.bc-onair__time { font-weight: 700; color: var(--bc-gris); font-size: .95rem; }
.bc-onair__title { font-size: 1.6rem; margin: 4px 0 6px; }
.bc-onair__title a { text-decoration: none; color: var(--bc-nuit); }
.bc-onair__song { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bc-ligne); }
.bc-onair__song img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--bc-pale); }
.bc-onair__song small { display: block; color: var(--bc-gris); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.bc-onair__next { margin-top: 12px; font-size: .95rem; color: var(--bc-gris); }
.bc-onair__next strong { color: var(--bc-nuit); }
@media (max-width: 860px) { .bc-hero__inner { grid-template-columns: 1fr; padding: 40px 20px; } }

/* ========== Cartes ========== */
.bc-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bc-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Dons */
.bc-don { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 24px 0; align-items: start; }
.bc-don__card { background: var(--bc-pale); border-radius: var(--bc-radius); padding: 24px; color: var(--bc-nuit); }
.bc-don__card h3 { margin: 4px 0 8px; }
.bc-don__card p { margin: 0 0 14px; }
.bc-don__amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bc-choice-btn { font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--bc-nuit); background: #fff; color: var(--bc-nuit); cursor: pointer; min-height: 44px; }
.bc-choice-btn.is-active { background: var(--bc-nuit); color: #fff; }
.bc-don__qr { background: #fff; border-radius: 12px; padding: 10px; width: min(240px, 100%); margin: 0 auto 14px; }
.bc-don__qr svg { display: block; width: 100%; height: auto; }
.bc-don__badge { display: inline-block; background: var(--bc-nuit); color: #fff; border-radius: 999px; padding: 6px 16px; font-size: 1.1rem; }
.bc-don__badge strong { color: var(--bc-ciel, #43c2f3); }
.bc-don__info { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .95rem; }
.bc-don__info dt { font-weight: 700; }
.bc-don__info dd { margin: 0; word-break: break-word; }
.bc-don__copy { font: inherit; font-size: .8rem; font-weight: 700; padding: 2px 10px; margin-left: 6px; border-radius: 999px; border: 1px solid var(--bc-nuit); background: #fff; color: var(--bc-nuit); cursor: pointer; }
.bc-don__other { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.bc-don__other input { width: 80px; min-height: 44px; padding: 6px 10px; border: 2px solid var(--bc-nuit); border-radius: 999px; font: inherit; }
.bc-don__steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.bc-don__note { font-size: .8rem; opacity: .75; margin: 12px 0 0 !important; }
.bc-support { background: var(--bc-nuit); color: #fff; border-radius: var(--bc-radius); padding: 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.bc-support h2 { color: #fff; margin: 0 0 6px; }
.bc-support p { margin: 0; max-width: 620px; opacity: .9; }

/* Actualités + Facebook (accueil) */
.bc-news-fb { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.bc-news-fb > .bc-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 960px) { .bc-news-fb { grid-template-columns: 1fr; } .bc-news-fb__side { max-width: 500px; width: 100%; margin: 0 auto; } }
.bc-fb { background: var(--bc-pale); border-radius: var(--bc-radius); padding: 16px; text-align: center; }
.bc-fb__ph { display: grid; justify-items: center; gap: 12px; padding: 18px 8px; color: var(--bc-nuit); }
.bc-fb__ph p { margin: 0; font-size: .92rem; line-height: 1.5; }
.bc-fb__icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: #1877f2; color: #fff; align-items: center; justify-content: center; }
.bc-fb__icon svg { width: 28px; height: 28px; fill: currentColor; }
.bc-fb__btn { width: 100%; max-width: 280px; justify-content: center; gap: 8px; background: #1877f2; color: #fff; }
.bc-fb__btn svg { width: 18px; height: 18px; fill: currentColor; }
.bc-fb__btn--ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.bc-card { background: #fff; border-radius: var(--bc-radius); overflow: hidden; box-shadow: var(--bc-ombre); display: flex; flex-direction: column; transition: transform .15s ease; }
.bc-card:hover { transform: translateY(-3px); }
.bc-card__img { aspect-ratio: 16/10; background: var(--bc-pale) center/cover no-repeat; display: block; overflow: hidden; min-height: 0; }
.bc-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bc-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bc-card__meta { font-size: .85rem; color: var(--bc-gris); font-weight: 600; }
.bc-card__title { font-size: 1.2rem; margin: 0; }
.bc-card__title a { text-decoration: none; color: var(--bc-nuit); }
.bc-card__title a::after { content: ""; position: absolute; inset: 0; }
.bc-card { position: relative; }
.bc-card__excerpt { font-size: .98rem; color: #33505f; margin: 0; }
.bc-card__foot { margin-top: auto; padding-top: 10px; display: flex; gap: 10px; align-items: center; position: relative; z-index: 2; }

/* Visuel d'émission avec bandeau Bleuclair (règle de la charte) */
.bc-visual { position: relative; aspect-ratio: 1/1; background: var(--bc-nuit) center/cover no-repeat; border-radius: var(--bc-radius); overflow: hidden; display: block; text-decoration: none; }
.bc-visual img { width: 100%; height: 100%; object-fit: cover; }
/* Bandeau de la charte, proportionnel au carré (mesuré sur le modèle 1080×1080) :
   texte à 4,5 % du bord gauche, logo rond de 22 % à 4,7 % du bord droit et 5,9 % du bas. */
.bc-visual { container-type: inline-size; }
.bc-visual__band { position: absolute; left: 4.5cqw; right: 4.7cqw; bottom: 5.9cqw; display: flex; align-items: center; justify-content: space-between; gap: 2cqw; pointer-events: none; }
.bc-visual__txt { display: flex; flex-direction: column; font-family: var(--bc-font); font-weight: 800; font-size: 5.35cqw; line-height: 1.1; letter-spacing: -.01em; color: #fff; white-space: nowrap;
  /* Contour bleu nuit à l'extérieur des lettres (les lettres restent pleines, comme sur la charte). */
  --o: .3cqw; --od: .22cqw;
  text-shadow: var(--o) 0 0 var(--bc-nuit), calc(var(--o) * -1) 0 0 var(--bc-nuit), 0 var(--o) 0 var(--bc-nuit), 0 calc(var(--o) * -1) 0 var(--bc-nuit),
    var(--od) var(--od) 0 var(--bc-nuit), calc(var(--od) * -1) var(--od) 0 var(--bc-nuit), var(--od) calc(var(--od) * -1) 0 var(--bc-nuit), calc(var(--od) * -1) calc(var(--od) * -1) 0 var(--bc-nuit),
    calc(var(--o) * .6) calc(var(--o) * .85) 0 var(--bc-nuit), calc(var(--o) * -.6) calc(var(--o) * .85) 0 var(--bc-nuit), calc(var(--o) * .6) calc(var(--o) * -.85) 0 var(--bc-nuit), calc(var(--o) * -.6) calc(var(--o) * -.85) 0 var(--bc-nuit); }
.bc-visual__txt { min-width: 0; overflow: hidden; padding: .5cqw; margin: -.5cqw; } /* Le texte ne peut jamais repousser le logo hors du carré. */
.bc-visual__txt > span + span { font-size: 1.08em; } /* L'adresse est un peu plus grande, pour être aussi large que la ligne des fréquences. */
.bc-visual img.bc-visual__logo { width: 21.9cqw; height: 21.9cqw; flex-shrink: 0; margin-left: auto; object-fit: contain; }
.bc-visual__name { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px 20px 70px; text-align: center; color: #fff; font-weight: 800; font-size: 1.7rem; line-height: 1.05; }
.bc-show-card h3 { margin: 12px 0 2px; font-size: 1.15rem; }
.bc-show-card h3 a { text-decoration: none; }
.bc-show-card p { margin: 0; color: var(--bc-gris); font-size: .92rem; font-weight: 600; }

/* ========== Grille horaire ========== */
.bc-grille__weeknav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.bc-grille__weeknav strong { font-size: 1.1rem; }
.bc-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: thin; }
.bc-tab { flex: 1 0 auto; min-width: 86px; font: inherit; font-weight: 700; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--bc-ligne); background: #fff; color: var(--bc-nuit); cursor: pointer; text-align: center; line-height: 1.1; }
.bc-tab small { display: block; font-weight: 500; font-size: .8rem; color: var(--bc-gris); }
.bc-tab[aria-selected="true"] { background: var(--bc-nuit); border-color: var(--bc-nuit); color: #fff; }
.bc-tab[aria-selected="true"] small { color: var(--bc-clair); }
.bc-tab.is-today:not([aria-selected="true"]) { border-color: var(--bc-clair); }
.bc-day[hidden] { display: none; }
.bc-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bc-slot { display: grid; grid-template-columns: 110px 76px 1fr auto; gap: 18px; align-items: center; background: #fff; border-radius: 14px; padding: 12px 16px 12px 12px; box-shadow: 0 2px 10px rgba(11,57,81,.07); border-left: 6px solid var(--bc-pale); position: relative; }
.bc-slot.is-now { border-left-color: #e5383b; background: #fff8f8; }
.bc-slot.is-past { opacity: .6; }
.bc-slot__time { font-weight: 800; font-size: 1.15rem; color: var(--bc-nuit); line-height: 1.1; }
.bc-slot__time small { display: block; font-weight: 600; color: var(--bc-gris); font-size: .85rem; }
.bc-slot__img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--bc-clair); }
.bc-slot__title { font-size: 1.15rem; margin: 0 0 2px; }
.bc-slot__title a { text-decoration: none; }
.bc-slot__title a::after { content: ""; position: absolute; inset: 0; }
.bc-slot__desc { margin: 0; color: var(--bc-gris); font-size: .95rem; }
.bc-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bc-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--bc-pale); color: var(--bc-nuit); white-space: nowrap; }
.bc-badge--live { background: #e5383b; color: #fff; }
.bc-badge--freq { background: #fff4d6; color: #7a5600; }
.bc-badge--rediff { background: #e9e4ff; color: #3c2a8f; }
.bc-badge--special { background: var(--bc-clair); color: var(--bc-nuit); }
.bc-slot:has(.bc-badge--special) { border-left-color: var(--bc-clair); }
.bc-empty { padding: 30px; text-align: center; color: var(--bc-gris); background: var(--bc-pale); border-radius: var(--bc-radius); }
@media (max-width: 640px) {
  .bc-slot { grid-template-columns: 64px 1fr; gap: 6px 14px; }
  .bc-slot__img { grid-row: span 2; width: 64px; height: 64px; order: -1; }
  .bc-slot__time { font-size: 1rem; }
  .bc-slot__time small { display: inline; margin-left: 4px; }
  .bc-badges { grid-column: 2; justify-content: flex-start; }
}

/* ========== Titres diffusés ========== */
.bc-playlist { list-style: none; margin: 0; padding: 0; }
.bc-playlist li { display: grid; grid-template-columns: 64px 52px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bc-ligne); }
.bc-playlist time { font-weight: 800; color: var(--bc-nuit); }
.bc-playlist img, .bc-playlist .bc-cover-ph { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--bc-pale); }
.bc-playlist strong { display: block; line-height: 1.2; }
.bc-playlist span { color: var(--bc-gris); font-size: .95rem; }
.bc-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 24px; background: var(--bc-pale); padding: 16px; border-radius: var(--bc-radius); }
.bc-filter label { display: flex; flex-direction: column; font-weight: 700; font-size: .85rem; gap: 4px; }

/* ========== Formulaires ========== */
.bc-form { display: grid; gap: 16px; max-width: 720px; }
.bc-form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .bc-form__row { grid-template-columns: 1fr; } }
.bc-field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--bc-nuit); }
.bc-field small { display: block; color: var(--bc-gris); margin-top: 4px; font-size: .85rem; }
.bc-form input[type=text], .bc-form input[type=email], .bc-form input[type=tel], .bc-form input[type=date], .bc-form select, .bc-form textarea, .bc-filter input, .bc-filter select, .bc-input {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 2px solid var(--bc-ligne); border-radius: 12px; background: #fff; color: var(--bc-texte);
}
.bc-form textarea { min-height: 130px; resize: vertical; }
.bc-form input:focus, .bc-form textarea:focus, .bc-form select:focus, .bc-input:focus { border-color: var(--bc-clair); outline: none; }
.bc-hp { position: absolute !important; left: -9999px !important; }
.bc-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.bc-choices legend { font-weight: 700; color: var(--bc-nuit); margin-bottom: 8px; padding: 0; }
.bc-choices .bc-choice { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border: 2px solid var(--bc-ligne); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; color: var(--bc-texte); transition: border-color .15s, background .15s; }
.bc-choices .bc-choice:hover { border-color: var(--bc-clair); }
.bc-choices .bc-choice input { width: 20px; height: 20px; accent-color: var(--bc-nuit); flex-shrink: 0; margin: 0; }
.bc-choices .bc-choice:has(input:checked) { border-color: var(--bc-nuit); background: var(--bc-pale); }
.bc-check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.bc-check input { margin-top: 5px; width: 18px; height: 18px; }
.bc-audio-box { border: 2px dashed var(--bc-clair); border-radius: var(--bc-radius); padding: 18px; background: #f6fbfe; display: grid; gap: 12px; }
.bc-audio-tip { margin: 10px 0 0; padding: 8px 12px; border-left: 4px solid var(--bc-clair); background: #fff; font-size: .9rem; line-height: 1.45; color: var(--bc-nuit); }
.bc-audio-box__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bc-details > summary { list-style: none; display: inline-flex; }
.bc-details > summary::-webkit-details-marker { display: none; }
.bc-details[open] > summary { opacity: .55; }
.bc-btn.is-recording { background: #e5383b; color: #fff; }
.bc-btn.is-recording:hover { background: #c92d30; color: #fff; }
.bc-form__intro { margin: 0; padding: 12px 16px; background: var(--bc-pale); border-radius: 12px; font-weight: 600; color: var(--bc-nuit); }
.bc-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5383b; display: inline-block; animation: bc-pulse 1s infinite; }
.bc-notice { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.bc-notice--ok { background: #f4f7fa; color: var(--bc-nuit); border-left: 5px solid var(--bc-clair); }
.bc-notice--err { background: #fde8e8; color: #7f1d1d; }
.bc-newsletter { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.bc-newsletter input[type=email] { flex: 1 1 240px; }

/* ========== Contenu ========== */
.bc-page-head { background: var(--bc-pale); padding: 44px 0 36px; position: relative; overflow: hidden; }
.bc-page-head h1 { margin: 0; }
.bc-page-head p { margin: 8px 0 0; color: var(--bc-gris); font-size: 1.1rem; }
.bc-page-head--show { background: var(--bc-nuit); color: #fff; }
.bc-page-head--show h1 { color: #fff; }
.bc-page-head--show p { color: var(--bc-clair); }
.bc-page-head .bc-hero__pattern { -webkit-text-stroke-color: rgba(67,194,243,.25); }
.bc-content { padding: 44px 0 64px; }
.bc-prose { max-width: 760px; }
.bc-prose img { border-radius: var(--bc-radius-sm); }
.bc-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--bc-clair); font-size: 1.15rem; color: var(--bc-nuit); }
.bc-prose a { font-weight: 600; }
.bc-prose .wp-block-image, .bc-prose figure { margin: 1.5em 0; }
.bc-prose figcaption { font-size: .85rem; color: var(--bc-gris); }
.alignwide { max-width: 1000px; }
/* Tableaux et encadrés dans les pages (tarifs…) */
.bc-prose table, .wp-block-table table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .98rem; }
.bc-prose th, .bc-prose td { padding: 10px 12px; border-bottom: 1px solid var(--bc-ligne); text-align: left; vertical-align: top; }
.bc-prose thead th { background: var(--bc-nuit); color: #fff; font-weight: 700; }
.bc-prose tbody tr:nth-child(even) td { background: #f7fafc; }
.bc-prose .wp-block-table { overflow-x: auto; margin: 0; }
.bc-prose .wp-block-columns { display: flex; gap: 20px; flex-wrap: wrap; margin: 1.5em 0; }
.bc-prose .wp-block-column { flex: 1 1 220px; }
.bc-prose .wp-block-group.is-style-bc-carte, .bc-carte { background: var(--bc-pale); border-radius: var(--bc-radius); padding: 22px; height: 100%; }
.bc-carte--nuit { background: var(--bc-nuit) !important; color: #fff; }
.bc-carte--nuit h3, .bc-carte--nuit h4, .bc-carte--nuit strong { color: #fff; }
.bc-carte--clair { background: var(--bc-clair) !important; color: var(--bc-nuit); }
.bc-prix { font-size: 1.9rem; font-weight: 800; color: var(--bc-nuit); line-height: 1.1; margin: .2em 0; }
.bc-carte--nuit .bc-prix { color: var(--bc-clair); }
.bc-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 1.5em 0; }
.bc-chiffres div { background: var(--bc-nuit); color: #fff; border-radius: 14px; padding: 16px; font-size: .92rem; line-height: 1.3; }
.bc-chiffres strong { display: block; font-size: 1.8rem; color: var(--bc-clair); line-height: 1.1; margin-bottom: 4px; }
.bc-prose .wp-block-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 1em 0; }
.bc-prose .wp-block-button__link { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--bc-clair); color: var(--bc-nuit); font-weight: 700; text-decoration: none; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
.bc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
@media (max-width: 960px) { .bc-layout { grid-template-columns: 1fr; } }
.bc-aside > * + * { margin-top: 28px; }
.bc-box { background: var(--bc-pale); border-radius: var(--bc-radius); padding: 22px; }
.bc-box h3 { font-size: 1.1rem; }
.bc-box ul { margin: 0; padding-left: 18px; }
.bc-show-hours { list-style: none; padding: 0; margin: 0; }
.bc-show-hours li { padding: 8px 0; border-bottom: 1px solid var(--bc-ligne); font-weight: 600; }
.bc-show-hours li:last-child { border: 0; }
.bc-pagination { margin-top: 36px; display: flex; gap: 6px; flex-wrap: wrap; }
.bc-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; background: var(--bc-pale); text-decoration: none; font-weight: 700; }
.bc-pagination .current { background: var(--bc-nuit); color: #fff; }
.bc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.bc-chip { padding: 8px 14px; border-radius: 999px; background: var(--bc-pale); text-decoration: none; font-weight: 700; font-size: .9rem; }
.bc-chip.is-active { background: var(--bc-nuit); color: #fff; }

/* Podcast */
.bc-episode { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; padding: 16px; background: #fff; border-radius: var(--bc-radius); box-shadow: var(--bc-ombre); position: relative; }
.bc-episode + .bc-episode { margin-top: 14px; }
.bc-episode__img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; background: var(--bc-clair); }
.bc-episode h3 { margin: 0 0 4px; font-size: 1.15rem; }
.bc-episode h3 a { text-decoration: none; }
.bc-episode p { margin: 0; color: var(--bc-gris); font-size: .95rem; }
.bc-share-btn { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--bc-ligne); background: #fff; color: var(--bc-nuit); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; position: relative; z-index: 2; }
.bc-share-btn svg { width: 15px; height: 15px; fill: currentColor; }
.bc-share-btn:hover { background: var(--bc-nuit); color: #fff; border-color: var(--bc-nuit); }
.bc-share-pop { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; position: relative; z-index: 3; }
.bc-share-pop a, .bc-share-pop button { background: var(--bc-nuit); color: #fff; border: 0; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.bc-share-pop a:hover, .bc-share-pop button:hover { background: var(--bc-clair); color: var(--bc-nuit); }
.bc-episode.is-shared { outline: 3px solid var(--bc-clair); margin-bottom: 24px; }
.bc-play-btn { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--bc-clair); color: var(--bc-nuit); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; position: relative; z-index: 2; }
.bc-play-btn svg { width: 22px; height: 22px; fill: currentColor; }
.bc-play-btn:hover { background: var(--bc-nuit); color: #fff; }
.bc-play-btn.is-playing { background: var(--bc-nuit); color: #fff; }
@media (max-width: 600px) { .bc-episode { grid-template-columns: 72px 1fr auto; gap: 12px; } .bc-episode__img { width: 72px; height: 72px; } }

/* Membres */
.bc-member { text-align: center; }
.bc-member__img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; background: var(--bc-pale); border: 5px solid var(--bc-clair); }
.bc-member h3 { margin: 0; font-size: 1.15rem; }
.bc-member h3 a { text-decoration: none; }
.bc-member p { margin: 2px 0 0; color: var(--bc-gris); font-size: .92rem; font-weight: 600; }

/* Concours */
.bc-contest-state { display: inline-block; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: #e3f7ea; color: #14532d; }
.bc-contest-state.is-closed { background: #eee; color: #555; }

/* CTA dédicaces / newsletter */
.bc-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bc-cta > div { border-radius: var(--bc-radius); padding: 32px; }
.bc-cta__ded { background: var(--bc-clair); color: var(--bc-nuit); }
.bc-cta__news { background: var(--bc-nuit); color: #fff; }
.bc-cta__news h2 { color: #fff; }
@media (max-width: 800px) { .bc-cta { grid-template-columns: 1fr; } }

/* ========== Pied de page ========== */
.bc-footer { background: var(--bc-nuit); color: #cfe3ef; padding: 56px 0 30px; font-size: .98rem; }
.bc-footer a { color: #fff; }
.bc-footer h3 { color: #fff; font-size: 1.05rem; }
.bc-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.bc-footer ul { list-style: none; margin: 0; padding: 0; }
.bc-footer li { margin-bottom: 6px; }
.bc-footer__brand svg, .bc-footer__brand img { height: 90px; width: auto; margin-bottom: 14px; }
.bc-footer__band { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
/* Sponsors (bandeau au-dessus du pied de page). */
.bc-sponsors { background: #fff; border-top: 1px solid var(--bc-ligne); padding: 28px 0; }
.bc-sponsors__title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bc-gris); text-align: center; margin: 0 0 16px; }
.bc-sponsors__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 34px; }
.bc-sponsors__item { display: flex; align-items: center; justify-content: center; height: 70px; max-width: 180px; }
.bc-sponsors__item img { max-height: 70px; max-width: 180px; width: auto; height: auto; object-fit: contain; filter: saturate(.9); transition: transform .15s, filter .15s; }
a.bc-sponsors__item:hover img { transform: scale(1.05); filter: none; }
.bc-sponsors__free { flex-direction: column; width: 170px; border: 2px dashed var(--bc-clair); border-radius: 12px; color: var(--bc-nuit); font-weight: 800; text-decoration: none; font-size: .95rem; }
.bc-sponsors__free small { font-weight: 600; color: var(--bc-gris); font-size: .78rem; }
.bc-sponsors__free:hover { background: var(--bc-pale); }
.bc-social { display: flex; gap: 10px; margin-top: 12px; }
.bc-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.bc-social a:hover { background: var(--bc-clair); }
.bc-social svg { width: 20px; height: 20px; fill: #fff; }
@media (max-width: 860px) { .bc-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .bc-footer__grid { grid-template-columns: 1fr; } }

/* ========== Lecteur persistant ========== */
.bc-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; height: var(--bc-player-h); background: var(--bc-nuit); color: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.2); }
.bc-player__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.bc-player__toggle { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--bc-clair); color: var(--bc-nuit); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: transform .15s; }
.bc-player__toggle:hover { transform: scale(1.06); }
.bc-player__toggle svg { width: 24px; height: 24px; fill: currentColor; }
.bc-player__toggle .bc-i-pause, .bc-player.is-playing .bc-player__toggle .bc-i-play { display: none; }
.bc-player.is-playing .bc-player__toggle .bc-i-pause { display: block; }
.bc-player.is-loading .bc-player__toggle { animation: bc-pulse 1s infinite; }
.bc-player__cover { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--bc-clair); flex-shrink: 0; }
.bc-player__meta { min-width: 0; flex: 1; line-height: 1.2; }
.bc-player__label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bc-clair); display: flex; gap: 8px; align-items: center; }
.bc-player__label .bc-dot { width: 7px; height: 7px; border-radius: 50%; background: #e5383b; display: inline-block; }
.bc-player__title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-player__sub { font-size: .88rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-player__side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bc-player__btn { background: rgba(255,255,255,.1); border: 0; color: #fff; height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.bc-player__btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.bc-player__btn svg { width: 18px; height: 18px; fill: currentColor; }
.bc-player__vol { width: 90px; accent-color: var(--bc-clair); }
.bc-player__progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,.12); display: none; cursor: pointer; }
.bc-player__progress span { display: block; height: 100%; width: 0; background: var(--bc-clair); }
.bc-player.is-ondemand .bc-player__progress { display: block; }
/* Podcasts : barre à faire glisser (zone de prise plus haute que la barre), poignée, boutons. */
.bc-player__progress { touch-action: none; transition: height .12s; }
.bc-player__progress::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; bottom: -8px; }
.bc-player__progress span { position: relative; }
.bc-player__progress span::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--bc-clair); opacity: 0; transition: opacity .12s; }
.bc-player__progress:hover, .bc-player__progress.is-seeking, .bc-player__progress:focus-visible { height: 8px; }
.bc-player__progress:hover span::after, .bc-player__progress.is-seeking span::after, .bc-player__progress:focus-visible span::after { opacity: 1; }
.bc-player__progress:focus-visible { outline: none; }
.bc-player .bc-od { display: none; }
.bc-player.is-ondemand .bc-od { display: inline-flex; }
.bc-player [data-bc-speed] { min-width: 52px; justify-content: center; font-variant-numeric: tabular-nums; }
.bc-player__history { position: absolute; right: 16px; bottom: calc(100% + 10px); width: min(380px, calc(100vw - 32px)); background: #fff; color: var(--bc-texte); border-radius: var(--bc-radius); box-shadow: 0 20px 50px rgba(0,0,0,.3); padding: 18px; max-height: 60vh; overflow: auto; }
.bc-player__history[hidden] { display: none; }
.bc-player__history h3 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.bc-player__history .bc-playlist li { grid-template-columns: 50px 44px 1fr; gap: 10px; padding: 7px 0; }
.bc-player__history .bc-playlist img, .bc-player__history .bc-cover-ph { width: 44px; height: 44px; }
/* Lecteur sur smartphone : gros bouton au pouce, zones tactiles ≥ 48 px, encoche iPhone respectée */
.bc-player { padding-bottom: env(safe-area-inset-bottom, 0); height: calc(var(--bc-player-h) + env(safe-area-inset-bottom, 0px)); }
body { padding-bottom: calc(var(--bc-player-h) + env(safe-area-inset-bottom, 0px)); }
.bc-player__meta { cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (max-width: 700px) {
  :root { --bc-player-h: 80px; }
  .bc-player__inner { gap: 12px; padding: 0 12px; }
  .bc-player__toggle { width: 60px; height: 60px; box-shadow: 0 0 0 4px rgba(67,194,243,.25); }
  .bc-player__toggle svg { width: 28px; height: 28px; }
  .bc-player__cover { display: none; }
  .bc-player__title { font-size: 1.02rem; }
  .bc-player__vol, .bc-player__btn .bc-lbl { display: none; }
  .bc-player__btn { width: 48px; height: 48px; min-width: 48px; padding: 0; justify-content: center; }
  .bc-player__btn svg { width: 22px; height: 22px; }
  .bc-player__side { gap: 6px; }
  .bc-player__progress { height: 6px; }
  .bc-player.is-ondemand .bc-od--skip { display: none; }
  .bc-player [data-bc-speed] { width: auto; min-width: 48px; padding: 0 8px; font-size: .8rem; }
  .bc-player__history { left: 0; right: 0; width: 100%; bottom: 100%; border-radius: 20px 20px 0 0; max-height: 70vh; padding: 20px 16px; }
  .bc-hero__actions .bc-btn { flex: 1 1 100%; justify-content: center; padding: 16px 22px; }
  .bc-section { padding: 40px 0; }
  .bc-wrap { padding: 0 16px; }
  .bc-cta > div { padding: 24px; }
  .bc-logo img, .bc-logo .custom-logo { height: 44px; }
  .bc-header__inner { min-height: 64px; }
  body { font-size: 17px; }
}

/* Chargement PJAX */
.bc-loading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--bc-clair); z-index: 200; width: 0; transition: width .3s ease; }
body.bc-is-loading .bc-loading-bar { width: 70%; }

/* WordPress */
.wp-caption, .gallery-caption { font-size: .85rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.sticky, .bypostauthor {}
.bc-comments { margin-top: 48px; max-width: 760px; }
.bc-comments ol { padding-left: 0; list-style: none; }
.bc-comments .comment-body { background: var(--bc-pale); border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; }
.bc-comments textarea, .bc-comments input[type=text], .bc-comments input[type=email], .bc-comments input[type=url] { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--bc-ligne); border-radius: 10px; }
.bc-comments .submit { font: inherit; font-weight: 700; padding: 12px 20px; border-radius: 999px; border: 0; background: var(--bc-clair); color: var(--bc-nuit); cursor: pointer; }
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] { flex: 1; font: inherit; padding: 10px 14px; border: 2px solid var(--bc-ligne); border-radius: 999px; }
.search-form button { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--bc-nuit); color: #fff; cursor: pointer; }
