/* European Goldfinch — feuille de styles principale
   Direction artistique : vert forêt, ivoire, jaune doré ; typographie éditoriale. */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/playfair-display-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/playfair-display-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/playfair-display-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/playfair-display-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/playfair-display-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/playfair-display-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/playfair-display-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }

:root {
  --forest-900: #12291c;
  --forest-800: #1a3a28;
  --forest-700: #22492f;
  --forest-600: #2d5c3c;
  --forest-500: #3d7350;
  --forest-100: #e3ece4;
  --forest-50: #f1f5f0;
  --ivory: #faf7ef;
  --ivory-2: #f4efe2;
  --ivory-3: #ebe4d1;
  --gold: #f4c534;
  --gold-600: #e2ae13;
  --gold-700: #b98c00;
  --gold-800: #7d5e00; /* texte doré sur fond clair : contraste ≥ 4,5:1 (RGAA 3.2) */
  --gold-100: #fdf3d0;
  --red: #c0392b;
  --red-100: #fbe7e4;
  --blue: #3b7dd8;
  --green: #3fa466;
  --purple: #8e5bd6;
  --text: #1d2a21;
  --muted: #5d6a60;
  --line: #e2ddcf;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 41, 28, .06), 0 1px 3px rgba(18, 41, 28, .05);
  --shadow: 0 4px 14px rgba(18, 41, 28, .08), 0 1px 3px rgba(18, 41, 28, .05);
  --shadow-lg: 0 18px 44px rgba(18, 41, 28, .14);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--ivory); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, picture, video, svg { max-width: 100%; display: block; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: var(--forest-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-800); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--forest-800); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--forest-800); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.35em; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: background .18s, color .18s, transform .12s, box-shadow .18s, border-color .18s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--forest-900); box-shadow: 0 6px 16px rgba(226, 174, 19, .28); }
.btn-gold:hover { background: var(--gold-600); color: var(--forest-900); }
.btn-primary { background: var(--forest-700); color: #fff; }
.btn-primary:hover { background: var(--forest-800); color: #fff; }
.btn-outline { background: transparent; border-color: var(--forest-600); color: var(--forest-700); }
.btn-outline:hover { background: var(--forest-50); color: var(--forest-800); }
.btn-ghost { background: transparent; color: var(--forest-700); }
.btn-ghost:hover { background: var(--forest-50); }
.btn-light { background: #fff; color: var(--forest-800); border-color: var(--line); }
.btn-light:hover { border-color: var(--forest-500); color: var(--forest-800); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a3301f; color: #fff; }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-xs { padding: .3em .65em; font-size: .78rem; }
.btn-lg { padding: .95em 1.8em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; color: var(--forest-700); text-decoration: none; font-size: .92rem; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(226, 221, 207, .7); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest-800); flex-shrink: 0; }
.brand-photo { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); background: var(--forest-100); flex-shrink: 0; }
.brand-photo img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark { width: 12px; height: 46px; border-radius: 6px; background: linear-gradient(180deg, var(--red) 0 28%, #fff 28% 46%, var(--forest-900) 46% 62%, var(--gold) 62% 100%); flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; line-height: 1.02; letter-spacing: -.01em; }
.brand-name span { display: block; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav button.nav-toggle-sub { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 10px; background: none; border: 0; cursor: pointer; font-family: inherit; position: relative; }
.main-nav a:hover, .main-nav button.nav-toggle-sub:hover { color: var(--forest-700); background: var(--forest-50); }
.main-nav .is-active > a, .main-nav .is-active > button { color: var(--forest-800); font-weight: 600; }
.main-nav .is-active > a::after, .main-nav .is-active > button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--gold); }
.main-nav .home-link .icon { width: 1.3em; height: 1.3em; color: var(--gold-600); }
.main-nav li { position: relative; }
.main-nav .submenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s; z-index: 50; }
.main-nav li:hover > .submenu, .main-nav li.open > .submenu, .main-nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.main-nav .submenu a { display: flex; width: 100%; padding: 9px 12px; font-size: .92rem; }
.main-nav .submenu a::after { display: none; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.tool-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--forest-800); cursor: pointer; position: relative; text-decoration: none; }
.tool-btn:hover { background: var(--forest-50); color: var(--forest-800); }
.tool-btn .icon { width: 1.3em; height: 1.3em; }
.badge-dot { position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lang-switch { position: relative; }
.lang-switch > button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 600 .82rem var(--sans); cursor: pointer; color: var(--text); }
.flag { display: inline-block; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.flag-fr { background: linear-gradient(90deg, #0055a4 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }
.flag-en { background: linear-gradient(180deg, #012169 0 33%, #fff 33% 40%, #c8102e 40% 60%, #fff 60% 67%, #012169 67%); }
.flag-de { background: linear-gradient(180deg, #000 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.flag-es { background: linear-gradient(180deg, #aa151b 25%, #f1bf00 25% 75%, #aa151b 75%); }
.flag-it { background: linear-gradient(90deg, #009246 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; display: none; z-index: 60; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font: 500 .92rem var(--sans); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover, .dropdown a[aria-current] { background: var(--forest-50); color: var(--forest-800); }
.dropdown .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-toggle { display: none; }
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px 0; display: none; }
.search-panel.open { display: block; }
.search-panel form { display: flex; gap: 10px; }
.search-panel input { flex: 1; }

/* ---------- Héros d'accueil ---------- */
.hero { position: relative; margin: 0 0 0; }
.hero-media { position: relative; height: clamp(520px, 74vh, 760px); overflow: hidden; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--forest-800); }
.hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 33, 22, .78) 0%, rgba(14, 33, 22, .45) 38%, rgba(14, 33, 22, 0) 68%), linear-gradient(0deg, rgba(14, 33, 22, .35) 0%, rgba(14, 33, 22, 0) 35%); }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-content .container { padding-bottom: 120px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 11ch; line-height: 1.04; margin-bottom: .35em; font-weight: 600; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-lead { color: rgba(255, 255, 255, .94); font-size: clamp(1.05rem, 1.6vw, 1.35rem); max-width: 30ch; margin-bottom: 1.6em; }
.hero-credit { position: absolute; right: 18px; bottom: 132px; z-index: 3; font-size: .72rem; color: rgba(255,255,255,.82); background: rgba(0,0,0,.28); padding: 4px 10px; border-radius: 999px; max-width: 60%; }
.hero-credit a { color: #fff; }
.hero-empty { display: flex; align-items: center; background: linear-gradient(135deg, var(--forest-800), var(--forest-600)); }

.module-cards { position: relative; z-index: 5; margin-top: -110px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.module-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); border: 3px solid #fff; transition: transform .2s, box-shadow .2s; }
.module-card:hover { transform: translateY(-4px); color: var(--text); box-shadow: 0 24px 50px rgba(18, 41, 28, .18); }
.module-card .mc-photo { aspect-ratio: 16 / 9; overflow: hidden; background: var(--forest-100); }
.module-card .mc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.module-card:hover .mc-photo img { transform: scale(1.04); }
.module-card .mc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.module-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.32rem; margin: 0; }
.module-card h3 .icon { color: var(--forest-700); width: 1.05em; height: 1.05em; }
.module-card p { font-size: .9rem; color: var(--muted); margin: 0 0 6px; flex: 1; }

.stats-band { margin: 34px 0 0; background: var(--ivory-2); border: 1px solid var(--ivory-3); border-radius: var(--radius); display: grid; grid-template-columns: 1.35fr repeat(3, 1fr) auto; align-items: center; gap: 0; padding: 22px 28px; position: relative; overflow: hidden; }
.stats-band h2 { font-size: 1.5rem; margin: 0; line-height: 1.25; }
.stat-item { text-align: center; padding: 6px 18px; border-left: 1px solid var(--ivory-3); }
.stat-item .icon { margin: 0 auto 6px; color: var(--forest-700); width: 1.35em; height: 1.35em; }
.stat-item strong { display: block; font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; color: var(--forest-800); }
.stat-item span { font-size: .82rem; color: var(--muted); display: block; }
.stat-item a.src { font-size: .7rem; color: var(--muted); }
.stats-band .btn { margin-left: 18px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: #fff; }
.section-green { background: var(--forest-800); color: #f3f1e8; }
.section-green h2, .section-green h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.eyebrow { display: inline-block; font: 700 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-800); margin-bottom: 10px; }
.section-green .eyebrow { color: var(--gold); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--forest-100); position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cartes ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(226, 221, 207, .6); overflow: hidden; }
.card-pad { padding: 24px; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .18s, box-shadow .18s; height: 100%; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--forest-100); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.18rem; margin: 0; }
.card-body p { font-size: .92rem; color: var(--muted); margin: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--muted); align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--forest-50); color: var(--forest-700); font-size: .76rem; font-weight: 600; text-decoration: none; }
.tag-gold { background: var(--gold-100); color: var(--gold-800); }
.tag-red { background: var(--red-100); color: var(--red); }
.tag-blue { background: #e6effb; color: #245ca8; }
.tag-gray { background: #eef0ee; color: #4e5a52; }
.photo-empty { width: 100%; height: 100%; min-height: 120px; background: repeating-linear-gradient(135deg, var(--forest-50) 0 12px, #edf2ec 12px 24px); }

/* ---------- Bannières de pages ---------- */
.page-banner { position: relative; height: 230px; overflow: hidden; background: var(--forest-700); }
.page-banner picture, .page-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 52, 34, .92) 0%, rgba(22, 52, 34, .72) 35%, rgba(22, 52, 34, .1) 75%); }
.page-banner .container { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.page-banner h1 { color: #fff; margin: 0 0 6px; font-size: clamp(2rem, 4vw, 3rem); }
.page-banner p { color: rgba(255, 255, 255, .92); margin: 0; font-size: 1.06rem; max-width: 60ch; }
.page-banner .banner-actions { position: absolute; right: 24px; bottom: 26px; z-index: 3; }
.page-banner .banner-credit { position: absolute; right: 10px; bottom: 6px; z-index: 3; font-size: .68rem; color: rgba(255,255,255,.75); }
.page-banner .banner-credit a { color: #fff; }
.breadcrumbs { padding: 16px 0; font-size: .84rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "›"; color: #a7aea6; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs li:first-child a { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; }
.breadcrumbs a:hover { color: var(--forest-700); }

/* ---------- Encyclopédie / contenus ---------- */
.content-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 72px; }
.side-nav { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 10px; }
.side-nav h2 { font: 700 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 8px 12px 10px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 9px 14px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: .93rem; font-weight: 500; }
.side-nav a:hover { background: var(--forest-50); color: var(--forest-800); }
.side-nav a[aria-current="page"] { background: var(--gold-100); color: var(--forest-900); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.side-nav details summary { display: none; }
.article-head { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; margin-bottom: 28px; }
.article-head h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.lead { font-size: 1.12rem; color: #39463d; }
.figure { margin: 0; }
.figure .figure-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--forest-100); aspect-ratio: 4 / 3; }
.figure .figure-img img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption, .credit-line { font-size: .76rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.credit-line a { color: var(--muted); }
.prose { font-size: 1.04rem; line-height: 1.75; max-width: 74ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul li { margin-bottom: .35em; }
.prose ul.checks { list-style: none; padding: 0; }
.prose ul.checks li { position: relative; padding-left: 30px; }
.prose ul.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312291c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat; }
.prose blockquote { margin: 1.5em 0; padding: 14px 22px; border-left: 4px solid var(--gold); background: var(--ivory-2); border-radius: 0 10px 10px 0; font-family: var(--serif); font-style: italic; font-size: 1.12rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--forest-50); font-weight: 600; color: var(--forest-800); }
.prose img { border-radius: 10px; }
.callout { display: flex; gap: 16px; padding: 18px 22px; border-radius: var(--radius); background: var(--ivory-2); border: 1px solid var(--ivory-3); margin: 1.6em 0; font-size: .97rem; }
.callout::before { content: "i"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #4a8fd9; color: #fff; font: 700 1rem/30px var(--serif); text-align: center; }
.callout-warning::before { content: "!"; background: var(--gold-600); }
.callout strong:first-child { display: block; color: var(--forest-800); margin-bottom: 2px; }
.callout p:last-child { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1.6em 0; }
.facts > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.facts dt, .facts strong { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); font-weight: 700; }
.facts dd, .facts span { margin: 4px 0 0; font-family: var(--serif); font-size: 1.15rem; color: var(--forest-800); }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 26px 0; }
.photo-strip figure { margin: 0; }
.photo-strip .ps-img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--forest-100); cursor: zoom-in; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-strip .ps-img:hover img { transform: scale(1.04); }
.photo-strip figcaption { font-size: .74rem; color: var(--muted); margin-top: 6px; }
.sources { margin-top: 40px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: .88rem; }
.sources h2 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; color: var(--forest-800); }
.sources ol { margin: 0; padding-left: 1.4em; }
.sources li { margin-bottom: 8px; color: #3a463e; }
.untranslated { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 10px; background: #eef4fb; color: #245ca8; font-size: .88rem; margin-bottom: 20px; }
.pager-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager-nav a { display: flex; flex-direction: column; text-decoration: none; max-width: 48%; }
.pager-nav a small { color: var(--muted); }
.pager-nav a strong { font-family: var(--serif); font-size: 1.1rem; color: var(--forest-800); }
.pager-nav a.next { text-align: right; margin-left: auto; }
audio { width: 100%; margin: 12px 0; }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--forest-900); }
.label-hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=tel], select, textarea, .input {
  width: 100%; padding: 11px 14px; border: 1px solid #d4cfbf; border-radius: 10px; background: #fff; font: 400 .95rem/1.4 var(--sans); color: var(--text); transition: border-color .15s, box-shadow .15s; appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322492f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; padding-right: 36px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest-500); box-shadow: 0 0 0 3px rgba(61, 115, 80, .16); }
.is-invalid { border-color: var(--red) !important; }
.field-error { color: var(--red); font-size: .82rem; margin-top: 5px; }
.help { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .92rem; cursor: pointer; margin-bottom: 10px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest-600); flex-shrink: 0; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.input-group { display: flex; gap: 8px; }
.input-group > input { flex: 1; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 20px; background: #fff; }
legend { font-weight: 700; padding: 0 8px; color: var(--forest-800); }
.pw-meter { height: 6px; border-radius: 3px; background: #e9e6db; margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s, background .2s; }

/* ---------- Upload / drag & drop ---------- */
.dropzone { border: 2px dashed #c9c3b0; border-radius: var(--radius); background: #fff; padding: 28px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; position: relative; }
.dropzone:hover, .dropzone.is-over { border-color: var(--forest-500); background: var(--forest-50); }
.dropzone .icon { width: 2.2em; height: 2.2em; margin: 0 auto 8px; color: var(--forest-600); }
.dropzone p { margin: 0; color: var(--muted); font-size: .92rem; }
.dropzone strong { color: var(--forest-800); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.upload-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 8px 8px; }
.upload-item .thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--forest-50); }
.upload-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-item .name { font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item .status { font-size: .78rem; color: var(--muted); }
.upload-item.is-error .status { color: var(--red); }
.upload-item.is-done .status { color: var(--green); }
.progress { height: 6px; border-radius: 3px; background: #ece8dc; overflow: hidden; margin-top: 5px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--forest-500), var(--gold)); transition: width .15s; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb-grid .th { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--forest-50); }
.thumb-grid .th img { width: 100%; height: 100%; object-fit: cover; }
.thumb-grid .th button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--red); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ---------- Alertes / toasts ---------- */
.alert { padding: 13px 18px; border-radius: 12px; margin-bottom: 18px; font-size: .93rem; border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #e8f5ec; color: #1f6b3a; border-color: #cbe8d4; }
.alert-error, .alert-danger { background: var(--red-100); color: #8c2a1e; border-color: #f2c9c2; }
.alert-warning { background: var(--gold-100); color: #7a5b00; border-color: #f6e19a; }
.alert-info { background: #eaf2fb; color: #245ca8; border-color: #cfe0f5; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: 12px; background: var(--forest-900); color: #fff; box-shadow: var(--shadow-lg); font-size: .92rem; animation: toast-in .25s ease; border-left: 4px solid var(--gold); }
.toast.toast-error { border-left-color: #ff7a6b; }
.toast.toast-success { border-left-color: #5fd38d; }
.toast button { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 0 0 8px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Modale & lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 1500; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 26, 18, .55); }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 26px 28px; position: relative; }
.modal-box h2 { font-size: 1.4rem; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 1600; background: rgba(8, 16, 11, .94); display: none; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 70px 10px; min-height: 0; }
.lightbox-stage img, .lightbox-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox-caption { color: #e9ece6; text-align: center; padding: 10px 20px 22px; font-size: .9rem; }
.lightbox-caption small { display: block; color: #a9b3ab; margin-top: 4px; }
.lightbox-caption a { color: #fff; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Galerie ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 22px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 500; }
.pill:hover { border-color: var(--forest-500); color: var(--forest-800); }
.pill.is-active { background: var(--gold); border-color: var(--gold); color: var(--forest-900); font-weight: 600; }
.filter-bar .spacer { flex: 1; }
.toolbar .spacer { flex: 1; }
.masonry { columns: 4 260px; column-gap: 16px; }
.masonry .m-item { break-inside: avoid; margin-bottom: 16px; border-radius: 12px; overflow: hidden; position: relative; display: block; background: var(--forest-100); box-shadow: var(--shadow-sm); }
.masonry .m-item img { width: 100%; height: auto; transition: transform .45s; }
.masonry .m-item:hover img { transform: scale(1.03); }
.masonry .m-overlay { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(0deg, rgba(10, 22, 15, .78), transparent); color: #fff; opacity: 0; transition: opacity .2s; font-size: .85rem; }
.masonry .m-item:hover .m-overlay, .masonry .m-item:focus .m-overlay { opacity: 1; }
.masonry .m-overlay strong { display: block; font-size: .95rem; }
.badge-demo { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(255,255,255,.92); color: var(--forest-800); font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }
.badge-video { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,.6); color: #fff; padding: 4px 8px; border-radius: 8px; font-size: .72rem; }
.media-viewer { background: #0f1d14; border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; max-height: 78vh; }
.media-viewer img, .media-viewer video { max-height: 78vh; width: auto; margin: 0 auto; object-fit: contain; }
.media-viewer picture { width: auto; height: auto; }
.media-viewer picture img { width: auto; height: auto; }

/* ---------- Atlas ---------- */
.atlas-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; padding: 26px 0 60px; }
.atlas-map { height: 620px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #dfe8ef; position: relative; z-index: 1; }
.map-legend { position: absolute; left: 14px; bottom: 14px; z-index: 500; background: rgba(255,255,255,.95); border-radius: 12px; padding: 10px 14px; font-size: .8rem; box-shadow: var(--shadow); }
.map-legend div { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.dot-recent { background: #8ac43f; }
.dot-mid { background: var(--gold); }
.dot-old { background: #e1563f; }
.dot-sens { background: #7a6ad8; }
.atlas-panel { display: flex; flex-direction: column; gap: 18px; }
.atlas-panel .card-pad h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--forest-900); }
.atlas-panel select { margin-bottom: 10px; }
.count-box { display: flex; align-items: center; gap: 14px; }
.count-box .icon { width: 2em; height: 2em; color: var(--forest-800); }
.count-box strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--forest-800); line-height: 1; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin-top: 10px; }
.bars span { flex: 1; background: var(--forest-500); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars span:hover { background: var(--gold-600); }
.bars-labels { display: flex; gap: 4px; font-size: .62rem; color: var(--muted); margin-top: 4px; }
.bars-labels span { flex: 1; text-align: center; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(244, 197, 52, .35) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: rgba(226, 174, 19, .92) !important; color: var(--forest-900); font-weight: 700; font-family: var(--sans); }
.obs-marker { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.leaflet-popup-content { font-family: var(--sans); font-size: .86rem; }
.picker-map { height: 340px; border-radius: 12px; border: 1px solid var(--line); z-index: 1; }

/* ---------- Communauté ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 24px 0 0; overflow-x: auto; }
.tabs a, .tabs button { padding: 12px 18px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .94rem; border: 0; background: none; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.tabs a:hover, .tabs button:hover { color: var(--forest-800); }
.tabs .is-active { color: var(--forest-900); border-bottom-color: var(--gold); }
.forum-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.forum-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 90px 90px 220px; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.forum-row:last-child { border-bottom: 0; }
.forum-row:hover { background: #fdfcf8; }
.forum-icon { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--forest-50); display: flex; align-items: center; justify-content: center; color: var(--forest-700); border: 2px solid var(--gold-100); }
.forum-icon img { width: 100%; height: 100%; object-fit: cover; }
.forum-row h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 2px; }
.forum-row h3 a { color: var(--forest-900); text-decoration: none; }
.forum-row h3 a:hover { color: var(--forest-600); text-decoration: underline; }
.forum-row p { margin: 0; font-size: .85rem; color: var(--muted); }
.forum-num { text-align: center; }
.forum-num strong { display: block; font-size: 1.05rem; }
.forum-num span { font-size: .76rem; color: var(--muted); }
.forum-last { display: flex; align-items: center; gap: 10px; font-size: .8rem; min-width: 0; }
.forum-last div { min-width: 0; }
.forum-last a { display: block; font-weight: 600; color: var(--forest-900); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--forest-100); color: var(--forest-800); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; text-transform: uppercase; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
.avatar-md { width: 52px; height: 52px; font-size: 1.1rem; }
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.post.is-hidden { border-style: dashed; background: #f4f4f1; }
.post.is-hidden .post-author { background: #ecebe6; }
.post-author { background: var(--ivory-2); padding: 20px 16px; text-align: center; font-size: .8rem; color: var(--muted); border-right: 1px solid var(--line); }
.post-author .avatar { margin: 0 auto 8px; }
.post-author a { font-weight: 700; color: var(--forest-900); text-decoration: none; font-size: .92rem; display: block; }
.post-body { padding: 18px 22px; min-width: 0; }
.post-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.post-content { font-size: .98rem; line-height: 1.7; overflow-wrap: anywhere; }
.post-content blockquote.quote { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--ivory); border-radius: 0 8px 8px 0; font-size: .92rem; color: #46524a; }
.post-content blockquote cite { display: block; font-style: normal; font-weight: 700; font-size: .8rem; color: var(--forest-700); margin-bottom: 4px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.topic-list .forum-row { grid-template-columns: minmax(0, 1fr) 80px 80px 200px; }
.pinned { color: var(--gold-800); }
.comment { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-body { flex: 1; min-width: 0; }
.comment-body .post-meta { margin-bottom: 4px; }

/* ---------- Pagination ---------- */
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 30px 0 0; justify-content: center; }
.pagination a, .pagination span { display: inline-flex; min-width: 40px; height: 40px; padding: 0 10px; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; }
.pagination span[aria-current] { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }
.pagination a:hover { border-color: var(--forest-500); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: #faf8f2; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fdfcf8; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; }
.table-thumb { width: 56px; height: 42px; border-radius: 6px; overflow: hidden; background: var(--forest-50); }
.table-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--forest-900); color: #cfd8cf; padding: 60px 0 26px; margin-top: 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dfe7df; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .8rem; color: #9fae9f; }
.footer-bottom a { color: #c3cec3; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.newsletter-note { font-size: .82rem; color: #9fae9f; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 1400; max-width: 460px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px 22px; border: 1px solid var(--line); font-size: .88rem; display: none; }
.cookie-banner.open { display: block; }
.cookie-banner h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cookie-banner .form-actions { margin-top: 12px; }

/* ---------- Espace membre ---------- */
.account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 34px 0 70px; align-items: start; }
.account-nav { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.account-user { display: flex; align-items: center; gap: 12px; padding: 6px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.account-user strong { display: block; font-size: .95rem; }
.account-user small { color: var(--muted); }
.account-nav ul { list-style: none; padding: 0; margin: 0; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; }
.account-nav a:hover { background: var(--forest-50); }
.account-nav a[aria-current="page"] { background: var(--gold-100); font-weight: 600; color: var(--forest-900); }
.account-nav .icon { color: var(--forest-600); }
.page-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.page-title h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.kpi strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--forest-800); line-height: 1.1; }
.kpi span { font-size: .82rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-draft { background: #eef0ee; color: #59645c; }
.status-pending, .status-open, .status-in_review, .status-running { background: var(--gold-100); color: #8a6700; }
.status-validated, .status-approved, .status-published, .status-visible, .status-resolved, .status-done, .status-success, .status-active { background: #e6f4ea; color: #1f7a42; }
.status-rejected, .status-hidden, .status-dismissed, .status-failed, .status-suspended { background: var(--red-100); color: #a33223; }
.status-rolled_back { background: #e9e6f8; color: #5543b0; }
.codes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; background: var(--ivory-2); padding: 16px; border-radius: 12px; }
.qr-box { width: 200px; height: 200px; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.qr-box img, .qr-box canvas, .qr-box svg { width: 100%; height: 100%; image-rendering: pixelated; }
.secret { font-family: ui-monospace, Menlo, monospace; background: var(--ivory-2); padding: 8px 12px; border-radius: 8px; word-break: break-all; display: inline-block; letter-spacing: .05em; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean > li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.list-clean > li:last-child { border-bottom: 0; }
.notif.is-unread { font-weight: 600; }
.notif.is-unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-600); flex-shrink: 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .icon { width: 2.4em; height: 2.4em; margin: 0 auto 10px; color: #a7b1a8; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-media { position: relative; background: var(--forest-800); overflow: hidden; }
.auth-media picture, .auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,33,22,.75), rgba(14,33,22,.1) 60%); }
.auth-media .auth-quote { position: absolute; left: 40px; right: 40px; bottom: 40px; z-index: 2; color: #fff; }
.auth-media .auth-quote p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; margin: 0 0 8px; }
.auth-media .auth-quote small { color: rgba(255,255,255,.75); }
.auth-media .auth-quote small a { color: #fff; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(24px, 6vw, 90px); background: var(--ivory); }
.auth-panel .brand { margin-bottom: 34px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 2rem; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .82rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.method-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; background: #fff; }
.method-card[hidden] { display: none; }
.method-links { display: flex; flex-wrap: wrap; gap: 8px; }
.otp-input { font-family: ui-monospace, Menlo, monospace; font-size: 1.5rem !important; letter-spacing: .35em; text-align: center; }

/* ---------- Administration ---------- */
.admin-body { background: #f3f1ea; }
.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--forest-900); color: #cdd8cf; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { color: #fff; padding: 0 6px 18px; }
.admin-side .brand-name { font-size: 1.12rem; }
.admin-user { display: flex; align-items: center; gap: 12px; padding: 14px 10px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.admin-user strong { color: #fff; display: block; font-size: .95rem; }
.admin-user small { color: #97a69a; }
.admin-nav { list-style: none; margin: 0; padding: 0; }
.admin-nav .group { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #7f9184; padding: 14px 12px 6px; font-weight: 700; }
.admin-nav a, .admin-nav button { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: #d5ded6; text-decoration: none; font: 500 .9rem var(--sans); background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.admin-nav a:hover, .admin-nav button:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a[aria-current="page"] { background: var(--gold); color: var(--forest-900); font-weight: 600; }
.admin-nav .count { margin-left: auto; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.admin-main { min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 16px; padding: 18px 32px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.admin-top h1 { font-size: 1.6rem; margin: 0; flex: 1; }
.admin-top .admin-search { max-width: 260px; }
.admin-content { padding: 28px 32px 60px; }
.admin-menu-toggle { display: none; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { border-radius: var(--radius); padding: 22px 24px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: block; }
.stat-card:hover { color: #fff; transform: translateY(-2px); }
.stat-card .icon { width: 2em; height: 2em; opacity: .95; margin-bottom: 14px; }
.stat-card strong { display: block; font-size: 2.2rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.stat-card span { font-size: .92rem; opacity: .92; }
.stat-blue { background: linear-gradient(135deg, #3f86e0, #2f6cc4); }
.stat-green { background: linear-gradient(135deg, #47ad6d, #2f8d54); }
.stat-purple { background: linear-gradient(135deg, #9a67de, #7a4bc5); }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.mini-stat { background: #fff; border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); text-decoration: none; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.mini-stat strong { font-size: 1.3rem; color: var(--forest-800); }
.mini-stat.is-alert strong { color: var(--red); }
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0; color: var(--forest-900); }
.panel-body { padding: 18px 20px; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0ece2; font-size: .9rem; }
.activity li:last-child { border-bottom: 0; }
.activity .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--forest-50); color: var(--forest-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.activity time { margin-left: auto; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.mini-map { height: 280px; border-radius: 12px; overflow: hidden; z-index: 1; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }
.editor { border: 1px solid #d4cfbf; border-radius: 10px; background: #fff; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: #faf8f2; border-radius: 10px 10px 0 0; position: sticky; top: 76px; z-index: 5; }
.editor-toolbar button { border: 0; background: none; padding: 6px 9px; border-radius: 6px; cursor: pointer; font: 600 .82rem var(--sans); color: var(--forest-800); }
.editor-toolbar button:hover { background: var(--forest-50); }
.editor-area { min-height: 380px; padding: 16px 18px; outline: none; }
.editor-source { display: none; min-height: 380px; border: 0; border-radius: 0 0 10px 10px; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.editor.show-source .editor-area { display: none; }
.editor.show-source .editor-source { display: block; }
.lang-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.lang-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); font-size: .85rem; font-weight: 600; }
.lang-tabs a.is-active { background: var(--forest-700); color: #fff; border-color: var(--forest-700); }
.lang-tabs a.is-missing { opacity: .6; border-style: dashed; }
.form-2col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.media-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.media-pick button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--forest-50); aspect-ratio: 1; position: relative; }
.media-pick button img { width: 100%; height: 100%; object-fit: cover; }
.media-pick button.is-selected { border-color: var(--gold-600); box-shadow: 0 0 0 3px var(--gold-100); }
.media-pick button small { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: .62rem; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-preview { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--forest-50); margin-bottom: 10px; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; margin-bottom: 26px; }
.timeline-item::before { content: ""; position: absolute; left: -29px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold-600); }
.timeline-item h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.timeline-item h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 12px 0 4px; }
.timeline-item ul { margin: 0; padding-left: 1.2em; font-size: .92rem; }
.log-box { background: #0f1d14; color: #cfe0d2; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; padding: 14px 16px; border-radius: 10px; max-height: 360px; overflow: auto; }
.log-box .l-error { color: #ff8f80; }
.log-box .l-success { color: #8fe3a8; }
.log-box .l-warning { color: #f7d36b; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .9rem; }
.checklist .ok { color: var(--green); }
.checklist .ko { color: var(--red); }
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Pages d'erreur / maintenance ---------- */
.error-page { text-align: center; padding: 100px 20px; }
.error-page .code { font-family: var(--serif); font-size: 6rem; color: var(--gold-800); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav a, .main-nav button.nav-toggle-sub { padding: 10px 8px; font-size: .9rem; }
  .stats-band { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .stats-band h2 { grid-column: 1 / -1; }
  .stats-band .stat-item:nth-child(2) { border-left: 0; }
  .stats-band .btn { grid-column: 1 / -1; justify-self: center; margin: 6px 0 0; }
  .forum-row { grid-template-columns: 56px minmax(0, 1fr) 80px 80px; }
  .forum-row .forum-last { display: none; }
}
@media (max-width: 1024px) {
  :root { --header-h: 66px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 16px 20px 40px; transform: translateX(100%); transition: transform .25s; margin: 0; z-index: 90; }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a, .main-nav button.nav-toggle-sub { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.02rem; }
  .main-nav .is-active > a::after, .main-nav .is-active > button::after { display: none; }
  .main-nav .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; display: none; min-width: 0; }
  .main-nav li.open > .submenu { display: block; }
  .header-tools { margin-left: auto; }
  .module-cards { grid-template-columns: repeat(2, 1fr); margin-top: -80px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .content-layout { grid-template-columns: 1fr; gap: 20px; }
  .side-nav { position: static; }
  .side-nav details summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 10px 12px; font-weight: 600; list-style: none; }
  .side-nav details:not([open]) ul { display: none; }
  .side-nav h2 { display: none; }
  .article-head { grid-template-columns: 1fr; }
  .atlas-layout { grid-template-columns: 1fr; }
  .atlas-map { height: 480px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .account-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 300; transform: translateX(-100%); transition: transform .25s; }
  .admin-side.open { transform: none; box-shadow: var(--shadow-lg); }
  .admin-menu-toggle { display: inline-flex; }
  .dash-grid, .form-2col { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-media { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .brand-name { font-size: 1.12rem; }
  .brand-photo, .brand-mark { height: 40px; }
  .brand-photo { width: 40px; }
  .lang-switch > button span.lang-label { display: none; }
  .hero-media { height: 560px; border-radius: 0 0 16px 16px; }
  .hero-content .container { padding-bottom: 90px; }
  .hero-media::after { background: linear-gradient(0deg, rgba(14,33,22,.85) 0%, rgba(14,33,22,.35) 55%, rgba(14,33,22,.15) 100%); }
  .hero-content { align-items: flex-end; }
  .hero-credit { bottom: 10px; right: 10px; max-width: 90%; }
  .module-cards { grid-template-columns: 1fr; margin-top: 22px; }
  .stats-band { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .stat-item { border-left: 0 !important; border-top: 1px solid var(--ivory-3); padding-top: 14px; }
  .grid-2, .grid-3, .grid-4, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .page-banner { height: 200px; }
  .page-banner .banner-actions { position: static; margin-top: 12px; }
  .forum-row, .topic-list .forum-row { grid-template-columns: 44px minmax(0, 1fr); padding: 14px 16px; }
  .topic-list .forum-row { grid-template-columns: minmax(0, 1fr); }
  .forum-num { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-author { display: flex; align-items: center; gap: 12px; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .post-author .avatar { margin: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .stat-cards { grid-template-columns: 1fr; }
  .admin-top { padding: 14px 16px; }
  .admin-content { padding: 20px 16px 50px; }
  .admin-top .admin-search { display: none; }
  .kv { grid-template-columns: 1fr; }
  .masonry { columns: 2 150px; column-gap: 10px; }
  .masonry .m-item { margin-bottom: 10px; }
  .lightbox-stage { padding: 60px 8px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .codes-grid { grid-template-columns: 1fr; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .pager-nav { flex-direction: column; }
  .pager-nav a { max-width: 100%; }
  .table-wrap table.responsive thead { display: none; }
  .table-wrap table.responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table-wrap table.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 14px; }
  .table-wrap table.responsive td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .78rem; }
  .table-wrap table.responsive td.actions { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cookie-banner, .toasts, .side-nav, .account-nav { display: none !important; }
}

/* Photo indisponible : on masque le texte alternatif au profit du fond neutre */
.card-media img, .hero-media img, .split-media img, .figure img, .masonry img, .auth-media img, .thumb-grid img { color: transparent; }
[hidden] { display: none !important; }
img { color: transparent; }
.atlas-panel input, .atlas-panel select, .form-row > *, .form-row input { min-width: 0; max-width: 100%; }
.atlas-panel .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Mobile : backdrop-filter crée un bloc conteneur qui confinait le menu plein écran dans l'en-tête */
@media (max-width: 1024px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .main-nav { height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
}
/* Photo indisponible : zone neutre sobre, sans icône d'image cassée */
img.img-missing { visibility: hidden; }
/* Espace membre : gabarit large type tableau de bord (contenu jusqu'à ~1200 px), responsive */
.container-wide { max-width: 1520px; }
.account-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 28px; }
.account-main > .panel, .account-main > section, .account-main > form { margin-bottom: 22px; }
@media (min-width: 1400px) { .account-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 36px; } }
@media (max-width: 1024px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 20px; }
  .account-layout > * { min-width: 0; }
  .account-nav { padding: 10px; }
  .account-nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .account-nav li { flex: 0 0 auto; }
  .account-nav a { white-space: nowrap; padding: 9px 12px; }
}
/* Champ fichier avec glisser-déposer */
.filedrop { display: flex; align-items: center; gap: 12px; border: 2px dashed #c9c3b0; border-radius: 12px; background: #fff; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; color: var(--muted); font-size: .92rem; min-height: 56px; }
.filedrop:hover, .filedrop.is-over, [data-drop-target].is-over { border-color: var(--forest-500); background: var(--forest-50); }
.filedrop .icon { width: 1.5em; height: 1.5em; color: var(--forest-600); flex: 0 0 auto; }
.filedrop.has-file { border-style: solid; border-color: var(--forest-300, #9fc2a9); color: var(--forest-800); }
.filedrop-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.filedrop-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.filedrop { position: relative; }
[data-drop-target] { border: 2px dashed transparent; border-radius: 14px; transition: border-color .15s, background .15s; }
/* Calendrier des observations */
.pheno-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 180px; padding-top: 18px; }
.pheno-col { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.pheno-bar { position: relative; width: 100%; max-width: 46px; min-height: 2px; background: linear-gradient(180deg, var(--gold, #f4c534), var(--forest-500, #3d7a52)); border-radius: 8px 8px 3px 3px; }
.pheno-val { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: .72rem; color: var(--muted); }
.pheno-m { font-size: .75rem; color: var(--muted); margin-top: 6px; text-transform: capitalize; }
.phenology .panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Comptage au jardin */
.steps-list { counter-reset: st; list-style: none; padding: 0; margin: 18px 0; }
.steps-list li { counter-increment: st; position: relative; padding: 4px 0 14px 46px; }
.steps-list li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--gold, #f4c534); color: var(--forest-900, #13281c); font-weight: 700; display: grid; place-items: center; }
.badge-inline { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--forest-50, #eef3ec); color: var(--forest-800, #23402c); font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
/* File de modération (1.2.0) */
.mod-queue { display: grid; gap: 16px; }
.mod-item .panel-head { flex-wrap: wrap; gap: 6px 12px; }
.mod-body .kv { grid-template-columns: 160px minmax(0, 1fr); margin-bottom: 14px; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.mod-actions > form { margin: 0; }
.mod-reject { flex-basis: 100%; }
.mod-reject > summary { list-style: none; display: inline-flex; cursor: pointer; }
.mod-reject > summary::-webkit-details-marker { display: none; }
.mod-reject[open] > summary { margin-bottom: 10px; }
.mod-reject form { display: grid; gap: 8px; max-width: 640px; }
.mod-template select { width: 100%; }
.mod-media { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.mod-thumb { width: 140px; height: 105px; object-fit: cover; border-radius: 10px; }
.mod-quote { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid var(--gold); background: #faf7ef; border-radius: 0 8px 8px 0; }
.mod-item.is-done { opacity: .45; pointer-events: none; transition: opacity .3s; }
@media (max-width: 640px) { .mod-body .kv { grid-template-columns: 1fr; } .mod-media { flex-direction: column; } }
/* Saisie hors connexion (1.2.0) */
.net-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.net-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.net-status.is-online::before { background: #2f8a4a; }
.net-status.is-offline::before { background: #c0392b; }
.count-pill { display: inline-block; min-width: 26px; padding: 1px 8px; border-radius: 999px; background: var(--forest-50, #eef3ec); color: var(--forest-800, #23402c); font: 700 .8rem/1.6 var(--sans); text-align: center; }
.pending-list { list-style: none; margin: 0; padding: 0; }
.pending-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; overflow-wrap: anywhere; }
.pending-list li:last-child { border-bottom: 0; }

/* Accessibilité (1.2.0) */
.footer-bottom a, .footer a:not(.btn):not(.brand) { text-decoration: underline; text-underline-offset: 2px; }
.dropzone:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.log-box:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* Statistiques (1.3.0) */
.stats-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.stats-head .tabs { margin: 0; flex: 1 1 520px; }
.stats-period { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stats-period select, .stats-period input { width: auto; min-height: 38px; padding: 6px 10px; }
.stats-period select { padding-right: 34px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; margin: 16px 0 22px; }
.kpi-grid .kpi { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.kpi-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }
.kpi-grid .kpi-value { font-family: var(--serif); font-size: 1.85rem; line-height: 1.15; color: var(--forest-800); font-variant-numeric: tabular-nums; }
.kpi-grid .kpi-value span { font-size: inherit; color: inherit; }
.kpi-grid .kpi-delta { font-size: .82rem; font-weight: 600; color: var(--muted); }
.kpi-grid .kpi-delta.is-up { color: #2f7a46; }
.kpi-grid .kpi-delta.is-down { color: #a33a2a; }
.kpi-help .icon { width: 14px; height: 14px; }
.kpi-live { border-color: var(--forest-600); background: var(--forest-50); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #2f8a4a; box-shadow: 0 0 0 0 rgba(47,138,74,.6); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(47,138,74,.55); } 70% { box-shadow: 0 0 0 8px rgba(47,138,74,0); } 100% { box-shadow: 0 0 0 0 rgba(47,138,74,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { font: 500 12px var(--sans); fill: var(--muted); }
.chart .series-main { fill: none; stroke: var(--forest-600); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .series-area { fill: var(--forest-600); opacity: .1; }
.chart .series-compare { fill: none; stroke: #9a9a8f; stroke-width: 2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.chart .hit rect { fill: transparent; }
.chart .hit circle { fill: var(--forest-600); stroke: #fff; stroke-width: 2; opacity: 0; }
.chart .hit:hover circle, .chart .hit:focus-within circle { opacity: 1; }
.chart .hit:hover rect { fill: rgba(45,92,60,.06); }
.chart .bar { fill: var(--forest-600); }
.chart .bar:hover { fill: var(--forest-800); }
.chart-legend { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); }
.chart-legend .lg { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--forest-600); margin-left: 8px; }
.chart-legend .lg-compare { border-top: 2px dashed #9a9a8f; }
.chart-table { margin-top: 10px; font-size: .9rem; }
.chart-table summary { cursor: pointer; color: var(--forest-700); font-weight: 600; }
.stat-bars { width: 100%; border-collapse: collapse; font-size: .9rem; }
.stat-bars th { text-align: left; font-weight: 500; position: relative; padding: 7px 10px; }
.stat-bars td { text-align: right; padding: 7px 6px; white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; }
.stat-bar { position: absolute; inset: 3px auto 3px 0; width: var(--w); background: var(--forest-100); border-radius: 0 4px 4px 0; z-index: 0; }
.stat-bar-label { position: relative; z-index: 1; overflow-wrap: anywhere; }
.stat-bars tr + tr th, .stat-bars tr + tr td { border-top: 2px solid #fff; }
.table-stats td.num, .table-stats th.num { text-align: right; font-variant-numeric: tabular-nums; }
.heatmap { border-collapse: separate; border-spacing: 3px; font-size: .75rem; min-width: 640px; }
.heatmap th { font-weight: 600; color: var(--muted); padding: 2px 4px; text-align: center; }
.heatmap tbody th { text-align: right; }
.heatmap td { width: 26px; height: 24px; border-radius: 4px; }
.hm-0 { background: #f1efe8; } .hm-1 { background: #d5e3d6; } .hm-2 { background: #a9c8ad; } .hm-3 { background: #74a47f; } .hm-4 { background: #3d7350; } .hm-5 { background: #1a3a28; }
.hm-legend { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.hm-legend span { display: inline-block; width: 18px; height: 12px; border-radius: 3px; }
.live-list { list-style: none; margin: 0; padding: 0; }
.live-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.live-list li:last-child { border-bottom: 0; }
.gdpr-list { list-style: none; margin: 0; padding: 0; }
.gdpr-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gdpr-list li:last-child { border-bottom: 0; }
.gdpr-list p { margin: 4px 0 0; font-size: .92rem; color: var(--ink-soft, #3d4a40); }
.gdpr-badge { display: inline-flex; align-items: center; gap: 6px; align-self: start; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.gdpr-badge .icon { width: 14px; height: 14px; }
.gdpr-ok .gdpr-badge { background: #e3f1e6; color: #1f5a33; }
.gdpr-warn .gdpr-badge { background: #fbf0d4; color: #6b4d00; }
.gdpr-fail .gdpr-badge { background: #f8e1dc; color: #8a2b1d; }
.gdpr-info .gdpr-badge { background: #e7edf5; color: #24405e; }
.gdpr-kpi.gdpr-fail .kpi-value { color: #8a2b1d; }
@media (max-width: 640px) { .gdpr-list li { grid-template-columns: 1fr; } }
.stat-live { background: linear-gradient(135deg, #22492f, #12291c); }
.stat-live .live-dot { display: inline-block; vertical-align: 1px; margin-right: 4px; background: #7fd39a; }
.chart.show-dots .hit circle { opacity: 1; r: 3.5; }

/* ---------- 1.4.0 : forum ---------- */
.linklike { background: none; border: 0; padding: 0; color: var(--forest-700); text-decoration: underline; cursor: pointer; font: inherit; }
.forum-quick { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; align-items: center; }
.forum-quick a { color: var(--forest-700); }
.forum-quick a.is-active { font-weight: 700; color: var(--forest-900); text-decoration: none; }
.new-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--forest-900); font-size: .7rem; font-weight: 700; text-decoration: none; vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }
.forum-announcements { display: grid; gap: 8px; margin: 14px 0; }
.forum-announcements .callout { text-decoration: none; color: inherit; margin: 0; }
.topic-list .forum-row.topic-row { grid-template-columns: 36px minmax(0, 1fr) 80px 80px 200px; }
.topic-state { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eef0ee; color: #5d6a60; }
.topic-row.is-unread .topic-state { background: var(--gold-100); color: var(--gold-800); }
.topic-row.is-unread h3 a:not(.new-badge) { font-weight: 800; }
.topic-state.state-announce { background: #e6effb; color: #245ca8; }
.mini-pages a { font-size: .78rem; padding: 0 3px; }
.forum-filters { margin: 12px 0 16px; gap: 8px; }
.forum-filters label { font-size: .85rem; color: var(--muted); }
.forum-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.forum-stats h2 { font-size: 1.05rem; font-family: var(--sans); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.forum-stats p { margin: 0 0 4px; font-size: .9rem; }
.online-list a { font-weight: 600; }
.post.is-solution { border-color: var(--forest-500); box-shadow: 0 0 0 2px var(--forest-50); }
.post-author .rank { display: inline-block; margin: 4px 0 2px; font-weight: 600; color: var(--gold-800); }
.post-author .tag { margin: 4px 0; }
.rank { color: var(--gold-800); font-weight: 600; }
.post-content ul, .post-content ol { padding-left: 1.4em; margin: 0 0 12px; }
.post-content .bb-code { background: #1f2a24; color: #eef3ee; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: .85rem; line-height: 1.5; margin: 0 0 12px; }
.post-content .bb-code code { background: none; color: inherit; white-space: pre; }
.post-content details.spoiler { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; background: var(--ivory); }
.post-content details.spoiler summary { cursor: pointer; font-weight: 600; color: var(--forest-700); }
.post-content details.spoiler > div { margin-top: 8px; }
.post-content .bb-img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 6px 0; }
.post-content .bb-attach { display: inline-block; margin: 6px 6px 6px 0; }
.post-content .bb-attach img { max-width: 100%; height: auto; border-radius: 8px; }
.post-content a.mention { font-weight: 600; text-decoration: none; background: var(--forest-50); padding: 0 4px; border-radius: 4px; }
.ext-img { display: inline-block; margin: 6px 0; }
.post-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.post-attachments .bb-attach img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; display: block; }
.post-edited { font-size: .78rem; color: var(--muted); font-style: italic; margin: 10px 0 0; }
.post-signature { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .82rem; color: #5d6a60; max-height: 9em; overflow: hidden; }
.post-signature p { margin: 0; }
.like-btn.is-on { color: var(--forest-700); background: var(--forest-50); }
.like-count:empty { display: none; }
.danger-text { color: var(--red); }
.split-pick { margin: 0 6px 0 0; display: inline-flex; vertical-align: middle; }
.mod-tools { margin-bottom: 18px; }
.mod-tools summary { cursor: pointer; font-weight: 700; color: var(--forest-800); display: flex; gap: 8px; align-items: center; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 20px; margin-top: 12px; }
.mod-grid .toolbar { margin: 0; flex-wrap: wrap; }
.poll { margin-bottom: 18px; }
.poll h2 { font-size: 1.15rem; display: flex; gap: 8px; align-items: center; margin-top: 0; }
.poll fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.poll-option { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 34%) 90px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.poll-option .check { margin: 0; }
.poll-bar { height: 10px; background: #eef0ee; border-radius: 6px; overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: var(--forest-500); border-radius: 6px; }
.poll-form { margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory); }
.poll-form summary { cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; }
/* Éditeur */
.bbe { border: 1px solid var(--line); border-radius: 10px; background: #fff; position: relative; }
.bbe:focus-within { border-color: var(--forest-500); box-shadow: 0 0 0 3px var(--forest-50); }
.bbe.is-over { border-color: var(--gold-600); background: #fffdf3; }
.bbe.is-uploading { opacity: .75; }
.bbe-toolbar { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding: 6px; border-bottom: 1px solid var(--line); background: var(--ivory-2); border-radius: 10px 10px 0 0; }
.bbe-toolbar button { min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid transparent; background: none; border-radius: 6px; cursor: pointer; color: var(--forest-900); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.bbe-toolbar button:hover, .bbe-toolbar button[aria-pressed="true"], .bbe-toolbar button[aria-expanded="true"] { background: #fff; border-color: var(--line); }
.bbe-toolbar button:focus-visible { outline: 3px solid var(--gold-600); outline-offset: 1px; }
.bbe-toolbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.bbe-toolbar .grow { flex: 1; }
.bbe textarea { border: 0; border-radius: 0; box-shadow: none !important; min-height: 140px; resize: vertical; display: block; width: 100%; }
.bbe .bbe-preview { padding: 14px 16px; min-height: 140px; border-bottom: 1px solid var(--line); }
.bbe > .help, .bbe-attach, .bbe > .attach-list { margin: 0; padding: 8px 12px; }
.bbe-attach { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px dashed var(--line); }
.bbe-attach .help { margin: 0; }
.bbe-emoji { position: relative; }
.emoji-panel { position: absolute; z-index: 20; top: 38px; left: 0; display: grid; grid-template-columns: repeat(5, 36px); gap: 2px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.emoji-panel[hidden] { display: none; }
.emoji-panel button { font-size: 1.2rem; }
.attach-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.attach-list:empty { display: none; }
.attach-list li { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 110px; font-size: .75rem; }
.attach-list img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
/* Messages privés */
.pm-list { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pm-list li { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pm-list li:last-child { border-bottom: 0; }
.pm-list li.is-unread { background: #fffdf3; }
.pm-list p { margin: 2px 0 0; }
.pm-thread { display: grid; gap: 12px; margin-bottom: 18px; }
.pm-msg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; max-width: 86%; }
.pm-msg.is-mine { margin-left: auto; background: var(--forest-50); }
.pm-msg header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
/* Administration du forum (panneau façon phpBB) */
.acp { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.acp-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 16px; }
.acp-group { margin: 10px 8px 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.acp-nav ul { list-style: none; margin: 0; padding: 0; }
.acp-nav a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--forest-900); text-decoration: none; font-size: .9rem; }
.acp-nav a:hover { background: var(--forest-50); }
.acp-nav a[aria-current="page"] { background: var(--gold); font-weight: 700; }
.acp-title { margin: 0 0 6px; }
.acp-intro { margin-top: 0; }
.acp-fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 6px 18px 10px; margin: 0 0 18px; }
.acp-fieldset legend { font-weight: 700; padding: 0 6px; color: var(--forest-800); }
.acp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 40%); gap: 18px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.acp-row:last-child { border-bottom: 0; }
.acp-label label, .acp-label span { font-weight: 600; }
.acp-label .help { margin: 4px 0 0; }
.acp-field { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.acp-field input[type=number] { width: 130px; }
.acp-field textarea, .acp-field select { width: 100%; }
.acp-field .check { margin: 0; }
.acp-checks { border: 0; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 16px; }
.acp-checks legend { font-weight: 700; margin-bottom: 6px; }
.acp-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.acp-file { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.acp-file img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 1024px) {
  .acp { grid-template-columns: 1fr; }
  .acp-nav { position: static; }
  .topic-list .forum-row.topic-row { grid-template-columns: 36px minmax(0, 1fr) 80px 80px; }
  .topic-row .forum-last { display: none; }
}
@media (max-width: 720px) {
  .topic-list .forum-row.topic-row { grid-template-columns: 32px minmax(0, 1fr); }
  .acp-row { grid-template-columns: 1fr; gap: 8px; }
  .poll-option { grid-template-columns: 1fr; gap: 4px; }
  .pm-msg { max-width: 100%; }
}
a.new-badge { min-height: 24px; line-height: 22px; padding: 1px 10px; }
.likes-static { display: inline-flex; align-items: center; gap: 4px; }
