/* L'Observatoire du Bocage — feuille de style publique */
:root {
  --foret: #173d2a;
  --vert: #2e8b4a;
  --vert-fonce: #1f6b37;
  --pousse: #7cc142;
  --eau: #2f9fd3;
  --creme: #f5f2e8;
  --papier: #fffdf7;
  --encre: #1c2a21;
  --gris: #5b6a60;
  --ligne: #e2ddcc;
  --ombre: 0 1px 2px rgba(23, 61, 42, .06), 0 8px 24px rgba(23, 61, 42, .07);
  --rayon: 14px;
  --titres: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --largeur: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --foret: #d9ecd9;
    --vert: #6cc07a;
    --vert-fonce: #8fd49b;
    --creme: #111a14;
    --papier: #16211a;
    --encre: #e6ede6;
    --gris: #a3b2a7;
    --ligne: #2a3a2f;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--creme); color: var(--encre);
  font: 400 1.0625rem/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert-fonce); text-underline-offset: .18em; }
a:hover { color: var(--vert); }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--papier); padding: .5rem 1rem; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--papier) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.entete-int { max-width: var(--largeur); margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
.marque { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; margin-right: auto; }
.marque-logo { width: 50px; height: 50px; flex: none; }
.marque-logo svg { width: 100%; height: 100%; }
.marque-logo.petit { width: 42px; height: 42px; }
.marque-nom { display: flex; flex-direction: column; line-height: 1; font-family: var(--titres); }
.marque-l1 { font-size: 1.05rem; font-weight: 600; color: var(--vert); letter-spacing: .01em; }
.marque-l2 { font-size: 1.05rem; font-weight: 500; color: var(--foret); }
.marque-l2 b { font-weight: 700; font-size: 1.45rem; letter-spacing: .02em; color: var(--vert); text-transform: uppercase; }
.recherche input {
  width: 260px; max-width: 100%; border: 1px solid var(--ligne); background: var(--creme); color: var(--encre);
  border-radius: 999px; padding: .55rem 1rem .55rem 2.3rem; font: inherit; font-size: .95rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6a60' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 17px; background-position: .8rem center;
}
.recherche input:focus { outline: 2px solid var(--pousse); outline-offset: 1px; }
.recherche.grande input { width: min(520px, 100%); padding-block: .8rem; font-size: 1.05rem; margin-top: 1.2rem; }
.nav-rubriques { border-top: 1px solid var(--ligne); }
.nav-int { max-width: var(--largeur); margin: 0 auto; padding: 0 1.25rem; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.nav-int a { padding: .6rem .8rem; white-space: nowrap; color: var(--gris); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 2.5px solid transparent; }
.nav-int a:hover { color: var(--foret); }
.nav-int a[aria-current] { color: var(--vert-fonce); border-color: var(--pousse); }
.menu-bouton { display: none; }

/* ---------- Bandeau ---------- */
.bandeau {
  background:
    radial-gradient(1200px 300px at 85% -40%, rgba(124, 193, 66, .35), transparent 60%),
    radial-gradient(800px 260px at -10% 120%, rgba(47, 159, 211, .25), transparent 60%),
    linear-gradient(135deg, #173d2a, #1f5a36 55%, #2a6f3f);
  color: #f4f8ef; position: relative; overflow: hidden;
}
.bandeau::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 40px; background: var(--creme);
  --haie: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40'%3E%3Cpath d='M0 40V26c6-9 18-11 24-3 5-10 19-12 26-3 7-8 20-8 25 2 8-7 20-6 25 3 8-10 24-10 30 0 7-7 18-6 23 2 7-8 20-9 26-1 8-6 19-5 24 4 6-5 13-5 17 0 6-6 14-6 20 0V40z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask: var(--haie) repeat-x bottom / 240px 40px; mask: var(--haie) repeat-x bottom / 240px 40px;
}
.bandeau-int { max-width: var(--largeur); margin: 0 auto; padding: 3.2rem 1.25rem 4rem; position: relative; z-index: 1; }
.bandeau h1 { font-family: var(--titres); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.75rem); line-height: 1.15; margin: .3rem 0 0; max-width: 22ch; }
.bandeau-court .bandeau-int { padding: 2.4rem 1.25rem 3.4rem; }
.bandeau-desc { max-width: 60ch; opacity: .85; margin: .6rem 0 0; }
.surtitre { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #b9e38f; margin: 0; }

/* ---------- Mise en page ---------- */
.enveloppe { max-width: var(--largeur); margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.titre-section { font-family: var(--titres); font-size: 1.5rem; font-weight: 600; color: var(--foret); margin: 2.5rem 0 1.2rem; display: flex; align-items: center; gap: .7rem; }
.titre-section::before { content: ""; width: 22px; height: 12px; border-radius: 12px 0 12px 0; background: var(--pousse); transform: rotate(-12deg); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }

/* ---------- Cartes ---------- */
.carte { background: var(--papier); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.carte:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 61, 42, .08), 0 16px 36px rgba(23, 61, 42, .12); }
.carte-lien { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.carte-image { aspect-ratio: 16 / 10; background: var(--ligne); overflow: hidden; }
.carte-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.carte:hover .carte-image img { transform: scale(1.04); }
.sans-image { width: 100%; height: 100%; background: linear-gradient(135deg, #2e8b4a, #7cc142); position: relative; }
.sans-image::after { content: ""; position: absolute; inset: 30%; background: url("/statique/img/logo-marque.svg") center / contain no-repeat; opacity: .9; filter: brightness(1.3) saturate(.6); }
.carte-texte { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.carte-titre { font-family: var(--titres); font-weight: 600; font-size: 1.28rem; line-height: 1.22; margin: 0; color: var(--foret); }
.carte-chapo { margin: 0; color: var(--gris); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte .meta { margin-top: auto; padding-top: .35rem; }
.meta { color: var(--gris); font-size: .88rem; margin: 0; }
.etiquette { align-self: flex-start; display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vert-fonce); background: color-mix(in srgb, var(--pousse) 22%, transparent); padding: .22rem .6rem; border-radius: 999px; text-decoration: none; }
.carte-une { margin-top: -2.2rem; position: relative; z-index: 2; }
.carte-une .carte-lien { display: grid; grid-template-columns: 1.35fr 1fr; }
.carte-une .carte-image { aspect-ratio: auto; min-height: 380px; }
.carte-une .carte-texte { padding: 2.2rem 2.2rem 2rem; justify-content: center; gap: .8rem; }
.carte-une .carte-titre { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.carte-une .carte-chapo { -webkit-line-clamp: 5; font-size: 1.08rem; }
.carte-une .meta { margin-top: .4rem; }

/* ---------- Article ---------- */
.avertissement { background: #fff3c4; color: #5a4600; text-align: center; padding: .6rem 1rem; font-weight: 600; }
.article-tete { max-width: 820px; margin: 0 auto; padding: 3rem 1.25rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.article-tete .etiquette { align-self: center; }
.article-tete h1 { font-family: var(--titres); font-weight: 650; font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.1; margin: 0; color: var(--foret); letter-spacing: -.01em; text-wrap: balance; }
.chapo { font-size: 1.22rem; line-height: 1.55; color: var(--gris); margin: 0; max-width: 62ch; text-wrap: pretty; }
.article-couverture { max-width: 1100px; margin: 1rem auto 0; padding: 0 1.25rem; }
.article-couverture img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre); }
.article-couverture figcaption { color: var(--gris); font-size: .88rem; margin-top: .5rem; text-align: right; }
.article-corps { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.article-corps.avec-sommaire { max-width: 1100px; display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 3.5rem; justify-content: center; }
.sommaire { position: sticky; top: 120px; align-self: start; font-size: .93rem; border-left: 2px solid var(--ligne); padding-left: 1rem; }
.sommaire p { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--gris); margin: 0 0 .6rem; }
.sommaire ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.sommaire a { color: var(--gris); text-decoration: none; line-height: 1.35; display: block; }
.sommaire a:hover, .sommaire a.actif { color: var(--vert-fonce); }
.sommaire a.actif { font-weight: 600; }

.prose { font-size: 1.15rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-family: var(--titres); font-weight: 600; font-size: 1.75rem; line-height: 1.2; color: var(--foret); margin: 2.2em 0 .7em; }
.prose h3 { font-family: var(--titres); font-weight: 600; font-size: 1.35rem; color: var(--foret); margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--vert); font-weight: 700; }
.prose img { border-radius: 10px; margin: 1.8em auto; }
.prose figure { margin: 2em 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { text-align: center; color: var(--gris); font-size: .92rem; margin-top: .6rem; }
.prose blockquote { margin: 1.8em 0; padding: .3em 0 .3em 1.4em; border-left: 4px solid var(--pousse); font-family: var(--titres); font-size: 1.3rem; line-height: 1.5; color: var(--foret); }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; height: 24px; margin: 2.5em 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24'%3E%3Cpath d='M8 12C14 4 26 3 34 8 26 15 16 16 8 12z' fill='%237cc142'/%3E%3Cpath d='M30 12c6-8 18-9 26-4-8 7-18 8-26 4z' fill='%232e8b4a' opacity='.7'/%3E%3C/svg%3E") center / 60px 24px no-repeat; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--ligne); padding: .6em .8em; text-align: left; vertical-align: top; }
.prose th { background: color-mix(in srgb, var(--pousse) 14%, transparent); font-weight: 700; }
.prose code { background: var(--ligne); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.prose mark { background: color-mix(in srgb, var(--pousse) 40%, transparent); color: inherit; padding: 0 .15em; }
.prose aside, .prose .encadre { background: var(--papier); border: 1px solid var(--ligne); border-left: 5px solid var(--eau); border-radius: 10px; padding: 1.1em 1.3em; margin: 1.8em 0; font-size: 1.05rem; box-shadow: var(--ombre); }
.prose aside > :last-child, .prose .encadre > :last-child { margin-bottom: 0; }
.prose a { font-weight: 600; }

.sources { margin-top: 3rem; padding: 1.5rem 1.6rem; background: var(--papier); border-radius: var(--rayon); border: 1px solid var(--ligne); font-size: 1rem; line-height: 1.5; }
.sources h2 { font-family: var(--texte); font-size: .85rem !important; text-transform: uppercase; letter-spacing: .14em; color: var(--gris) !important; margin: 0 0 1rem !important; }
.sources ol { margin: 0; padding-left: 1.4em; display: grid; gap: .65rem; }
.sources li::marker { color: var(--gris); font-weight: 600; }
.sources a { font-weight: 600; }
.sources .domaine { display: block; font-size: .85rem; color: var(--gris); }
.partage { margin-top: 2rem; }
.bouton-discret { font: inherit; font-size: .95rem; background: none; border: 1px solid var(--ligne); color: var(--gris); padding: .5rem 1rem; border-radius: 999px; cursor: pointer; }
.bouton-discret:hover { border-color: var(--vert); color: var(--vert-fonce); }
.a-lire { background: color-mix(in srgb, var(--pousse) 10%, var(--creme)); border-top: 1px solid var(--ligne); }
.a-lire .titre-section { margin-top: .5rem; }

/* ---------- Divers ---------- */
.bouton { display: inline-block; background: var(--vert); color: #fff; text-decoration: none; font-weight: 700; padding: .75rem 1.4rem; border-radius: 999px; }
.bouton:hover { background: var(--vert-fonce); color: #fff; }
.vide { max-width: 600px; margin: 5rem auto; padding: 0 1.25rem; text-align: center; }
.vide h1 { font-family: var(--titres); color: var(--foret); font-weight: 600; }
.vide p { color: var(--gris); }
.vide-feuille { width: 110px; height: 110px; margin: 0 auto 1rem; background: url("/statique/img/logo-marque.svg") center / contain no-repeat; }
.rien { color: var(--gris); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; color: var(--gris); }
.pagination a { font-weight: 600; }
.pastille-admin { position: fixed; right: 1rem; bottom: 1rem; background: var(--foret); color: var(--creme); text-decoration: none; padding: .55rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600; box-shadow: var(--ombre); z-index: 30; }
@media (prefers-color-scheme: dark) { .pastille-admin { background: var(--vert); color: #0d1710; } }

.pied { background: #10291c; color: #c9d9cc; margin-top: 0; }
.pied-int { max-width: var(--largeur); margin: 0 auto; padding: 2.2rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.pied-marque { display: flex; gap: .9rem; align-items: center; }
.pied-marque p { margin: .1rem 0 0; font-size: .92rem; opacity: .8; }
.pied strong { font-family: var(--titres); font-size: 1.1rem; color: #fff; }
.pied a { color: #b9e38f; }
.pied-liens { margin: 0; font-size: .95rem; }

/* ---------- Écrans étroits ---------- */
@media (max-width: 980px) {
  .article-corps.avec-sommaire { display: block; max-width: 760px; }
  .sommaire { position: static; margin-bottom: 2rem; background: var(--papier); border: 1px solid var(--ligne); border-radius: 10px; padding: 1rem 1.2rem; }
}
@media (max-width: 820px) {
  .carte-une .carte-lien { display: flex; }
  .carte-une .carte-image { min-height: 0; aspect-ratio: 16 / 10; }
  .carte-une .carte-texte { padding: 1.3rem 1.3rem 1.5rem; }
  .recherche { display: none; }
  .entete-int { gap: .8rem; }
  .menu-bouton { display: grid; gap: 4px; background: none; border: 0; padding: .6rem; cursor: pointer; }
  .menu-bouton span { width: 22px; height: 2px; background: var(--foret); border-radius: 2px; }
  .nav-rubriques { display: none; }
  .nav-rubriques.ouvert { display: block; }
  .nav-rubriques.ouvert .nav-int { flex-direction: column; padding-bottom: .6rem; }
  .bandeau .recherche { display: block; }
  .prose { font-size: 1.08rem; }
}
@media (max-width: 480px) {
  .marque-logo { width: 42px; height: 42px; }
  .marque-l1, .marque-l2 { font-size: .95rem; }
  .marque-l2 b { font-size: 1.25rem; }
  .grille { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
