/* ------------------------------
   GLOBAL
------------------------------ */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f7f7f7;
  color: #333;
}

a {
  text-decoration: none;
}

/* ------------------------------
   HEADER MODERNE
------------------------------ */
.header {
  background: #6a0dad;
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header .container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

/* Menu desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

.nav a:hover {
  background: rgba(255,255,255,0.15);
}

/* Bouton Déconnexion */
.logout-btn {
  background: #ff4444;
}

.logout-btn:hover {
  background: #cc0000;
}

/* ------------------------------
   MENU MOBILE
------------------------------ */
.menu-icon {
  color: white;
  font-size: 28px;
  display: none;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav {
    position: absolute;
    top: 65px;
    right: 0;
    background: #6a0dad;
    width: 200px;
    display: none;
    flex-direction: column;
    padding: 15px;
    border-radius: 0 0 0 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }

  .menu-toggle:checked ~ .nav {
    display: flex;
  }
}

/* ------------------------------
   HERO / PAGE D'ACCUEIL
------------------------------ */
.hero {
  background: white;
  padding: 40px;
  margin: 20px auto;
  text-align: center;
  width: 90%;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero h2 {
  margin-bottom: 15px;
  color: #333;
}

.hero h3 {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

/* ------------------------------
   BOUTONS
------------------------------ */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
  margin-top: 10px;
}

.btn-primary {
  background: #ff6600;
  color: white;
}

.btn-primary:hover {
  background: #e55a00;
}

.btn-secondary {
  background: #6a0dad;
  color: white;
}

.btn-secondary:hover {
  background: #580b9a;
}

/* ------------------------------
   CARDS FORMATIONS
------------------------------ */
.courses {
  width: 90%;
  margin: 30px auto;
}

.courses h3 {
  margin-bottom: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.card h4 {
  margin-top: 0;
}

/* ------------------------------
   VIDÉO
------------------------------ */
.video-container {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------
   ANIMATION FADE-IN
------------------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
  background: #f2f2f2;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  margin-top: 40px;
}

footer a {
  color: #6a0dad;
  font-weight: bold;
}
