/* =====================================================
   NISA — Styles principaux
   ===================================================== */

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: #14203E; overflow-x: hidden; }

/* Helpers gold */
.gold-gradient { background: linear-gradient(135deg, #B8941F 0%, #D4AF37 25%, #E5C669 50%, #D4AF37 75%, #B8941F 100%); }
.gold-text { background: linear-gradient(135deg, #B8941F 0%, #D4AF37 50%, #E5C669 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ TOP BAR ============ */
.topbar { background: #14203E; height: 50px; }

/* ============ MAIN HEADER ============ */
.main-header { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.main-header.scrolled { background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(20, 32, 62, 0.08); }

/* ============ MINI COUNTDOWN (AGRANDI + SMART STICKY) ============ */
.mini-countdown {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: #14203E;
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 8px 24px rgba(20, 32, 62, 0.25), 0 0 0 2px rgba(212, 175, 55, 0.2);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  flex-shrink: 0;
}
.mini-countdown.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.mini-countdown:hover {
  background: #1d2d52;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(20, 32, 62, 0.3), 0 0 0 2px rgba(212, 175, 55, 0.4);
}
.mini-countdown-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 10px #D4AF37;
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px #D4AF37; }
  50% { transform: scale(1.4); opacity: 0.7; box-shadow: 0 0 18px #D4AF37, 0 0 28px rgba(212, 175, 55, 0.6); }
}
.mini-countdown-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mini-countdown-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #D4AF37;
  font-size: 26px;
  line-height: 1;
  min-width: 36px;
  text-align: center;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

@media (min-width: 1024px) {
  .mini-countdown { display: inline-flex; }
}
@media (max-width: 1023px) {
  /* Sur mobile/tablette : visible aussi mais plus compact */
  .mini-countdown {
    display: inline-flex;
    padding: 10px 18px;
    gap: 10px;
  }
  .mini-countdown-label { font-size: 11px; letter-spacing: 0.05em; }
  .mini-countdown-num { font-size: 18px; min-width: 26px; }
}

/* ============ HAMBURGER ============ */
.hamburger { width: 44px; height: 44px; position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; }
.hamburger span { display: block; width: 26px; height: 2px; background: #14203E; position: absolute; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.hamburger span:nth-child(1) { transform: translateY(-7px); }
.hamburger span:nth-child(2) { width: 18px; transform: translateX(4px); }
.hamburger span:nth-child(3) { transform: translateY(7px); }
.hamburger:hover span:nth-child(2) { width: 26px; transform: translateX(0); }
.hamburger.active span { background: #D4AF37; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

/* ============ MENU PANEL (50%) ============ */
.menu-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); z-index: 99; opacity: 0; visibility: hidden; transition: all 0.5s; }
.menu-backdrop.active { opacity: 1; visibility: visible; }

.menu-panel { position: fixed; top: 0; left: 0; width: 50%; max-width: 720px; min-width: 320px; height: 100vh; background: #14203E; z-index: 100; transform: translateX(-100%); transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1); overflow-y: auto; overflow-x: hidden; }
.menu-panel.active { transform: translateX(0); }
.menu-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.08), transparent 60%); pointer-events: none; }
.menu-panel::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, #D4AF37, transparent); }

.menu-close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(212, 175, 55, 0.4); color: #D4AF37; cursor: pointer; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); z-index: 10; border-radius: 50%; }
.menu-close:hover { background: #D4AF37; color: #14203E; transform: rotate(90deg) scale(1.05); border-color: #D4AF37; box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }

.menu-item { opacity: 0; transform: translateX(-30px); transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); }
.menu-panel.active .menu-item { opacity: 1; transform: translateX(0); }
.menu-panel.active .menu-item:nth-child(1) { transition-delay: 0.25s; }
.menu-panel.active .menu-item:nth-child(2) { transition-delay: 0.32s; }
.menu-panel.active .menu-item:nth-child(3) { transition-delay: 0.39s; }
.menu-panel.active .menu-item:nth-child(4) { transition-delay: 0.46s; }
.menu-panel.active .menu-item:nth-child(5) { transition-delay: 0.53s; }

.menu-link { position: relative; display: inline-block; cursor: pointer; background: transparent; border: 0; padding: 0; text-align: left; }
.menu-link::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: #D4AF37; transition: width 0.4s cubic-bezier(0.77, 0, 0.175, 1); }
.menu-link:hover::after { width: 100%; }

.submenu { max-height: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.3s ease; opacity: 0; }
.submenu.open { max-height: 500px; opacity: 1; }

/* ============ HERO SLIDER ============ */
.hero-slider { position: relative; width: 100%; height: 100vh; overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s cubic-bezier(0.77, 0, 0.175, 1); }
.slide.active { opacity: 1; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(20,32,62,0.5) 50%, rgba(0,0,0,0.7) 100%); }

/* Particules dorées */
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle { position: absolute; background: #D4AF37; border-radius: 50%; opacity: 0; box-shadow: 0 0 10px #D4AF37, 0 0 20px rgba(212, 175, 55, 0.5); animation: float-particle 8s infinite ease-in-out; }
@keyframes float-particle {
  0% { opacity: 0; transform: translateY(0) translateX(0) scale(0); }
  10% { opacity: 1; transform: translateY(-20vh) translateX(10px) scale(1); }
  50% { opacity: 0.8; transform: translateY(-50vh) translateX(-20px) scale(1.2); }
  90% { opacity: 0.4; transform: translateY(-90vh) translateX(15px) scale(0.8); }
  100% { opacity: 0; transform: translateY(-110vh) translateX(0) scale(0); }
}

/* Hero content */
.hero-content { position: relative; z-index: 5; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 8%; max-width: 1300px; margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; color: #D4AF37; font-size: 14px; letter-spacing: 0.4em; text-transform: uppercase; font-weight: 500; margin-bottom: 24px; opacity: 0; transform: translateY(20px); animation: fadeInUp 1s 0.5s forwards; }
.hero-eyebrow::before { content: ''; width: 50px; height: 1px; background: #D4AF37; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(48px, 7vw, 96px); font-weight: 700; line-height: 1; color: #fff; margin-bottom: 24px; opacity: 0; transform: translateY(30px); animation: fadeInUp 1s 0.8s forwards; }
.hero-title em { font-style: italic; font-weight: 400; background: linear-gradient(135deg, #B8941F 0%, #D4AF37 50%, #E5C669 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.9); max-width: 600px; margin-bottom: 40px; line-height: 1.7; opacity: 0; transform: translateY(20px); animation: fadeInUp 1s 1.1s forwards; }
.hero-cta { display: inline-flex; align-items: center; gap: 14px; padding: 18px 40px; background: linear-gradient(135deg, #B8941F 0%, #D4AF37 50%, #E5C669 100%); color: #14203E; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1); opacity: 0; transform: translateY(20px); animation: fadeInUp 1s 1.4s forwards; position: relative; overflow: hidden; }
.hero-cta::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: #fff; transition: left 0.4s; z-index: 0; }
.hero-cta:hover::before { left: 0; }
.hero-cta span, .hero-cta i { position: relative; z-index: 1; }
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4); }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Slider nav */
.slider-nav { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 16px; }
.slider-dot { width: 50px; height: 3px; background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.4s; position: relative; overflow: hidden; border: 0; }
.slider-dot.active { background: rgba(255,255,255,0.2); }
.slider-dot.active::after { content: ''; position: absolute; inset: 0; background: #D4AF37; animation: fillBar 7s linear; }
@keyframes fillBar { from { width: 0; } to { width: 100%; } }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 60px; height: 60px; border: 1px solid rgba(255,255,255,0.3); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; background: transparent; }
.slider-arrow:hover { background: #D4AF37; border-color: #D4AF37; color: #14203E; }
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

/* ============ COUNTDOWN SECTION ============ */
.countdown-section { background: #14203E; padding: 80px 0; position: relative; overflow: hidden; }
.countdown-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12), transparent 60%); }
.countdown-section::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #D4AF37, transparent); }

.countdown-card { background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.02) 100%); border: 1px solid rgba(212, 175, 55, 0.2); padding: 32px 24px; text-align: center; position: relative; overflow: hidden; transition: all 0.4s; }
.countdown-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #D4AF37, transparent); }
.countdown-card:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.5); }
.countdown-big-num { font-family: 'Playfair Display', serif; font-size: clamp(56px, 8vw, 96px); font-weight: 700; line-height: 1; background: linear-gradient(135deg, #B8941F 0%, #D4AF37 50%, #E5C669 100%); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.countdown-big-label { color: rgba(255,255,255,0.8); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 12px; font-weight: 500; }

/* ============ SECTIONS ============ */
.section-eyebrow { display: inline-flex; align-items: center; gap: 12px; color: #D4AF37; font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; font-weight: 600; margin-bottom: 20px; }
.section-eyebrow::before { content: ''; width: 40px; height: 1px; background: #D4AF37; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.1; color: #14203E; }
.section-title em { font-style: italic; font-weight: 400; background: linear-gradient(135deg, #B8941F 0%, #D4AF37 50%, #E5C669 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn-gold { display: inline-flex; align-items: center; gap: 12px; padding: 16px 36px; background: linear-gradient(135deg, #B8941F 0%, #D4AF37 50%, #E5C669 100%); color: #14203E; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; transition: all 0.4s; position: relative; overflow: hidden; border: 0; cursor: pointer; text-decoration: none; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4); filter: brightness(1.1); }
.btn-outline { display: inline-flex; align-items: center; gap: 12px; padding: 16px 36px; background: transparent; color: #14203E; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; border: 2px solid #14203E; transition: all 0.4s; text-decoration: none; }
.btn-outline:hover { background: #14203E; color: #D4AF37; }

/* ============ ARTICLES ============ */
.article-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 100px; }
.article-row.reverse { direction: rtl; }
.article-row.reverse > * { direction: ltr; }
.article-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.article-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); }
.article-img-wrap:hover .article-img { transform: scale(1.08); }
.article-number { font-family: 'Playfair Display', serif; font-size: 80px; font-weight: 300; background: linear-gradient(135deg, #B8941F 0%, #D4AF37 50%, #E5C669 100%); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; opacity: 0.5; }
.article-category { display: inline-block; padding: 6px 14px; background: linear-gradient(135deg, #B8941F, #D4AF37); color: #14203E; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.article-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; line-height: 1.2; color: #14203E; margin-bottom: 16px; }
.article-excerpt { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 24px; }
.article-meta { display: flex; gap: 20px; font-size: 13px; color: #888; margin-bottom: 20px; flex-wrap: wrap; }
.read-more { display: inline-flex; align-items: center; gap: 10px; color: #14203E; font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.3s; border-bottom: 2px solid #D4AF37; padding-bottom: 6px; text-decoration: none; }
.read-more:hover { color: #D4AF37; gap: 16px; }

/* ============ CATEGORIES ============ */
.category-card { background: #fff; padding: 40px 30px; border: 1px solid #EAEAEA; transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1); position: relative; overflow: hidden; cursor: pointer; }
.category-card::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #B8941F, #D4AF37, #E5C669); transform: scaleX(0); transform-origin: left; transition: transform 0.5s; }
.category-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(20, 32, 62, 0.12); }
.category-card:hover::before { transform: scaleX(1); }
.category-icon { width: 60px; height: 60px; background: rgba(212, 175, 55, 0.1); display: flex; align-items: center; justify-content: center; color: #D4AF37; font-size: 28px; margin-bottom: 24px; transition: all 0.4s; }
.category-card:hover .category-icon { background: linear-gradient(135deg, #B8941F, #D4AF37); color: #14203E; }

/* ============ TIMELINE ============ */
.timeline-section { background: linear-gradient(180deg, #14203E 0%, #0d1729 100%); padding: 100px 0; position: relative; overflow: hidden; }
.timeline-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center top, rgba(212, 175, 55, 0.08), transparent 60%); }

.timeline-wrap { position: relative; padding: 80px 0 60px; }
.timeline-line { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.6) 10%, #D4AF37 50%, rgba(212, 175, 55, 0.6) 90%, transparent 100%); transform: translateY(-1px); }
.timeline-line::before, .timeline-line::after { content: ''; position: absolute; top: -4px; width: 10px; height: 10px; background: #D4AF37; border-radius: 50%; box-shadow: 0 0 12px #D4AF37; }
.timeline-line::before { left: -5px; }
.timeline-line::after { right: -5px; }

.timeline-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; padding: 0 8%; }
.timeline-item { position: relative; cursor: pointer; transition: transform 0.4s; }
.timeline-item:nth-child(odd) { transform: translateY(-90px); }
.timeline-item:nth-child(even) { transform: translateY(90px); }
.timeline-item:hover .timeline-card { transform: scale(1.05); border-color: rgba(212, 175, 55, 0.6); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2); }

.timeline-dot { position: absolute; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: #D4AF37; border: 3px solid #14203E; box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.5); z-index: 5; transition: all 0.3s; }
.timeline-item:nth-child(odd) .timeline-dot { bottom: -94px; }
.timeline-item:nth-child(even) .timeline-dot { top: -94px; }
.timeline-item:hover .timeline-dot { background: #fff; box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.5), 0 0 30px rgba(212, 175, 55, 0.8); }
.timeline-item:nth-child(odd) .timeline-dot::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); width: 1px; height: 60px; background: linear-gradient(180deg, #D4AF37, transparent); }
.timeline-item:nth-child(even) .timeline-dot::after { content: ''; position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); width: 1px; height: 60px; background: linear-gradient(0deg, #D4AF37, transparent); }

.timeline-card { background: rgba(212, 175, 55, 0.05); border: 1px solid rgba(212, 175, 55, 0.2); padding: 24px 16px; text-align: center; transition: all 0.4s; position: relative; }
.timeline-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 2px; background: #D4AF37; }
.timeline-year { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; background: linear-gradient(135deg, #B8941F, #D4AF37, #E5C669); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 8px; }
.timeline-medal { font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.timeline-film { color: #fff; font-family: 'Playfair Display', serif; font-style: italic; font-size: 14px; line-height: 1.3; margin-bottom: 6px; min-height: 36px; }
.timeline-director { color: rgba(212, 175, 55, 0.9); font-size: 11px; letter-spacing: 0.05em; }

.stats-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 80px; padding-top: 60px; border-top: 1px solid rgba(212, 175, 55, 0.15); }
.stat-mini { text-align: center; }
.stat-mini-num { font-family: 'Playfair Display', serif; font-size: clamp(40px, 5vw, 56px); font-weight: 700; background: linear-gradient(135deg, #B8941F, #D4AF37, #E5C669); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-mini-label { color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; margin-top: 8px; }

/* ============ LAUREATS ============ */
.laureate-card { position: relative; aspect-ratio: 3/4; overflow: hidden; cursor: pointer; }
.laureate-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.laureate-card:hover .laureate-img { transform: scale(1.08); }
.laureate-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.95) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.laureate-year { font-family: 'Playfair Display', serif; color: #D4AF37; font-size: 14px; font-style: italic; margin-bottom: 4px; }
.laureate-name { font-family: 'Playfair Display', serif; color: #fff; font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 6px; }
.laureate-prize { color: rgba(255,255,255,0.85); font-size: 12px; }

/* ============ DATABASE CTA ============ */
.database-section { position: relative; padding: 140px 0; overflow: hidden; }
.database-bg { position: absolute; inset: 0; z-index: 0; }
.database-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(20, 32, 62, 0.92) 0%, rgba(20, 32, 62, 0.85) 100%); }

/* ============ PARTNERS ============ */
.partners-track { display: flex; gap: 60px; animation: scrollPartners 40s linear infinite; }
.partners-track:hover { animation-play-state: paused; }
@keyframes scrollPartners { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.partner-logo { flex-shrink: 0; height: 80px; width: 160px; display: flex; align-items: center; justify-content: center; filter: grayscale(100%) opacity(0.5); transition: all 0.4s; }
.partner-logo:hover { filter: grayscale(0%) opacity(1); }

/* ============ POPUP ============ */
.popup-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.5s; padding: 20px; }
.popup-backdrop.active { opacity: 1; visibility: visible; }
.popup-card { background: #fff; max-width: 540px; width: 100%; position: relative; transform: scale(0.85); transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); display: grid; grid-template-columns: 200px 1fr; overflow: hidden; }
.popup-backdrop.active .popup-card { transform: scale(1); }
.popup-img { background: #14203E url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 400"%3E%3Crect width="200" height="400" fill="%2314203E"/%3E%3Ccircle cx="100" cy="180" r="60" fill="%23D4AF37" opacity="0.15"/%3E%3Ctext x="50%25" y="48%25" text-anchor="middle" fill="%23D4AF37" font-family="Georgia" font-size="48" font-weight="bold"%3EN%3C/text%3E%3Ctext x="50%25" y="58%25" text-anchor="middle" fill="%23D4AF37" font-family="Georgia" font-size="14" letter-spacing="3"%3ENISA%3C/text%3E%3C/svg%3E') center/cover no-repeat; }
.popup-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; background: rgba(20,32,62,0.1); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; z-index: 10; border: 0; }
.popup-close:hover { background: #D4AF37; }

/* ============ FOOTER ============ */
.footer { background: #14203E; color: #fff; padding: 80px 0 0; }
.footer-link { color: rgba(255,255,255,0.7); transition: all 0.3s; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; text-decoration: none; }
.footer-link:hover { color: #D4AF37; padding-left: 8px; }
.footer-heading { font-family: 'Playfair Display', serif; color: #D4AF37; font-size: 18px; font-weight: 600; margin-bottom: 24px; letter-spacing: 0.05em; }
.social-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.2); color: #fff; transition: all 0.3s; text-decoration: none; }
.social-icon:hover { background: #D4AF37; border-color: #D4AF37; color: #14203E; transform: translateY(-3px); }

.ad-banner { background: #EAEAEA; max-width: 300px; height: 250px; margin: 0 auto; display: flex; align-items: center; justify-content: center; position: relative; }
.ad-banner::before { content: 'Publicité'; position: absolute; top: -22px; right: 0; font-size: 10px; color: #888; letter-spacing: 0.15em; text-transform: uppercase; }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Messages newsletter */
.newsletter-message { padding: 10px; border-radius: 4px; }
.newsletter-message.success { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.newsletter-message.error { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .menu-panel { width: 70%; }
  .timeline-grid { grid-template-columns: repeat(3, 1fr); row-gap: 80px; padding: 0 4%; }
  .timeline-line { display: none; }
  .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { transform: translateY(0); }
  .timeline-item .timeline-dot { display: none; }
}
@media (max-width: 768px) {
  .menu-panel { width: 90%; }
  .article-row { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
  .article-row.reverse { direction: ltr; }
  .popup-card { grid-template-columns: 1fr; }
  .popup-img { display: none; }
  .topbar { display: none; }
  .hero-content { padding: 0 5%; }
  .timeline-grid { grid-template-columns: 1fr 1fr; gap: 20px; row-gap: 30px; }
  .stats-summary { grid-template-columns: 1fr 1fr; gap: 30px; }
}

.cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 500px; margin: 0 auto; background: #14203E; color: #fff; padding: 20px 24px; z-index: 90; box-shadow: 0 20px 50px rgba(0,0,0,0.3); transform: translateY(200%); transition: transform 0.5s; }
.cookie-banner.show { transform: translateY(0); }

/* ============ PAGE INTERNE — HERO COMPACT ============ */
.page-hero { position: relative; padding: 100px 0 60px; background: linear-gradient(135deg, #14203E 0%, #0d1729 100%); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1), transparent 60%); }
.page-hero h1 { font-family: 'Playfair Display', serif; color: #fff; font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1.1; }
.page-hero h1 em { font-style: italic; font-weight: 400; background: linear-gradient(135deg, #B8941F, #D4AF37, #E5C669); -webkit-background-clip: text; background-clip: text; color: transparent; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 16px; }
.breadcrumb a { color: #D4AF37; text-decoration: none; transition: opacity 0.3s; }
.breadcrumb a:hover { opacity: 0.7; }

/* ============ DATABASE TABLE ============ */
.db-table-wrap { overflow-x: auto; border: 1px solid #EAEAEA; }
.db-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.db-table thead { background: #14203E; color: #fff; }
.db-table th { padding: 16px; text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: #D4AF37; }
.db-table td { padding: 16px; border-bottom: 1px solid #EAEAEA; font-size: 14px; vertical-align: middle; }
.db-table tr { transition: background 0.3s; cursor: pointer; }
.db-table tr:hover { background: #FAFAFA; }
.db-table .poster { width: 50px; height: 70px; object-fit: cover; background: linear-gradient(135deg, #14203E, #D4AF37); }

/* Filters */
.db-filter { padding: 24px; background: #F8F8F8; margin-bottom: 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.db-filter input, .db-filter select { padding: 12px 16px; border: 1px solid #EAEAEA; background: #fff; font-family: inherit; font-size: 14px; }
.db-filter input:focus, .db-filter select:focus { outline: none; border-color: #D4AF37; }

@media (max-width: 768px) {
  .db-filter { grid-template-columns: 1fr; }
}

/* Modal détail lauréat */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s; padding: 20px; }
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal-card { background: #fff; max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; transform: scale(0.9); transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.modal-backdrop.active .modal-card { transform: scale(1); }

/* Article page - share buttons */
.share-bar { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid #EAEAEA; border-bottom: 1px solid #EAEAEA; margin: 40px 0; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid #EAEAEA; color: #14203E; transition: all 0.3s; text-decoration: none; }
.share-btn:hover { background: #D4AF37; border-color: #D4AF37; color: #14203E; transform: translateY(-2px); }
