/* ======= Styles généraux ======= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7f9;
  color: #222;
  margin: 0;
  padding: 20px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ======= En-tête ======= */
header {
  background: #1a936f;
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
  margin: 0;
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: 1px;
}

header p {
  font-size: 1.1rem;
  margin-top: 10px;
  opacity: 0.95;
}

header input {
  margin-top: 25px;
  padding: 12px 16px;
  width: 80%;
  max-width: 500px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: border 0.3s ease;
}

/* ======= Navigation alphabet ======= */
.alphabet-nav {
  text-align: center;
  background: #114b5f;
  padding: 12px;
  margin: 30px auto;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 960px;
}

.alphabet-nav a {
  color: white;
  padding: 8px 12px;
  background-color: #1a936f;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.alphabet-nav a:hover,
.alphabet-nav a:focus {
  background: #147753;
  transform: scale(1.05);
}

/* ======= Contenu principal ======= */
main {
  padding: 0 10px 60px;
  max-width: 960px;
  margin: auto;
}

/* ======= Sections par lettre ======= */
.letter-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 35px 40px;
  margin-bottom: 50px;
}

.letter-section:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.letter-section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2c3e50;
  border-bottom: 3px solid #27ae60;
  padding-bottom: 10px;
  margin-bottom: 25px;
}

/* ======= Termes ======= */
.term {
  background: #ffffff;
  border-left: 6px solid #1a936f;
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.term:hover {
  background-color: #f0fcf7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.term h3 {
  font-size: 1.35rem;
  color: #1a936f;
  margin-bottom: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.term p {
  font-size: 1rem;
  color: #333;
  margin: 0;
}

/* ======= Tags visibles et stylés ======= */
.tag {
  font-size: 0.8rem;
  background-color: #27ae60;
  color: white;
  border-radius: 12px;
  padding: 3px 10px;
  font-weight: 500;
  margin-left: 8px;
  white-space: nowrap;
}

/* ======= Bouton de retour haut ======= */
#btnTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #1a936f;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(26, 147, 111, 0.6);
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btnTop:hover,
#btnTop:focus {
  background-color: #147753;
  transform: scale(1.1);
}

/* ======= Pied de page ======= */
footer {
  text-align: center;
  background: #eeeeee;
  padding: 20px;
  font-size: 0.9em;
  color: #444;
  border-radius: 0 0 10px 10px;
  max-width: 960px;
  margin: auto;
}

/* ======= Lien retour accueil ======= */
.btn-return {
  display: inline-block;
  margin: 20px auto;
  padding: 10px 25px;
  background-color: #1a936f;
  color: white;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(26, 147, 111, 0.4);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-return:hover,
.btn-return:focus {
  background-color: #147753;
  transform: translateY(-2px);
}

/* ======= Responsive Design ======= */
@media screen and (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  .alphabet-nav {
    padding: 10px 5px;
    gap: 6px;
  }

  .alphabet-nav a {
    font-size: 1rem;
    padding: 6px 10px;
  }

  .letter-section {
    padding: 25px 20px;
  }

  .letter-section h2 {
    font-size: 2rem;
  }

  .term h3 {
    font-size: 1.1rem;
  }

  .term p {
    font-size: 0.95rem;
  }

  #btnTop {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

.tag {
  display: none !important;
}