/* ====== GLOBAL STYLES ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0f1115;
  color: #f4f4f4;
  line-height: 1.6;
}

/* ====== HEADER ====== */
header {
  background: #000;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

.logo {
  font-weight: bold;
  font-size: 1.8em;
  color: #fff;
}

/* ====== NAVIGATION ====== */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  color: #f4f4f4;
  text-decoration: none;
  transition: color 0.3s, background 0.3s;
  font-weight: 400;
}

nav a:hover {
  color: #00ffa3;
  font-weight: 500;
}

/* Hamburger container */
.hamburger {
  width: 35px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

/* Chaque barre */
.hamburger span {
  display: block;
  height: 4px;
  background: #fff; /* barre blanche */
  border-radius: 2px;
  transform-origin: right center;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Animation escalier lors de l'ouverture */
.hamburger.active span:nth-child(1) {
  transform: translateX(5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  transform: translateX(10px) rotate(-45deg);
}
.hamburger.active span:nth-child(3) {
  transform: translateX(15px) scaleX(0.7);
}

/* Hover simple */
.hamburger:hover span {
  background: #00b894;
}

/* Menu mobile */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #111;
    width: 220px;
    padding: 25px;
    gap: 18px;
    border-radius: 0 0 0 10px;
  }

  nav.show {
    display: flex;
  }
}


/* ====== MAIN ====== */
main {
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* ====== TITRES ====== */
h1, h2 {
  color: #fff;
  margin-bottom: 15px;
}

p {
  color: #ccc;
  margin-bottom: 15px;
}

/* ====== HERO ====== */
.hero h1 {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #ddd;
}

/* ====== BOUTONS ====== */
.hero button, .quick-links a {
  padding: 12px 22px;
  background: #00ffa3;
  color: #000;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.hero button:hover,
.quick-links a:hover {
  background: #00c97b;
  transform: translateY(-2px);
}

/* ====== STATS ====== */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.stat {
  text-align: center;
  background: #14161a;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.stat .number {
  font-size: 2em;
  font-weight: bold;
  color: #00ffa3;
  display: block;
}

/* ====== PROFESSEURS ====== */
.professeurs {
  text-align: center;
  padding: 60px 20px;
  background: #1b1e24;
}

.professeurs h2 {
  color: #00ffa3;
  font-size: 2em;
  margin-bottom: 10px;
}

.professeurs p {
  font-size: 1em;
  color: #ccc;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

/* Liste professeurs */
.prof-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Carte professeur */
.prof {
  background: #14161a;
  border-radius: 12px;
  padding: 15px;
  width: 250px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.prof:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
}

.prof img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.prof h3 {
  font-size: 1.1em;
  color: #fff;
  margin-bottom: 4px;
}

.prof p {
  font-size: 0.95em;
  color: #aaa;
}

/* ====== FOOTER ====== */
footer {
  background: #000;
  color: #888;
  text-align: center;
  padding: 15px;
  margin-top: 50px;
  font-size: 0.9em;
  border-top: 1px solid #111;
}

/* ====== RESPONSIVE ====== */
@media screen and (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 10px;
    background: #111;
    width: 210px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
  }

  nav.show {
    display: flex;
  }

  nav a {
    margin: 8px 0;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s;
  }

  nav a:hover {
    background: #00ffa31a;
  }

  #hamburger {
    display: block;
  }

  .prof-list {
    flex-direction: column;
    align-items: center;
  }

  .prof {
    width: 90%;
    max-width: 320px;
  }
}

/* ====== ACCESSIBILITÉ ====== */
nav a:focus,
.quick-links a:focus {
  outline: 2px solid #00ffa3;
  outline-offset: 2px;
}


/* ====== INSTALLATION APP (ANDROID / IPHONE) ====== */
.install-app {
  background: #14161a;
  padding: 50px 20px;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.install-app h2 {
  color: #00ffa3;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.install-app p {
  color: #ccc;
  font-size: 1em;
  margin-bottom: 25px;
}

.install-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.install-buttons button {
  background: #00ffa3;
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.install-buttons button:hover {
  background: #00c97b;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .install-buttons {
    flex-direction: column;
  }

  .install-buttons button {
    width: 100%;
    max-width: 280px;
    margin: auto;
  }
}

/* ====== 🔊 VOCAL & BOUTONS AJOUTÉS ====== */

/* Style du lecteur vocal */
audio {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  display: block;
  border-radius: 10px;
  background: #14161a;
  box-shadow: 0 4px 12px rgba(0, 255, 163, 0.2);
}

/* Conteneur boutons héros */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Styles spécifiques aux boutons infoPhiloBac & Quizz */
#infoPhiloBac,
#quizzBtn {
  padding: 12px 22px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, #00ffa3, #00c97b);
  color: #000;
  box-shadow: 0 5px 15px rgba(0, 255, 163, 0.2);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

#infoPhiloBac:hover,
#quizzBtn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #00c97b, #00ffa3);
  box-shadow: 0 6px 18px rgba(0, 255, 163, 0.35);
}

#infoPhiloBac:active,
#quizzBtn:active {
  transform: scale(0.96);
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  #infoPhiloBac,
  #quizzBtn {
    width: 100%;
    max-width: 320px;
    margin: 8px auto;
  }
}

/* Style spécial pour le bouton du simulateur */
.stat.simulateur {
  background: linear-gradient(135deg, #0066ff, #00c2ff);
  color: #ffffff;
  font-weight: bold;
  padding: 18px 20px;
  border-radius: 14px;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: 0.25s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 115, 255, 0.3);
}

/* Effet au survol */
.stat.simulateur:hover {
  background: linear-gradient(135deg, #0051cc, #00a8e6);
  transform: translateY(-4px);
  box-shadow: 0 10px 18px rgba(0, 115, 255, 0.45);
}

/* Effet au clic */
.stat.simulateur:active {
  transform: scale(0.97);
}
