/* ═══ GLOBAL DARK OVERRIDE — Bootstrap neutralizer ═══════════════ */
html, body, body > *, main, #main-content,
.container, .container-fluid, .container-lg, .container-md,
.row, [class*="col-"], section, article, header, footer, div, nav {
  background-color: transparent !important;
}
html, body { background-color: #04060a !important; }
a { color: inherit !important; text-decoration: none !important; }
a:hover { text-decoration: none !important; }
/* ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ══════════════════════════════════════════════════
   DESIGN SYSTEM — Billboard Editorial Dark
   Esthétique : Agence presse / Times Square digital
══════════════════════════════════════════════════ */
:root {
  --ink:     #04060a;
  --ink2:    #080d14;
  --ink3:    #0d1520;
  --ink4:    #141f2e;
  --ink5:    #1a2838;
  --g:       #00e57a;
  --g2:      rgba(0,229,122,.5);
  --gbg:     rgba(0,229,122,.07);
  --amber:   #f59e0b;
  --rose:    #f43f5e;
  --cyan:    #06b6d4;
  --violet:  #8b5cf6;
  --txt:     #e2ecf8;
  --dim:     rgba(226,236,248,.58);
  --ghost:   rgba(226,236,248,.28);
  --bord:    rgba(255,255,255,.07);
  --bord2:   rgba(255,255,255,.13);
  --fb:      'DM Sans', sans-serif;
  --fm:      'JetBrains Mono', monospace;
  --fbb:     'Bebas Neue', sans-serif;
  --ease:    cubic-bezier(.22,1,.36,1);
  --spring:  cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body, body>*, main, #main-content { background: var(--ink) !important; }
body { color: #e2ecf8 !important; font-family: var(--fb) !important; -webkit-font-smoothing: antialiased; }
.container, .container-fluid, .row, [class*="col-"] { background: transparent !important; }
a { text-decoration: none !important; color: inherit; }
::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-thumb { background: var(--g); border-radius: 2px; }

/* ── SCAN LINE ── */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 8999;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,229,122,.007) 3px, rgba(0,229,122,.007) 4px);
}

/* ══════════════════════════════════════════════════
   BILLBOARD HERO
══════════════════════════════════════════════════ */
.bb-hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: #04060a !important;
}

/* Animated grid bg */
.bb-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0,229,122,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,122,.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift { from{background-position:0 0;} to{background-position:50px 50px;} }

/* Corner accents */
.bb-corner {
  position: absolute; width: 120px; height: 120px; z-index: 1; pointer-events: none;
}
.bb-corner-tl { top: 0; left: 0; border-top: 2px solid var(--g); border-left: 2px solid var(--g); }
.bb-corner-tr { top: 0; right: 0; border-top: 2px solid var(--g); border-right: 2px solid var(--g); }
.bb-corner-bl { bottom: 0; left: 0; border-bottom: 2px solid var(--g); border-left: 2px solid var(--g); opacity: .4; }
.bb-corner-br { bottom: 0; right: 0; border-bottom: 2px solid var(--g); border-right: 2px solid var(--g); opacity: .4; }

/* Top ticker */
.bb-ticker-top {
  position: relative; z-index: 10;
  background: var(--g);
  color: #000;
  padding: 8px 0;
  overflow: hidden;
  flex-shrink: 0;
}
.bb-ticker-scroll {
  display: flex; gap: 0;
  animation: tickerRun 22s linear infinite;
  width: max-content;
}
@keyframes tickerRun { from{transform:translateX(0);} to{transform:translateX(-50%);} }
.bb-ticker-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 28px;
  font-family: var(--fm); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; color: #000;
  border-right: 1px solid rgba(0,0,0,.15);
}
.bb-ticker-sep { color: rgba(0,0,0,.4); }

/* Main billboard content */
.bb-main {
  flex: 1;
  position: relative; z-index: 5;
  display: flex; align-items: center;
  padding: 60px 0 40px;
}

/* Slide counter */
.bb-counter {
  position: absolute; top: 30px; right: 0;
  font-family: var(--fbb); font-size: 9rem; font-weight: 400;
  color: rgba(0,229,122,.04);
  line-height: 1; pointer-events: none; z-index: 0;
  transition: all .8s var(--ease);
  user-select: none;
}

/* Main slide */
.bb-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transform: translateX(60px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  pointer-events: none;
}
.bb-slide.active {
  opacity: 1; transform: translateX(0);
  pointer-events: auto;
}
.bb-slide.out {
  opacity: 0; transform: translateX(-60px);
}

.bb-slide-inner { padding: 0 20px; width: 100%; }
.bb-slide-row { display: flex; align-items: center; gap: 60px; }

/* Type label */
.bb-type-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fm); font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 22px;
}
.bb-type-BLOG       { background: rgba(6,182,212,.12); color: var(--cyan); border: 1px solid rgba(6,182,212,.25); }
.bb-type-CHALLENGE  { background: rgba(245,158,11,.12); color: var(--amber); border: 1px solid rgba(245,158,11,.25); }
.bb-type-SONDAGE    { background: rgba(139,92,246,.12); color: var(--violet); border: 1px solid rgba(139,92,246,.25); }
.bb-type-COMMUNAUTE { background: rgba(0,229,122,.1); color: var(--g); border: 1px solid rgba(0,229,122,.22); }
.bb-type-FORMATION  { background: rgba(244,63,94,.1); color: var(--rose); border: 1px solid rgba(244,63,94,.22); }
.bb-type-default    { background: var(--gbg); color: var(--g); border: 1px solid rgba(0,229,122,.2); }
.bb-type-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; animation: bbdot 1.5s ease-in-out infinite; }
@keyframes bbdot { 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* Big title */
.bb-slide-title {
  font-family: var(--fbb);
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: .02em;
  color: #ffffff !important;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.bb-slide-title mark {
  background: none;
  -webkit-text-stroke: 2px var(--g);
  color: transparent;
  padding: 0 4px;
}

/* Excerpt */
.bb-slide-excerpt {
  font-size: 16px; font-weight: 300; color: rgba(226,236,248,.58);
  line-height: 1.8; max-width: 520px; margin-bottom: 32px;
}

/* Date + action */
.bb-slide-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bb-slide-date {
  font-family: var(--fm); font-size: 11px; color: rgba(226,236,248,.28);
  display: flex; align-items: center; gap: 7px;
}
.bb-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  background: var(--g); color: #000 !important;
  font-family: var(--fm); font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border: none; border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,229,122,.3);
  transition: all .3s var(--spring);
}
.bb-btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 32px rgba(0,229,122,.5); color: #000 !important; }
.bb-btn-primary svg { transition: transform .2s; }
.bb-btn-primary:hover svg { transform: translateX(4px); }

/* Image side */
.bb-slide-img {
  width: 420px; flex-shrink: 0;
  aspect-ratio: 16/10;
  border-radius: 12px; overflow: hidden;
  position: relative;
  border: 1px solid var(--bord2);
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 40px rgba(0,229,122,.06);
}
.bb-slide-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.bb-slide.active .bb-slide-img img { transform: scale(1.04); }
.bb-slide-img-ph {
  width: 100%; height: 100%;
  background: #0d1520 !important;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.bb-slide-img-ph::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(0,229,122,.08), transparent 60%);
}
.bb-slide-img-ph svg { position: relative; z-index: 1; }

/* Progress bar */
.bb-progress {
  position: absolute; bottom: 0; left: 0;
  height: 2px; background: var(--g);
  width: 0%; transition: width linear;
  box-shadow: 0 0 8px var(--g);
}

/* Navigation dots */
.bb-dots {
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: 20px 0 28px;
  justify-content: center;
}
.bb-dot {
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--bord2); border: none; cursor: pointer;
  transition: all .3s var(--ease); padding: 0;
}
.bb-dot.active {
  background: var(--g); width: 28px;
  box-shadow: 0 0 10px rgba(0,229,122,.5);
}

/* Nav arrows */
.bb-nav-arrows {
  position: absolute; bottom: 24px; right: 0; z-index: 10;
  display: flex; gap: 8px;
}
.bb-arrow {
  width: 44px; height: 44px; border-radius: 6px;
  background: var(--ink3); border: 1px solid var(--bord2);
  color: rgba(226,236,248,.58); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease); font-size: .9rem;
}
.bb-arrow:hover { background: var(--gbg); border-color: rgba(0,229,122,.35); color: var(--g); transform: scale(1.06); }

/* Slide count display */
.bb-slide-count {
  position: absolute; bottom: 32px; left: 0; z-index: 10;
  font-family: var(--fm); font-size: 12px; color: rgba(226,236,248,.28);
  letter-spacing: .06em;
}
.bb-slide-count strong { color: var(--g); }

/* ══════════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════════ */
.bb-filter-section {
  background: var(--ink2);
  border-top: 1px solid var(--bord);
  border-bottom: 1px solid var(--bord);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
}
.bb-filter-inner {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.bb-filter-inner::-webkit-scrollbar { display: none; }
.bb-filter-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 16px 22px;
  font-family: var(--fm); font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(226,236,248,.28); cursor: pointer; border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all .25s; white-space: nowrap;
}
.bb-filter-btn:hover { color: #e2ecf8; }
.bb-filter-btn.active { color: var(--g); border-bottom-color: var(--g); }
.bb-filter-count {
  padding: 1px 7px; border-radius: 3px;
  background: var(--gbg); border: 1px solid rgba(0,229,122,.15);
  font-size: 9px; color: var(--g); font-weight: 700;
}

/* ══════════════════════════════════════════════════
   CARDS GRID
══════════════════════════════════════════════════ */
.bb-cards-section { padding: 64px 0 80px; background: #04060a !important; }

.bb-section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 36px;
}
.bb-section-title {
  font-family: var(--fbb); font-size: 2.2rem; font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase; color: #fff;
  display: flex; align-items: center; gap: 14px;
}
.bb-section-title::before {
  content: ''; width: 4px; height: 32px; background: var(--g);
  border-radius: 2px; box-shadow: 0 0 10px var(--g);
}

/* Card */
.bb-card {
  background: var(--ink2);
  border: 1px solid var(--bord);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
  transition: all .35s var(--ease);
  position: relative;
  cursor: pointer;
}
.bb-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,229,122,.07), transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.bb-card:hover {
  border-color: rgba(0,229,122,.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.5), 0 0 30px rgba(0,229,122,.06);
}
.bb-card:hover::after { opacity: 1; }

/* Card top stripe */
.bb-card-stripe {
  height: 3px; width: 100%;
}
.stripe-BLOG       { background: linear-gradient(90deg, var(--cyan), #0ea5e9); }
.stripe-CHALLENGE  { background: linear-gradient(90deg, var(--amber), #ef4444); }
.stripe-SONDAGE    { background: linear-gradient(90deg, var(--violet), #ec4899); }
.stripe-COMMUNAUTE { background: linear-gradient(90deg, var(--g), #00c9aa); }
.stripe-FORMATION  { background: linear-gradient(90deg, var(--rose), #f97316); }
.stripe-default    { background: linear-gradient(90deg, var(--g), var(--cyan)); }

/* Card img */
.bb-card-img { height: 170px; overflow: hidden; flex-shrink: 0; position: relative; }
.bb-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.bb-card:hover .bb-card-img img { transform: scale(1.07); }
.bb-card-img-ph {
  height: 100%; background: #0d1520 !important;
  display: flex; align-items: center; justify-content: center;
}

/* Card body */
.bb-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.bb-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bb-card-type {
  font-family: var(--fm); font-size: 9px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 3px;
}
.type-BLOG       { background: rgba(6,182,212,.1); color: var(--cyan); }
.type-CHALLENGE  { background: rgba(245,158,11,.1); color: var(--amber); }
.type-SONDAGE    { background: rgba(139,92,246,.1); color: var(--violet); }
.type-COMMUNAUTE { background: var(--gbg); color: var(--g); }
.type-FORMATION  { background: rgba(244,63,94,.1); color: var(--rose); }
.type-default    { background: var(--gbg); color: var(--g); }

.bb-card-date { font-family: var(--fm); font-size: 9.5px; color: rgba(226,236,248,.28); }
.bb-card-title {
  font-family: var(--fb); font-size: 15px; font-weight: 700;
  color: #fff; line-height: 1.4; margin-bottom: 10px;
}
.bb-card-excerpt {
  font-size: 13px; color: rgba(226,236,248,.58); line-height: 1.75;
  font-weight: 300; flex: 1; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bb-card-footer {
  padding-top: 14px; border-top: 1px solid var(--bord);
  display: flex; align-items: center; justify-content: space-between;
}
.bb-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--fm); font-size: 10.5px; font-weight: 600;
  color: var(--g) !important; letter-spacing: .06em;
  transition: gap .2s;
}
.bb-card-link:hover { gap: 10px; color: var(--g) !important; }
.bb-card-link-ghost {
  font-family: var(--fm); font-size: 10px; color: rgba(226,236,248,.28);
  display: flex; align-items: center; gap: 5px;
}

/* ══ FEATURED ROW ════════════════════════════════ */
.bb-featured {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 20px; margin-bottom: 20px;
}
.bb-featured-main {
  background: var(--ink2); border: 1px solid var(--bord);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .35s var(--ease); position: relative;
}
.bb-featured-main::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(0,229,122,.06), transparent 50%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.bb-featured-main:hover { border-color: rgba(0,229,122,.25); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,.5); }
.bb-featured-main:hover::after { opacity: 1; }
.bb-featured-img { height: 280px; overflow: hidden; position: relative; }
.bb-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); display: block; }
.bb-featured-main:hover .bb-featured-img img { transform: scale(1.05); }
.bb-featured-img-ph { height: 100%; background: #0d1520 !important; display: flex; align-items: center; justify-content: center; }
.bb-featured-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.bb-featured-title { font-family: var(--fbb); font-size: 1.9rem; font-weight: 400; text-transform: uppercase; letter-spacing: .03em; color: #fff; line-height: 1.1; margin-bottom: 12px; }
.bb-featured-excerpt { font-size: 14px; color: rgba(226,236,248,.58); line-height: 1.75; font-weight: 300; flex: 1; margin-bottom: 20px; }

.bb-featured-side { display: flex; flex-direction: column; gap: 16px; }
.bb-side-card {
  background: var(--ink2); border: 1px solid var(--bord);
  border-radius: 10px; padding: 18px;
  flex: 1; display: flex; flex-direction: column;
  transition: all .3s var(--ease); position: relative;
}
.bb-side-card:hover { border-color: rgba(0,229,122,.22); transform: translateX(-4px); }
.bb-side-title { font-family: var(--fb); font-size: 13.5px; font-weight: 700; color: #fff; margin: 8px 0 6px; line-height: 1.35; }
.bb-side-excerpt { font-size: 12px; color: rgba(226,236,248,.58); line-height: 1.7; flex: 1; font-weight: 300; margin-bottom: 12px; }

/* ══ EMPTY ════════════════════════════════════════ */
.bb-empty {
  text-align: center; padding: 90px 40px;
  background: var(--ink2); border: 1px dashed var(--bord2); border-radius: 16px;
}
.bb-empty-num { font-family: var(--fbb); font-size: 6rem; color: rgba(0,229,122,.08); line-height: 1; margin-bottom: 16px; }

/* ══ RESPONSIVE ═══════════════════════════════════ */
@media(max-width:1100px) { .bb-featured { grid-template-columns: 1fr; } .bb-featured-side { flex-direction: row; } }
@media(max-width:992px)  { .bb-slide-img { width: 320px; } .bb-slide-row { gap: 30px; } }
@media(max-width:768px)  { .bb-slide-img { display: none; } .bb-slide-title { font-size: 2.8rem; } .bb-featured-side { flex-direction: column; } }

/* ══ CARD FADE (ex-bloc <style> de fin de content) ══ */
@keyframes cardFade { from{opacity:0;transform:translateY(18px);} to{opacity:1;transform:translateY(0);} }
