/* Hertogenwald : forêt et fagnes */
:root {
  --sapin: #1f3d2b;
  --sapin-fonce: #142a1d;
  --mousse: #4d6b45;
  --lande: #efe6d2;
  --lande-clair: #f8f3e8;
  --bruyere: #d9ccb0;
  --tourbe: #6b4a2f;
  --tourbe-clair: #8c6642;
  --encre: #22261f;
  --gris: #5a5f55;
  --rayon: 14px;
  --largeur: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--lande-clair);
  color: var(--encre);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.075rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, .logo, nav, .carte-titre, .bouton, .etiquette {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}

h1, h2, h3 { line-height: 1.2; color: var(--sapin-fonce); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 1.95rem); margin: 2.2em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 0.4em; }

p { margin: 0 0 1.1em; }

a { color: var(--tourbe); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sapin); }

img, svg { max-width: 100%; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
.texte { max-width: 720px; }

/* En-tête */
.entete { background: var(--sapin-fonce); color: var(--lande); }
.entete .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { color: var(--lande); text-decoration: none; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo:hover { color: #fff; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav a { color: var(--bruyere); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
nav a:hover, nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* Bandeau */
.bandeau {
  position: relative;
  background: linear-gradient(180deg, var(--sapin) 0%, #2c5139 70%, var(--mousse) 100%);
  color: var(--lande);
  padding: 56px 0 120px;
  overflow: hidden;
}
.bandeau h1 { color: #fff; max-width: 780px; }
.bandeau p { max-width: 640px; font-size: 1.15rem; color: var(--lande); }
.bandeau .courbes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.18; pointer-events: none; }
.bandeau .foret { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; display: block; }
.bandeau .conteneur { position: relative; }
.bandeau.petit { padding: 40px 0 96px; }
.bandeau.petit .foret { height: 80px; }
.etiquette { display: inline-block; background: var(--tourbe); color: var(--lande); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }

/* Avertissement */
.avis {
  background: var(--lande);
  border-left: 6px solid var(--tourbe);
  border-radius: var(--rayon);
  padding: 18px 20px;
  margin: 32px 0;
}
.avis p:last-child { margin-bottom: 0; }

/* Cartes */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 28px 0 8px; }
.carte {
  background: #fff;
  border: 1px solid var(--bruyere);
  border-top: 6px solid var(--sapin);
  border-radius: var(--rayon);
  padding: 20px;
  text-decoration: none;
  color: var(--encre);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.carte:nth-child(2) { border-top-color: var(--tourbe); }
.carte:nth-child(3) { border-top-color: var(--mousse); }
.carte:nth-child(4) { border-top-color: var(--tourbe-clair); }
a.carte:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 42, 29, 0.14); color: var(--encre); }
.carte-titre { display: block; font-weight: 800; font-size: 1.1rem; color: var(--sapin-fonce); margin-bottom: 6px; }
.carte p { margin: 0; font-size: 0.98rem; color: var(--gris); }

/* Contenu */
main { padding: 8px 0 56px; }
.section-lande { background: var(--lande); padding: 8px 0 32px; margin-top: 40px; }
ul.liste { padding-left: 1.2em; }
ul.liste li { margin-bottom: 0.5em; }

.encadre {
  background: #fff;
  border: 1px dashed var(--tourbe-clair);
  border-radius: var(--rayon);
  padding: 18px 20px;
  margin: 24px 0;
}
.encadre p:last-child { margin-bottom: 0; }

/* Pied de page */
.pied { background: var(--sapin-fonce); color: var(--bruyere); padding: 0 0 28px; font-size: 0.95rem; }
.pied .crete { display: block; width: 100%; height: 40px; }
.pied a { color: var(--lande); }
.pied ul { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pied p { margin: 0 0 0.6em; }

@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .bandeau { padding: 36px 0 90px; }
  .bandeau .foret { height: 70px; }
  nav ul { gap: 4px 14px; }
}

/* Coupe schématique (accueil) */
.coupe { margin: 32px 0; }
.coupe svg { display: block; width: 100%; height: auto; border-radius: var(--rayon); border: 1px solid var(--bruyere); }
.coupe figcaption { font-size: 0.9rem; color: var(--gris); margin-top: 8px; font-style: italic; }

/* Saisons */
.saisons { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 28px 0; }
.saison { border-radius: var(--rayon); padding: 16px; background: #fff; border: 1px solid var(--bruyere); position: relative; overflow: hidden; }
.saison::before { content: ""; display: block; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 10px; }
.saison p { margin: 0; font-size: 0.95rem; color: var(--gris); line-height: 1.5; }
.printemps::before { background: radial-gradient(circle at 35% 35%, #a9c48a, var(--mousse)); }
.ete::before { background: radial-gradient(circle at 35% 35%, #f1d38a, #c99a3b); }
.automne::before { background: radial-gradient(circle at 35% 35%, var(--tourbe-clair), var(--tourbe)); }
.hiver::before { background: radial-gradient(circle at 35% 35%, #fff, #c9d3cf); border: 1px solid var(--bruyere); }

@media (max-width: 640px) {
  .entete .conteneur { flex-direction: column; align-items: flex-start; }
  .cartes { grid-template-columns: 1fr; }
}
