@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://lagazettedufennec.com/wp-content/plugins/fennec-du-mois-extended/public/fonts/montserrat-latin.woff2') format('woff2');
}

/* ============================================================
   FDM — "Ballon d'Or" nominees skin (opt-in via [fdm_poll style="ballondor"]
   and the [fdm_nominees_page] sidebar hub).
   Colors/layout matched against ballondor.com/fr/nominees production CSS:
   body bg #000, text default #FCD4A0, primary-dark #877458, gold #FFD100.
   Scoped entirely under .fdm-poll--ballondor / .fdmb-hub so legacy polls
   (e.g. the live Fennec d'Or 2025 page) are completely untouched.
   ============================================================ */

/* New elements are hidden by default so they never affect existing/legacy
   polls that render this same markup without the ballondor skin. */
.fdm-card__rank,
.fdm-card__meta,
.fdm-card__ring {
  display: none;
}

.fdm-poll--ballondor,
.fdmb-hub {
  --fdmb-black:      #000000;
  --fdmb-surface:    #14120f;
  --fdmb-gold:       #FCD4A0;
  --fdmb-gold-strong: #FFD100;
  --fdmb-bronze:     #877458;
  --fdmb-bronze-15:  rgba(182, 145, 92, .15);
  --fdmb-border:     rgba(255, 255, 255, .12);
  --fdmb-muted:      #a89b86;

  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--fdmb-gold);
}

.fdm-poll--ballondor {
  border: none;
  border-radius: 20px;
  background: var(--fdmb-black);
  padding: 0;
  overflow: hidden;
}

/* ── Hero (standalone [fdm_poll style="ballondor"] usage) ── */
.fdmb-hero {
  position: relative;
  text-align: center;
  padding: 48px 24px 28px;
}

.fdmb-hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(252, 212, 160, .18) 0%, transparent 70%);
  pointer-events: none;
}

.fdmb-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fdmb-gold-strong);
  background: var(--fdmb-bronze-15);
  border: 1px solid rgba(252, 212, 160, .3);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.fdmb-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #ffffff;
}

.fdmb-desc {
  position: relative;
  z-index: 1;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--fdmb-muted, #a89b86);
  margin: 0 auto 6px;
  max-width: 100%;
}

.fdmb-subtitle {
  position: relative;
  z-index: 1;
  font-size: .95rem;
  font-weight: 500;
  color: var(--fdmb-muted);
  margin: 0 auto;
  max-width: 560px;
}

/* ── Nominees hub: sidebar of trophy categories + content ── */
.fdmb-hub {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--fdmb-black);
  border-radius: 20px;
  padding: 32px 24px 48px;
}

.fdmb-hub__sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
}

.fdmb-hub__sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #ffffff;
  margin: 0 0 16px;
}

.fdmb-hub__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fdmb-hub__nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: var(--fdmb-bronze-15);
  border: 1px solid var(--fdmb-border);
  color: var(--fdmb-gold);
  font-size: .95rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.fdmb-hub__nav-btn:hover {
  border-color: rgba(252, 212, 160, .4);
}
.fdmb-hub__nav-btn--active {
  background: var(--fdmb-bronze);
  border-color: var(--fdmb-gold);
  color: #ffffff;
}
.fdmb-hub__nav-icon { font-size: .95rem; flex-shrink: 0; }
.fdmb-hub__nav-label {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.fdmb-hub__content { flex: 1; min-width: 0; }

.fdmb-hub__panel { display: none; scroll-margin-top: 90px; }
.fdmb-hub__panel--active { display: block; }

/* Pure-CSS deep-link fallback: if the URL fragment (e.g. #fdmb-panel-16)
   matches a panel, show it and hide every other panel — resolved instantly
   at first paint by the browser, with no dependency on JS having run yet
   (which can be delayed by render-blocking third-party scripts earlier in
   the document, e.g. ad placements loaded before <html>). Native fragment
   navigation also auto-scrolls the browser straight to this element. */
.fdmb-hub:has(.fdmb-hub__panel:target) .fdmb-hub__panel:not(:target) { display: none; }
.fdmb-hub__panel:target { display: block; }

.fdmb-hub__finale {
  text-align: center;
  padding: 80px 24px;
}
.fdmb-hub__finale-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(252, 212, 160, .4));
}
.fdmb-hub__finale-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #ffffff;
  margin: 0 0 14px;
}
.fdmb-hub__finale-text {
  font-size: 1rem;
  color: var(--fdmb-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.fdmb-hub__panel .fdmb-hero { padding: 0 0 24px; text-align: left; }
.fdmb-hub__panel .fdmb-hero__glow { display: none; }
.fdmb-hub__panel .fdmb-title { text-align: left; font-size: clamp(1.4rem, 3vw, 2rem); }
.fdmb-hub__panel .fdmb-desc { text-align: left; margin: 0 0 6px; }
.fdmb-hub__panel .fdmb-subtitle { text-align: left; margin: 0; }
.fdmb-hub__panel .fdm-poll--ballondor { border-radius: 0; }

/* ── Card grid ── */
.fdm-poll--ballondor .fdm-card-container,
.fdmb-hub__panel .fdm-card-container {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 8px 24px 48px;
}
@media (min-width: 1024px) {
  .fdm-poll--ballondor .fdm-card-container,
  .fdmb-hub__panel .fdm-card-container { grid-template-columns: repeat(5, 1fr); }
}
.fdmb-hub__panel .fdm-card-container { padding: 8px 0 0; }

.fdm-poll--ballondor .fdm-card,
.fdmb-hub .fdm-card {
  background: var(--fdmb-surface);
  border: none;
  border-radius: 20px;
  padding: 0;
  max-width: none;
  aspect-ratio: 0.9 / 1;
  box-shadow: none;
  transition: box-shadow .25s ease;
}
@media (min-width: 768px) {
  .fdm-poll--ballondor .fdm-card,
  .fdmb-hub .fdm-card { aspect-ratio: 3 / 4; }
}
.fdm-poll--ballondor .fdm-card:hover,
.fdmb-hub .fdm-card:hover {
  transform: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.fdm-poll--ballondor .fdm-card--selected,
.fdmb-hub .fdm-card--selected {
  box-shadow: 0 0 24px rgba(255, 209, 0, .55);
}
.fdm-poll--ballondor .fdm-card--selected::before,
.fdmb-hub .fdm-card--selected::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border: 4px solid #FFD100;
  border-radius: inherit;
  box-sizing: border-box;
}

.fdm-poll--ballondor .fdm-card__rank,
.fdmb-hub .fdm-card__rank {
  display: none; /* not part of the reference design */
}

.fdm-poll--ballondor .fdm-image-wrapper,
.fdmb-hub .fdm-image-wrapper {
  position: absolute;
  inset: 0;
  height: auto;
  border-radius: 0;
  overflow: hidden;
}
.fdm-poll--ballondor .fdm-image-wrapper img,
.fdmb-hub .fdm-image-wrapper img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 0;
  transition: transform .3s ease;
}
.fdm-poll--ballondor .fdm-card:hover .fdm-image-wrapper img,
.fdmb-hub .fdm-card:hover .fdm-image-wrapper img {
  transform: scale(1.05);
}

/* ── No-photo placeholder ──
   Shown instead of a broken/empty image when a nominee has no photo yet.
   Hue is set per-card via an inline custom property so a grid of
   placeholders reads as one deliberate set, not random noise. */
.fdm-poll--ballondor .fdm-card__placeholder,
.fdmb-hub .fdm-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 16px;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px),
    radial-gradient(circle at 30% 22%, hsla(var(--fdmb-ph-hue, 40), 70%, 55%, .35) 0%, transparent 55%),
    linear-gradient(160deg, hsl(var(--fdmb-ph-hue, 40) 35% 15%) 0%, hsl(var(--fdmb-ph-hue, 40) 50% 6%) 100%);
  transition: transform .3s ease;
}
.fdm-poll--ballondor .fdm-card:hover .fdm-card__placeholder,
.fdmb-hub .fdm-card:hover .fdm-card__placeholder {
  transform: scale(1.05);
}
.fdm-card__placeholder-icon {
  font-size: 1.3rem;
  opacity: .5;
  filter: grayscale(.4);
}
.fdm-card__placeholder-label {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  color: hsl(var(--fdmb-ph-hue, 40) 85% 78%);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
  white-space: nowrap;
}

/* corner scrim, radial from bottom-right — matches production's
   --award-card-scrim gradient exactly */
.fdm-poll--ballondor .fdm-card::after,
.fdmb-hub .fdm-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(50% 38% at 100% 100%, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, 0) 100%);
}

/* name caption — the one deviation from the reference (which shows no
   text at all): needed here since this card is a vote target, not a
   profile link, so the voter needs to know who they're selecting. */
.fdm-poll--ballondor .fdm-name,
.fdmb-hub .fdm-name {
  position: absolute;
  left: 14px;
  right: 44px;
  bottom: 14px;
  z-index: 2;
  background: none;
  border: none;
  padding: 0;
  display: block;
  text-align: left;
  font-size: .92rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}

.fdm-poll--ballondor .fdm-card__meta,
.fdmb-hub .fdm-card__meta {
  display: block;
  position: absolute;
  left: 14px;
  right: 44px;
  bottom: 38px;
  z-index: 2;
  font-size: .68rem;
  color: var(--fdmb-muted);
}

/* ── Hover overlay: season stats (players) or achievement (athletes/coaches).
   Hidden entirely when a nominee has no stats recorded yet. ── */
.fdm-poll--ballondor .fdm-card__stats,
.fdmb-hub .fdm-card__stats {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
  background: rgba(8, 9, 11, .82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  overflow-y: auto; /* safety net if a nominee has more titles than even the shrunk text fits */
}
.fdm-poll--ballondor .fdm-card:hover .fdm-card__stats,
.fdmb-hub .fdm-card:hover .fdm-card__stats {
  opacity: 1;
}

.fdm-card__stats-season {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  /* Fallback matters here: this markup gets cloned into the stats popup
     (see .fdm-stats-modal__content), which lives outside .fdm-poll--ballondor
     / .fdmb-hub — the elements that actually define these custom properties. */
  color: var(--fdmb-gold-strong, #FFD100);
}

.fdm-card__stats-grid {
  display: flex;
  gap: 14px;
}
.fdm-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.fdm-card__stat-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}
.fdm-card__stat-label {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--fdmb-muted, #a89b86);
}

.fdm-card__stats-trophy {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(252, 212, 160, .5));
}
.fdm-card__stats-achievements {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 100%;
  overflow: hidden;
}
.fdm-card__stats-achievement {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: .85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}
.fdm-card__stats-achievement::before {
  content: '●';
  flex-shrink: 0;
  font-size: .55rem;
  color: var(--fdmb-gold-strong, #FFD100);
}

/* persistent circular ring, bottom-right — mirrors the reference's
   outlined "view" button; becomes the vote checkmark once selected */
.fdm-poll--ballondor .fdm-card__ring,
.fdmb-hub .fdm-card__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .5);
  background: transparent;
  transition: border-color .2s ease, background .2s ease;
}
.fdm-poll--ballondor .fdm-card--selected .fdm-card__ring,
.fdmb-hub .fdm-card--selected .fdm-card__ring {
  border-color: var(--fdmb-gold-strong);
  background: rgba(255, 209, 0, .15);
}

/* ── Highlight video button (top-right) — e.g. "But de l'année" ── */
.fdm-card__video-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  border: none;
  background: var(--fdmb-gold-strong, #FFD100);
  box-shadow: 0 3px 10px rgba(255, 209, 0, .35);
  cursor: pointer;
  line-height: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fdm-card__video-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 16px rgba(255, 209, 0, .5);
}
.fdm-card__video-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: #1a1400;
  margin-left: 2px; /* optically center the play triangle */
}

/* ── Stats button (top-right) — touch devices only. Desktop keeps the
   hover-reveal overlay; a real :hover isn't reliable on touch, so there
   the button opens the same info as a popup instead. ── */
.fdm-card__stats-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  border: none;
  background: var(--fdmb-gold-strong, #FFD100);
  box-shadow: 0 3px 10px rgba(255, 209, 0, .35);
  cursor: pointer;
  line-height: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fdm-card__stats-btn img { width: 18px; height: 18px; display: block; object-fit: contain; flex-shrink: 0; }
.fdm-card__stats-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 16px rgba(255, 209, 0, .5);
}

/* Narrow viewport (matches this page's other mobile breakpoints) OR no
   real hover capability — covers both "phone" and "resized desktop browser"
   testing, not just genuine touch devices. */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .fdm-card__stats-btn { display: flex; }
  /* The hover-reveal overlay never gets a reliable :hover here; force it
     off so nothing gets stuck half-visible after a tap, and the popup
     (triggered by the button above) is the only way to see this info. */
  .fdm-poll--ballondor .fdm-card:hover .fdm-card__stats,
  .fdmb-hub .fdm-card:hover .fdm-card__stats {
    opacity: 0;
  }
}

.fdm-poll--ballondor .fdm-checkmark,
.fdmb-hub .fdm-checkmark {
  z-index: 4;
  top: auto;
  left: auto;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #FFE9B8, var(--fdmb-gold-strong, #FFD100));
  border: 2px solid rgba(26, 20, 0, .25);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 209, 0, .18);
  color: #1a1400;
  transform: scale(0);
  opacity: 0;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
}
.fdm-poll--ballondor .fdm-checkmark svg,
.fdmb-hub .fdm-checkmark svg {
  width: 16px;
  height: 16px;
}
.fdm-poll--ballondor .fdm-card--selected .fdm-checkmark,
.fdmb-hub .fdm-card--selected .fdm-checkmark {
  display: flex;
  transform: scale(1);
  opacity: 1;
}

.fdm-poll--ballondor .fdm-stars,
.fdmb-hub .fdm-stars { display: none; }

.fdm-poll--ballondor .fdm-submit-container,
.fdmb-hub__panel .fdm-submit-container {
  padding: 0 24px 40px;
  text-align: center;
}
.fdmb-hub__panel .fdm-submit-container { padding: 0 0 24px; }

.fdm-poll--ballondor .fdm-submit,
.fdmb-hub .fdm-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--fdmb-gold-strong), var(--fdmb-gold));
  color: #1a1400;
  border: none;
  font-weight: 800;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 17px 44px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(252, 212, 160, .3);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.fdm-poll--ballondor .fdm-submit:hover:not(:disabled),
.fdmb-hub .fdm-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(252, 212, 160, .4);
}
.fdm-poll--ballondor .fdm-submit:active:not(:disabled),
.fdmb-hub .fdm-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(252, 212, 160, .3);
}
.fdm-poll--ballondor .fdm-submit:disabled,
.fdmb-hub .fdm-submit:disabled {
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.fdm-poll--ballondor .fdm-results,
.fdmb-hub__panel .fdm-results {
  padding: 0 24px 40px;
}
.fdmb-hub__panel .fdm-results { padding: 0 0 24px; }

.fdm-poll--ballondor .fdm-msg,
.fdmb-hub__panel .fdm-msg {
  background: var(--fdmb-surface, #14120f);
  border: 1px solid var(--fdmb-border, rgba(255,255,255,.12));
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  padding: 16px 20px;
}

.fdmb-empty {
  color: var(--fdmb-muted);
  font-size: .9rem;
  font-style: italic;
  padding: 8px 24px 40px;
  margin: 0;
}
.fdmb-hub__panel .fdmb-empty { padding: 8px 0 24px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .fdmb-hub { flex-direction: column; padding: 20px 0 32px; }
  .fdmb-hub__sidebar { width: 100%; position: static; }
  .fdmb-hub__sidebar-title { padding: 0 16px; margin-bottom: 12px; }
  .fdmb-hub__content { width: 100%; }

  /* Horizontally scrollable pill strip instead of a wrapped block —
     keeps 8 categories from eating the whole screen before content. */
  .fdmb-hub__nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 16px 6px;
    margin: 0 -16px;
  }
  .fdmb-hub__nav::-webkit-scrollbar { display: none; }
  .fdmb-hub__nav-btn {
    width: auto;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .fdmb-hub__nav-label { white-space: nowrap; }

  .fdmb-hub__panel .fdmb-hero,
  .fdm-poll--ballondor .fdmb-hero { padding-left: 16px; padding-right: 16px; }
  .fdmb-hub__panel .fdm-submit-container { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 560px) {
  .fdm-poll--ballondor .fdm-submit,
  .fdmb-hub .fdm-submit {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
  .fdmb-hub__panel .fdm-submit-container,
  .fdm-poll--ballondor .fdm-submit-container { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
  .fdmb-hero { padding: 36px 16px 22px; }
  .fdm-poll--ballondor .fdm-card-container,
  .fdmb-hub__panel .fdm-card-container { padding: 8px 16px 40px; gap: 10px; }
  .fdmb-hub { padding: 20px 16px 32px; }
  .fdm-card__placeholder-label { font-size: 1.05rem; }
  .fdm-card__placeholder-icon { font-size: 1rem; }

  .fdm-poll--ballondor .fdm-card__ring,
  .fdmb-hub .fdm-card__ring,
  .fdm-poll--ballondor .fdm-checkmark,
  .fdmb-hub .fdm-checkmark {
    width: 28px;
    height: 28px;
    right: 8px;
    bottom: 8px;
  }
  .fdm-poll--ballondor .fdm-name,
  .fdmb-hub .fdm-name {
    left: 10px;
    right: 36px;
    bottom: 10px;
    font-size: .8rem;
  }
  .fdm-poll--ballondor .fdm-card__meta,
  .fdmb-hub .fdm-card__meta {
    left: 10px;
    right: 36px;
    bottom: 30px;
    font-size: .62rem;
  }

  .fdm-card__stats { padding: 10px; gap: 6px; }
  .fdm-card__stats-grid { gap: 8px; }
  .fdm-card__stat-value { font-size: 1.05rem; }
  .fdm-card__stat-label { font-size: .5rem; }
  .fdm-card__stats-season { font-size: .52rem; }
  .fdm-card__stats-trophy { font-size: 1.3rem; }
  .fdm-card__stats-achievement { font-size: .7rem; }
  .fdm-card__stats-achievements { gap: 3px; }

  /* Several titles won't all fit at the default size on a small card —
     shrink progressively as more get added instead of clipping/overflowing.
     :has(:nth-child(N)) is a "list has at least N items" check. */
  .fdm-card__stats-achievements:has(.fdm-card__stats-achievement:nth-child(3)) {
    gap: 2px;
  }
  .fdm-card__stats-achievements:has(.fdm-card__stats-achievement:nth-child(3)) .fdm-card__stats-achievement {
    font-size: .6rem;
    line-height: 1.2;
  }
  .fdm-card__stats-achievements:has(.fdm-card__stats-achievement:nth-child(5)) .fdm-card__stats-achievement {
    font-size: .52rem;
    line-height: 1.15;
  }
  .fdm-card__stats-achievements:has(.fdm-card__stats-achievement:nth-child(5)) .fdm-card__stats-achievement::before {
    font-size: .4rem;
  }
  .fdm-card__stats:has(.fdm-card__stats-achievement:nth-child(3)) {
    padding: 6px 8px;
    gap: 3px;
  }
  .fdm-card__stats:has(.fdm-card__stats-achievement:nth-child(3)) .fdm-card__stats-trophy {
    font-size: 1rem;
  }
}

/* ============================================================
   Fennec d'Or 2026 — Home / landing hub ([fdm_home])
   ============================================================ */

.fdmb-home {
  --fdmb-gold:        #FCD4A0;
  --fdmb-gold-strong: #FFD100;
  --fdmb-bronze:      #877458;
  --fdmb-black:       #000000;
  --fdmb-surface:     #14120f;
  --fdmb-surface-2:   #1c1712;
  --fdmb-muted:       #a89b86;
  background: var(--fdmb-black);
  color: #f5f5f2;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fdmb-home section { padding: 56px 24px; max-width: 1200px; margin: 0 auto; }

/* ── Hero ── */
.fdmb-home-hero {
  position: relative;
  text-align: center;
  padding: 88px 24px 64px;
  max-width: none;
  overflow: hidden;
}
.fdmb-home-hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(252, 212, 160, .2) 0%, transparent 70%);
  pointer-events: none;
}
.fdmb-home-hero__title {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
}
.fdmb-home-hero__title img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 24px rgba(252, 212, 160, .25));
}
.fdmb-home-hero__subtitle {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: var(--fdmb-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.fdmb-home-cta {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: linear-gradient(135deg, var(--fdmb-gold-strong), var(--fdmb-gold));
  color: #1a1400;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .9rem;
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(252, 212, 160, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fdmb-home-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(252, 212, 160, .35); color: #1a1400; }
.fdmb-home-cta--ghost {
  background: transparent;
  border: 1.5px solid rgba(252, 212, 160, .4);
  color: var(--fdmb-gold);
  box-shadow: none;
  margin-top: 8px;
}
.fdmb-home-cta--ghost:hover { border-color: var(--fdmb-gold-strong); color: var(--fdmb-gold-strong); }

.fdmb-home-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}
.fdmb-home-cta-group .fdmb-home-cta--ghost { margin-top: 0; }
.fdmb-home-cta-group .fdmb-home-cta {
  box-sizing: border-box;
  min-width: 300px;
  text-align: center;
}
button.fdmb-home-cta {
  font-family: inherit;
  cursor: pointer;
}
#fdmb-open-vote-system {
  height: auto;
}

/* ── "Système de vote" info popup ── */
.fdmb-info-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.fdmb-info-modal--open { display: flex; }
.fdmb-info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.fdmb-info-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 84vh;
  overflow-y: auto;
  background: var(--fdmb-surface, #14120f);
  border: 1px solid var(--fdmb-border, rgba(255,255,255,.12));
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.fdmb-info-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.fdmb-info-modal__close:hover {
  background: var(--fdmb-gold-strong, #FFD100);
  border-color: transparent;
  color: #1a1400;
}
.fennec-vote-system { color: #e8e2d6; }
.fennec-vote-system h2 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 16px;
  padding-right: 30px;
}
.fennec-vote-system h3 {
  color: var(--fdmb-gold-strong, #FFD100);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 28px 0 10px;
}
.fennec-vote-system h4 {
  color: var(--fdmb-gold, #FCD4A0);
  font-size: 1rem;
  font-weight: 700;
  margin: 18px 0 8px;
}
.fennec-vote-system p {
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 12px;
  color: #e8e2d6;
}
.fennec-vote-system ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.fennec-vote-system li {
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 4px;
  color: #e8e2d6;
}
.fennec-vote-system strong { color: #ffffff; }

.fdmb-home-section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #ffffff;
  margin: 0 0 32px;
}

/* ── Category teaser grid ── */
.fdmb-home-cats { background: var(--fdmb-surface); max-width: none; padding: 64px 24px; }
/* Flex, not grid: with 11 (prime) cards a fixed-column grid always leaves a
   ragged last row. flex-grow lets a short last row's cards stretch evenly
   so every row spans the same full width, whatever the item count. */
.fdmb-home-cats__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.fdmb-home-card { flex: 1 1 calc(50% - 9px); }
@media (min-width: 640px) {
  .fdmb-home-card { flex-basis: calc(33.333% - 12px); }
}
@media (min-width: 1024px) {
  /* Sized so 6 fit naturally per row; the explicit break below forces the
     first row to stop at 5 (which then grow to fill the row), while the
     remaining 6 fill the second row at their natural width. */
  .fdmb-home-card { flex-basis: calc(16.667% - 15px); }
}

/* Forces a line break after the 5th card so desktop always shows 5 then 6,
   regardless of viewport width. Inert everywhere else. */
.fdmb-home-row-break { flex-basis: 0; width: 0; height: 0; }
@media (min-width: 1024px) {
  .fdmb-home-row-break { flex-basis: 100%; }
}

.fdmb-home-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--fdmb-surface-2);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fdmb-home-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(252, 212, 160, .15); }

.fdmb-home-card__photo { position: absolute; inset: 0; }
.fdmb-home-card__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
}
.fdmb-home-card__photo .fdm-card__placeholder { position: absolute; inset: 0; }

.fdmb-home-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .95) 100%);
  pointer-events: none;
}

.fdmb-home-card__info {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}
.fdmb-home-card__label {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  margin-bottom: 2px;
}
.fdmb-home-card__count {
  display: block;
  font-size: .72rem;
  color: var(--fdmb-gold);
}

/* ── How to vote ── */
.fdmb-home-steps { text-align: center; }
.fdmb-home-steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
  text-align: left;
}
.fdmb-home-step {
  background: var(--fdmb-surface);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  padding: 26px 22px;
}
.fdmb-home-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fdmb-gold-strong), var(--fdmb-gold));
  color: #1a1400;
  font-weight: 800;
  margin-bottom: 14px;
}
.fdmb-home-step h3 {
  margin: 0 0 8px;
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #ffffff;
}
.fdmb-home-step p { margin: 0; color: var(--fdmb-muted); font-size: .85rem; line-height: 1.5; }

/* ── About (latest "fennec-dor" category posts) ── */
.fdmb-home-about { background: var(--fdmb-surface); max-width: none; padding: 64px 24px; }
.fdmb-home-about__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 640px) {
  .fdmb-home-about__grid { grid-template-columns: repeat(3, 1fr); }
}

.fdmb-home-article {
  display: block;
  text-decoration: none;
  background: var(--fdmb-surface-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fdmb-home-article:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }

.fdmb-home-article__photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.fdmb-home-article__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fdmb-home-article__photo .fdm-card__placeholder { position: absolute; inset: 0; }

.fdmb-home-article__info { padding: 14px 16px 18px; }
.fdmb-home-article__date {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fdmb-gold);
  margin-bottom: 6px;
}
.fdmb-home-article__title {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

/* ── Sponsors ── */
.fdmb-home-sponsors {
  text-align: center;
  max-width: none;
  padding: 40px 24px 72px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.fdmb-home-sponsors__label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fdmb-muted);
  margin-bottom: 16px;
}
.fdmb-home-sponsors__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.fdmb-home-sponsors__list span {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--fdmb-gold);
  font-size: .95rem;
}

@media (max-width: 480px) {
  .fdmb-home-hero { padding: 56px 16px 40px; }
  .fdmb-home-cats { padding: 40px 16px; }
  .fdmb-home-cats__grid { gap: 12px; }
  .fdmb-home-card { flex-basis: calc(50% - 6px); }
}

/* ============================================================
   Fennec d'Or 2026 — custom site header/footer
   (page-fennec-dor-2026.php template; home + votes pages only)
   ============================================================ */

body.fdmb-microsite {
  background: #000000;
  margin: 0;
}

.fdmb-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000000;
  border-bottom: 1px solid rgba(252, 212, 160, .18);
}
.fdmb-site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.fdmb-site-header__back {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: .8;
  transition: opacity .2s ease;
}
.fdmb-site-header__back:hover { opacity: 1; }
.fdmb-site-header__back img { height: 28px; width: auto; display: block; }

.fdmb-site-header__brand {
  flex: 1;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.fdmb-site-header__brand img { height: 30px; width: auto; display: block; }

.fdmb-site-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.fdmb-site-header__nav a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #f5f5f2;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .15);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.fdmb-site-header__nav a:hover { border-color: rgba(252, 212, 160, .5); color: #FCD4A0; }
.fdmb-site-header__nav a.is-active {
  background: linear-gradient(135deg, #FFD100, #FCD4A0);
  border-color: transparent;
  color: #1a1400;
}

@media (max-width: 560px) {
  .fdmb-site-header__inner { padding: 12px 16px; gap: 12px; }
  .fdmb-site-header__brand img { height: 22px; }
  .fdmb-site-header__back img { height: 22px; }
  .fdmb-site-header__nav a { padding: 7px 12px; font-size: .72rem; }
}

.fdmb-site-footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 48px 24px 32px;
}
.fdmb-site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.fdmb-site-footer__brand {
  display: inline-block;
  margin-bottom: 18px;
}
.fdmb-site-footer__brand img { height: 44px; width: auto; display: block; margin: 0 auto; }

.fdmb-site-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 28px;
}
.fdmb-site-footer__nav a {
  color: #a89b86;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: color .2s ease;
}
.fdmb-site-footer__nav a:hover { color: #FCD4A0; }

.fdmb-site-footer__sponsors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.fdmb-site-footer__sponsors span {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #FCD4A0;
  font-size: .82rem;
}

.fdmb-site-footer__copy {
  margin: 0;
  color: #6b6255;
  font-size: .75rem;
}

/* ============================================================
   Highlight video popup (shared, appended to <body> once by JS)
   ============================================================ */
body.fdm-modal-lock { overflow: hidden; }

.fdm-video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.fdm-video-modal--open { display: flex; }

.fdm-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fdm-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
}

.fdm-video-modal__player {
  display: block;
  width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.fdm-video-modal__embed {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.fdm-video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.fdm-video-modal__close:hover {
  background: var(--fdmb-gold-strong, #FFD100);
  border-color: transparent;
  color: #1a1400;
}

@media (max-width: 560px) {
  .fdm-video-modal { padding: 12px; }
  .fdm-video-modal__close { top: -40px; width: 32px; height: 32px; font-size: 1.2rem; }
}

/* ============================================================
   Stats / achievements popup (touch devices — see .fdm-card__stats-btn)
   Reuses the same visual language as the video modal above.
   ============================================================ */
.fdm-stats-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.fdm-stats-modal--open { display: flex; }

.fdm-stats-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fdm-stats-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--fdmb-surface, #14120f);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 28px 22px 24px;
  text-align: center;
}

.fdm-stats-modal__name {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #ffffff;
}

/* The popup content is the exact .fdm-card__stats markup, cloned — but it
   needs to lay out in normal flow here instead of as an absolute overlay. */
.fdm-stats-modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #ffffff; /* safety default in case any cloned element relies on an unset custom property */
}
.fdm-stats-modal__content .fdm-card__stats-achievements { align-items: center; }

.fdm-stats-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.fdm-stats-modal__close:hover {
  background: var(--fdmb-gold-strong, #FFD100);
  border-color: transparent;
  color: #1a1400;
}

@media (max-width: 560px) {
  .fdm-stats-modal { padding: 12px; }
  .fdm-stats-modal__close { top: -40px; width: 32px; height: 32px; font-size: 1.2rem; }
}

/* Montserrat across the whole Fennec d'Or microsite (header, footer, popups, form controls) */
body.fdmb-microsite,
body.fdmb-microsite button,
body.fdmb-microsite input,
body.fdmb-microsite select,
body.fdmb-microsite textarea,
.fdm-video-modal,
.fdm-stats-modal,
.fdmb-info-modal {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (max-width: 767px) {
  .fdm-poll--ballondor .fdm-card,
  .fdmb-hub .fdm-card { aspect-ratio: 3 / 4 !important; }
}

@media (max-width: 767px) {
  .fdm-poll--ballondor .fdm-card-container,
  .fdmb-hub__panel .fdm-card-container,
  .fdm-card-container { padding: 0 !important; }
}

/* Home: trophy categories as tag pills */
.fdmb-home-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.fdmb-home-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(252, 212, 160, .4);
  background: rgba(252, 212, 160, .06);
  color: var(--fdmb-gold, #FCD4A0);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.fdmb-home-tag:hover {
  background: var(--fdmb-gold-strong, #FFD100);
  border-color: var(--fdmb-gold-strong, #FFD100);
  color: #1a1400;
  transform: translateY(-2px);
}
@media (max-width: 560px) {
  .fdmb-home-tags { gap: 8px; }
  .fdmb-home-tag { padding: 10px 16px; font-size: .78rem; }
}

.fdmb-hub__nav-label { text-transform: uppercase; }

.fdmb-hub__nav-icon,
.fdmb-home-tag__icon { width: 22px; height: 18px; object-fit: contain; display: block; flex-shrink: 0; }

/* Home: "Nos Sponsors" auto-scrolling strip (right → left) */
.fdmb-home-partners { padding: 56px 0; overflow: hidden; }
.fdmb-marquee { container-type: inline-size; overflow: hidden; width: 100%; }
.fdmb-marquee__track {
  display: flex;
  width: max-content;
  animation: fdmb-marquee var(--fdmb-marquee-duration, 45s) linear infinite;
}
.fdmb-marquee:hover .fdmb-marquee__track { animation-play-state: paused; }
.fdmb-marquee__item {
  flex: 0 0 calc(100cqw / 5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  box-sizing: border-box;
  height: 90px;
}
.fdmb-marquee__item img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.fdmb-marquee__name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fdmb-gold, #FCD4A0);
  white-space: nowrap;
}
@keyframes fdmb-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .fdmb-marquee__item { flex-basis: calc(100cqw / 3); padding: 0 14px; height: 76px; }
  .fdmb-marquee__name { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fdmb-marquee__track { animation: none; }
}

@media (max-width: 767px) {
  .fdmb-home-tags { flex-direction: column; align-items: stretch; }
  .fdmb-home-tag { width: 100%; box-sizing: border-box; justify-content: center; }
}

/* Sponsor logos are shown as-is, no background tile */
.fdmb-marquee__item { height: 104px; }
.fdmb-marquee__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 84px;
  padding: 4px 12px;
  background: none;
  transition: transform .2s ease;
}
a.fdmb-marquee__logo:hover { transform: translateY(-3px); }
@media (max-width: 767px) {
  .fdmb-marquee__item { height: 88px; }
  .fdmb-marquee__logo { height: 68px; padding: 4px 8px; }
}

.fdmb-home-tag__count {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(252, 212, 160, .15);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
}
.fdmb-home-tag:hover .fdmb-home-tag__count { background: rgba(26, 20, 0, .15); }

/* Vote header: title/description/subtitle grouped in 75%, trophy sponsor logo in the other 25% */
.fdmb-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}
.fdmb-hero__main { flex: 0 0 75%; max-width: 75%; min-width: 0; }
.fdmb-hero__sponsor {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fdmb-hero__sponsor a { display: block; max-width: 100%; }
.fdmb-hero__sponsor img { display: block; max-width: 100%; max-height: 90px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 767px) {
  .fdmb-hero__inner { gap: 12px; }
  .fdmb-hero__sponsor img { max-height: 56px; }
}

/* ── Vote page loading veil: gold logo jigsaw that assembles itself ── */
.fdmb-hub__content { position: relative; }
.fdmb-loader {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  opacity: 1;
  visibility: visible;
  transition: opacity .4s ease, visibility .4s ease;
  animation: fdmb-loader-failsafe .4s ease 15s forwards;
}
.fdmb-loader--js { animation: none; }
.fdmb-loader--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.fdmb-loader__inner { position: sticky; top: 30vh; display: flex; justify-content: center; padding: 48px 0; }
.fdmb-puzzle {
  position: relative;
  width: 200px;
  height: 163px;
  filter: drop-shadow(0 0 18px rgba(255, 209, 0, .35));
}
.fdmb-puzzle__piece {
  position: absolute;
  width: 25%;
  height: 33.3334%;
  background-size: 400% 300%;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fdmb-piece 3s cubic-bezier(.22, .9, .3, 1) infinite;
  animation-delay: calc(var(--i) * 70ms);
}
@keyframes fdmb-piece {
  0%   { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.3); }
  12%  { opacity: 1; }
  55%  { opacity: 1; transform: none; }
  82%  { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes fdmb-loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (max-width: 767px) { .fdmb-puzzle { width: 150px; height: 122px; } }
@media (prefers-reduced-motion: reduce) {
  .fdmb-puzzle__piece { animation: none; opacity: 1; transform: none; }
}

/* Space between the cards grid and the "Votez" button */
.fdm-poll--ballondor .fdm-submit-container,
.fdmb-hub__panel .fdm-submit-container { padding-top: 32px; }

/* Footballer profile line (team logo | age | position) at the top of the stats overlay / popup.
   Colors carry fallbacks: this markup is also cloned into the popup outside .fdmb-hub. */
.fdm-card__profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fdm-card__team-logo { height: 26px; width: auto; max-width: 42px; object-fit: contain; display: block; }
.fdm-card__team-name { font-size: .72rem; letter-spacing: .04em; }
.fdm-card__profile-sep { color: var(--fdmb-muted, #a89b86); font-weight: 400; }
.fdm-card__pos { color: var(--fdmb-gold-strong, #FFD100); cursor: help; }
.fdm-stats-modal__content .fdm-card__profile { margin-bottom: 14px; font-size: .9rem; }
.fdm-stats-modal__content .fdm-card__team-logo { height: 34px; max-width: 54px; }

/* ── Plyr (self-hosted "But de l'année" videos) themed to the votes page ── */
.fdm-video-modal {
  --plyr-font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --plyr-font-weight-regular: 500;
  --plyr-font-weight-bold: 700;
  --plyr-color-main: #FFD100;
  --plyr-video-background: #000000;
  --plyr-video-control-color: #ffffff;
  --plyr-video-control-color-hover: #1a1400;
  --plyr-video-control-background-hover: #FFD100;
  --plyr-video-controls-background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  --plyr-control-radius: 999px;
  --plyr-control-icon-size: 16px;
  --plyr-menu-background: #14120f;
  --plyr-menu-color: #ffffff;
  --plyr-menu-border-color: rgba(255, 255, 255, .12);
  --plyr-menu-arrow-color: #a89b86;
  --plyr-tooltip-background: #FFD100;
  --plyr-tooltip-color: #1a1400;
  --plyr-range-track-height: 5px;
  --plyr-range-thumb-height: 14px;
  --plyr-range-fill-background: #FFD100;
  --plyr-video-range-track-background: rgba(255, 255, 255, .25);
  --plyr-video-progress-buffered-background: rgba(255, 255, 255, .3);
  --plyr-badge-background: #FFD100;
  --plyr-badge-text-color: #1a1400;
}
.fdm-video-modal .plyr {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.fdm-video-modal .plyr video { max-height: 80vh; }
.fdm-video-modal .plyr--video .plyr__control--overlaid {
  background: #FFD100;
  color: #1a1400;
  box-shadow: 0 6px 24px rgba(255, 209, 0, .4);
}
.fdm-video-modal .plyr--video .plyr__control--overlaid:hover { background: #FFE24D; }
.fdm-video-modal .plyr--video .plyr__control[aria-expanded='true'] { background: #FFD100; color: #1a1400; }
.fdm-video-modal .plyr__control:focus-visible { outline: 2px solid #FFD100; outline-offset: 2px; }
