

@font-face  {
  font-family: 'EmojiFont';
  src: url('fonts/EmojiFont.woff2') format('woff2');
  font-weight: normal;
  font-display: swap;
}

    @font-face {
  font-family: 'PixeloidSans';
  src: url('fonts/PixeloidSans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


@font-face  {
  font-family: 'WhimsyWischy';
  src: url('fonts/WhimsyWischy.woff2') format('woff2');
  font-weight: normal;
    font-display: swap;
}

@keyframes textShadowBig {
  0%, 100% { text-shadow: 0 0 10px #2CFF06; }
  50% { text-shadow: 0 0 30px #2CFF06; }
}


body {
  margin: 0;
  position: relative;

  height: 100vh;
  width: 100vw;

  overflow: hidden;

  background: linear-gradient(45deg, #99E89D);
  font-family: 'EmojiFont', sans-serif;
}

h1 {
  font-family: 'PixeloidSans', serif;
  
}

h2 {
    font-family: 'EmojiFont';
}
  

  
  
.animtext {
    font-family: 'PixeloidSans', serif;
    font-size: 2vw;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block; 
    position: fixed; 
    top: 10%;
    left: 50%;
    width: 0ch;
    padding-left: 0.7em;
    animation: typing 5s steps(37) forwards;
    
    z-index: 10; 
    color: #99E89D; 
}


    .animtext::after {
  content: '|';            
  animation: blink 1s infinite;
}

    

    .animtext:hover,
    .subtext:hover {
      text-shadow:
      0 0 30px #B0E0E6;
      transition: 0.3s ease-in-out;
      
}


  
    @keyframes typing  { 
   from { width: 0%; }
   to  { width: 100%;}  
    
}
@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}





.nuit {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.nuit .zone {
  position: absolute;
  width: 20vw;
  height: 20vw;
  top: 20%;
  left: 25%;
  overflow: hidden;
  cursor: pointer;
  border-radius: 50%;
}


.nuit .zone .still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  opacity: 0; 
  transition: opacity 0.3s ease;
  z-index: 2;
}



/* hover png invisible */
.nuit .zone:hover .still {
  opacity: 0;
}

/* clic png apparaît au-dessus */
.nuit .zone.active .still {
  opacity: 1;
  z-index: 4;  
}

/* reclic gif disparaît derrière */
.nuit .zone.active .anim {
  opacity: 0;
  z-index: 1; 
}

.internetexplorer{
  font-family: sans-serif;
  font-size: 1.5rem;
  background: black;
  color: lime;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  padding: 2rem;
}

.bg-gif {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.5;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}



.star {
  position: absolute;
  font-size: 1rem;
  color: #FFF; 
  animation-duration: 1200ms;
  animation-fill-mode: forwards;
  filter:
    drop-shadow(0 0 3rem currentColor)
    drop-shadow(0 0 3rem currentColor)
    drop-shadow(0 0 3rem currentColor);
}

.glow, .star {
  pointer-events: none !important;
}

.zone {
  position: relative;
  cursor: pointer;
}

.zone::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(rgba(255,255,200,0.55), rgba(255,255,255,0) 70%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  animation: respire 2.8s ease-in-out infinite;
  transition: opacity 0.4s ease-out;
}

.zone:hover::before {
  opacity: 1;
}

.zone::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170%;
  height: 170%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(rgba(255,255,255,0.8) 0%, transparent 70%),
    radial-gradient(rgba(255,255,255,0.6) 0%, transparent 70%),
    radial-gradient(rgba(255,255,180,0.7) 0%, transparent 70%);
  background-size: 8px 8px, 6px 6px, 10px 10px;
  background-position:
    20% 30%,
    70% 60%,
    40% 80%;
  opacity: 0;
  animation: glitter 1.4s infinite alternate ease-in-out;
  transition: opacity 0.4s ease-out;
}

.zone:hover::after {
  opacity: 1;
}


@keyframes respire {
  0%   { transform: translate(-50%, -50%) scale(0.9); opacity: 0.65; }
  50%  { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.65; }
}

@keyframes glitter {
  0% {
    background-position:
      18% 30%,
      72% 61%,
      41% 79%;
    opacity: .3;
  }
  100% {
    background-position:
      22% 32%,
      68% 58%,
      39% 82%;
    opacity: .7;
  }
}


