:root {
  --bg: #000;
  --fg: #40E327;
  --fg-strong: #00FF00;
  --accent: #ff0602;
  --link: #DCF906;
  --muted: #C0C0C0;
  --maxw: 935px;
}

.center {
  text-align: center;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto 20px;
  padding: 0 16px;
}

header {
  text-align: center;
  margin-bottom: 8px;
}

.cta-row {
  display: flex;
  flex-direction: column; /* ⇦ empile verticalement */
  align-items: center;    /* ⇦ centre horizontalement */
  gap: 16px;
  margin: 20px 0 6px;
}


.cta-row-secours {
  flex-basis: 100%;        /* prend toute la largeur sous les 2 boutons */
  display: flex;
  justify-content: center; /* centre le <details> */
  margin-top: 6px;
}


.news-date {
  color: var(--accent);
  font-size: clamp(22px, 3.5vw, 28px);
  text-align: center;
  margin: 0;
  font-weight: 700;
}

.header-wrap {
  position: relative;
  z-index: 3;
  /* au-dessus du motif et de la vidéo */
  text-align: center;
  margin-bottom: 8px;
}

article {
  border-radius: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, .0);
  backdrop-filter: blur(0.5px);
  max-width: 700px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  margin: 0 0 10px 0
}

h1 {
  font-size: clamp(20px, 3vw, 24px);
  text-align: center
}

h2 {
  font-size: clamp(18px, 2.6vw, 22px)
}

h3 {
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 500
}

ul {
  margin: 0 0 10px 20px;
  padding: 0
}

li {
  margin-bottom: 6px
}

.muted {
  color: var(--muted)
}

.strong {
  color: var(--fg-strong);
  font-weight: 700
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 48px 0 12px;
}

.hero-video {
  position: fixed;
  inset: 0;
  background-color: #000;
  /* noir dès le départ */
  z-index: 0;
  /* derrière tout */
  overflow: hidden;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  /* empêche toute interaction */
  background-color: #000;
  /* noir dès le départ */
  opacity: 0;
  animation: fadeInVideo 2.5s ease-out forwards;
}

.motif {
  position: fixed;
  /* ✅ comme la vidéo */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; 
  z-index: 1;
  /* au-dessus de la vidéo, sous le header */
  background-image: url("https://ufomotion.tv/Documentaires-OVNI/assets/accueil/img/motif2.png");
  background-position: center top;
  background-repeat: repeat-y;
  /* ✅ on répète verticalement */
  background-size: auto;
  /* ✅ pas de cover ici, sinon pas de répétition */
  pointer-events: none;
  /* clics OK à travers */
  opacity: 0;
  animation: fadeInMotif 3s ease-out forwards;
  animation-delay: 1s;
  /* le motif arrive un peu après la vidéo */
}

main {
  position: relative;
  z-index: 2;
}

/* keyframes */

@keyframes fadeInVideo {
  from {
    opacity: 0;
    transform: scale(1.02);
  }

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

@keyframes fadeInMotif {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Menu page de secours  */

.dropdown-secours {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  min-width: 260px; /* <-- tu peux ajuster ici */
  animation: glowPulse 2.2s infinite ease-in-out;
  border-radius: 16px; /* pour arrondir le glow autour */
  overflow: hidden;     /* <- très important */
}

.dropdown-secours > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  user-select: none;
}

.dropdown-secours[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-secours ul {
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: rgba(5,5,5,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  border-top: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}


.dropdown-secours li {
  margin: 0;
}

.dropdown-secours a {
  display: block;
  padding: 0.4rem 0.8rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  text-align: left;
}

.dropdown-secours a:hover {
  background: rgba(57, 158, 238, 0.25);
}

/* Glow vert pulsant */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 6px rgba(0, 255, 100, 0.4),
                0 0 12px rgba(0, 255, 80, 0.25);
  }
  50% {
    box-shadow: 0 0 12px rgba(0, 255, 120, 0.65),
                0 0 24px rgba(0, 255, 120, 0.45);
  }
  100% {
    box-shadow: 0 0 6px rgba(0, 255, 100, 0.4),
                0 0 12px rgba(0, 255, 80, 0.25);
  }
}
