/*
Theme Name: NdiambourVision
Theme URI: https://ndiambourvision.com
Author: NdiambourVision
Author URI: https://ndiambourvision.com
Description: Thème professionnel pour NdiambourVision – Broadcast, formations audiovisuelles et informatiques. Intègre un player vidéo live, des sections formations, services et broadcast.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ndiambourvision
Tags: broadcast, education, dark, custom-colors, custom-logo, full-width-template
*/

/* ================================================================
   NdiambourVision Theme – CSS Principal
   Broadcast · Formation Audiovisuelle · Informatique
   Mbour, Sénégal
================================================================ */

:root {
  --ndv-red:        #E63329;
  --ndv-red-dark:   #B02520;
  --ndv-gold:       #F5A623;
  --ndv-gold-light: #FFC85E;
  --ndv-dark:       #0A0A0A;
  --ndv-dark2:      #111111;
  --ndv-dark3:      #1A1A1A;
  --ndv-dark4:      #222222;
  --ndv-gray:       #888888;
  --ndv-light:      #F5F5F0;
  --ndv-white:      #FFFFFF;
  --ndv-font-display: 'Bebas Neue', sans-serif;
  --ndv-font-body:    'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ndv-font-body);
  background: var(--ndv-dark);
  color: var(--ndv-white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── UTILITAIRES ── */
.ndv-container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.ndv-section   { padding: 5rem 2rem; }
.ndv-section--dark2 { background: var(--ndv-dark2); }
.ndv-section--dark   { background: var(--ndv-dark); }

.ndv-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--ndv-red);
  margin-bottom: 0.75rem;
}

.ndv-title {
  font-family: var(--ndv-font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1; letter-spacing: 1px;
  margin-bottom: 1rem;
}
.ndv-title span { color: var(--ndv-red); }

.ndv-desc {
  font-size: 15px; color: rgba(255,255,255,0.5);
  max-width: 480px; line-height: 1.75;
}

/* ── BUTTONS ── */
.ndv-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ndv-font-body); font-size: 14px;
  font-weight: 600; padding: 13px 26px; border-radius: 6px;
  border: none; cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.ndv-btn--primary { background: var(--ndv-red); color: var(--ndv-white); }
.ndv-btn--primary:hover { background: var(--ndv-red-dark); transform: translateY(-2px); color: var(--ndv-white); }
.ndv-btn--secondary { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }
.ndv-btn--secondary:hover { border-color: rgba(255,255,255,0.5); color: var(--ndv-white); transform: translateY(-2px); }

/* ── REC DOT ── */
.ndv-rec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ndv-red); flex-shrink: 0;
  animation: ndvBlink 1.4s ease-in-out infinite;
}
@keyframes ndvBlink { 0%,100%{opacity:1} 50%{opacity:0.15} }

/* ── NAVBAR ── */
#ndv-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230,51,41,0.12);
  transition: box-shadow 0.3s;
}
#ndv-navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }

.ndv-logo {
  font-family: var(--ndv-font-display);
  font-size: 26px; letter-spacing: 2px; color: var(--ndv-white);
  display: flex; align-items: center; gap: 8px;
}
.ndv-logo span { color: var(--ndv-red); }

.ndv-nav-menu { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.ndv-nav-menu a {
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.ndv-nav-menu a:hover, .ndv-nav-menu .current-menu-item > a { color: var(--ndv-gold); }
.ndv-nav-cta-link {
  background: var(--ndv-red); color: var(--ndv-white) !important;
  padding: 8px 18px; border-radius: 4px; font-weight: 600 !important;
}
.ndv-nav-cta-link:hover { background: var(--ndv-red-dark) !important; }

.ndv-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.ndv-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--ndv-white); transition: all 0.3s;
}

/* ── HERO ── */
.ndv-hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 2.5rem 5rem; overflow: hidden;
}
.ndv-hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(230,51,41,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 60% at 20% 70%, rgba(245,166,35,0.05) 0%, transparent 60%),
              linear-gradient(180deg, #0A0A0A 0%, #111111 100%);
}
.ndv-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 80%);
}
.ndv-hero__content { position: relative; max-width: 750px; }
.ndv-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(230,51,41,0.1); border: 1px solid rgba(230,51,41,0.3);
  border-radius: 40px; padding: 6px 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ndv-red); margin-bottom: 1.5rem;
}
.ndv-hero__title {
  font-family: var(--ndv-font-display);
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.95; letter-spacing: -1px; margin-bottom: 1rem;
}
.ndv-hero__title .line2 { color: var(--ndv-red); }
.ndv-hero__title .line3 { -webkit-text-stroke: 1px rgba(255,255,255,0.25); color: transparent; }

.ndv-hero__sub {
  font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.5);
  max-width: 500px; line-height: 1.8; margin-bottom: 2.5rem;
}
.ndv-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.ndv-hero__stats {
  position: absolute; right: 3rem; bottom: 5rem;
  display: flex; flex-direction: column; gap: 1.5rem; text-align: right;
}
.ndv-stat__num { font-family: var(--ndv-font-display); font-size: 42px; color: var(--ndv-gold); line-height: 1; }
.ndv-stat__label { font-size: 10px; color: rgba(255,255,255,0.35); letter-spacing: 1.5px; text-transform: uppercase; }

/* ── TICKER ── */
.ndv-ticker { background: var(--ndv-red); padding: 10px 0; overflow: hidden; }
.ndv-ticker__track { display: inline-flex; gap: 3rem; animation: ndvScroll 22s linear infinite; }
@keyframes ndvScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ndv-ticker__item {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.88); display: inline-flex; align-items: center; gap: 1rem; white-space: nowrap;
}
.ndv-ticker__sep { width: 4px; height: 4px; background: rgba(255,255,255,0.4); border-radius: 50%; }

/* ── LIVE PLAYER ── */
.ndv-player-section { background: var(--ndv-dark); padding: 0 2.5rem 5rem; }
.ndv-player-wrap {
  background: var(--ndv-dark2); border: 1px solid rgba(230,51,41,0.2);
  border-radius: 14px; overflow: hidden;
}
.ndv-player-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(230,51,41,0.05);
}
.ndv-player-live-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--ndv-white); text-transform: uppercase;
}
.ndv-player-title-text { font-size: 13px; color: rgba(255,255,255,0.5); }
.ndv-player-viewers { font-size: 12px; color: rgba(255,255,255,0.4); }

.ndv-player-body { position: relative; width: 100%; }
.ndv-player-body iframe,
.ndv-player-body video {
  width: 100%; aspect-ratio: 16/9; display: block; border: none;
}

.ndv-player-offline {
  aspect-ratio: 16/9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  background: var(--ndv-dark); color: rgba(255,255,255,0.3);
}
.ndv-player-offline svg { opacity: 0.25; }
.ndv-player-offline p { font-size: 14px; letter-spacing: 1px; }

.ndv-player-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap; gap: 0.75rem;
}
.ndv-share-btns { display: flex; gap: 0.5rem; }
.ndv-share-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 6px 14px; font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.5);
  cursor: pointer; transition: all 0.2s;
}
.ndv-share-btn:hover { background: rgba(230,51,41,0.15); border-color: rgba(230,51,41,0.3); color: var(--ndv-white); }

/* ── SERVICES ── */
.ndv-services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5px; background: rgba(255,255,255,0.05);
  border-radius: 12px; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.05);
}
.ndv-service-card {
  background: var(--ndv-dark3); padding: 2.5rem; position: relative; cursor: pointer;
  transition: background 0.3s;
}
.ndv-service-card:hover { background: var(--ndv-dark4); }
.ndv-service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--ndv-red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.ndv-service-card:hover::after { transform: scaleX(1); }
.ndv-service-icon {
  width: 46px; height: 46px; background: rgba(230,51,41,0.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.ndv-service-num {
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-family: var(--ndv-font-display); font-size: 48px;
  color: rgba(255,255,255,0.04); line-height: 1;
}
.ndv-service-card h3 {
  font-family: var(--ndv-font-display); font-size: 22px;
  letter-spacing: 1px; margin-bottom: 0.75rem;
}
.ndv-service-card p { font-size: 13px; color: rgba(255,255,255,0.42); line-height: 1.7; }

/* ── FORMATIONS ── */
.ndv-formations-layout {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 3.5rem; align-items: start; margin-top: 2.5rem;
}
.ndv-formation-filters { display: flex; flex-direction: column; gap: 0.5rem; }
.ndv-filter-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px; padding: 13px 18px; color: rgba(255,255,255,0.45);
  font-family: var(--ndv-font-body); font-size: 13px; font-weight: 500;
  text-align: left; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: space-between;
}
.ndv-filter-btn:hover, .ndv-filter-btn.active {
  background: rgba(230,51,41,0.08); border-color: rgba(230,51,41,0.25); color: var(--ndv-white);
}
.ndv-filter-btn.active { color: var(--ndv-red); font-weight: 600; }
.ndv-filter-count {
  background: rgba(255,255,255,0.07); border-radius: 20px; padding: 2px 8px; font-size: 11px;
}
.ndv-filter-btn.active .ndv-filter-count { background: rgba(230,51,41,0.18); color: var(--ndv-red); }

.ndv-courses-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.ndv-course-card {
  background: var(--ndv-dark3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; overflow: hidden; transition: transform 0.2s, border-color 0.2s; cursor: pointer;
}
.ndv-course-card:hover { transform: translateY(-4px); border-color: rgba(230,51,41,0.25); }
.ndv-course-thumb { height: 115px; position: relative; overflow: hidden; }
.ndv-course-badge {
  position: absolute; top: 10px; left: 10px; background: var(--ndv-red);
  color: var(--ndv-white); font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 3px;
}
.ndv-course-body { padding: 1rem; }
.ndv-course-body h4 { font-size: 13px; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.3; }
.ndv-course-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,0.3); }
.ndv-course-level {
  margin-left: auto; background: rgba(245,166,35,0.12);
  color: var(--ndv-gold); font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 3px;
}

/* ── CTA ── */
.ndv-cta-inner {
  border: 1px solid rgba(230,51,41,0.18);
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(230,51,41,0.06) 0%, transparent 70%);
  border-radius: 16px; padding: 4rem 2rem; text-align: center;
}
.ndv-cta-inner .ndv-desc { margin: 0 auto 2.5rem; text-align: center; }
.ndv-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
#ndv-footer {
  background: var(--ndv-dark2); border-top: 1px solid rgba(255,255,255,0.05); padding: 3.5rem 2.5rem 2rem;
}
.ndv-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.ndv-footer-brand p { font-size: 13px; color: rgba(255,255,255,0.32); line-height: 1.7; margin: 0.75rem 0 1.25rem; }
.ndv-footer-col h5 {
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.25); margin-bottom: 1rem;
}
.ndv-footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 0.5rem; transition: color 0.2s; }
.ndv-footer-col a:hover { color: var(--ndv-white); }
.ndv-footer-bottom {
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.ndv-footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.22); }
.ndv-footer-bottom span { color: var(--ndv-red); }
.ndv-social-links { display: flex; gap: 0.5rem; }
.ndv-social-btn {
  width: 34px; height: 34px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-size: 12px; transition: all 0.2s;
}
.ndv-social-btn:hover { background: rgba(230,51,41,0.14); border-color: rgba(230,51,41,0.3); color: var(--ndv-white); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ndv-services-grid { grid-template-columns: repeat(2,1fr); }
  .ndv-formations-layout { grid-template-columns: 1fr; }
  .ndv-courses-grid { grid-template-columns: repeat(2,1fr); }
  .ndv-footer-grid { grid-template-columns: 1fr 1fr; }
  .ndv-hero__stats { position: static; text-align: left; flex-direction: row; flex-wrap: wrap; margin-top: 2rem; }
}

@media (max-width: 768px) {
  .ndv-hamburger { display: flex; }
  .ndv-nav-menu {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column; justify-content: center; align-items: center;
    background: rgba(10,10,10,0.98); backdrop-filter: blur(20px);
    gap: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .ndv-nav-menu.open { opacity: 1; pointer-events: all; }
  .ndv-nav-menu a { font-size: 18px; letter-spacing: 3px; }
  .ndv-services-grid { grid-template-columns: 1fr; }
  .ndv-courses-grid { grid-template-columns: 1fr; }
  .ndv-footer-grid { grid-template-columns: 1fr; }
  #ndv-navbar { padding: 0 1.25rem; }
  .ndv-hero { padding: 7rem 1.25rem 4rem; }
  .ndv-section { padding: 3.5rem 1.25rem; }
}
