/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0d0d0f, #1a1a1f 60%, #0f0f10);
  color: #f5f5f5;
  overflow-x: hidden;
  min-height: 100vh;
}


/* === Effet particules légères === */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 30%, rgba(0,150,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 50% 80%, rgba(255,0,150,0.06) 0%, transparent 45%);
  z-index: -1;
}

/* === Glass Effect === */
.glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* =============== NAVBAR (desktop) =============== */
.admin-badge {
  color: #ff6b6b;
  font-weight: 700;
  margin-right: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: ease 0.2s;

}

.admin-badge:hover {
  color: #e94949;
  transition: ease 0.2s;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  position: fixed;
  width: 90%;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000; /* au-dessus du canvas et de l'overlay */
  border-radius: 12px; /* la classe .glass s’applique déjà pour le look */
}

.logo {
  height: 50px;
}

/* Liens desktop */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.2rem;
}

.nav-links li { margin: 0; }

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: .4rem .2rem;
  transition: color .25s ease, opacity .25s ease;
  opacity: .95;
}

.nav-links a:hover {
  color: #4F9CF9;
  opacity: 1;
}

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #4F9CF9, rgba(79,156,249,.2));
  border-radius: 2px;
}

/* Actions desktop (à droite) */
.nav-actions { display: flex; align-items: center; gap: .6rem; }

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, background .25s ease;
  display: inline-block;
}

.glass-btn {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

.glass-btn:hover { background: rgba(255,255,255,.32); transform: translateY(-1px); }

.glass-btn.secondary {
  background: rgba(255,255,255,.1);
  color: #4F9CF9;
  border: 1px solid rgba(79,156,249,.25);
}

/* =============== HAMBURGER =============== */
.hamburger {
  display: none; /* visible sur mobile via media query */
  flex-direction: column;
  cursor: pointer;
  z-index: 1010; /* au-dessus de la navbar et de l’overlay */
}

.hamburger span {
  height: 3px;
  width: 26px;
  background: #fff;
  margin: 4px 0;
  border-radius: 3px;
  transition: transform .35s ease, opacity .25s ease;
}

/* Animation croix */
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* =============== OVERLAY (fond sombre) =============== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
  z-index: 900; /* sous le menu mobile */
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =============== MENU MOBILE (drawer) =============== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%); /* hors écran par défaut */
  width: 78vw;
  max-width: 320px;
  height: 100vh;
  background: rgba(20,20,24,.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -8px 0 24px rgba(0,0,0,.35);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
  z-index: 1001; /* au-dessus de l’overlay */
  padding: 5.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* État ouvert */
.mobile-menu.active {
  transform: translateX(0);
}

/* Liste du menu mobile */
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08); /* fine séparation */
  opacity: 0;
  transform: translateX(24px);
}

/* Apparition progressive des items quand le menu est actif */
.mobile-menu.active li {
  animation: mm-fade-slide .45s ease forwards;
}

.mobile-menu.active li:nth-child(1) { animation-delay: .06s; }
.mobile-menu.active li:nth-child(2) { animation-delay: .12s; }
.mobile-menu.active li:nth-child(3) { animation-delay: .18s; }
.mobile-menu.active li:nth-child(4) { animation-delay: .24s; }
.mobile-menu.active li:nth-child(5) { animation-delay: .30s; }
.mobile-menu.active li:nth-child(6) { animation-delay: .36s; }
.mobile-menu.active li:nth-child(7) { animation-delay: .42s; }
.mobile-menu.active li:nth-child(8) { animation-delay: .48s; }
.mobile-menu.active li:nth-child(9) { animation-delay: .54s; }

@keyframes mm-fade-slide {
  to { opacity: 1; transform: translateX(0); }
}

/* Liens du menu mobile */
.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  display: block;
  transition: color .25s ease, transform .25s ease;
}

.mobile-menu a:hover {
  color: #4F9CF9;
  transform: translateX(6px);
}

/* Boutons dans le menu mobile */
.mobile-menu .btn {
  display: block;
  text-align: center;
  margin: 1rem auto 0;
  width: 85%;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 992px) {
  .nav-links,
  .nav-actions { display: none; }

  .hamburger { display: flex; }
}





/* === Hero === */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.hero-content {
  padding: 3rem;
  max-width: 700px;
  transition: transform 0.3s ease;
}

.hero-content:hover {
  transform: scale(1.03);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;

}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* --- BACKGROUND PARTICULES --- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;           /* derrière le contenu, devant body::before */
  pointer-events: none; /* ne bloque pas les clics */
}

/* Animation des particules */
@keyframes float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% {
    opacity: 1;
    transform: translateY(-50vh) scale(1.2);
  }
  100% {
    transform: translateY(-100vh) scale(0.8);
    opacity: 0;
  }
}

/* === Calendrier === */
.calendar-section {
  padding: 6rem 2rem;
  
  text-align: center;
}

.calendar-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.calendar-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

.calendar-iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 12px;
  background: #fff;
}

/* === Footer === */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #fff;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 800px;
  width: 100%;
}

.footer-info p {
  margin: 0.3rem 0;
}

.footer-info a {
  color: #4F9CF9;
  text-decoration: none;
  font-weight: 500;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-socials a {
  color: #ffffffcc;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #4F9CF9;
}


/* === Responsive === */
@media screen and (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }
}


#logoutBtn {
  color: #d47373;
  border: #d47373 1px solid;
}