/* ==========================================================================
   DoingBuzz — présentation éditoriale (bandeau partenaires, article immersif,
   publicité encadrée, sponsors, consentement). Chargé après app-shell.css.
   ========================================================================== */

:root {
  --ep-cream: #F8DDB4;
  --ep-cream-ink: #2B1A0B;
  --ep-gold: #C79A4B;
  --ep-night: #0B0D12;
  --ep-night-2: #171A22;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ep-cream: #2A1E12; --ep-cream-ink: #F5DFC0; --ep-gold: #D9AE62; }
}
:root[data-theme="dark"] { --ep-cream: #2A1E12; --ep-cream-ink: #F5DFC0; --ep-gold: #D9AE62; }

/* ---------- 1. Bandeau partenaires ---------- */
/* Fin et discret, logos monochromes (comme Ballon d'Or). */
.dbz-partners { background: var(--ep-cream); color: var(--ep-cream-ink); }
.dbz-partners__inner { display: flex; align-items: center; justify-content: center; height: 38px; }
.dbz-partners__label { display: none; }
.dbz-partners__track { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 6vw, 72px); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.dbz-partners__track::-webkit-scrollbar { display: none; }
.dbz-pt { display: inline-flex; align-items: center; flex: 0 0 auto; color: inherit !important; text-decoration: none !important; opacity: .9; }
.dbz-pt:hover { opacity: 1; }
.dbz-pt img { height: 24px; width: auto; max-width: 120px; object-fit: contain; display: block; filter: brightness(0); }
.dbz-pt--coabonnement img { height: 30px; }
@media (min-width: 768px) { .dbz-partners__inner { height: 44px; } .dbz-pt img { height: 28px; max-width: 140px; } .dbz-pt--coabonnement img { height: 34px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dbz-pt img { filter: brightness(0) invert(.88) sepia(.35); } }
:root[data-theme="dark"] .dbz-pt img { filter: brightness(0) invert(.88) sepia(.35); }
.dbz-pt__mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--ep-cream-ink); color: var(--ep-cream); font: 800 .625rem/1 var(--f-display); letter-spacing: -.02em; }
.dbz-pt__name { font: 800 .9375rem/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 640px) {
  .dbz-partners__label { display: none; }
  .dbz-partners__track { justify-content: flex-start; }
  .dbz-pt__name { font-size: .875rem; }
}

/* ---------- 2. Publicité encadrée (logo + libellé derrière l'annonce) ---------- */
.dbz-ad[data-provider="adsense"] {
  position: relative; isolation: isolate;
  min-height: 280px; padding: 0; border-radius: 4px;
  background: var(--c-sunk, #EEECE7);
  display: flex; flex-direction: column; justify-content: center;
}
.dbz-ad[data-provider="adsense"]::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; transform: translate(-50%, -62%);
  width: 92px; height: 92px; opacity: .32;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10.5' fill='none' stroke='%23777' stroke-width='.9'/%3E%3Cpath d='M3 12.5h3.6l2.2-5.2 3.7 10.4 2.7-7.6 1.6 2.4H21' fill='none' stroke='%23777' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dbz-ad[data-provider="adsense"] .dbz-ad__label {
  position: absolute; z-index: -1; left: 0; right: 0; top: 50%; margin: 0; transform: translateY(42px);
  text-align: center; font: 600 .6875rem/1 var(--f-text); letter-spacing: .32em; color: var(--c-muted);
}
/* Le bloc AdSense doit avoir une largeur avant sa demande d'annonce : on le force en pleine largeur. */
.dbz-ad[data-provider="adsense"] { display: block !important; place-items: initial; }
.dbz-ad[data-provider="adsense"] .dbz-ad__adsense, .dbz-ad[data-provider="adsense"] .adsbygoogle { display: block !important; position: relative; z-index: 1; width: 100% !important; min-width: 250px; max-width: 100%; }
.dbz-ad[data-provider="adsense"]:has(.dbz-ad__adsense[data-ad-status="filled"]) { background: transparent; min-height: 0; }
.dbz-ad[data-provider="adsense"]:has(.dbz-ad__adsense[data-ad-status="filled"])::before, .dbz-ad[data-provider="adsense"]:has(.dbz-ad__adsense[data-ad-status="filled"]) .dbz-ad__label { display: none; }
/* Aucune annonce disponible : on retire le cadre gris pour ne pas laisser de trou. */
.ad-wrap:has(.dbz-ad__adsense[data-ad-status="unfilled"]), .dbz-ad:has(.dbz-ad__adsense[data-ad-status="unfilled"]) { display: none !important; }
.dbz-ad--leader[data-provider="adsense"] { min-height: 120px; }
.dbz-ad--leader[data-provider="adsense"]::before { width: 54px; height: 54px; transform: translate(-50%, -70%); }
.dbz-ad--leader[data-provider="adsense"] .dbz-ad__label { transform: translateY(24px); }
.ad-wrap--inline { margin: 2em 0; }

/* ---------- 3. Article immersif ---------- */
.single-post .article-title { font-size: clamp(1.875rem, 1.25rem + 2.8vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.single-post .article-dek,
.single-post .article.is-no-dek .prose > p:first-child {
  font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.4375rem); line-height: 1.5; font-weight: 700; color: var(--c-ink);
}
.single-post .article-dek { margin-top: var(--s-4, 16px); }
.single-post .article.is-no-dek .prose > p:first-child::after,
.single-post .article-dek::after {
  content: ""; display: block; width: 46%; max-width: 260px; height: 3px; margin: 1.1em auto 0; border-radius: 3px;
  background: var(--ep-gold);
}
.single-post .prose { font-size: 1.1875rem; line-height: 1.78; }
.single-post .prose p { margin-bottom: 1.15em; }
.single-post .prose h2, .single-post .prose h3 { color: var(--c-accent); font-family: var(--f-display); }
.single-post .prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); margin-top: 1.6em; }
.single-post .prose h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.single-post .prose a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.single-post .prose blockquote { border-left: 3px solid var(--ep-gold); padding-left: 1em; font-size: 1.25rem; font-weight: 600; }
.single-post .article-figure img { border-radius: 14px; }
@media (max-width: 720px) {
  .single-post .prose { font-size: 1.125rem; line-height: 1.75; }
}

/* Dates en fin d'article */
.article-dates { display: grid; gap: 6px; margin: var(--s-8, 32px) 0 0; padding-top: var(--s-6, 24px); border-top: 1px solid var(--c-line); color: var(--c-ink-2); font-size: 1rem; }
.article-dates strong { color: var(--c-ink); font-weight: 600; }

/* Lire la suite : grandes cartes sur fond nuit */
.ep-more { margin-top: var(--s-12, 48px); padding: clamp(28px, 5vw, 56px) 0; background: var(--ep-night); color: #F4F5F8; }
.ep-more__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.ep-more__head h2 { margin: 0; color: #fff; font: 800 clamp(1.375rem, 1.1rem + 1vw, 1.875rem)/1.15 var(--f-display); }
.ep-more__head a { color: var(--ep-gold) !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.ep-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.ep-card { display: flex; flex-direction: column; gap: 14px; color: inherit !important; text-decoration: none !important; }
.ep-card__media { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--ep-night-2); }
.ep-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease, ease); }
.ep-card:hover .ep-card__media img { transform: scale(1.03); }
.ep-card__title { margin: 0 4px; color: #fff; font: 800 clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem)/1.22 var(--f-display); letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep-card__excerpt { margin: 0 4px; color: #C9CDD6; font-size: 1.0625rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 960px) { .ep-more__grid { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- 4. Sponsors en pied de page ---------- */
.dbz-sponsors { background: var(--ep-night); color: #E9E2D4; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid rgba(199,154,75,.35); }
.dbz-sponsors__title { margin: 0 0 18px; color: var(--ep-gold); font: 800 1.375rem/1.2 var(--f-display); }
.dbz-sponsors__list { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }
.dbz-sp { display: inline-flex; align-items: center; gap: 8px; color: #B8A27A !important; text-decoration: none !important; opacity: .9; }
.dbz-sp:hover { color: var(--ep-gold) !important; opacity: 1; }
.dbz-sp img { height: 26px; width: auto; max-width: 140px; object-fit: contain; filter: brightness(0) invert(.72) sepia(.55); }

/* ---------- Fluidité du défilement ----------
   Le flou d'arrière-plan des barres fixes se recalcule à chaque pixel de défilement :
   très coûteux sur mobile. On le remplace par un fond plein. */
.site-header, .bottom-nav, .live-rail, .score-strip, .search-panel, .drawer__panel {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.site-header, .bottom-nav { background: var(--c-surface) !important; }
/* Les sections sous la ligne de flottaison ne sont rendues qu'en approchant de l'écran. */
.home-rubrics-wrap, .band--pulse, .home-watch, .vision-wa-groups, .dbz-sponsors, .site-footer, .ep-more, .comments, .football-hub__layout, .football-hub__archive {
  content-visibility: auto; contain-intrinsic-size: auto 900px;
}
html { scroll-behavior: auto; }
.dbz-sp .dbz-pt__mark { width: 26px; height: 26px; background: #B8A27A; color: var(--ep-night); }
.dbz-sp .dbz-pt__name { font-size: 1.0625rem; }
.dbz-sponsors__cta { margin: 20px 0 0; }
.dbz-sponsors__cta a { color: var(--ep-gold) !important; font-weight: 700; text-decoration: none !important; }

/* ---------- 5. Consentement ---------- */
.dbz-consent { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; }
.dbz-consent[hidden] { display: none; }
.dbz-consent__scrim { position: absolute; inset: 0; background: rgba(10, 8, 6, .45); backdrop-filter: blur(2px); }
.dbz-consent__panel {
  position: relative; width: min(640px, 100%); max-height: min(88vh, 760px); overflow-y: auto;
  margin: 0 auto; padding: clamp(22px, 5vw, 40px); background: #fff; color: #1B1B1B;
  border-top: 6px solid #F6D7A7; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.25);
}
@media (min-width: 700px) {
  .dbz-consent { align-items: center; }
  .dbz-consent__panel { border-radius: 18px; }
}
.dbz-consent__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #FF6A00; }
.dbz-consent__brand .brand__mark { width: 30px; height: 30px; display: inline-block; }
.dbz-consent__brand .brand__mark svg { width: 100%; height: 100%; }
.dbz-consent__brand .brand__word { font: 800 1.375rem/1 var(--f-display); letter-spacing: -.03em; color: #0B2E7A; }
.dbz-consent__brand .brand__word span { color: #FF6A00; }
.dbz-consent__title { margin: 0 0 10px; font: 800 1.25rem/1.2 var(--f-display); color: #111; }
.dbz-consent__body p { margin: 0 0 12px; font-size: .9375rem; line-height: 1.6; text-align: justify; hyphens: auto; color: #1B1B1B; }
.dbz-consent__ph { font-weight: 700; }
.dbz-consent__body .dbz-consent__purposes { color: #4F6170; font-weight: 600; }
.dbz-consent__details a { color: #B4691F; font-weight: 700; }
.dbz-consent__actions { display: grid; gap: 12px; margin-top: 20px; }
.dbz-consent__btn {
  width: 100%; padding: 15px 18px; border: 0; border-radius: 4px; cursor: pointer;
  background: #F6D7A7; color: #111; font: 800 1.0625rem/1.2 var(--f-text);
}
.dbz-consent__btn--more { background: #1B1B1B; color: #fff; }
.dbz-consent__btn:hover { filter: brightness(.96); }
.dbz-consent__btn:focus-visible { outline: 3px solid #0B2E7A; outline-offset: 2px; }
html.dbz-consent-open { overflow: hidden; }
@media (min-width: 700px) {
  .dbz-consent__actions { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- 6. Retouches Match Center ---------- */
[data-mc-pane="af"] .mc-tag { display: none; }
@media (max-width: 520px) {
  .mc-team__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
  .mc-match__row { gap: 6px; }
}
