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

html,
body {
  margin: 0;
  padding: 0;
  background:#000;
  height:100%;
}

.sr-only{
position:absolute;
width:1px;
height:1px;
overflow:hidden;
clip:rect(0,0,0,0);
}

/* couche 1 */
#layer-gate {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;

  background-color:#000; /* 👈 juste noir */

  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity:1;
  transition: opacity 2s ease;
}

#layer-gate.fade-out {
opacity:0;
pointer-events:none;
}

#layer-gate.fade-ready {
  pointer-events: auto;
}

@keyframes gateFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.audio-toggle {
  position: fixed;
  top: 180px;
  right: 17%;
  cursor: pointer;
  z-index: 20000;
  opacity: 0.8;
  transition: opacity 1s ease, transform 0.2s ease;
  
}

.audio-toggle:hover {
  opacity: 1;
  transform: scale(1.05);
}

.audio-toggle img {
  width: 50%;
  display: block;
}

body.gate-open .audio-toggle{
opacity:0;
pointer-events:none;
}

body.gate-closed .audio-toggle{
opacity:0.8;
transition-delay:2s;
}

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

.gate-text-block{
  position:absolute;
  top:25%;
  left:50%;
  transform:translate(-50%, -50%);

  opacity:0;

  animation: textFadeIn 2s ease forwards;
  animation-delay: 2.5s;

  z-index:50;
  text-align:center;
}

@keyframes textFadeIn{
  from{
    opacity:0;
    transform:translate(-50%, -60%) scale(0.95);
    filter: blur(4px);
  }
  to{
    opacity:1;
    transform:translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

.gate-text{
font-family:'Orbitron',sans-serif;
color:#00ff66;
font-size:2.2rem;
letter-spacing:0.12em;
margin-bottom:8px;
text-shadow:
0 0 6px rgba(0,0,0,0.9),
0 0 14px rgba(0,0,0,0.8),
0 0 8px #00ff88,
0 0 18px #00ff88;
}

.gate-subtext{
font-family:'Orbitron',sans-serif;
color:#00cc55;
font-size:1.5rem;
letter-spacing:0.12em;
text-shadow:
0 0 6px rgba(0,0,0,0.9),
0 0 14px rgba(0,0,0,0.8),
0 0 2px #00ff88,
0 0 9px #00ff88;
}

.center img {
  display: inline-block;
}

.gate-radar{
position:absolute;
z-index:40;

top:50%;
left:50%;

transform:translate(-50%,-50%);

width:200px;
height:200px;

display:flex;
align-items:center;
justify-content:center;
}

#enterBtn {
position:relative;
z-index:100;
opacity:0;

width:200px;
height:200px;

display:flex;
align-items:center;
justify-content:center;

padding:0;

background:none;
border:none;
cursor:pointer;

border-radius:50%;

box-shadow:
0 0 10px rgba(255,30,0,0.9),
0 0 22px rgba(255,0,0,.45),
0 0 50px rgba(255,0,0,.28);

filter:drop-shadow(0 0 6px rgba(255,0,0,.35));

--echo-color:rgba(255,0,0,.95);
--echo-speed:1.8s;
--echo-max:62px;

animation: btnFadeIn 1.5s ease forwards;
animation-delay: 1.5s; /* après le ciel */
}

@keyframes btnFadeIn{
  from{
    opacity:0;
    transform:scale(0.8);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}




/* Anneau lumineux */
#enterBtn::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  box-shadow: 0 0 0 0 var(--echo-color);
}

/* Keyframes de la pulsation */
@keyframes ring{
  0%   { opacity:.55; transform: scale(1.00); }
  50%  { opacity:.95; transform: scale(1.05); }
  100% { opacity:.55; transform: scale(1.00); }
}
/* Animation des ondes : l’anneau grossit et s’évanouit */
@keyframes echo{
  0%   { box-shadow: 0 0 0 0   var(--echo-color);   opacity: .9; }
  65%  { box-shadow: 0 0 0 var(--echo-max) rgba(255,0,0,.35); opacity: .35; }
  100% { box-shadow: 0 0 0 var(--echo-max) rgba(255,0,0,0);   opacity: 0; }
}

/* Hover = apparition + animations */
#enterBtn:hover::before {
  opacity: 1;
  animation:
    ring 1.6s ease-in-out infinite,
    echo 1.6s ease-out infinite;
}

.center {
  text-align: center;
}

* {
  box-sizing: border-box
}


/* couche 2 */

#layer-home {
  position: relative; /* ou fixed */
  z-index: 1;
  opacity:0;
  transition:opacity 2s ease;
}



.img-construction {
  display: block;
  margin: 0 auto;
  max-width: 80%;
  height: auto;
}


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 {
  max-width: var(--maxw);
  border-radius: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, .0);
  backdrop-filter: blur(0.5px);
  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-delay: 1s;
  animation: fadeInVideo 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/assets/accueil/img/motif3.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 5s ease-out forwards;
  animation-delay: 2s;
  /* le motif arrive un peu après la vidéo */
}

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

/* keyframes hero video et motif pellicule*/

@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);
  }
}


.dns-help {
  text-align: left;
}

.center {
  text-align: center;
}

.dns-title {
  text-align: center;
}


.dns-toggle summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
}

.dns-toggle summary::-webkit-details-marker {
  display: none;
}

.dns-toggle summary h2 {
  margin: 0;
  display: inline;
  animation: pulseNeon 2.5s infinite;
}

details:not([open]) summary h2 {
  animation: pulseNeon 2.5s infinite;
}

details[open] summary h2 {
  animation: none;
}

@keyframes pulseNeon {
  0% {
    text-shadow: 0 0 5px #00ff00,
                 0 0 10px #00ff00;
  }
  50% {
    text-shadow: 0 0 15px #00ff00,
                 0 0 25px #00ff00;
  }
  100% {
    text-shadow: 0 0 5px #00ff00,
                 0 0 10px #00ff00;
  }
}

.frais-content {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
}

.frais-content h2 {
  text-align: center;
}

.frais-content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.frais-content li {
  margin: 8px 0;
}

.frais-content li::before {
  content: "•";
  color: #00ff00;
  margin-right: 8px;
}

/* liens sites */
.home-links {
  text-align: center;
  margin: 5px 0;
}

.home-link {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: #0a0a0a; /* pas noir pur */
  padding: 8px 0px;
  letter-spacing: 2px;
  transition: transform 0.3s ease;

  text-shadow:
    0 0 2px #00ff00,
    0 0 6px #00ff00,
    0 0 12px #00ff00;
}

.home-link:hover {
  animation: neonPulse 1.2s infinite;
  transform: scale(1.05);
  }

@keyframes neonPulse {
  0% {
    text-shadow:
      0 0 5px #00ff00,
      0 0 15px #00ff00,
      0 0 30px #00ff00;
    filter: brightness(1);
  }

  50% {
    text-shadow:
      0 0 10px #00ff00,
      0 0 25px #00ff00,
      0 0 60px #00ff00,
      0 0 120px #00ff00;
    filter: brightness(1.3);
  }

  100% {
    text-shadow:
      0 0 5px #00ff00,
      0 0 15px #00ff00,
      0 0 30px #00ff00;
    filter: brightness(1);
  }
}

/* radar structure */
.radar-cloud{
position:absolute;
z-index:10;
width:920px;
height:920px;
top:50%;
left:50%;
transform:translate(-50%,-50%);
pointer-events:none;
overflow:hidden;


}

/* style des mots */
.radar-word{
position:absolute;
opacity:0;
pointer-events:none;
font-family:'Orbitron',sans-serif;
font-size:0.7rem;
color:#00ff88;
letter-spacing:0.15em;
text-shadow:
0 0 3px #00ff88,
0 0 8px #00ff88;

animation:
radarFade 2s ease forwards,
radarOrbit 90s linear infinite;
animation-delay: 2s, 2s; /* 👈 clé */

@keyframes radarFade{
opacity:0;
  }
  to{
    opacity:0.62;
  }
}


/* balayage radar */

.radar-scan{
  position:absolute;
  top:50%;
  left:50%;

  width:850px;
  height:850px;

  transform:translate(-50%,-50%) scale(0.8);
  border-radius:50%;

  z-index:20;

  opacity:0;

  background: conic-gradient(
    from -90deg,
    transparent 0deg,
    transparent 320deg,
    rgba(0,255,120,0.05) 335deg,
    rgba(0,255,120,0.15) 345deg,
    rgba(0,255,120,0.35) 355deg,
    rgba(0,255,120,0.8) 360deg
  );

  animation:
    radarFadeIn 1.5s ease forwards,
    radarSweep 6s linear infinite;

  animation-delay: 1.5s, 1.5s;

  pointer-events:none;
}

@keyframes radarFadeIn{
  from{
    opacity:0;
    transform:translate(-50%,-50%) scale(0.7);
  }
  to{
    opacity:1;
    transform:translate(-50%,-50%) scale(1);
  }
}

/* Animation du scanner */

@keyframes radarSweep{
from{
transform:translate(-50%,-50%) rotate(0deg);
}
to{
transform:translate(-50%,-50%) rotate(360deg);
}
}
/* animation de détection */
@keyframes radarPing{
0%{
opacity:0.5;
text-shadow:0 0 3px #00ff88;
}

40%{
opacity:1;
text-shadow:
0 0 8px #00ff88,
0 0 18px #00ff88,
0 0 30px #00ff88;
}

100%{
opacity:0.5;
text-shadow:0 0 3px #00ff88;
}
}

/* animation */
.radar-detect{
animation:
radarFade 7s ease forwards,
radarOrbit 90s linear infinite,
radarPing 6s ease-in-out infinite;
}
/* décallage alléatoire */
.w2{animation-delay:3s;}
.w4{animation-delay:6s;}
.w7{animation-delay:8s;}
.w10{animation-delay:4s;}
.w13{animation-delay:9s;}
.w16{animation-delay:2s;}
.w19{animation-delay:7s;}


/* position constellation */
.w1{top:0%;left:50%;}
.w2{top:10%;right:10%;}
.w3{top:20%;right:0%;}
.w4{top:35%;right:5%;}
.w5{top:50%;right:0%;}
.w6{bottom:35%;right:8%;}
.w7{bottom:20%;right:15%;}
.w8{bottom:5%;right:35%;}
.w9{bottom:0%;left:50%;}
.w10{bottom:10%;left:20%;}

.w11{bottom:25%;left:5%;}
.w12{bottom:40%;left:0%;}
.w13{top:50%;left:0%;}
.w14{top:35%;left:5%;}
.w15{top:20%;left:0%;}
.w16{top:10%;left:10%;}
.w17{top:5%;left:30%;}
.w18{top:15%;left:45%;}
.w19{top:40%;left:35%;}
.w20{bottom:30%;left:30%;}

/* animation radar */
@keyframes radarOrbit{
from{
transform:rotate(0deg) translateX(160px) rotate(0deg);
}
to{
transform:rotate(360deg) translateX(160px) rotate(-360deg);
}
}

/* illumination radar */
@keyframes radarDetect{
0%{opacity:0.15;text-shadow:0 0 3px #00ff88;}
50%{opacity:0.9;text-shadow:0 0 12px #00ff88,0 0 25px #00ff88;}
100%{opacity:0.15;text-shadow:0 0 3px #00ff88;}
}

.radar-word::after{
content:"";
position:absolute;
top:-4px;
right:-6px;

width:4px;
height:4px;

background:#00ff88;
border-radius:50%;

opacity:0;

box-shadow:
0 0 6px #00ff88,
0 0 12px #00ff88;

animation:radarBlip 3s ease-in-out infinite;
}
@keyframes radarBlip{

0%{
opacity:0;
transform:scale(0.5);
}

40%{
opacity:1;
transform:scale(1.4);
}

70%{
opacity:0.6;
transform:scale(1);
}

100%{
opacity:0;
transform:scale(0.5);
}

}

.radar-detect::after{
animation:radarBlip 3s ease-in-out infinite;
}

.gate-sky{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;

  background-image:url("https://ufomotion.tv/assets/accueil/img/ciel-desktop.jpg");
  background-size:cover;
  background-position:center;

  opacity:0;

  animation: skyFadeIn 3s ease forwards;

  z-index:1;
}

@keyframes skyFadeIn{
  from{
    opacity:0;
  }
  to{
    opacity:1;
  }
}

@keyframes skyFade{
from{
opacity:0;
}

to{
opacity:1;
}
}

.gate-sky.visible{
  opacity:1;
}
.radar-hit{
opacity:1 !important;

text-shadow:
0 0 8px #00ff88,
0 0 20px #00ff88,
0 0 35px #00ff88;

transform:scale(1.25);
transition:all .3s ease;
}

.gate-sky.visible{
opacity:1;
}

/* superposition des 2 images */
.enter-img{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* état initial */
.enter-green{
  opacity:1;
  transition:opacity 0.4s ease;
  z-index:2;
}

.enter-red{
  opacity:0;
  transition:opacity 0.4s ease;
  z-index:3;
}

/* hover */
#enterBtn:hover .enter-green{
  opacity:0;
}

#enterBtn:hover .enter-red{
  opacity:1;
}

#transition-screen{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;

  background:#c70101;

  opacity:0;
  pointer-events:none;

  z-index:99999;

  transition:opacity 12s ease; /* fade OUT uniquement */
}