/* ==========================================================================
   FESTI'CIVISME 2026 — PORTAIL OFFICIEL HAUTE FINITION
   ========================================================================== */

:root {
  --blue: #2962cc;
  --blue-dark: #163b82;
  --blue-soft: rgba(41, 98, 204, 0.22);
  --green: #4ea832;
  --green-dark: #378320;
  --green-soft: rgba(78, 168, 50, 0.22);
  --dark: #071429;
  --dark-2: #0c2140;
  --surface: #102a52;
  --bg-alt: #0d2344;
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --border: rgba(110, 231, 85, 0.24);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 4px 14px rgba(4, 12, 26, 0.35);
  --shadow-md: 0 14px 34px rgba(4, 12, 26, 0.48);
  --shadow-lg: 0 24px 52px rgba(4, 12, 26, 0.62);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: linear-gradient(160deg, #091c38 0%, #113262 55%, #17427d 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  background: var(--dark);
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
}

.topbar-item:hover {
  color: #ffffff;
}

.topbar-item strong {
  color: #ffffff;
}

.topbar-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-weight: 500;
}

.topbar-social-link:hover {
  color: #86efac;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 28, 58, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(110, 231, 85, 0.28);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 60px;
  height: 50px;
  object-fit: contain;
  background: #000000;
  padding: 2px;
  border-radius: 10px;
  border: 2px solid #6ee755;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.brand-name span {
  color: #6ee755;
}

.brand-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: #93c5fd;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  padding: 8px 13px;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: #6ee755;
  background: rgba(110, 231, 85, 0.14);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}

.btn-sm {
  font-size: 0.86rem;
  padding: 9px 16px;
}

.btn-lg {
  font-size: 0.96rem;
  padding: 14px 24px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(66, 158, 37, 0.35);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(110, 231, 85, 0.42);
  color: #ffffff;
}

.btn-outline:hover {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-outline-light:hover {
  background: #6ee755;
  border-color: #6ee755;
  color: #071429;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(145deg, #071326 0%, #0f2952 60%, #163d78 100%);
  color: #ffffff;
  padding-top: 52px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  pointer-events: none;
}

.hero-glow-blue {
  top: -120px;
  left: -100px;
  background: var(--blue);
}

.hero-glow-green {
  bottom: 40px;
  right: -120px;
  background: var(--green);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 54px;
}

.organizers-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 10px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}

.org-mini-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.org-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.org-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-dark);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.hero-title span {
  background: linear-gradient(90deg, #6ee755 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-slogan {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: #e2e8f0;
  border-left: 3px solid #6ee755;
  padding-left: 14px;
  margin-bottom: 18px;
}

.hero-summary {
  font-size: 0.98rem;
  color: #cbd5e1;
  margin-bottom: 24px;
  max-width: 580px;
}

.hero-summary strong {
  color: #ffffff;
}

.hero-key-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
  max-width: 540px;
}

.fact-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.fact-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(26, 86, 219, 0.35);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fact-icon.green {
  background: rgba(66, 158, 37, 0.35);
  color: #86efac;
}

.fact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.fact-value {
  font-family: var(--font-display);
  font-size: 0.94rem;
  color: #ffffff;
}

/* Countdown Strip */
.countdown-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 26px;
  max-width: 540px;
}

.countdown-label-col {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #cbd5e1;
}

.countdown-units {
  display: flex;
  gap: 8px;
}

.cd-box {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  min-width: 54px;
}

.cd-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.cd-box span {
  font-size: 0.66rem;
  text-transform: uppercase;
  color: #94a3b8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Poster Frame */
.poster-frame {
  position: relative;
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease;
}

.poster-frame:hover {
  transform: translateY(-4px);
}

.poster-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.poster-badge-float {
  position: absolute;
  bottom: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 13, 25, 0.9);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid rgba(110, 231, 85, 0.5);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee755;
  box-shadow: 0 0 0 0 rgba(110, 231, 85, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(110, 231, 85, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(110, 231, 85, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(110, 231, 85, 0);
  }
}

/* Marquee Ticker */
.marquee-bar {
  position: relative;
  z-index: 2;
  background: var(--green);
  color: #ffffff;
  padding: 13px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.m-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   METRICS BAR
   ========================================================================== */
.metrics-bar {
  background: var(--dark-2);
  color: #ffffff;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: #6ee755;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-item span {
  font-size: 0.84rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* ==========================================================================
   COMMON SECTIONS
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6ee755;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.section-desc {
  max-width: 520px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.section-desc strong {
  color: #86efac;
}

/* ==========================================================================
   ACTIONS SECTION (CARTES ILLUSTRÉES SET SETAL, FORMATIONS & REBOISEMENT)
   ========================================================================== */
.actions-section {
  background: #0d264c;
  border-bottom: 1px solid var(--border);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.action-card {
  background: #133466;
  border: 1px solid rgba(110, 231, 85, 0.28);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.action-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #6ee755;
}

.action-media-wrap {
  background: #071429;
  border-bottom: 1px solid rgba(110, 231, 85, 0.22);
}

.action-main-photo {
  position: relative;
  height: 240px;
  overflow: hidden;
  cursor: zoom-in;
  background: #071429;
}

.action-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.35s ease;
}

.action-main-photo:hover .action-hero-img {
  transform: scale(1.04);
}

.action-photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 99px;
  color: #ffffff;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.action-photo-badge.green {
  background: rgba(46, 122, 23, 0.92);
}

.action-photo-badge.blue {
  background: rgba(26, 86, 219, 0.92);
}

.action-photo-badge.dark {
  background: rgba(15, 23, 42, 0.92);
}

.action-num-overlay {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  line-height: 1;
}

.action-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 10px;
  background: rgba(7, 20, 41, 0.75);
}

.action-thumb {
  border: 2px solid transparent;
  border-radius: 7px;
  overflow: hidden;
  padding: 0;
  height: 50px;
  cursor: pointer;
  background: #0f172a;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.action-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.action-thumb:hover,
.action-thumb.active {
  border-color: #6ee755;
  transform: translateY(-1px);
}

.action-partner-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 10px;
  background: rgba(7, 20, 41, 0.75);
  align-items: center;
}

.action-partner-strip img {
  width: 100%;
  height: 50px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(110, 231, 85, 0.35);
  border-radius: 7px;
  padding: 4px;
}

.action-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.action-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-icon.green {
  background: rgba(78, 168, 50, 0.26);
  color: #86efac;
}

.action-icon.blue {
  background: rgba(41, 98, 204, 0.32);
  color: #93c5fd;
}

.action-icon.dark {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.action-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #86efac;
}

.action-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.action-card p {
  font-size: 0.91rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.action-card p strong {
  color: #ffffff;
}

.action-highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.action-highlights li {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-highlights li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee755;
  flex-shrink: 0;
}

.action-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #6ee755;
}

.action-link:hover {
  color: #93c5fd;
}

/* ==========================================================================
   ACTUALITÉS SECTION
   ========================================================================== */
.news-section {
  background: #0a1e3c;
  border-bottom: 1px solid var(--border);
}

.story-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #133466;
  border: 1px solid rgba(110, 231, 85, 0.28);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}

.story-card:last-child {
  margin-bottom: 0;
}

.story-media {
  background: linear-gradient(180deg, rgba(7, 20, 41, 0.85) 0%, rgba(13, 39, 72, 0.85) 100%);
  border-right: 1px solid rgba(110, 231, 85, 0.2);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.story-media-balanced {
  justify-content: flex-start;
}

.photo-frame {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: zoom-in;
}

.story-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #070d19;
  border: 1px solid rgba(110, 231, 85, 0.24);
  transition: transform 0.25s ease;
}

.photo-frame:hover .story-img {
  transform: scale(1.012);
}

.photo-caption {
  font-size: 0.76rem;
  color: #cbd5e1;
  text-align: center;
}

.story-side-summary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(110, 231, 85, 0.25);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: auto;
}

.side-summary-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #6ee755;
  margin-bottom: 10px;
}

.side-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.side-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1f5f9;
}

.side-summary-item svg {
  color: #6ee755;
  flex-shrink: 0;
}

.story-content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.badge-pill {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-pill.blue {
  background: rgba(41, 98, 204, 0.35);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.badge-pill.green {
  background: rgba(78, 168, 50, 0.32);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.3);
}

.badge-pill.dark {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.meta-loc {
  font-size: 0.82rem;
  color: #93c5fd;
  font-weight: 500;
}

.story-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.story-paragraphs p {
  font-size: 0.94rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.story-paragraphs strong {
  color: #ffffff;
}

.story-quote {
  background: rgba(78, 168, 50, 0.18);
  border-left: 3px solid #6ee755;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  color: #bbf7d0 !important;
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.tag-list span {
  font-size: 0.76rem;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(41, 98, 204, 0.28);
  border: 1px solid rgba(147, 197, 253, 0.22);
  padding: 3px 9px;
  border-radius: 6px;
}

.ministry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ministry-chips span {
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(7, 20, 41, 0.55);
  border: 1px solid rgba(110, 231, 85, 0.24);
  padding: 3px 8px;
  border-radius: 5px;
}

/* Video Box */
.video-card-box {
  background: linear-gradient(155deg, #071429 0%, #13345e 100%);
  border: 1px solid rgba(110, 231, 85, 0.28);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
}

.video-card-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #86efac;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 99px;
}

.video-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #429e25;
}

.video-card-logo {
  max-width: 220px;
  border-radius: 10px;
  background: #000000;
  padding: 6px;
}

.video-card-speaker strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.video-card-speaker span {
  font-size: 0.84rem;
  color: #cbd5e1;
}

.video-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 10px;
}

.video-launch-btn:hover {
  background: var(--green-dark);
}

.play-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   GALERIE MÉDIATHÈQUE
   ========================================================================== */
.gallery-section {
  background: #0d264c;
  border-bottom: 1px solid var(--border);
}

.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gal-tab {
  background: rgba(7, 20, 41, 0.65);
  border: 1px solid rgba(110, 231, 85, 0.28);
  color: #cbd5e1;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gal-tab:hover {
  border-color: #6ee755;
  color: #ffffff;
}

.gal-tab.active {
  background: var(--green);
  color: #ffffff;
  border-color: #6ee755;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #071429;
  border: 1px solid rgba(110, 231, 85, 0.28);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  background: #071429;
  transition: transform 0.3s ease;
}

.gallery-item[data-gal-cat="audiences"] img,
.gallery-item[data-gal-cat="visuels"] img {
  object-fit: contain;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 13, 25, 0.92) 100%);
  color: #ffffff;
  padding: 22px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==========================================================================
   PROGRAMME SECTION
   ========================================================================== */
.programme-section {
  background: #0a1e3c;
  border-bottom: 1px solid var(--border);
}

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

.prog-tab {
  background: rgba(7, 20, 41, 0.65);
  border: 1px solid rgba(110, 231, 85, 0.28);
  color: #cbd5e1;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.prog-tab:hover {
  border-color: #6ee755;
  color: #ffffff;
}

.prog-tab.active {
  background: var(--green);
  color: #ffffff;
  border-color: #6ee755;
}

.programme-table {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prog-row {
  display: grid;
  grid-template-columns: 195px 150px 1fr auto;
  align-items: center;
  gap: 22px;
  background: #133466;
  border: 1px solid rgba(110, 231, 85, 0.28);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.prog-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: #6ee755;
}

.prog-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 4px;
}

.prog-step-num.green {
  color: #6ee755;
}

.prog-step-num.dark {
  color: #fde047;
}

.prog-day-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(41, 98, 204, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.28);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.prog-day-badge.green {
  background: rgba(78, 168, 50, 0.32);
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.28);
}

.prog-day-badge.dark {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.prog-date strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #ffffff;
}

.prog-loc-text {
  display: block;
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 2px;
}

.prog-thumb {
  width: 150px;
  height: 108px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(110, 231, 85, 0.35);
  cursor: zoom-in;
  background: #071429;
  flex-shrink: 0;
}

.prog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.prog-thumb:hover img {
  transform: scale(1.06);
}

.prog-cat {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93c5fd;
  margin-bottom: 4px;
}

.prog-cat.green {
  color: #6ee755;
}

.prog-cat.dark {
  color: #fde047;
}

.prog-info h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.prog-info p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.prog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prog-tags span {
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(7, 20, 41, 0.6);
  border: 1px solid rgba(110, 231, 85, 0.25);
  padding: 3px 9px;
  border-radius: 6px;
}

/* ==========================================================================
   PARTENAIRES SECTION
   ========================================================================== */
.partners-section {
  background: #0d264c;
  border-bottom: 1px solid var(--border);
}

.organizers-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.org-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #133466;
  border: 1.5px solid rgba(110, 231, 85, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.org-card img {
  width: 74px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px;
}

.mairie-badge {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(78, 168, 50, 0.3);
  border: 1px solid rgba(110, 231, 85, 0.45);
  color: #86efac;
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.org-role {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6ee755;
}

.org-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #ffffff;
}

.org-card p {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.partner-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.partner-logo-card {
  background: #133466;
  border: 1px solid rgba(110, 231, 85, 0.28);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.partner-logo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #6ee755;
}

.partner-logo-card img {
  height: 76px;
  width: 100%;
  max-width: 160px;
  object-fit: contain;
  margin: auto 0;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 10px;
}

.partner-logo-card span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

.ministries-strip {
  background: #102c57;
  border: 1px solid rgba(110, 231, 85, 0.28);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

.ministries-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #86efac;
  margin-bottom: 16px;
}

.ministries-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.ministry-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(7, 20, 41, 0.65);
  border: 1px solid rgba(110, 231, 85, 0.24);
  border-radius: 8px;
}

.sn-bar {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00853f 0%, #00853f 33%, #fdef42 33%, #fdef42 66%, #e31b23 66%, #e31b23 100%);
}

.ministry-item strong {
  font-size: 0.84rem;
  color: #ffffff;
  line-height: 1.35;
}

/* ==========================================================================
   INSCRIPTION & PASS CITOYEN OFFICIEL
   ========================================================================== */
.registration-section {
  background: #0a1e3c;
  border-top: 1px solid var(--border);
}

.reg-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
}

.direct-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #133466;
  border: 1px solid rgba(110, 231, 85, 0.28);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
}

.contact-card-item:hover {
  border-color: #6ee755;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(78, 168, 50, 0.28);
  color: #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-item span {
  display: block;
  font-size: 0.76rem;
  color: #93c5fd;
}

.contact-card-item strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: #ffffff;
}

.reg-form {
  background: #133466;
  border: 1.5px solid rgba(110, 231, 85, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.reg-form h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.field input,
.field select {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 11px 13px;
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 8px;
  background: rgba(7, 20, 41, 0.78);
  color: #ffffff;
}

.field input::placeholder {
  color: #94a3b8;
}

.field select option {
  background: #0c2140;
  color: #ffffff;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #6ee755;
  background: rgba(7, 20, 41, 0.95);
}

/* Pass Citoyen Généré */
.pass-card-wrapper[hidden] {
  display: none;
}

.pass-card {
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pass-header {
  background: var(--dark);
  color: #ffffff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pass-logo {
  width: 56px;
  height: 48px;
  object-fit: contain;
  background: #000000;
  border-radius: 8px;
  padding: 2px;
}

.pass-edition {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6ee755;
  letter-spacing: 0.05em;
}

.pass-header h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.pass-id {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  border-radius: 6px;
  color: #93c5fd;
}

.pass-body {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pass-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pass-field span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.pass-field strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--dark);
}

.pass-qr {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--dark);
  flex-shrink: 0;
}

.pass-footer {
  background: var(--green-soft);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-dark);
}

.pass-valid {
  background: var(--green);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
}

.pass-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* ==========================================================================
   FOOTER & FLOATING WHATSAPP
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo {
  width: 60px;
  height: 50px;
  object-fit: contain;
  background: #000000;
  padding: 2px;
  border-radius: 8px;
  border: 1.5px solid var(--green);
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #ffffff;
}

.footer-brand span {
  font-size: 0.78rem;
  color: #86efac;
}

.footer-desc {
  font-size: 0.9rem;
  color: #94a3b8;
}

.site-footer h5 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 10px;
}

.floating-wa {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 99px;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.38);
}

.floating-wa:hover {
  background: #15803d;
  transform: translateY(-2px);
}

/* ==========================================================================
   MODAL & LIGHTBOX
   ========================================================================== */
.modal-backdrop,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 13, 25, 0.82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden],
.lightbox[hidden] {
  display: none !important;
}

.modal-dialog {
  background: #102c57;
  border: 1.5px solid rgba(110, 231, 85, 0.35);
  color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid rgba(110, 231, 85, 0.25);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #ffffff;
}

.modal-close,
.lightbox-close {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: #ffffff;
  color: var(--dark);
}

.lightbox-content {
  max-width: 960px;
  text-align: center;
}

.lightbox-content img {
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 12px;
}

.lightbox-content p {
  color: #e2e8f0;
  font-size: 0.92rem;
  margin-top: 12px;
}

.modal-body {
  padding: 24px 26px;
}

.modal-intro {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal-contact-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--blue-soft);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.modal-partners-sheet {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {

  .hero-grid,
  .story-card,
  .reg-layout,
  .actions-grid,
  .organizers-banner {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #0c2244;
    flex-direction: column;
    padding: 18px;
    border-bottom: 1px solid rgba(110, 231, 85, 0.35);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-key-facts,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .partner-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prog-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .prog-thumb {
    width: 100%;
    height: 180px;
  }

  .side-summary-grid {
    grid-template-columns: 1fr;
  }

  .pass-body {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {

  .topbar,
  .site-header,
  .hero,
  .metrics-bar,
  .actions-section,
  .news-section,
  .gallery-section,
  .programme-section,
  .partners-section,
  .reg-left,
  .pass-actions,
  .site-footer,
  .floating-wa {
    display: none !important;
  }

  .registration-section {
    background: #ffffff;
    border: none;
    padding: 0;
  }
}


/* ==========================================================================
   MOTION DESIGN
   ========================================================================== */

/* 1. Barre de progression de lecture */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue) 0%, #6ee755 100%);
  z-index: 300;
}

/* 2. Entrée cinématique du hero (apparition en cascade) */
.hero-left>* {
  opacity: 0;
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-left>*:nth-child(1) {
  animation-delay: 0.10s;
}

.hero-left>*:nth-child(2) {
  animation-delay: 0.22s;
}

.hero-left>*:nth-child(3) {
  animation-delay: 0.34s;
}

.hero-left>*:nth-child(4) {
  animation-delay: 0.46s;
}

.hero-left>*:nth-child(5) {
  animation-delay: 0.58s;
}

.hero-left>*:nth-child(6) {
  animation-delay: 0.70s;
}

.hero-left>*:nth-child(7) {
  animation-delay: 0.82s;
}

.hero-right .poster-frame {
  opacity: 0;
  animation: posterIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes posterIn {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateY(-14deg) translateX(40px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(0) translateX(0) scale(1);
  }
}

/* 3. Titre "Civisme" en dégradé animé */
.hero-title span {
  background-size: 200% auto;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

/* 4. Halos lumineux flottants */
.hero-glow-blue {
  animation: floatGlow 14s ease-in-out infinite;
}

.hero-glow-green {
  animation: floatGlow 17s ease-in-out infinite reverse;
}

@keyframes floatGlow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(60px, 40px) scale(1.08);
  }

  66% {
    transform: translate(-40px, 20px) scale(0.95);
  }
}

/* 5. Affiche en 3D interactive (inclinaison au survol de la souris) */
.poster-frame.tilt-active {
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.28), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.poster-frame.tilt-active::after {
  opacity: 1;
}

/* 6. Reflet lumineux sur les boutons principaux */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 140%;
}

/* 7. Ruban défilant : pause au survol */
.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

/* 8. Icônes des actions qui réagissent au survol */
.action-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-card:hover .action-icon {
  transform: rotate(-8deg) scale(1.12);
}

.action-card:hover .action-num {
  color: var(--green);
  transition: color 0.3s ease;
}

/* 9. Logos partenaires : couleurs officielles et zoom doux au survol */
.partner-logo-card img {
  filter: none;
  opacity: 1;
  transition: transform 0.3s ease;
}

.partner-logo-card:hover img {
  transform: scale(1.06);
}

/* 10. Pass Citoyen : apparition en retournement 3D */
.pass-card-wrapper:not([hidden]) .pass-card {
  animation: passFlip 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes passFlip {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateX(-70deg) translateY(30px);
  }

  to {
    opacity: 1;
    transform: perspective(1200px) rotateX(0) translateY(0);
  }
}

.pass-valid {
  animation: stampIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

@keyframes stampIn {
  from {
    opacity: 0;
    transform: scale(2.4) rotate(-12deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

/* 11. Bouton WhatsApp : pulsation douce */
.floating-wa {
  animation: waPulse 2.8s ease-in-out infinite;
}

@keyframes waPulse {

  0%,
  100% {
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.4), 0 0 0 0 rgba(22, 163, 74, 0.45);
  }

  50% {
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.4), 0 0 0 12px rgba(22, 163, 74, 0);
  }
}

/* Accessibilité : respect des préférences "réduire les animations" */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero-left>*,
  .hero-right .poster-frame {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ==========================================================================
   VALIDATION DU FORMULAIRE & MODALE BADGE VERTICAL (PASS CITOYEN 2026)
   ========================================================================== */

.reg-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.reg-form-head h3 {
  margin-bottom: 0;
}

.edition-pill-live {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #86efac;
  background: rgba(78, 168, 50, 0.28);
  border: 1px solid rgba(110, 231, 85, 0.45);
  padding: 4px 10px;
  border-radius: 99px;
}

.field-error {
  display: block;
  min-height: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fca5a5;
  line-height: 1.3;
}

.field input.input-invalid,
.field select.input-invalid {
  border-color: #f87171;
  background: rgba(127, 29, 29, 0.38);
}

/* Modale du Pass Citoyen */
.pass-modal-backdrop {
  background: rgba(7, 13, 25, 0.88);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 24px 16px;
}

.pass-modal-container {
  position: relative;
  width: 100%;
  max-width: 410px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pass-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--dark);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.pass-modal-close:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.pass-status-banner {
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  background: rgba(66, 158, 37, 0.22);
  border: 1px solid rgba(110, 231, 85, 0.45);
  color: #bbf7d0;
}

.pass-status-banner.is-existing {
  background: rgba(26, 86, 219, 0.28);
  border-color: rgba(147, 197, 253, 0.5);
  color: #dbeafe;
}

/* Carte Verticale Style Festival */
.v-badge {
  width: 100%;
  max-width: 370px;
  background: linear-gradient(165deg, #070d19 0%, #0e1e3d 55%, #0c261b 100%);
  color: #ffffff;
  border-radius: 22px;
  border: 2px solid rgba(110, 231, 85, 0.55);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.v-badge-lanyard {
  background: #040811;
  padding: 10px 0 8px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.v-lanyard-hole {
  width: 58px;
  height: 10px;
  border-radius: 99px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.v-badge-top {
  padding: 18px 22px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: radial-gradient(circle at 50% 0%, rgba(26, 86, 219, 0.35), transparent 70%);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.v-badge-logo {
  width: 96px;
  height: 76px;
  object-fit: contain;
  background: #000000;
  padding: 4px;
  border-radius: 12px;
  border: 2px solid #429e25;
  margin-bottom: 4px;
}

.v-badge-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #6ee755;
  line-height: 1.1;
}

.v-badge-dates {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.v-badge-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v-field-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.v-badge-holder {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 14px;
  text-align: center;
}

.v-holder-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  word-break: break-word;
}

.v-badge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.v-badge-item {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--blue);
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
}

.v-badge-item strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: #f8fafc;
}

.v-prog-highlight {
  color: #86efac !important;
}

.v-badge-qr-section {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  color: var(--dark);
  padding: 12px;
  border-radius: 14px;
  margin-top: 2px;
}

.v-qr-box {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.v-qr-box img,
.v-qr-box canvas {
  width: 96px !important;
  height: 96px !important;
  display: block;
}

.v-serial-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.v-serial-wrap .v-field-label {
  color: var(--text-light);
}

.v-badge-serial {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: 0.03em;
}

.v-badge-valid-pill {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--green);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.v-badge-footer {
  background: var(--green);
  color: #ffffff;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Actions sous le badge */
.pass-modal-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pass-modal-actions .pass-action-btn:first-child {
  grid-column: 1 / -1;
}

.pass-action-btn {
  padding: 11px 14px;
  font-size: 0.86rem;
}

.pass-wa-btn {
  background: #16a34a;
  color: #ffffff;
}

.pass-wa-btn:hover {
  background: #15803d;
}

/* Sélecteur d'édition & lien admin dans le footer */
.footer-meta-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.edition-switcher-label {
  font-size: 0.8rem;
  color: #94a3b8;
}

.edition-switcher {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.edition-switcher option {
  background: var(--dark);
  color: #ffffff;
}

.admin-footer-link {
  color: #86efac;
  font-weight: 600;
}

.admin-footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .pass-modal-actions {
    grid-template-columns: 1fr;
  }

  .pass-modal-close {
    top: 4px;
    right: 4px;
  }
}

/* Impression uniquement du badge vertical */
@media print {
  body * {
    visibility: hidden !important;
  }

  #passModal,
  #passModal #festivalBadgeCard,
  #passModal #festivalBadgeCard * {
    visibility: visible !important;
  }

  #passModal {
    position: absolute !important;
    inset: 0 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 20px !important;
  }

  .pass-modal-close,
  .pass-status-banner,
  .pass-modal-actions {
    display: none !important;
  }

  #festivalBadgeCard {
    box-shadow: none !important;
    border: 2px solid #070d19 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}