/*
 * BarnOwl — thème Anthracite
 * Maquette : maquettes/barnowl-redesign-anthracite-titres-v8.png
 */

:root {
    --bg: #232524;
    --bg-alt: #2b2d2c;
    --surface: #303231;
    --line: #4a4c4b;
    --text: #f1f0ec;
    --text-muted: #b9b8b2;
    --accent: #d9601a;
    --accent-hover: #ee7430;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Mulish", system-ui, sans-serif;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 48px);
    --header-h: 64px;
}

/* ---------- Reboot minimal (remplace celui de Bootstrap) ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: .5rem; line-height: 1.2; }
p, ul, ol, dl, blockquote, figure, pre, address { margin-top: 0; margin-bottom: 1rem; }
ul ul, ol ol, ul ol, ol ul { margin-bottom: 0; }
b, strong { font-weight: 600; }
small { font-size: 80%; }
a { text-decoration: none; background-color: transparent; }
img, svg, video, canvas, iframe { vertical-align: middle; }
img { border-style: none; }
table { border-collapse: collapse; }
th { text-align: inherit; }
button, input, select, textarea, optgroup { margin: 0; font: inherit; color: inherit; line-height: inherit; }
button, [type="button"], [type="submit"], [type="reset"] { -webkit-appearance: button; cursor: pointer; }
textarea { overflow: auto; resize: vertical; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
hr { box-sizing: content-box; height: 0; margin: 1rem 0; border: 0; border-top: 1px solid var(--line); overflow: visible; }
[hidden] { display: none !important; }
.sr-only, .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text); transition: color .2s; }
a:hover { color: var(--accent-hover); text-decoration: none; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
}

hr { border-color: var(--line); }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.icon { flex: none; }

/* ---------- Typo ---------- */

.display {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 4.2vw, 2.75rem);
    line-height: 1.1;
    margin: 0;
}

.lead-muted {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: .35rem 0 0;
}

.prose-lg { font-size: 1.05rem; line-height: 1.7; max-width: 34rem; }

.section-head { margin-bottom: 2rem; }
.section-head--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Boutons & liens ---------- */

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: .7rem 1.25rem;
    font-size: .95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s;
}
.btn-accent:hover, .btn-accent:focus { background: var(--accent-hover); color: #fff; }

.link-accent {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--accent);
    font-size: .9rem;
    margin-top: .9rem;
}
.link-accent:hover { color: var(--accent-hover); }

.arrow-link { color: var(--accent); display: inline-flex; margin-top: 1.5rem; }
.arrow-link .icon { transition: transform .2s; }
.arrow-link:hover .icon { transform: translateX(4px); }

/* ---------- En-tête ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(35, 37, 36, .96);
    backdrop-filter: blur(8px);
}
.site-header--overlay {
    position: fixed;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(0, 0, 0, .45), transparent);
    backdrop-filter: none;
    transition: background .3s;
}
.site-header--overlay.is-scrolled {
    background: rgba(35, 37, 36, .96);
    backdrop-filter: blur(8px);
}

.site-header__inner {
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    height: var(--header-h);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.brand:hover { color: var(--text); }

.site-header__panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav__item { position: relative; }
.main-nav a { font-size: .85rem; color: var(--text); }
.main-nav__item > a { display: block; padding: .5rem 0; }
.main-nav__item.is-active > a { color: var(--accent); }

.main-nav__sub {
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 15rem;
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.main-nav__item:hover > .main-nav__sub,
.main-nav__item:focus-within > .main-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.main-nav__sub a { display: block; padding: .45rem 1rem; }
.main-nav__sub .is-active a { color: var(--accent); }

.site-header__tools {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.tools-divider { width: 1px; height: 28px; background: var(--line); }

.lang-switch { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.lang-switch a { color: var(--text-muted); }
.lang-switch a.is-active { color: var(--text); font-weight: 600; }
.lang-switch span { margin: 0 .2rem; }

.search-toggle {
    display: inline-flex;
    background: none;
    border: 0;
    padding: .25rem;
    color: var(--text);
    cursor: pointer;
}
.search-toggle:hover { color: var(--accent-hover); }

.search-panel {
    border-top: 1px solid var(--line);
    background: var(--bg);
}
.search-panel__form {
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 1rem var(--gutter);
    display: flex;
    gap: .75rem;
}
.search-panel input,
.search-form input[type=search],
.search-form input[type=text] {
    flex: 1;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    color: var(--text);
    padding: .65rem .9rem;
    font: inherit;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    padding: .5rem;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: min(78vh, 760px);
    display: flex;
    align-items: center;
    --hero-image: var(--hero-image-sm);
    background: var(--bg) var(--hero-image) center / cover no-repeat;
    padding: calc(var(--header-h) + 3rem) 0 4rem;
}
@media (min-width: 768px) { .hero { --hero-image: var(--hero-image-md); } }
@media (min-width: 1600px) { .hero { --hero-image: var(--hero-image-lg); } }
.hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 21, 20, .78) 0%, rgba(20, 21, 20, .35) 45%, transparent 70%),
        linear-gradient(transparent 65%, rgba(35, 37, 36, .9));
}
.hero__content { position: relative; width: 100%; }
.hero__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.6rem, 6.5vw, 4.25rem);
    line-height: 1.08;
    margin: 0 0 1.5rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero__lead {
    max-width: 30rem;
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}

/* ---------- Bandes ---------- */

.band { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--bg); }
.band--alt { background: var(--bg-alt); }

.media-frame {
    display: block;
    margin: 0;
    overflow: hidden;
    background: var(--surface);
}
.media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
a.media-frame:hover img { transform: scale(1.03); }

/* ---------- Actualités ---------- */

.news-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.75rem;
}
.news-card--lead .media-frame { aspect-ratio: 2 / 1; }
.news-side { display: flex; flex-direction: column; }
.news-side .news-card + .news-card {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.news-card--side {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 1.25rem;
    align-items: start;
}
.news-card--side .media-frame { aspect-ratio: 4 / 3; }
.news-meta { color: var(--text-muted); font-size: .8rem; margin: .9rem 0 .25rem; }
.news-card--side .news-meta { margin-top: 0; }
.news-meta a { color: var(--text-muted); }
.news-title { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .4rem; }
.news-card--lead .news-title { font-size: 1.4rem; }
.news-title a { color: var(--text); }
.news-title a:hover { color: var(--accent-hover); }
.news-excerpt { color: var(--text-muted); font-size: .92rem; }
.news-excerpt p:last-child { margin-bottom: 0; }

.news-list .news-card + .news-card {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.news-list .news-card--side { grid-template-columns: 220px 1fr; }

.pager { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.pager a {
    min-width: 2.4rem;
    padding: .4rem .6rem;
    text-align: center;
    border: 1px solid var(--line);
    color: var(--text-muted);
}
.pager a.is-active, .pager a:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Recherches ---------- */

.research {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.research__portrait { position: relative; aspect-ratio: 7 / 5; }
.research__portrait img { transition: opacity .25s; }
.research__portrait img.is-fading { opacity: .2; }
.research__portrait figcaption {
    position: absolute;
    right: .6rem;
    bottom: .4rem;
    font-size: .7rem;
    color: rgba(255, 255, 255, .75);
}
.research__list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.research__list li + li { border-top: 1px solid var(--line); }
.research__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    font-size: 1.15rem;
}
.research__list li:first-child a { padding-top: 0; }
.research__list .icon { color: var(--accent); transition: transform .2s; }
.research__list a:hover .icon,
.research__list a:focus .icon { transform: translateX(4px); }
.research__aside .media-frame--wide { aspect-ratio: 3 / 1; }

/* ---------- Bloc texte + image ---------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.split__text .display { margin-bottom: 1.25rem; }
.split__media { aspect-ratio: 8 / 3; }

/* ---------- Pages de contenu ---------- */

.page-main { padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; min-height: 60vh; }

.page-hero { margin-bottom: clamp(2rem, 4vw, 3rem); }
.page-hero__title { font-size: clamp(2.4rem, 5.5vw, 3.75rem); max-width: 18ch; }
.page-hero .lead-muted { max-width: 40rem; font-size: 1.15rem; margin-top: .75rem; }

.eyebrow {
    margin: 0 0 .9rem;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.eyebrow a { color: var(--accent); }
.eyebrow a::before { content: "\2190\00a0"; }
.eyebrow a:hover { color: var(--accent-hover); }

.page-banner { margin-top: 0; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-banner .media-frame { aspect-ratio: 21 / 8; }
.page-banner figcaption { margin-top: .5rem; color: var(--text-muted); font-size: .75rem; text-align: right; }

.page-body--aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.page-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.subnav { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.subnav__title { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 .75rem; }
.subnav__title a { color: var(--text); }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav li a {
    display: block;
    padding: .42rem 0 .42rem .9rem;
    border-left: 2px solid var(--line);
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.35;
    transition: color .2s, border-color .2s;
}
.subnav li a:hover { color: var(--text); border-left-color: var(--text-muted); }
.subnav li.is-active a { color: var(--text); border-left-color: var(--accent); }

/* Typographie du contenu (pages statiques, articles) */
.prose { max-width: 46rem; font-size: 1.04rem; line-height: 1.75; }
.page-body--aside .prose { max-width: none; }
.prose::after { content: ""; display: table; clear: both; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15rem; }
.prose h2, .prose h3, .prose h4, .prose h5 { font-family: var(--font-display); line-height: 1.25; margin: 2.75rem 0 .9rem; }
.prose h2 { font-size: 1.85rem; }
.prose h3 { font-size: 1.5rem; }
.prose h4 { font-size: 1.35rem; }
.prose h5 { font-size: 1.1rem; }
.prose h2 a, .prose h3 a, .prose h4 a, .prose h5 a { color: var(--text); }
.prose h2 a:hover, .prose h3 a:hover, .prose h4 a:hover, .prose h5 a:hover { color: var(--accent-hover); }

/* Chapeau : premier intertitre en gras saisi dans l'éditeur */
.prose > h4:first-child:has(> strong),
.prose > h3:first-child:has(> strong) {
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: 400;
    line-height: 1.45;
    margin-bottom: 2.25rem;
}
.prose > h4:first-child > strong,
.prose > h3:first-child > strong { font-weight: inherit; }

.prose a { color: var(--accent); }
.prose a:hover { color: var(--accent-hover); }
.prose .research__list a, .prose .news-title a { color: var(--text); }
.prose .research__list a:hover, .prose .news-title a:hover { color: var(--accent-hover); }
.prose .research { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--accent); }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1.25rem; margin: 2rem 0; color: var(--text-muted); font-style: italic; }
.prose hr { margin: 2.5rem 0; }
.prose iframe, .prose video { max-width: 100%; }

/* Images de l'éditeur (Froala) */
.prose img { max-width: 100% !important; height: auto !important; }
.prose .fr-dib { display: block; margin: 2rem auto; }
.prose .fr-dii { display: inline-block; }
.prose .fr-fil { float: left; margin: .35rem 2rem 1rem 0; max-width: 45% !important; }
.prose .fr-fir { float: right; margin: .35rem 0 1rem 2rem; max-width: 45% !important; }
.prose .fr-img-caption { display: block; margin: 2rem 0; }
.prose .fr-img-wrap { display: block; }
.prose .fr-inner { display: block; margin-top: .5rem; color: var(--text-muted); font-size: .82rem; line-height: 1.5; }
.prose .fr-file::before { content: "\2193\00a0"; }

/* Tableaux : souvent utilisés pour la mise en page dans l'éditeur */
.prose table { width: 100% !important; color: var(--text); border-collapse: collapse; margin: 1.5rem 0 2rem; }
.prose td, .prose th { padding: .6rem .75rem; vertical-align: top; border-color: var(--line); width: auto !important; }
.prose table:has(td h4 a) td { padding: 0 .75rem .75rem; }
.prose table:has(td h4 a) h4 { margin: 0 0 .25rem; font-size: 1.25rem; text-align: left !important; }
.prose .table td, .prose .table th { border-color: var(--line); }

/* Retour à la rubrique */
.back-link { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.back-link .link-accent { margin: 0; font-size: .95rem; }
.prose .back-link a { color: var(--accent); }

/* Équipe (Pixinside.Team) : grille et cartes stylées par le plugin (team.css) ; intitulés de groupes ici */
.prose h4[style*="center"] {
    font-family: var(--font-body);
    font-size: .78rem !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 3rem;
}

/* Classes utilitaires encore présentes dans le contenu en base et le bouton « Save selection » de SmallGDPR */
.btn-primary { background: var(--accent); border: 1px solid var(--accent); color: #fff; border-radius: 0; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.text-muted { color: var(--text-muted) !important; }
.bg-white, .bg-light { background: var(--bg-alt) !important; }

/* ---------- Pied de page ---------- */

.site-footer {
    background: var(--bg);
    padding: 0 var(--gutter) 2rem;
}
.site-footer__bar {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    flex-wrap: wrap;
}
.site-footer .main-nav__sub { display: none; }
.site-footer__meta {
    max-width: var(--wrap);
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .05);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 2rem;
    color: var(--text-muted);
    font-size: .8rem;
}
.site-footer__about { max-width: 38rem; margin: 0; }
.site-footer__logos { display: flex; gap: 1.5rem; align-items: center; }
.site-footer__logos img { height: 32px; width: auto; filter: grayscale(1) invert(1) brightness(1.6); opacity: .75; }
.site-footer__legal { grid-column: 1 / -1; margin: 0; }
.site-footer__legal a { color: var(--text-muted); }

/* ---------- Responsive ---------- */

/* Menu en hamburger sous 1280 px (6 rubriques et le nom du site ne tiennent pas sur une ligne, surtout en allemand) */
@media (max-width: 1279px) {
    .nav-toggle { display: block; }
    .site-header, .site-header--overlay.is-scrolled { backdrop-filter: none; background: var(--bg); }
    .site-header--overlay:not(.is-scrolled):not(.is-open) { background: linear-gradient(rgba(0, 0, 0, .45), transparent); }
    .site-header__panel { visibility: hidden; }
    .site-header.is-open .site-header__panel { visibility: visible; }
    .site-header__panel {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 1rem var(--gutter) 2rem;
        background: var(--bg);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .3s ease;
    }
    .site-header.is-open .site-header__panel { transform: none; }
    .site-header.is-open { background: var(--bg); }
    .site-header .main-nav { flex-direction: column; gap: 0; }
    .site-header .main-nav__item { border-bottom: 1px solid var(--line); }
    .site-header .main-nav__item > a { padding: .9rem 0; font-size: 1.05rem; }
    .site-header .main-nav__sub {
        position: static;
        opacity: 1;
        visibility: inherit;
        transform: none;
        background: none;
        border: 0;
        box-shadow: none;
        padding: 0 0 .75rem 1rem;
    }
    .site-header__tools { padding-top: 1.25rem; }
}

@media (max-width: 991px) {

    .news-grid, .research, .split, .page-body--aside { grid-template-columns: minmax(0, 1fr); }
    .page-aside { position: static; }
    .split__media { order: -1; }
    .site-footer .main-nav { display: none; }
}

@media (max-width: 575px) {
    .prose .fr-fil, .prose .fr-fir { float: none; max-width: 100% !important; margin: 1.5rem 0; }
    .prose table, .prose tbody, .prose tr, .prose td { display: block; }
    .news-card--side, .news-list .news-card--side { grid-template-columns: 110px 1fr; gap: .9rem; }
    .news-title { font-size: 1.02rem; }
    .site-footer__meta { grid-template-columns: 1fr; }
    .search-panel__form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Articles (Pixinside.Actualites) ---------- */

.page-hero__meta { margin: 1rem 0 0; color: var(--text-muted); font-size: .9rem; }
.page-hero__meta a { color: var(--accent); }
.page-hero__meta a:hover { color: var(--accent-hover); }

.post-cover { margin: 0 0 2.5rem; }
.post-cover img { display: block; max-width: 100%; max-height: 70vh; width: auto; }
.post-cover figcaption { margin-top: .5rem; color: var(--text-muted); font-size: .82rem; }

.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; margin-top: 2.5rem; }
.post-gallery .media-frame { aspect-ratio: 4 / 3; }

.news-excerpt h1, .news-excerpt h2, .news-excerpt h3, .news-excerpt h4, .news-excerpt h5 {
    font-family: var(--font-body);
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    margin: 0 0 .4rem;
    color: var(--text-muted);
}
.news-excerpt p { margin-bottom: .4rem; }
.prose .news-meta a { color: var(--accent); }
.prose .news-title { margin: 0 0 .5rem; font-size: 1.3rem; }
.prose .news-card--side .news-meta { margin: 0 0 .35rem; }

/* ---------- Galeries (Pixinside.Galerie) ---------- */

.gallery-strip { margin: 2.5rem 0; }
.gallery-strip__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.gallery-strip__track::-webkit-scrollbar { display: none; }
.gallery-strip__track:focus-visible { outline-offset: 6px; }
.gallery-strip__item {
    flex: 0 0 82%;
    margin: 0;
    scroll-snap-align: start;
}
.gallery-strip__item:only-child { flex-basis: 100%; }
.gallery-strip__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--surface);
    cursor: zoom-in;
}
.gallery-strip__media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    transition: transform .6s ease;
}
.gallery-strip__media:hover img { transform: scale(1.02); }
.gallery-strip__media--video { cursor: auto; }
.gallery-strip__media--video iframe { width: 100%; height: 100%; border: 0; }
.gallery-strip__item figcaption {
    margin-top: .7rem;
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.55;
    max-width: 40rem;
}
.gallery-strip__item figcaption strong { color: var(--text); font-weight: 600; }

.gallery-strip__nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--line);
}
.gallery-strip__count { margin: 0 auto 0 0; color: var(--text-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.gallery-strip__count span { color: var(--text); }
.gallery-strip__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--line);
    background: none;
    color: var(--accent);
    cursor: pointer;
    transition: border-color .2s, color .2s, opacity .2s;
}
.gallery-strip__btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-hover); }
.gallery-strip__btn:disabled { opacity: .3; cursor: default; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .6rem;
    margin: 2rem 0;
}
.gallery-grid__item { aspect-ratio: 1; cursor: zoom-in; }
.gallery-grid__item img { max-width: none !important; height: 100% !important; }
.gallery-grid__video { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery-grid__video iframe { width: 100%; height: 100%; border: 0; }

/* Visionneuse plein écran */
.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(18, 19, 18, .97);
    color: var(--text);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 3.5rem 4.5rem 1rem; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__bar { display: flex; gap: 1.5rem; align-items: baseline; padding: 1rem var(--gutter) 1.5rem; max-width: 62rem; margin: 0 auto; width: 100%; }
.lightbox__count { color: var(--text-muted); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lightbox__caption { margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.55; }
.lightbox__btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: none;
    border: 0;
    color: var(--text);
    cursor: pointer;
}
.lightbox__btn:hover { color: var(--accent-hover); }
.lightbox__btn--close { top: .5rem; right: .5rem; }
.lightbox__btn--prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: .75rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 575px) {
    .gallery-strip__item { flex-basis: 88%; }
    .lightbox__stage { padding: 3.5rem 0 1rem; }
    .lightbox__btn--prev, .lightbox__btn--next { display: none; }
}
.lightbox.is-single .lightbox__btn--prev, .lightbox.is-single .lightbox__btn--next { display: none; }

/* ---------- Formulaire de contact (Pixinside.Contact) ---------- */

.prose .contact-form { max-width: 40rem; margin: 2.5rem 0 0; font-family: var(--font-body); }
.prose .contact-form__label {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.prose .contact-form__input,
.prose .contact-form__textarea {
    font-family: var(--font-body);
    background-color: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
}
.prose .contact-form__input:focus,
.prose .contact-form__textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 .15rem rgba(217, 96, 26, .3); }
.prose .contact-form__input::placeholder,
.prose .contact-form__textarea::placeholder { color: #7f7e79; }
.prose .contact-form__checkbox-text { font-family: var(--font-body); font-size: .85rem; color: var(--text-muted); }
.prose .contact-form__checkbox { accent-color: var(--accent); }
.prose .contact-form__btn {
    font-family: var(--font-body);
    border-radius: 0;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.prose .contact-form__btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.prose .contact-form__btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.prose .contact-form__btn--ghost { background: none; border: 1px solid var(--line); color: var(--text); }
.prose .contact-form__error { color: #f08a5d; }

/* ---------- Documents à télécharger (Pixinside.Download) ---------- */

.downloads { margin: 2.5rem 0; }
.download {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
}
.download:last-child { border-bottom: 1px solid var(--line); }
.download__cover { aspect-ratio: 4 / 5; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.download__cover img { max-width: none !important; height: 100% !important; }
.prose .download__title { margin: 0 0 .6rem; font-size: 1.4rem; }
.download__text { color: var(--text-muted); margin: 0 0 1.25rem; max-width: 36rem; }
.download__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.prose .download__actions .btn-accent { color: #fff; }
.download__meta { color: var(--text-muted); font-size: .82rem; }

@media (max-width: 575px) {
    .download { grid-template-columns: 6rem minmax(0, 1fr); gap: 1.1rem; padding: 1.5rem 0; }
    .prose .download__title { font-size: 1.15rem; }
}

/* ---------- Page contact : coordonnées (<address>) à gauche, texte et formulaire à droite ---------- */

.prose:has(> address) {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}
.prose:has(> address) > * { grid-column: 2; }
.prose:has(> address) > address {
    grid-column: 1;
    grid-row: 1 / span 20;
    margin: 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    font-style: normal;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.prose:has(> address) > address strong,
.prose:has(> address) > address b { color: var(--text); font-weight: 600; }
.prose:has(> address) .contact-form { margin-top: 1.5rem; }

@media (max-width: 767px) {
    .prose:has(> address) { display: block; }
    .prose:has(> address) > address { margin-bottom: 2rem; }
}

/* ---------- Contenu éditeur : groupes d'images et intertitres en gras ---------- */

.prose .prose-images {
    columns: 3 12rem;
    column-gap: 1rem;
    margin: 2.5rem 0 .75rem;
}
.prose .prose-images a {
    display: block;
    break-inside: avoid;
    margin-bottom: 1rem;
    background: #fff;
    cursor: zoom-in;
    overflow: hidden;
}
.prose .prose-images img {
    display: block;
    width: 100% !important;
    float: none;
    margin: 0;
    transition: transform .5s ease, opacity .2s;
}
.prose .prose-images a:hover img { transform: scale(1.02); }
.prose .prose-images__caption { color: var(--text-muted); font-size: .85rem; margin-bottom: 2.5rem; }

.prose .prose-subhead {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 2.5rem 0 .75rem;
}
.prose .prose-subhead strong, .prose .prose-subhead b { font-weight: 500; }
.prose:has(> address) > address::first-line { color: var(--text); font-weight: 600; }

/* ---------- Contenu éditeur : images isolées ---------- */

.prose .prose-figure { display: block; width: auto !important; margin: 2.5rem 0; clear: both; }
.prose .prose-figure .fr-img-wrap { display: block; }
.prose .prose-figure img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0;
    float: none;
}
.prose .prose-figure a[data-lightbox] { display: block; cursor: zoom-in; }
.prose .prose-figure .fr-inner { display: block; margin-top: .6rem; color: var(--text-muted); font-size: .85rem; line-height: 1.5; }
.prose .prose-figure .fr-inner br { display: none; }

.prose .prose-figure--portrait {
    float: right;
    clear: right;
    width: 40% !important;
    margin: .4rem 0 1.5rem 2.25rem;
}
.prose h2, .prose h3, .prose h4, .prose h5, .prose hr, .prose .prose-subhead, .prose .prose-images { clear: both; }

@media (max-width: 575px) {
    .prose .prose-figure--portrait { float: none; width: auto !important; margin: 2rem 0; }
}
.prose .prose-figure--side .fr-img-wrap,
.prose p.prose-figure--side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: end;
}
.prose .prose-figure--side .fr-inner { margin: 0; padding-bottom: .25rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
@media (max-width: 575px) {
    .prose .prose-figure--side .fr-img-wrap, .prose p.prose-figure--side { display: block; }
    .prose .prose-figure--side .fr-inner { margin-top: .6rem; border: 0; padding: 0; }
}
.prose .prose-figure .fr-inner::first-letter { margin-left: 0; }
.prose > .prose-figure + .prose-figure { margin-top: -.5rem; }

/* ---------- Cartes de liens (tableaux de mise en page convertis) ---------- */

.prose .link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.prose .link-card {
    display: flex;
    flex-direction: column;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.25rem;
    transition: border-color .2s;
}
.prose .link-card:hover { color: var(--text); border-bottom-color: var(--accent); }
.prose .link-card__media { aspect-ratio: 3 / 2; margin-bottom: 1rem; }
.prose .link-card__media img { width: 100% !important; height: 100% !important; object-fit: cover; }
.prose .link-card:hover .link-card__media img { transform: scale(1.03); }
.prose .link-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.25;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.prose .link-card__title::after { content: "\2192"; color: var(--accent); transition: transform .2s; }
.prose .link-card:hover .link-card__title::after { transform: translateX(4px); }
.prose .link-card__text { margin-top: .5rem; color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

/* ---------- Actualités : filtres, à la une, archive par année ---------- */

.prose:has(> .news-filters) { max-width: none; }

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 2.75rem;
}
.prose .news-filter {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .9rem;
    border: 1px solid var(--line);
    color: var(--text);
    font-size: .88rem;
    line-height: 1.2;
    transition: border-color .2s, background .2s, color .2s;
}
.prose .news-filter span { color: var(--text-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.prose .news-filter:hover { border-color: var(--text-muted); color: var(--text); }
.prose .news-filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.prose .news-filter.is-active span { color: rgba(255, 255, 255, .8); }

.news-featured {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.75rem 2rem;
    margin-bottom: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line);
}
.news-featured .news-card--lead { grid-row: 1 / span 2; }
.news-featured .news-card--lead .media-frame { aspect-ratio: 16 / 9; }
.news-featured .news-card--stack .media-frame { aspect-ratio: 16 / 9; }
.news-featured .media-frame img { max-width: none !important; height: 100% !important; }
.prose .news-featured .news-title { font-size: 1.25rem; margin-top: .2rem; }
.prose .news-featured .news-card--lead .news-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.news-featured .news-meta { margin: .9rem 0 .3rem; }

.news-year { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 2rem; margin-bottom: 1rem; }
.prose .news-year__title {
    margin: 0;
    padding-top: 1.25rem;
    border-top: 2px solid var(--accent);
    font-size: 1.6rem;
    line-height: 1;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}
.prose .news-archive { list-style: none; margin: 0; padding: 0; }
.prose .news-archive li { margin: 0; }
.news-row {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
}
.news-row__thumb { aspect-ratio: 3 / 2; }
.news-row__thumb img { max-width: none !important; height: 100% !important; }
.news-row .news-meta { margin: 0 0 .3rem; }
.prose .news-row__title { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.prose .news-row__title a { color: var(--text); }
.prose .news-row__title a:hover { color: var(--accent-hover); }
.news-row__excerpt { margin: .35rem 0 0 !important; color: var(--text-muted); font-size: .9rem; line-height: 1.55; }

.pager__gap { align-self: center; color: var(--text-muted); padding: 0 .25rem; }
.prose .pager a { color: var(--text-muted); }
.prose .pager a.is-active, .prose .pager a:hover { color: var(--text); }

@media (max-width: 767px) {
    .news-featured { grid-template-columns: minmax(0, 1fr); }
    .news-featured .news-card--lead { grid-row: auto; }
    .news-year { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .prose .news-year__title { position: static; border-top: 0; padding: 1.5rem 0 .75rem; color: var(--accent); }
    .news-row { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; }
}

/* Vignettes « contenues » (logos, formats atypiques) : image entière, fond = couleur du bord */
.media-frame.media-frame--contain img { object-fit: contain !important; padding: 6%; }
a.media-frame.media-frame--contain:hover img { transform: none; }

/* ---------- Typographie des pages : chapeau, intertitres, listes numérotées ---------- */

.prose .prose-lead {
    font-size: clamp(1.15rem, 1.6vw, 1.3rem);
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 2rem;
}

/* Intertitres de section : plus d'air, filet au-dessus */
.page-content > h2:not(:first-child),
.page-content > h3:not(:first-child),
.page-content > h4:not(:first-child):not([style*="center"]),
.page-content > .prose-subhead:not(:first-child) {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: clamp(1.45rem, 2.2vw, 1.75rem);
    line-height: 1.25;
}
.page-content > hr + h2, .page-content > hr + h3, .page-content > hr + h4, .page-content > hr + .prose-subhead {
    border-top: 0;
    padding-top: 0;
    margin-top: 2rem;
}

.prose .prose-steps {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}
.prose .prose-steps__item {
    margin: 0;
    padding: 1.5rem 1.5rem 1.75rem;
    border: 1px solid var(--line);
    border-top: 2px solid var(--accent);
}
.prose .prose-steps__number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: .9rem;
    font-variant-numeric: lining-nums tabular-nums;
}
.prose .prose-steps__term { margin: 0 0 .5rem; font-size: 1.2rem; line-height: 1.3; border: 0; padding: 0; }
.prose .prose-steps__text { margin: 0; color: var(--text-muted); font-size: .95rem; line-height: 1.65; }

/* ---------- Article : deux colonnes (texte | image), image au-dessus sur mobile ---------- */

.prose:has(> .post--with-cover) { max-width: none; }
.post--with-cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "body cover";
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
.post__body { grid-area: body; max-width: 38rem; }
.post__cover {
    grid-area: cover;
    margin: 0;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
}
.post__cover-media { display: block; cursor: zoom-in; background: var(--surface); }
.post__cover-media img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: min(68vh, 640px);
    object-fit: contain;
    margin: 0 auto;
}
.post__cover figcaption { margin-top: .6rem; color: var(--text-muted); font-size: .82rem; line-height: 1.5; }

.post-content { font-size: 1.12rem; line-height: 1.7; }
.post-content > :first-child { margin-top: 0; }

/* Lien seul dans son paragraphe (article complet, PDF, émission) → bouton */
.prose .post-content .post-action { margin: 1.75rem 0 0; }
.prose .post-content .post-action a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.3rem;
    background: var(--accent);
    color: #fff;
    font-size: .95rem;
    line-height: 1.25;
    text-decoration: none;
    transition: background .2s;
}
.prose .post-content .post-action a:hover { background: var(--accent-hover); color: #fff; }
.prose .post-content .post-action a::after { content: "\2197"; }
.prose .post-content .post-action a.is-file::after { content: "\2193"; }
.prose .post-content .post-action a.fr-file::before { content: none; }
.prose .post-content .post-action + .post-action { margin-top: .75rem; }

.post .back-link { margin-top: 2.5rem; }

@media (max-width: 991px) {
    .post--with-cover { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cover" "body"; gap: 1.75rem; }
    .post__cover { position: static; }
    .post__cover-media img { max-height: 60vh; }
}

/* Couverture « logo » (fond uniforme : titre de presse, émission) : panneau compact sur la couleur du fond */
.post__cover--logo .post__cover-media { padding: clamp(1.5rem, 4vw, 3rem); cursor: default; }
.post__cover--logo .post__cover-media img { max-height: 160px; width: auto !important; max-width: 100% !important; }
.prose .post-content .post-action { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.post-action__detail { color: var(--text-muted); font-size: .8rem; overflow-wrap: anywhere; }

/* ---------- Bandeau cookies (JanVince.SmallGDPR) aux couleurs du thème ---------- */

#cookies-bar, .sg-dialog {
    --sg-bg: var(--surface);
    --sg-text: var(--text);
    --sg-text-muted: var(--text-muted);
    --sg-border: var(--line);
    --sg-border-hover: var(--text-muted);
    --sg-primary: var(--accent);
    --sg-primary-hover: var(--accent-hover);
    --sg-primary-text: #fff;
    --sg-glyph-bg: var(--bg-alt);
    --sg-list-border: var(--line);
    --sg-list-input-bg: var(--bg-alt);
    --sg-list-label: var(--text);
    --sg-list-muted: var(--text-muted);
    --sg-radius: 0;
    --sg-radius-pill: 0;
    --sg-shadow: 0 12px 30px rgba(0, 0, 0, .4);
    font-family: var(--font-body);
}

/* Avis d'information (cookie technique seulement) : encart compact, bouton discret */
#cookies-bar.cookies-bar {
    left: auto !important;
    right: 1rem !important;
    bottom: 1rem !important;
    width: auto !important;
    max-width: min(30rem, calc(100vw - 2rem)) !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: .85rem 1rem !important;
    border: 1px solid var(--line);
}
#cookies-bar.cookies-bar:not([style*="none"]) { display: flex; }
#cookies-bar.cookies-bar .content,
#cookies-bar.cookies-bar .content p { margin: 0 !important; padding: 0 !important; }
#cookies-bar.cookies-bar .content p { font-size: .82rem; line-height: 1.5; color: var(--text-muted); }
#cookies-bar.cookies-bar .content a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
#cookies-bar.cookies-bar .buttons { margin: 0 !important; flex: none; }
#cookies-bar.cookies-bar .buttons a.btn-accept-all {
    width: auto !important;
    padding: .4rem .9rem !important;
    background: none !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
    font-size: .82rem !important;
    line-height: 1.2 !important;
}
#cookies-bar.cookies-bar .buttons a.btn-accept-all:hover { background: var(--accent) !important; color: #fff !important; }

/* Classes utilitaires héritées de Bootstrap, encore présentes dans le contenu importé */
.img-fluid { max-width: 100%; height: auto; }
.small, small { font-size: .875em; }

/* ---------- Champs de formulaire génériques (.field) ---------- */

.field { display: block; margin-bottom: 1.25rem; }
.field__label {
    display: block;
    margin-bottom: .4rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.field__input {
    display: block;
    width: 100%;
    padding: .7rem .9rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
}
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 .15rem rgba(217, 96, 26, .3); }

/* ---------- Espace agriculteurs (pages/farmer.htm) ---------- */

.farmer-login { max-width: 26rem; }
.farmer-error { color: #f08a5d; }
.farmer-link {
    background: none; border: 0; padding: 0; margin-left: .5rem;
    color: var(--accent); font-size: .9rem; text-decoration: underline; text-underline-offset: 2px;
}
.farmer-link:hover { color: var(--accent-hover); }
.farmer-intro { margin-bottom: 2rem; }
.farmer-intro .field { max-width: 32rem; margin-top: 1.5rem; }
.farmer-summary { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.farmer-summary p { margin: 0; }
.farmer-summary__period { width: 100%; color: var(--text-muted); font-size: .9rem; }
.farmer-summary strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--accent); margin-right: .25rem; }
.farmer-chart { margin: 0 0 2.5rem; }
.farmer-clutches { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.farmer-clutch { margin: 0; padding: 1.25rem; border: 1px solid var(--line); border-top: 2px solid var(--accent); }
.prose .farmer-clutch h3 { margin: 0 0 .75rem; font-size: 1.2rem; }
.farmer-clutch dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; font-size: .92rem; }
.farmer-clutch dt { color: var(--text-muted); font-weight: 400; }
.farmer-clutch dd { margin: 0; }
.farmer-actions { margin-top: 2rem; }
.farmer-feedback { margin-top: 2.5rem; }

.farmer-dialog {
    width: min(56rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 1.5rem;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
}
.farmer-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.farmer-dialog__head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.farmer-dialog__head h2 { font-size: 1.4rem; }
.farmer-dialog__close { background: none; border: 0; color: var(--text); font-size: 1.75rem; line-height: 1; padding: 0 .25rem; }
.farmer-dialog__close:hover { color: var(--accent-hover); }
.farmer-map { height: 45vh; min-height: 260px; margin: 1rem 0 1.5rem; background: var(--surface); }
.farmer-bird-clutches { list-style: none; padding: 0; margin: 0; }
.farmer-bird-clutches li { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .9rem; }

.farmer-loader { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; pointer-events: none; }
.farmer-loader span {
    width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid var(--line); border-top-color: var(--accent);
    animation: farmer-spin .7s linear infinite;
}
@keyframes farmer-spin { to { transform: rotate(360deg); } }


/* ---------- Suggestions de recherche ---------- */

.search-suggestions {
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.search-suggestions:empty { display: none; }
.search-suggestions__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--surface);
}
.search-suggestions__list li + li { border-top: 1px solid var(--line); }
.search-suggestions__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem .9rem;
    color: var(--text);
    text-decoration: none;
}
.search-suggestions__item:hover,
.search-suggestions__item:focus-visible {
    background: var(--bg-alt);
    color: var(--accent);
    outline: none;
}
.search-suggestions__title mark {
    background: none;
    color: var(--accent);
    font-weight: 700;
}
.search-suggestions__badge {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.search-suggestions__all {
    display: inline-block;
    margin: .6rem 0 1rem;
    color: var(--accent);
    font-size: .9rem;
}
.search-suggestions__all:hover { color: var(--accent-hover); }
.search-suggestions__empty {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: .9rem;
}
.prose .farmer-clutches, .prose .farmer-bird-clutches { padding: 0; margin-left: 0; }
.prose .farmer-clutch, .prose .farmer-bird-clutches li { margin-bottom: 0; }
.prose .farmer-dialog h2 { margin-top: 0; }

/* Frise de l'historique (Pixinside.Historique, frst-timeline-style-7.css) : textes lisibles sur fond sombre */
.prose .frst-timeline-content-inner h2 { color: var(--accent); font-family: var(--font-display); }
.prose [class*="frst-timeline"] { color: var(--text); }
.prose [class*="frst-timeline"] a { color: var(--accent); }

/* Barre de chargement AJAX / turbo du framework October, à l'accent du thème */
.jax-progress-bar { background: var(--accent) !important; }
input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.8); cursor: pointer; }

.site-footer__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer__links a { color: var(--text); font-size: .85rem; }
.site-footer__links a:hover { color: var(--accent-hover); }
