/* Personnalisation rapide:
   - Couleurs principales: variables CSS dans :root
   - Images/vidéo: voir index.html
   - Intensité des effets: box-shadow, animation-duration
*/
:root {
  --deep-blue: #0b1f3a;
  --deep-blue-2: #113060;
  --neon-cyan: #00f0ff;
  --neon-green: #3cff9d;
  --ink: #101418;
  --gray-1: #27323d;
  --gray-2: #5f7284;
  --bg-soft: #f5f9ff;
  --card: #ffffff;
  --border: #d9e6ff;
  --shadow: 0 15px 45px rgba(9, 29, 59, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #ffffff 0%, #f6f9ff 50%, #ecf3ff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.floating-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(10, 26, 53, 0.84);
  border: 1px solid rgba(0, 240, 255, 0.26);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.floating-nav.scrolled {
  background: rgba(6, 16, 33, 0.96);
  border-color: rgba(60, 255, 157, 0.35);
}

.logo {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  color: #fff;
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: #e5f2ff;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--neon-cyan);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

main {
  overflow: hidden;
}

section {
  padding: 90px 22px;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.2), transparent 40%),
    linear-gradient(135deg, rgba(8, 22, 44, 0.82), rgba(8, 19, 41, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, 96%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8de9ff;
  font-size: 0.82rem;
}

.pulse-title {
  margin: 8px 0 16px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.7rem, 8vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 1px;
  animation: pulse 2.6s ease-in-out infinite;
  text-wrap: balance;
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #d9e9ff;
  margin-bottom: 30px;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  font-size: 0.9rem;
  color: #cce4ff;
  opacity: 0.85;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  padding: 13px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-neon {
  background: linear-gradient(90deg, var(--neon-cyan), #55ffc5);
  color: #072036;
  box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.5);
}

.btn-neon:hover {
  box-shadow: 0 0 24px 2px rgba(0, 240, 255, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--deep-blue);
  border: 1px solid var(--deep-blue-2);
}

.btn-glow {
  background: var(--deep-blue);
  color: #fff;
  box-shadow: 0 0 0 rgba(0, 240, 255, 0.45);
  animation: glowPulse 2s infinite;
}

.section-head {
  width: min(1060px, 100%);
  margin: 0 auto 26px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--deep-blue-2);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--deep-blue);
}

.timeline-section,
.events-section,
.media-section,
.contact-section {
  background: transparent;
}

.timeline-list {
  width: min(1060px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  position: relative;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--deep-blue), var(--neon-cyan));
}

.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 16px 54px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.timeline-card:hover {
  transform: translateY(-3px);
  border-color: #a9c9ff;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.75);
}

.timeline-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.timeline-date {
  color: var(--gray-2);
  font-size: 0.88rem;
}

.timeline-title {
  margin: 2px 0 10px;
  color: #122744;
  font-size: 1.16rem;
}

.timeline-extra {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.timeline-card.expanded .timeline-extra {
  max-height: 220px;
  opacity: 1;
  margin-top: 10px;
}

.timeline-extra img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
}

.events-grid {
  width: min(1060px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.event-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: #a9c9ff;
}

.event-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.event-type {
  color: var(--deep-blue-2);
  background: #e8f1ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.event-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.event-card.expanded .event-details {
  max-height: 170px;
  opacity: 1;
  margin-top: 10px;
}

.media-section {
  padding-bottom: 110px;
}

.slider-shell {
  width: min(1060px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.slider-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.slider-track {
  display: flex;
  transition: transform 0.45s ease;
}

.media-card {
  min-width: 100%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
  border: 1px solid var(--border);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 15, 35, 0.06), rgba(6, 19, 39, 0.82));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.media-summary {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.media-card:hover .media-summary {
  opacity: 1;
  transform: translateY(0);
}

.slider-btn {
  border: 0;
  background: var(--deep-blue);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}

.slider-dots {
  width: min(1060px, 100%);
  margin: 14px auto 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #a9bedf;
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.8);
}

.action-section {
  padding-top: 30px;
}

.action-card {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(12, 30, 58, 0.96), rgba(16, 54, 104, 0.95));
  color: #fff;
  box-shadow: 0 18px 54px rgba(11, 31, 58, 0.3);
  text-align: center;
}

.action-buttons {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.action-card .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.petition-note {
  margin-top: 14px;
  color: #bfe8ff;
}

.contact-form {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--gray-1);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid #bfd1ef;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fdfefe;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

input.invalid,
textarea.invalid {
  border-color: #d73e5f;
}

input.valid,
textarea.valid {
  border-color: #29ad71;
}

.error-message {
  min-height: 1em;
  color: #d73e5f;
  font-size: 0.82rem;
}

.form-success {
  color: #1f8f5b;
  font-weight: 600;
  min-height: 1em;
}

.site-footer {
  padding: 20px;
  text-align: center;
  color: #5b6880;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 33, 0.64);
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1200;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  width: min(500px, 100%);
  padding: 22px;
  position: relative;
}

.modal-content form {
  display: grid;
  gap: 10px;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Animations d'apparition au scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@keyframes pulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(0, 240, 255, 0.2);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 22px rgba(0, 240, 255, 0.52);
    transform: scale(1.02);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(0, 240, 255, 0.45);
  }
  50% {
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.52);
  }
}

@media (max-width: 980px) {
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  section {
    padding: 74px 16px;
  }

  .floating-nav {
    padding: 12px 14px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(6, 16, 32, 0.97);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 12px;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all 0.24s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .timeline-extra {
    grid-template-columns: 1fr;
  }

  .slider-shell {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .slider-btn {
    display: none;
  }
}
