/* ==========================================================================
   Elteus Actualités & Événements - Public Stylesheet
   ========================================================================== */

:root {
  --ene-blue: #004A7F;
  --ene-blue-dark: #00365d;
  --ene-blue-light: #e6f0fa;
  --ene-orange: #F29B3A;
  --ene-orange-dark: #d97706;
  --ene-orange-light: #fef3e2;
  --ene-text: #1F1F1F;
  --ene-muted: #6B7280;
  --ene-border: #E5E7EB;
  --ene-bg: #F4F7FA;
  --ene-card: #FFFFFF;
  --ene-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --ene-shadow: 0 16px 36px rgba(0, 74, 127, 0.08);
  --ene-shadow-hover: 0 24px 50px rgba(0, 74, 127, 0.15);
  --ene-radius: 18px;
  --ene-radius-sm: 10px;
  --ene-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ene-wrap {
  background-color: var(--ene-bg);
  padding: 60px 20px 90px;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ene-text);
  box-sizing: border-box;
}

.ene-wrap *, .ene-wrap *::before, .ene-wrap *::after {
  box-sizing: border-box;
}

.ene-inner {
  max-width: 1240px;
  margin: 0 auto;
}

/* ==========================================================================
   Header / Hero
   ========================================================================== */
.ene-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}

.ene-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 74, 127, 0.08);
  color: var(--ene-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.ene-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--ene-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(242, 155, 58, 0.7);
  animation: enePulse 2s infinite;
}

@keyframes enePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(242, 155, 58, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(242, 155, 58, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(242, 155, 58, 0); }
}

.ene-header__title {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--ene-blue);
  margin: 0 0 16px;
  line-height: 1.2;
}

.ene-header__desc {
  font-size: 17px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* ==========================================================================
   Badges & Micro elements
   ========================================================================== */
.ene-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  line-height: 1;
}

.ene-badge--actualite {
  background: var(--ene-blue-light);
  color: var(--ene-blue);
}

.ene-badge--evenement {
  background: var(--ene-orange-light);
  color: var(--ene-orange-dark);
}

.ene-badge--star {
  background: #fef3c7;
  color: #92400e;
}

.ene-badge--star-sm {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
  font-size: 10px;
}

.ene-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ene-muted);
  font-weight: 500;
}

.ene-duration-badge {
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: #374151;
  font-size: 12px;
}

/* ==========================================================================
   Responsive Video Container (16:9)
   ========================================================================== */
.ene-responsive-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 12px;
}

.ene-responsive-video iframe,
.ene-responsive-video video,
.ene-responsive-video object,
.ene-responsive-video embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Featured Video Section
   ========================================================================== */
.ene-featured-section {
  margin-bottom: 60px;
}

.ene-featured-card {
  background: var(--ene-card);
  border-radius: var(--ene-radius);
  box-shadow: var(--ene-shadow);
  border-top: 4px solid var(--ene-blue);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ene-featured-player-wrap {
  width: 100%;
  background: #050b14;
}

.ene-featured-player-wrap .ene-responsive-video {
  border-radius: 0;
}

.ene-featured-info {
  padding: 32px 36px 36px;
}

.ene-featured-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ene-featured-title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ene-blue);
  margin: 0 0 16px;
  line-height: 1.3;
}

.ene-featured-excerpt {
  color: #374151;
  font-size: 16px;
  line-height: 1.7;
}

.ene-featured-excerpt p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Feed Controls (Tabs & Search)
   ========================================================================== */
.ene-feed-section {
  margin-top: 20px;
}

.ene-feed-controls {
  margin-bottom: 30px;
}

.ene-feed-heading {
  margin-bottom: 20px;
}

.ene-feed-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ene-blue);
  margin: 0 0 6px;
}

.ene-feed-sub {
  font-size: 14px;
  color: var(--ene-muted);
  margin: 0;
}

.ene-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--ene-card);
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: var(--ene-shadow-sm);
  border: 1px solid var(--ene-border);
}

.ene-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ene-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: var(--ene-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ene-tab-btn:hover {
  background: #f3f4f6;
  color: var(--ene-blue);
}

.ene-tab-btn--active {
  background: var(--ene-blue) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 74, 127, 0.25);
}

.ene-tab-count {
  background: rgba(0, 0, 0, 0.08);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}

.ene-tab-btn--active .ene-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.ene-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
}

.ene-search-icon {
  position: absolute;
  left: 12px;
  color: var(--ene-muted);
  pointer-events: none;
}

.ene-search-box input {
  width: 100%;
  padding: 8px 32px 8px 36px;
  border-radius: 20px;
  border: 1px solid var(--ene-border);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  background: #fafafa;
  outline: none;
  transition: var(--ene-transition);
}

.ene-search-box input:focus {
  border-color: var(--ene-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 74, 127, 0.1);
}

#ene-clear-search {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 16px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* ==========================================================================
   Video Grid & Cards
   ========================================================================== */
.ene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.ene-card {
  background: var(--ene-card);
  border-radius: var(--ene-radius);
  box-shadow: var(--ene-shadow-sm);
  border: 1px solid var(--ene-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--ene-transition);
  cursor: pointer;
}

.ene-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ene-shadow-hover);
  border-color: rgba(0, 74, 127, 0.2);
}

.ene-card__thumb-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #0f172a;
  overflow: hidden;
}

.ene-card__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ene-card:hover .ene-card__thumb {
  transform: scale(1.05);
}

.ene-card__thumb-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #004A7F 0%, #00223B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ene-card__badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.ene-card__duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.ene-card__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 52px;
  height: 52px;
  background: rgba(242, 155, 58, 0.95);
  color: #fff;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--ene-transition);
  box-shadow: 0 8px 24px rgba(242, 155, 58, 0.4);
}

.ene-card__play-btn svg {
  margin-left: 2px;
}

.ene-card:hover .ene-card__play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--ene-orange);
  box-shadow: 0 10px 28px rgba(242, 155, 58, 0.6);
}

.ene-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ene-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ene-muted);
}

.ene-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ene-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}

.ene-card__title-link {
  color: var(--ene-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ene-card:hover .ene-card__title-link {
  color: var(--ene-orange);
}

.ene-card__desc {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}

.ene-card__footer {
  border-top: 1px solid #f3f4f6;
  padding-top: 14px;
  margin-top: auto;
}

.ene-btn-watch {
  background: transparent;
  border: none;
  color: var(--ene-blue);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  cursor: pointer;
  transition: gap 0.2s ease, color 0.2s ease;
}

.ene-card:hover .ene-btn-watch {
  color: var(--ene-orange);
  gap: 9px;
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.ene-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--ene-card);
  border-radius: var(--ene-radius);
  border: 1px dashed var(--ene-border);
}

.ene-empty-state h4 {
  font-size: 18px;
  color: var(--ene-blue);
  margin: 16px 0 8px;
}

.ene-empty-state p {
  color: var(--ene-muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.ene-btn-reset {
  background: var(--ene-blue);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ene-transition);
}

.ene-btn-reset:hover {
  background: var(--ene-orange);
}

/* ==========================================================================
   Modal Lightbox Player
   ========================================================================== */
.ene-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.ene-modal--open {
  opacity: 1;
  visibility: visible;
}

.ene-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 15, 29, 0.88);
  backdrop-filter: blur(8px);
}

.ene-modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  background: #0d1a29;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ene-modal--open .ene-modal__dialog {
  transform: translateY(0) scale(1);
}

.ene-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ene-modal__close:hover {
  background: var(--ene-orange);
}

.ene-modal__player {
  width: 100%;
  background: #000;
}

.ene-modal__info {
  padding: 24px 28px;
  background: #0d1a29;
  color: #fff;
}

.ene-modal__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ene-modal__info .ene-meta-item {
  color: #94a3b8;
}

.ene-modal__title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.ene-modal__desc {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .ene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 768px) {
  .ene-wrap {
    padding: 40px 16px 60px;
  }
  .ene-header__title {
    font-size: 28px;
  }
  .ene-header__desc {
    font-size: 15px;
  }
  .ene-featured-info {
    padding: 20px;
  }
  .ene-featured-title {
    font-size: 20px;
  }
  .ene-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .ene-search-box {
    width: 100%;
    min-width: 0;
  }
  .ene-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ene-modal__info {
    padding: 18px 20px;
  }
  .ene-modal__title {
    font-size: 18px;
  }
}
