:root {
  --primary: #2e7d5b;        /* Vert sapin désaturé */
  --secondary: #f4f7f5;      /* Blanc cassé tirant vers le vert */
  --highlight: #e3f0e9;      /* Vert clair et doux pour survols */
  --text-muted: #5c6f66;     /* Texte secondaire ou désactivé */
  --link: #2e7d5b;           /* Lien de navigation et contenu */
  --link-hover: #245e46;     /* Lien survolé, plus dense */
}
body {
  font-family: 'Inter', sans-serif;
  background-color: #fcfcfc;
  margin: 0 auto;
}

nav ul:first-child li strong {
  font-weight: 700;
  color: var(--primary);
}

header > hgroup {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

h1, h2 {
  color: var(--primary);
}

article {
  background: var(--secondary);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
}

article:hover {
  background: var(--highlight);
  transition: background 0.3s ease;
}

footer {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #666;
}

nav ul:first-child li strong {
  color: var(--primary);
}

nav a {
  color: var(--link);
}
nav a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

h1, h2 {
  color: var(--primary);
}

a {
  color: var(--link);
}
a:hover {
  color: var(--link-hover);
}

nav {
  background-color: var(--secondary);
  border-bottom: 1px solid var(--highlight);
}

.logo {
  height: 2.5rem;
  width: auto;
  max-width: 100%;
}

.article-bg-image {
  position: relative;
  padding: 1.5rem 1rem;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Variable CSS pour l’image */
.article-bg-image {
  position: relative;
  padding: 1.5rem 1rem;
  overflow: hidden;
}

.article-bg-image::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: var(--bg-url);
  z-index: 0;
  pointer-events: none;
}

.article-bg-image.image-left::before {
  left: 0;
}

.article-bg-image.image-right::before {
  right: 0;
}

.article-bg-image > * {
  position: relative;
  z-index: 1;
}

/* Pour que le texte ne soit pas sous l'image de fond */
.article-bg-image.image-left {
  padding-left: 22%; /* un peu plus que 20% pour respirer */
}

.article-bg-image.image-right {
  padding-right: 22%;
}

@media (max-width: 900px) {
  .article-bg-image::before {
    width: 100% !important; /* plein écran */
    height: 150px; /* hauteur fixe ou auto */
    margin-bottom: 1rem;
  }

  .article-bg-image.image-left,
  .article-bg-image.image-right {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 22%;
  }

}

