* { margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Montserrat', sans-serif; 
}
html { 
  scroll-behavior: smooth; 
}
body { 
  background:#000000; 
  color:#f0f0f0; 
  line-height:1.6; 
  text-align: center;
  justify-content: center;
  justify-items: center;
}

#intro-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #00ffcc 0%, #001a0f 60%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999999;
  animation: introFade 3s forwards;
}

#intro-screen .intro-content {
  text-align: center;
  color: white;
  opacity: 0;
  animation: introText 2s ease forwards 0.5s;
}

#intro-screen h1 {
  font-size: 4rem;
  text-shadow: 0 0 20px #00ffd0, 0 0 40px #0affff;
}

#intro-screen p {
  font-size: 1.3rem;
  letter-spacing: 2px;
  margin-top: 10px;
  opacity: 0.8;
}

@keyframes introFade {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes introText {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

#mcia-guide {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 999999999;
  animation: fadeIn 1s ease;
}

.mcia-avatar {
  width: 60px;
  height: 60px;
  background: url('media/mcia.png') center/cover no-repeat;
  filter: drop-shadow(0 0 10px #00ffe5);
  animation: float 3s infinite ease-in-out;
}

.mcia-dialog {
  background: rgba(0, 255, 200, 0.2);
  padding: 10px 15px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid #00ffe5;
  color: #fff;
  max-width: 220px;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: linear-gradient(90deg, #00ff9d, #00e1ff, #ae00ff);
  box-shadow: 0 0 10px #00ffcc, 0 0 20px #00e1ff;
  z-index: 999999;
  transition: width 0.15s ease-out;
}

.snowflake{
  position:fixed;
  top:-10px;
  color:#ffffff1d;
  font-size:1rem;
  z-index:9999;
  user-select:none;
  pointer-events:none;
  animation-name:fall;
  animation-timing-function:linear;
  animation-iteration-count:infinite;
}
@keyframes fall{
  0%{transform:translateY(0);}
  100%{transform:translateY(100vh);}
}

.fullscreen-zone {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  text-shadow: 0 0 20px #00ffc3;
}

.holo {
  opacity: 0;
  transform: scale(0.9) rotateX(20deg);
  filter: drop-shadow(0 0 5px #00f2ff);
  animation: holoIn 1.2s forwards ease-out;
}

@keyframes holoIn {
  0% { opacity: 0; transform: scale(0.9) rotateX(20deg); }
  100% { opacity: 1; transform: scale(1) rotateX(0deg); }
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #700f0fa9 0%, #194b0786 100%);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 999;
  
}

a {
  font-style: oblique;
  margin-right: 10px;
}

.accent {
  color: #000000;
  font-style: italic;
  font-family: elephant;
  text-shadow: 0 0 10px #e7cd4cfd;
}

main {
  justify-content: center;
  align-items: center;
  padding: 2rem;
  align-content: center;
}

.hero{
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center; min-height:50vh;
  background:url('images/instig-hero.jpg') center/cover no-repeat; color:#fff; position:relative;
}

.hero::after {
  content: url("media/logo.png");
  position:absolute;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0, 0, 0, 0);
}
.hero-content {
  position:relative;
  z-index:2;
  max-width:800px;
  top: 20%;
  transform: translateY(-20%);
  animation: fadeIn 1.5s ease-in-out;
}
.hero h1 { font-size:3rem; margin-bottom:1rem; }
.hero p { font-size:1.2rem; margin-bottom:2rem; }

section{padding:5rem 2rem; max-width:1200px; margin:0 auto;}
section h2{text-align:center; font-size:2rem; margin-bottom:2rem;}

.info-rejoindre{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:2rem;
  margin-bottom:3rem;
}
.info-card{
  background:linear-gradient(180deg, #700f0fa9 0%, #194b0786 100%);
  border-radius:15px;
  box-shadow:0 4px 10px rgba(14, 176, 36, 0.281);
  padding:2rem;
  text-align:center;  
  transition: transform 0.3s;
}
.info-card:hover{transform:scale(1.05);}
.info-card img{width:60px;margin-bottom:1rem;}
.info-card h3{margin-bottom:0.5rem; font-size:1.2rem;}
.info-card p{color:#171313;}

@keyframes fadeIn{0%{opacity:0; transform:translateY(20px);}100%{opacity:1; transform:translateY(0);}}

@media(max-width:768px){
  .hero h1{font-size:2rem;}
  .hero p{font-size:1rem;}
}

.section-step {
  position: absolute;
  top: -20px;
  left: 20px;
  background: #00ffcc;
  color: #000;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
  box-shadow: 0 0 10px #00ffcc;
  animation: floatBadge 3s infinite ease-in-out;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

#profile-designer {
  padding: 20px;
  background: rgba(0, 255, 200, 0.1);
  border-radius: 15px;
  border: 1px solid #00ffc3;
  margin-bottom: 30px;
}

#preview-box {
  margin-top: 20px;
  height: 120px;
  border-radius: 10px;
  background: #022;
  box-shadow: 0 0 20px #00ffc3;
}

.neon-portal {
  width: 200px;
  height: 200px;
  margin: 40px auto;
  border-radius: 50%;
  background: radial-gradient(circle, #00ffcc 10%, #00594d 60%, transparent 100%);
  box-shadow: 
    0 0 40px #00ffcc,
    0 0 80px #00ffcc,
    inset 0 0 40px #00ffcc;
  animation: portalSpin 6s linear infinite;
}

@keyframes portalSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.container {
  width: 80%;
  max-width: 800px;
  padding: 30px;
  background-color: rgba(84, 15, 15, 0.6);
  border-radius: 15px;
  box-shadow: 0 0 30px #55ff00;
  animation: fadeInUp 1s ease;
  margin-left: 11%;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

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


h1 {
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(#670d0d 0%, #17380b 100%);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px #4d101077;
  font-size: 2rem;
}

p {
  color: #c9f8ff;
  font-size: 1rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

.note {
  background: linear-gradient(#762121, #0a4513bd);
  -webkit-background-clip: text;
  color: transparent;
  font-size: 0.7rem;
}

form {
  animation: fadeInUp 1s ease forwards;
  background:linear-gradient(90deg, #700f0fa9 0%, #194b0786 100%);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px #4dff00;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-bottom: 2px solid #00ffc3c9;
  background: linear-gradient(145deg, #162e05c9, #520e0e);
  color: #ffffff;
  transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
  border-color: #ff009d;
  outline: none;
}

form button {
  background-color: #48ff00;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  color: #000000;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
  background-color: #3f0f0f;
  transform: scale(1.05);
}

.hidden {
  display: none;
}

#confirmation {
  position: fixed;
  top: 0;
  left: 0;
  width: 70%;
  height: 70%;
  background: rgba(107, 12, 12, 0.65);
  color: #14470e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1.5rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#confirmation.show {
  opacity: 1;
  pointer-events: auto;
}

canvas#fireworks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#badge-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  border: 2px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-weight: bold;
  transition: all 0.3s ease;
}

.badge.active {
  background: #00ffcc;
  border-color: #00ffaa;
  color: #000;
  box-shadow: 0 0 20px #00ffcc;
}

footer {
  position: relative;
  background:#00000000;
  color:#fff;
  text-align:center;
  padding:2rem;
  margin-top:3rem;
}

footer a { 
  color:#f0a500; 
  text-decoration:none; 
  margin:0 0.5rem; 
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}