/* === Buttons & Forms === */
button,
input[type="submit"],
.btn-orange {
  background-color: #ffa31a;
  color: #111;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

button:hover,
input[type="submit"]:hover,
.btn-orange:hover {
  background-color: #000;
  color: #fff;
}

/* === Forms === */
form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 2rem auto;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #ffa31a;
  outline: none;
}

/* === Responsive === */
@media (max-width: 768px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 0.5rem;
  }

  .brand {
    text-align: center;
  }
}

/* ABOUT PREVIEW */
.about-preview {
    display: grid;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text {
    flex: 1 1 300px;
}

.about-img img {
    max-width: 90%;
    border-radius: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .course-cards, .resource-cards, .about-preview {
        flex-direction: column;
        align-items: center;
    }
    .about-img {
        text-align: center;
    }
}

#test-niveau-section {
  transition: all 0.5s ease;
}

#test-niveau-section.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

#test-niveau-btn {
  background: linear-gradient(90deg, #ff7e00, #ffbb33);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

#test-niveau-btn:hover {
  background: linear-gradient(90deg, #ff9f00, #ffc14d);
}
/* --- Style du Bouton de Test de Niveau --- */
.btn-test-modern {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #f39c12; /* Votre couleur orange */
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px; /* Très arrondi */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
    text-decoration: none;
}

.btn-test-modern:hover {
    background-color: #e67e22;
    transform: translateY(-1px);
}