/* Base moderne, reposante et ultra-légère pour tout le site */
* {
  box-sizing: border-box;
}

html, body {
  background-color: #dbeafe; /* Fond bleu lagon pâle uniforme */
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Arial, sans-serif;
  color: #1e293b;            /* Texte gris anthracite lisible */
  font-size: 15px;
  line-height: 1.5;
  max-width: 880px;
  margin: 0 auto;
  padding: 15px;
}



/* Liens propres et lisibles */
a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
}
a:hover {
  text-decoration: underline;
  color: #0369a1;
}

/* Titres */
h1, h2, h3 {
  color: #0f2942;
  margin-top: 16px;
  margin-bottom: 8px;
}

/* Images encadrées et jamais géantes */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Tableaux anciens rendus propres automatiquement */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

/* Menu flottant semi-transparent et lisible */
#menu {
  position: fixed;
  right: 50px;
  top: 65%;
  z-index: 1000;
  background: rgba(15, 41, 66, 0.78); /* Bleu marin semi-transparent (78%) */
  backdrop-filter: blur(4px);        /* Léger flou moderne derrière le menu */
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  padding: 10px 18px 10px 28px;
  border-radius: 3em 0.5em 0.5em 3em; /* Forme demi-pilule d'origine */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  list-style: none;
  margin: 0;
}

#menu li {
  margin: 5px 0;
}

#menu a {
  color: #7dd3fc; /* Bleu ciel très clair et lisible */
  text-decoration: none;
}

#menu a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Réglage smartphone : bien décalé du bord et lisible */
@media (max-width: 768px) {
  #menu {
    right: 55px; /* Débordement confortable vers la gauche sur mobile */
    top: 65%;
    padding: 8px 14px 8px 22px;
    font-size: 15px;
  }
}