/* Header */
.nav {
  background-color: #1B2F4E;
  padding: 0 1.5rem;
}
.nav a,
.nav .logo,
.logo-switches a {
  color: #FFFFFF !important;
}

/* Réduire la taille du header sur mobile */
.nav {
  min-height: unset;
}

/* Bouton lune visible sur mobile */
.logo-switches {
  display: flex !important;
  flex-wrap: nowrap;
}
.logo-switches svg {
  fill: #FFFFFF;
  stroke: #FFFFFF;
}

/* Footer */
footer {
  background-color: #122240;
  color: #8ab0d4;
  padding: 1rem 1.5rem;
}
footer a {
  color: #8ab0d4 !important;
}

/* Justifier uniquement sur PC, pas sur mobile */
@media (min-width: 768px) {
  .post-content p,
  .home-info p {
    text-align: justify;
  }
}

/* Cartes articles — fond adouci en mode sombre */
@media (prefers-color-scheme: dark) {
  .post-entry {
    background-color: rgb(30, 50, 80) !important;
  }
}
/* Ligne Accueil/lune/Contact — centrée sous le titre */
.logo-switches {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.3rem;
}
/* Liens Accueil/Contact — mobile uniquement */
.mobile-quick-link {
  color: #FFFFFF !important;
  font-size: 0.75rem;
  padding: 0 0.6rem;
  text-decoration: none;
  font-weight: 400 !important;
}
@media (min-width: 768px) {
  .mobile-quick-link {
    display: none !important;
  }
  .logo-switches {
    justify-content: flex-end !important;
    width: auto !important;
    margin-top: 0 !important;
  }
}
/* Agrandir le titre sur mobile */
@media (max-width: 767px) {
  .logo a {
    font-size: 1.4rem !important;
  }
  /* Cacher Accueil et Contact du menu principal sur mobile */
  #menu li:first-child,
  #menu li:last-child {
    display: none !important;
  }
}
@media (max-width: 767px) {
  #menu a {
    font-size: 1rem !important;
  }
  .mobile-quick-link {
    font-size: 1rem !important;
  }
  .logo-switches .mobile-quick-link {
    font-size: 1rem !important;
    font-weight: 400 !important;
  }
}
