/* === Reset simple === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Polices système modernes === */
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background: #111; /* Noir profond */
  color: #f5f5f5;
}

/* === Titres K-Pop style affiches / Netflix === */
h1, h2, h3 {
  font-family: "Impact", "Arial Black", "Segoe UI Black", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff4fa3;
  text-shadow:
    0 0 3px #000,
    0 0 8px #ff1493,
    0 0 15px #ff69b4;
}

/* === Header === */
header {
  background: linear-gradient(135deg, #000, #ff1493);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
}
header h1 {
  font-size: 2.8rem;
  font-weight: 900;
}
header p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #ffe4f1;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* === Navigation === */
nav {
  background: #000;
  display: flex;
  justify-content: center;
  padding: 14px 0;
  border-bottom: 2px solid #ff1493;
}
nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 25px;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}
nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #ff69b4;
  transition: width 0.3s;
}
nav a:hover {
  color: #ff69b4;
}
nav a:hover::after {
  width: 100%;
}

/* === Main content === */
main {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}
main h2 {
  text-align: center;
  margin-bottom: 35px;
  font-size: 2.2rem;
}

/* === Quiz list === */
.quiz-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.quiz-card {
  background: #1a1a1a;
  border: 2px solid #ff1493;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 105, 180, 0.4);
  padding: 25px;
  text-align: left; /* mieux pour Q/R */
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 30px; /* <-- espace entre les cartes */
}
.quiz-card:hover {
  transform: scale(1.06);
  box-shadow: 0 0 25px rgba(255, 20, 147, 0.8);
}
.quiz-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.quiz-card p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #ccc;
  font-family: "Segoe UI", Arial, sans-serif;
}
.quiz-card a {
  display: inline-block;
  background: #ff1493;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: background 0.3s, box-shadow 0.3s;
  text-transform: uppercase;
}
.quiz-card a:hover {
  background: #ff69b4;
  box-shadow: 0 0 20px #ff69b4;
}

/* === Formulaires (inputs / textarea / radios / boutons) === */
input[type="text"],
textarea {
  width: 100%;
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: 6px;
  border: 2px solid #ff1493;
  background: #222;
  color: #fff;
  font-size: 1rem;
  transition: border 0.3s, box-shadow 0.3s;
}
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #ff69b4;
  box-shadow: 0 0 10px #ff69b4;
}

/* Bouton */
button,
input[type="submit"] {
  background: #ff1493;
  border: none;
  padding: 12px 25px;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}
button:hover,
input[type="submit"]:hover {
  background: #ff69b4;
  box-shadow: 0 0 15px #ff69b4;
}

/* Radios et checkboxes custom */
input[type="radio"],
input[type="checkbox"] {
  accent-color: #ff1493; /* modern browsers */
  transform: scale(1.2);
  margin-right: 8px;
}

/* === Footer === */
footer {
  margin-top: 60px;
  text-align: center;
  padding: 25px;
  background: #000;
  border-top: 2px solid #ff1493;
  color: #ffe4f1;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "Segoe UI", Arial, sans-serif;
}
/* === Responsive design === */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
    line-height: 2.2rem;
  }
  header p {
    font-size: 1rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
    padding: 8px;
  }
  nav a {
    margin: 6px 0;
    font-size: 0.9rem;
  }

  main {
    margin: 20px auto;
    padding: 0 10px;
  }
  main h2 {
    font-size: 1.5rem;
  }

  .quiz-card {
    padding: 15px;
  }
  .quiz-card h3 {
    font-size: 1.1rem;
  }
  .quiz-card p {
    font-size: 0.9rem;
  }
  .quiz-card a {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* Ultra-petit (iPhone SE < 400px) */
@media (max-width: 400px) {
  header h1 {
    font-size: 1.5rem;
  }
  nav a {
    font-size: 0.8rem;
  }
}
