/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #0d0f24;
  color: white;
}

/* ==== NAVIGATION ===== */
nav {
  background-color: #121429;
  padding: 12px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

nav ul li a.active,
nav ul li a:hover {
  background-color: #2e2c88;
}

nav ul li a i {
  font-size: 1.2rem;
}

/* ===== ACCUEIL ===== */
header {
  text-align: center;
  padding: 50px 0;
  background: linear-gradient(to right, #5927d6, #2e2c88);
}

header h1 {
  font-size: 2.8em;
  margin: 0;
}

header p {
  color: #ccc;
  font-size: 1.2em;
  margin-top: 12px;
}

.home-main {
  max-width: 1100px;
  margin: 60px auto 80px;
  padding: 0 20px;
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  user-select: none;
}

.card {
  background-color: #1a1c30;
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.7);
  text-align: center;
  color: white;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 0 25px 6px #7a6fffaa;
  transform: translateY(-8px);
  cursor: pointer;
}

.card h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.card p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 25px;
  line-height: 1.3;
}

.card.violet {
  border: 5px solid #a97cff;
  color: #a97cff;
}

.card.bleu {
  border: 5px solid #29abe2;
  color: #29abe2;
}

.card.jaune {
  border: 5px solid #ffc800;
  color: #ffc800;
}

.card.rose {
  border: 5px solid #ff8bd1;
  color: #ff8bd1;
}

.btn-link {
  text-decoration: none;
  color: white;
  background-color: #5e4fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn-link:hover {
  background-color: #8a6fff;
  color: white;
}

/* ===== CLASSES ===== */
.classes-section {
  padding: 30px 20px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.categorie-titre {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.categorie-titre.violet { color: #a97cff; }
.categorie-titre.bleu { color: #29abe2; }
.categorie-titre.jaune { color: #ffc800; }
.categorie-titre.rose { color: #ff8bd1; }

.classe {
  border: 2px solid #444;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  background-color: #181a2d;
  display: inline-block;
  width: 200px;
  margin-right: 10px;
  vertical-align: top;
  text-align: center;
  color: white;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.classe:hover {
  transform: scale(1.05);
  border-color: #8a6fff;
}

.classe h3 {
  margin: 10px 0 6px;
  font-size: 1.2rem;
}

.classe p {
  margin: 0 0 10px;
  font-style: italic;
  color: #ccc;
}

.classe img {
  max-width: 100%;
  border-radius: 6px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

/* ===== Modal zoom image ===== */
.modal {
  display: none; 
  position: fixed; 
  z-index: 9999;
  padding-top: 80px; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 1.2rem;
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.modal-close:hover {
  color: #8a6fff;
}
/* ===== LOGO DANS LA NAVIGATION ===== */
.logo-img {
  height: 30px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

.logo-link {
  display: flex;
  align-items: center;
  padding: 0;
}


