/* Le journal à Max — habillage couleurs (lot 1) */

/* Fond de page — beige pâle */
body {
  background: #efe8d6;
}

/* Bannière en haut du site */
.site-banner {
  position: relative;
  margin-bottom: 1.5em;
}
.site-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.site-banner-title {
  position: absolute;
  left: 24px;
  bottom: 18px;
  color: #ffffff;
  font-size: 2.4em;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* Titres et liens */
h1, h2 {
  color: #0a1931;
}
h1 {
  border-bottom: 3px solid #e8b923;
  padding-bottom: 0.2em;
}
a {
  color: #0e7c7b;
}
a:hover {
  color: #b8860b;
}
a:visited {
  color: #0a5e5d;
}

/* Articles en cartes sur l'accueil — gris neutre, contraste avec le fond beige */
.inlinepage {
  background: #d3d3d3;
  border: 1px solid #bcbcbc;
  border-radius: 8px;
  padding: 1em 1.5em;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.inlinepage img, #content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Pastilles de tags */
.pagetags a {
  background: #0a1931;
  color: #ffffff !important;
  padding: 2px 10px;
  border-radius: 12px;
  text-decoration: none;
  margin-right: 4px;
}
.pagetags a:hover {
  background: #e8b923;
  color: #0a1931 !important;
}

.site-contact { clear: both; background: #0a1931; color: #ffffff; text-align: center; padding: 1em 0.5em; margin-top: 2em; }

/* Navigation précédent/suivant sur téléphone : en flux normal, pour que la
   navigation réserve sa hauteur au lieu de passer par-dessus l'image de
   l'article (haut de page) et la ligne « Last edited » (bas de page).
   Remplace l'ancien contournement (margin-top: 10em sur le bandeau). */
@media (max-width: 640px) {
  .trailprev, .trailnext {
    position: static;
    width: auto;
  }
  .trailup {
    margin-left: 0;
    margin-right: 0;
  }
}
.site-contact-label { font-weight: bold; margin-right: 0.5em; vertical-align: middle; }
.site-contact a, .site-contact span.social-icon { display: inline-block; margin: 0 0.35em; vertical-align: middle; }
.site-contact img { background: #ffffff; border-radius: 8px; padding: 4px; width: 32px; height: 32px; }
.site-contact a:hover img { outline: 2px solid #e8b923; }
