:root {
  --primary: #007fff;
  --danger: #e51b22;
  --heading: #343f52;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.minister-gradient {
  background:
    linear-gradient(135deg, rgba(0, 127, 255, .92), rgba(0, 127, 255, .72)),
    linear-gradient(90deg, rgba(21, 154, 218, .35), rgba(251, 239, 0, .22), rgba(229, 27, 34, .3));
}

/* ── Fête de la Musique – KIN MIZIKI ELONGO ── */
.fete-musique-gradient {
  background:
    linear-gradient(135deg, rgba(30, 12, 80, .70) 0%, rgba(0, 80, 200, .65) 40%, rgba(0, 127, 255, .55) 70%, rgba(120, 40, 200, .60) 100%);
  border: 1px solid rgba(255, 215, 0, .25);
  box-shadow:
    0 0 40px rgba(255, 215, 0, .15),
    0 8px 32px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}

.fete-badge-glow {
  text-shadow: 0 0 12px rgba(255, 215, 0, .6), 0 0 30px rgba(255, 215, 0, .3);
  animation: badgePulse 2.5s ease-in-out infinite;
}

.fete-title-shimmer {
  background: linear-gradient(90deg, #fff 0%, #fff 40%, #fde68a 50%, #fff 60%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

.fete-prize-pulse {
  animation: prizePulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(250, 204, 21, .5);
}

.fete-cta-btn {
  box-shadow:
    0 0 20px rgba(250, 204, 21, .4),
    0 4px 15px rgba(0, 0, 0, .2);
  animation: ctaGlow 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.02); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes prizePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(250, 204, 21, .5); }
  50% { transform: scale(1.05); box-shadow: 0 0 22px rgba(250, 204, 21, .8); }
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(250, 204, 21, .4), 0 4px 15px rgba(0, 0, 0, .2); }
  50% { box-shadow: 0 0 35px rgba(250, 204, 21, .65), 0 4px 20px rgba(0, 0, 0, .3); }
}

.hero-caption {
  animation: heroRise .9s ease both;
}

.hero-caption h1,
.hero-caption p,
.hero-caption a {
  animation: fadeUp .75s ease both;
}

.hero-caption p { animation-delay: .12s; }
.hero-caption a { animation-delay: .22s; }

.slide img {
  transform: scale(1.04);
  transition: transform 6s ease;
}

.slide.is-active img {
  transform: scale(1.12);
}

.carousel-progress {
  transform-origin: left;
  animation: progressBar 6s linear infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.lift-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.lift-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 .9rem 2.4rem rgba(30, 34, 40, .12);
}

.interactive-chip {
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.interactive-chip:hover,
.interactive-chip.is-active {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  border: 2px solid rgba(255, 255, 255, .65);
  border-radius: inherit;
  content: "";
  inset: -7px;
  opacity: 0;
  position: absolute;
  animation: ringPulse 2.6s ease infinite;
}

.dropdown-toggle {
  display: inline-flex;
  height: 22px;
  width: 22px;
  align-items: center;
  justify-content: center;
}

.dropdown-toggle::before {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  display: block;
  height: 7px;
  transform: translateY(-2px) rotate(45deg);
  width: 7px;
}

#prevSlide,
#nextSlide {
  display: none;
  align-items: center;
  justify-content: center;
}

#prevSlide::before,
#nextSlide::before,
.back-to-top::before {
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  content: "";
  display: block;
  height: 13px;
  width: 13px;
}

#prevSlide::before {
  transform: rotate(-45deg);
}

#nextSlide::before {
  transform: rotate(135deg);
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top::before {
  height: 10px;
  width: 10px;
  border-left-width: 2.5px;
  border-top-width: 2.5px;
  transform: translateY(2px) rotate(45deg);
}

.gallery-item {
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
}

.auto-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.auto-gallery .gallery-item {
  display: none;
}

.auto-gallery .gallery-item.is-active {
  display: block;
  animation: fadeUp .55s ease both;
}

.auto-gallery .gallery-item img {
  height: 18rem;
  width: 100%;
  object-fit: cover;
}

.gallery-item img {
  transition: transform .45s ease, filter .45s ease;
}

.gallery-item:hover img {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.08);
}

.gallery-item::after {
  align-items: center;
  background: rgba(0, 127, 255, .68);
  color: #fff;
  content: "Voir";
  display: flex;
  font-weight: 800;
  inset: 0;
  justify-content: center;
  opacity: 0;
  position: absolute;
  transition: opacity .3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.modal-backdrop {
  align-items: center;
  background: rgba(18, 24, 38, .82);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 80;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-backdrop img {
  border-radius: 10px;
  max-height: 84vh;
  max-width: min(980px, 96vw);
  object-fit: contain;
}

.back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes progressBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes ringPulse {
  0% { opacity: 0; transform: scale(.85); }
  45% { opacity: .75; }
  100% { opacity: 0; transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (min-width: 768px) {
  .auto-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #prevSlide,
  #nextSlide {
    display: flex;
  }
}
