:root {
  /* TA CHARTE GRAPHIQUE EXACTE */
  --bg: #141414;        /* Le fond noir de ton image */
  --text: #F7F7F7;      /* Le texte blanc */
  --primary: #6F00FF;   /* Le Violet flash */
  --secondary: #1E02C6; /* Le Bleu profond */
  --accent: #FF5001;    /* L'Orange (parfait pour les boutons) */
  
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- BACKGROUND & AMBIANCE --- */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  /* Dégradé Violet -> Bleu */
  background: radial-gradient(circle, var(--primary) 0%, var(--secondary) 80%, transparent 100%);
  opacity: 0.2;
  filter: blur(120px);
  top: -200px;
  left: -100px;
  z-index: -1;
  animation: float 10s infinite alternate;
}

@keyframes float { from { transform: translate(0,0); } to { transform: translate(50px, 50px); } }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- NAVBAR AVEC LOGO --- */
.navbar { 
  padding: 15px 0; 
  position: fixed; 
  width: 100%; 
  height: min-content;
  top: 0; 
  z-index: 1000; 
  background: rgba(20, 20, 20, 0.8); 
  backdrop-filter: blur(15px); 
  border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* Nouveau style pour le logo image */
/* --- LOGO NAVBAR --- */
.logo-img {
  height: 100px; /* On passe de 45px à 80px (beaucoup plus grand) */
  width: 150%; 
  display: block;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05); /* Petit effet de zoom au survol */
}

.navbar {
  padding: 0px; /* On réduit un peu le padding vertical pour compenser */
}

.navbar nav a { 
  color: #ccc; 
  text-decoration: none; 
  margin-left: 25px; 
  font-size: 0.95rem; 
  font-weight: 500;
  transition: 0.3s;
}
.navbar nav a:hover { color: var(--primary); }

/* Bouton Navbar en Orange pour ressortir */
.btn-nav { 
  background: transparent;
  border: 1px solid var(--accent); 
  color: var(--accent) !important;
  padding: 8px 24px; 
  border-radius: 50px; 
}
.btn-nav:hover { 
  background: var(--accent); 
  color: white !important; 
}

/* --- HERO --- */
.hero { 
  min-height: 100vh; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  padding-top: 80px;
}

.tag { 
  display: inline-block; 
  font-size: 0.75rem; 
  font-weight: 700;
  letter-spacing: 3px; 
  text-transform: uppercase;
  color: var(--accent); /* Orange */
  margin-bottom: 20px; 
  border: 1px solid rgba(255, 80, 1, 0.3); 
  background: rgba(255, 80, 1, 0.1);
  padding: 6px 16px; 
  border-radius: 30px; 
}

h1 { font-size: 4rem; margin: 0 0 20px 0; font-weight: 800; line-height: 1.1; }
.text-gradient { 
  /* Dégradé Violet -> Orange pour le texte */
  background: linear-gradient(to right, var(--primary), var(--accent)); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
}

/* --- BOUTONS --- */
.btn-primary { 
  background: var(--accent); /* Bouton ORANGE (Charte) */
  color: white; 
  padding: 15px 40px; 
  border-radius: 50px; 
  text-decoration: none; 
  font-weight: 700; 
  transition: 0.3s; 
  display: inline-block; 
  box-shadow: 0 10px 30px rgba(255, 80, 1, 0.3); /* Lueur orange */
}
.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 15px 40px rgba(255, 80, 1, 0.5); 
}

/* --- COMPTE A REBOURS --- */
.countdown { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; }
.time-box { 
  background: rgba(255,255,255,0.03); 
  border: 1px solid var(--primary); /* Bordure Violette */
  padding: 15px 20px; 
  border-radius: 12px; 
  min-width: 80px; 
}
.time-box span { display: block; font-size: 2rem; font-weight: 700; color: white; }
.time-box small { color: var(--primary); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; }

/* --- STATS & TIMELINE --- */
.stat-card { 
  background: rgba(255,255,255,0.02); 
  border: 1px solid var(--border); 
  padding: 30px; 
  text-align: center; 
 
  border-radius: 20px; 
}
.stat-card h3 { font-size: 3rem; margin: 0; color: var(--primary); }

.timeline-item { 
  border-left: 2px solid var(--border); 
  padding-left: 40px; 
  position: relative; 
  margin-bottom: 40px;
}
.timeline-item::before { 
  content:''; position:absolute; left: -9px; top: 5px; 
  width: 16px; height: 16px; 
  background: var(--bg); 
  border: 2px solid var(--accent); /* Point Orange */
  border-radius: 50%; 
}
.date { color: var(--accent); font-weight: 700; font-size: 1.2rem; }

/* --- FORMULAIRE --- */
.register-section { padding-bottom: 100px; display: flex; justify-content: center; }
.form-wrapper { 
  background: rgba(30, 2, 198, 0.1); /* Légère teinte bleu foncé */
  border: 1px solid var(--primary);   /* Bordure violette */
  padding: 40px; 
  max-width: 500px; 
  width: 100%; 
  border-radius: 20px; 
  text-align: center; 
  backdrop-filter: blur(10px);
}

input, select, textarea { 
  width: 100%; 
  background: rgba(0,0,0,0.4); 
  border: 1px solid var(--border); 
  color: white; 
  padding: 12px; 
  border-radius: 8px; 
  margin-bottom: 10px;
}
input:focus, select:focus, textarea:focus { 
  outline: none; 
  border-color: var(--accent); /* Focus Orange */
}
button#submit-btn { 
  background: linear-gradient(45deg, var(--primary), var(--secondary)); /* Dégradé Violet/Bleu */
  color: white; 
  border: none; 
  padding: 15px; 
  width: 100%; 
  border-radius: 8px; 
  font-weight: 700; 
  cursor: pointer; 
  margin-top: 10px;
  text-transform: uppercase;
}
button#submit-btn:hover { opacity: 0.9; }

/* --- FOOTER AVEC LOGO CLUB --- */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: #888;
}
.footer-logo {
  height: 100px; /* Logo club un peu plus grand */
  width: auto;
  margin-bottom: 15px;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.8rem; }
  .stats { display: grid; grid-template-columns: 1fr; gap: 15px; }
  .input-group { display: grid; grid-template-columns: 1fr; gap: 10px; }
}

/* Ajoute ça à la fin de ton fichier CSS */
.navbar {
  transition: transform 0.3s ease-in-out; /* Animation fluide */
}

.navbar-hidden {
  transform: translateY(-100%); /* Cache la barre vers le haut */
}

/* --- CORRECTION ALIGNEMENT COMPTE A REBOURS --- */

/* Aligner les boîtes de temps (Jours, Heures...) horizontalement */
.countdown { 
  display: flex; 
  flex-direction: row; /* Force l'horizontale */
  justify-content: center; /* Centre au milieu */
  gap: 20px; /* Espace entre les boîtes */
  flex-wrap: wrap; /* Revient à la ligne si l'écran est trop petit */
}

/* Aligner le texte des participants (+30 inscrits) */
.participants-badge {
  display: flex;
  align-items: center; /* Centre verticalement */
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.stats { 
  display: flex; /* Utilise Flexbox au lieu de Grid */
  flex-direction: row; /* Force l'alignement horizontal */
  justify-content: center; /* Centre le tout */
  gap: 30px; 
  flex-wrap: wrap; /* Important pour le mobile */
}

.stat-card {
  flex: 1; /* Chaque carte prend la même largeur */
  min-width: 200px; /* Pas trop petit sur mobile */
}