/* Actu-Geomatique · GéoMag — Science • Territoire • Données */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=Space+Grotesk:wght@500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap");

:root {
  --forest: #1b4332;
  --forest-light: #2d6a4f;
  --forest-2: #2d6a4f;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-2: #1e293b;
  --emerald: #10b981;
  --emerald-dim: #059669;
  --emerald-soft: #e7f6ef;
  --bg: #f4f8f6;
  --card: #ffffff;
  --text: #0f172a;
  --ink: #0f172a;
  --muted: #5b6b7d;
  --border: #d7e4df;
  --line: #d7e4df;
  --radius: 14px;
  --r: 14px;
  --r-sm: 10px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 40px -24px rgba(27, 67, 50, 0.45);
  --sh-1: 0 1px 2px rgba(15, 23, 42, 0.05);
  --sh-2: 0 1px 2px rgba(15, 23, 42, 0.05), 0 14px 32px -22px rgba(27, 67, 50, 0.45);
  --sh-3: 0 2px 4px rgba(15, 23, 42, 0.06), 0 28px 60px -28px rgba(27, 67, 50, 0.5);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --dsp: "Space Grotesk", system-ui, sans-serif;
  --ui: "DM Sans", system-ui, sans-serif;
  --ed: "Source Serif 4", Georgia, serif;
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
  --header: 76px;
  --coord: 22px;
  --gutter: clamp(0.85rem, 3.2vw, 1.2rem);
  --section-y: clamp(2.2rem, 5vw, 3.4rem);
  --touch: 44px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: clip;
  min-width: 0;
}
body.drawer-open,
body.modal-open { overflow: hidden; touch-action: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 0.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
h1.editorial { font-family: var(--font-serif); letter-spacing: -0.03em; font-weight: 650; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; max-width: 100%; }
.container {
  width: min(1180px, calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  min-width: 0;
}
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.desktop-only { display: inline-flex; align-items: center; }

/* ---------- motifs géomatiques ---------- */
.topo-lines {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cpath fill='none' stroke='%2310b981' stroke-opacity='.18' stroke-width='1' d='M-20 40 C40 10,80 70,140 40 S220 10,280 50'/%3E%3Cpath fill='none' stroke='%2310b981' stroke-opacity='.14' stroke-width='1' d='M-20 80 C50 50,90 110,150 80 S230 50,280 90'/%3E%3Cpath fill='none' stroke='%2310b981' stroke-opacity='.12' stroke-width='1' d='M-20 120 C40 90,100 150,160 120 S240 90,280 130'/%3E%3Cpath fill='none' stroke='%2310b981' stroke-opacity='.1' stroke-width='1' d='M-20 160 C60 130,110 190,170 160 S250 130,280 170'/%3E%3Cpath fill='none' stroke='%2310b981' stroke-opacity='.08' stroke-width='1' d='M-20 200 C40 170,90 230,160 200 S240 170,280 210'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
.coord-grid {
  background-image:
    linear-gradient(to right, rgba(16, 185, 129, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
}
.coord-overlay {
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(16, 185, 129, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 70%);
}
.gradient-forest { background-image: linear-gradient(145deg, #0b1220 0%, var(--navy) 28%, var(--forest) 72%, var(--forest-light) 100%); }

/* ---------- bandeau coordonnées ---------- */
.coord-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 51; height: var(--coord);
  background: var(--navy); color: #8fbfae; font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; display: flex; align-items: center; overflow: hidden;
  font-family: var(--font-display);
}
.coord-bar span { white-space: nowrap; padding: 0 1.4rem; opacity: 0.9; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: var(--coord) 0 auto 0; z-index: 50; height: var(--header);
  background: rgba(247, 251, 248, 0.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 0.55rem; height: var(--header);
  min-width: 0;
}
.logo { display: flex; align-items: center; gap: 0.7rem; flex: none; min-width: 0; }
.logo-img {
  width: 52px; height: 52px; object-fit: cover; object-position: 50% 32%;
  border-radius: 14px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 4px 12px -8px rgba(27, 67, 50, 0.5); flex: none;
}
.logo-text { min-width: 0; }
.logo-text strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(0.88rem, 2.2vw, 1.02rem); line-height: 1.05;
}
.logo-text em {
  display: block; font-style: normal; font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--forest-light); font-weight: 600; margin-top: 0.08rem;
}
.logo-text span, .logo-baseline {
  font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch;
}
.nav { display: flex; gap: 0.05rem; margin-left: 0.2rem; flex-wrap: nowrap; }
.nav a {
  padding: 0.4rem 0.55rem; border-radius: 8px; font-size: 0.84rem; font-weight: 500; color: var(--muted);
  white-space: nowrap;
}
.nav a:hover { background: #eef6f2; color: var(--forest); }
.nav a.active { background: #e6f4ee; color: var(--forest); font-weight: 600; }
.header-actions {
  display: flex; align-items: center; gap: 0.35rem; margin-left: auto;
  min-width: 0; flex-shrink: 0;
}
.burger {
  display: none;
  width: var(--touch); height: var(--touch); min-width: var(--touch);
}
.btn.burger { display: none; }
.burger[aria-expanded="true"] { background: #eef6f2; }
.role-switch {
  display: flex; align-items: center; gap: 0.4rem;
  background: #eef6f2; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.18rem 0.45rem 0.18rem 0.7rem; font-size: 0.72rem; color: var(--forest);
  max-width: 100%;
}
.role-switch select {
  width: auto; max-width: 9.5rem; padding: 0.22rem 0.2rem; border: 0;
  background: transparent; font-size: 0.78rem; font-weight: 600;
}

.drawer-dim {
  position: fixed; inset: calc(var(--coord) + var(--header)) 0 0 0; z-index: 59;
  background: rgba(15, 23, 42, 0.35); opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.drawer-dim.open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; inset: calc(var(--coord) + var(--header)) 0 0 auto;
  width: min(340px, 92vw); z-index: 60;
  background: var(--card); border-left: 1px solid var(--border);
  padding: 1.1rem 1.1rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(105%); transition: transform 0.28s ease;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  box-shadow: -20px 0 50px -30px rgba(15, 23, 42, 0.4);
  overscroll-behavior: contain;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  display: flex; align-items: center;
  padding: 0.85rem 0.7rem; border-radius: 9px; font-weight: 500;
  min-height: var(--touch);
}
.mobile-drawer a:hover, .mobile-drawer a.active { background: #eef6f2; color: var(--forest); }
.mobile-drawer .btn { min-height: var(--touch); }

/* ---------- boutons / badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.58rem 1rem; border-radius: 10px; border: 1px solid transparent;
  font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: 0.18s ease;
  min-height: 40px; text-align: center; white-space: normal;
}
.btn-primary { background: var(--forest); color: #f2fbf6; }
.btn-primary:hover { background: var(--forest-light); }
.btn-emerald { background: var(--emerald); color: #06281d; }
.btn-emerald:hover { filter: brightness(1.06); }
.btn-outline { background: var(--card); border-color: var(--border); }
.btn-outline:hover { background: #eef6f2; border-color: var(--emerald); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: #eef6f2; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; min-height: 36px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.icon-btn {
  width: 40px; height: 40px; min-width: 40px; padding: 0; border-radius: 10px;
}

.badge {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 600; border: 1px solid transparent;
  max-width: 100%;
}
.badge-cat { background: #e6f4ee; color: var(--forest); border-color: #c9e7da; }
.badge svg { width: 13px; height: 13px; flex: none; }
.badge-brouillon { background: #eef1f5; color: #475569; border-color: #dbe2ea; }
.badge-en_attente, .badge-corrections { background: #fff3e2; color: #9a5b06; border-color: #fadfb8; }
.badge-en_revision { background: #e6f0ff; color: #1d4ed8; border-color: #c8dcff; }
.badge-publie { background: #e3f8ee; color: #0c6b48; border-color: #bde9d5; }
.badge-soumis { background: #fff3e2; color: #9a5b06; border-color: #fadfb8; }
.badge-valide { background: #e3f8ee; color: #0c6b48; border-color: #bde9d5; }
.notif-wrap { position: relative; }
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 1.5rem));
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 0.6rem; z-index: 70; display: none;
  max-height: min(70vh, 420px); overflow-y: auto;
}
.notif-wrap.open .notif-panel { display: block; }
.notif-item { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.8rem; }
.notif-item:last-child { border-bottom: 0; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); display: inline-block; }
.badge-refuse { background: #fdeaea; color: #b02020; border-color: #f7cccc; }

.chip {
  padding: 0.42rem 0.85rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); font-size: 0.8rem; cursor: pointer; transition: 0.15s ease;
  min-height: 36px; display: inline-flex; align-items: center; white-space: nowrap;
}
.chip:hover { border-color: var(--emerald); }
.chip.active { background: var(--forest); color: #f2fbf6; border-color: var(--forest); }
.tag { font-size: 0.74rem; padding: 0.18rem 0.5rem; border-radius: 6px; background: #eef4f1; color: var(--muted); }
.chip-row {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  max-width: 100%;
}
.chip-row.scrollable {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
  margin-inline: calc(var(--gutter) * -0.15);
  padding-inline: 0.15rem;
}

/* ---------- formulaires ---------- */
.field { display: block; margin-bottom: 0.9rem; min-width: 0; }
.field > span { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"],
input[type="file"], select, textarea {
  width: 100%; padding: 0.7rem 0.78rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--card); min-height: 44px;
}
input[type="file"] { padding: 0.55rem; min-height: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(16, 185, 129, 0.4); outline-offset: 1px; }
textarea { min-height: 110px; resize: vertical; }
.form-grid {
  display: grid; gap: 0 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

/* ---------- cartes ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 0; max-width: 100%;
}
.card-pad { padding: clamp(0.95rem, 2.5vw, 1.2rem); }
.grid { display: grid; gap: 1.25rem; min-width: 0; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }

.featured-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-width: 0;
}
.featured-grid > :first-child { grid-row: span 2; min-width: 0; }
.featured-grid > :first-child .article-visual { height: 100%; min-height: 240px; flex: 1; }
.featured-grid > :first-child { display: flex; flex-direction: column; }
.featured-grid > :first-child .article-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-family: var(--font-serif);
}

.article-card { display: flex; flex-direction: column; overflow: hidden; transition: 0.22s ease; height: 100%; }
.article-card:hover { transform: translateY(-4px); border-color: var(--emerald); }
.article-visual { height: 158px; position: relative; overflow: hidden; flex: none; }
.article-card.big .article-visual { height: 210px; }
.article-visual .coord-grid { position: absolute; inset: 0; }
.article-visual svg { width: 100%; height: 100%; display: block; }
.article-body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; min-width: 0; }
.article-title {
  font-family: var(--font-serif); font-size: clamp(1rem, 2.2vw, 1.08rem);
  font-weight: 650; letter-spacing: -0.02em; line-height: 1.3;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 0.55rem 0.7rem;
  font-size: 0.76rem; color: var(--muted); margin-top: auto;
}

.stat-card { padding: 1.05rem 1.15rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); min-width: 0; }
.stat-card b { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.7rem); display: block; }
.stat-card span { font-size: 0.8rem; color: var(--muted); }
.stat-card.green b { color: var(--forest); }
.stat-card.orange b { color: #b45309; }
.stat-card.blue b { color: #1d4ed8; }
.stat-card.red b { color: #b91c1c; }

/* ---------- sections ---------- */
main { padding-top: calc(var(--coord) + var(--header)); min-width: 0; }
section { padding: var(--section-y) 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.7rem; flex-wrap: wrap;
}
.section-head > div { min-width: 0; flex: 1 1 auto; }
.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--emerald-dim); font-weight: 700; margin: 0 0 0.4rem;
  overflow-wrap: anywhere;
}

.hero {
  color: #eefaf4; position: relative; overflow: hidden;
  padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2.4rem, 5.5vw, 4.2rem);
}
.hero .topo-lines, .hero .coord-overlay { position: absolute; inset: 0; }
.hero-inner {
  position: relative; display: grid; gap: clamp(1.6rem, 4vw, 2.6rem);
  grid-template-columns: 1.05fr 0.95fr; align-items: center;
  min-width: 0;
}
.hero h1 {
  font-size: clamp(1.7rem, 5.2vw, 3.35rem);
  max-width: 16ch;
}
.hero p {
  color: #c9e5da;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-cta .btn { flex: 1 1 auto; min-width: min(100%, 11rem); }
.hero-stats { display: flex; gap: 1.2rem 1.8rem; margin-top: 2.3rem; flex-wrap: wrap; }
.hero-stats > div { min-width: 0; }
.hero-stats b { font-family: var(--font-display); font-size: clamp(1.15rem, 3vw, 1.45rem); display: block; color: #fff; }
.hero-stats span { font-size: 0.76rem; color: #a9d3c3; letter-spacing: 0.02em; }

.geo-visual {
  aspect-ratio: 1 / 0.86; border-radius: clamp(14px, 3vw, 20px); position: relative; overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.38); background: rgba(8, 18, 28, 0.45);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255,255,255,0.04);
  cursor: crosshair; width: 100%; min-width: 0;
}
.geo-visual svg { width: 100%; height: 100%; display: block; }
.geo-visual .hud {
  position: absolute; inset: auto 0.55rem 0.55rem 0.55rem; display: flex;
  justify-content: space-between; gap: 0.5rem; flex-wrap: wrap;
  font-size: clamp(0.58rem, 1.6vw, 0.68rem); letter-spacing: 0.1em;
  text-transform: uppercase; color: #a9d3c3; font-family: var(--font-display);
}
.geo-visual .hud span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.geo-visual .spot {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 0 6px rgba(16,185,129,0.25); cursor: pointer; border: 0;
  touch-action: manipulation;
}
.geo-visual .spot:hover, .geo-visual .spot:focus { box-shadow: 0 0 0 9px rgba(16,185,129,0.35); }
.geo-tooltip {
  position: absolute; background: rgba(15, 23, 42, 0.92); color: #e8f7ef; border: 1px solid rgba(16,185,129,0.4);
  border-radius: 10px; padding: 0.55rem 0.7rem; font-size: 0.78rem;
  max-width: min(220px, 70%); pointer-events: none;
  transform: translate(-20%, -120%); z-index: 2;
}
.geo-tooltip b { display: block; font-family: var(--font-display); margin-bottom: 0.15rem; }

.cat-card {
  padding: 1.15rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card); transition: 0.2s ease; display: flex; flex-direction: column; gap: 0.35rem;
  min-width: 0; height: 100%;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--emerald); box-shadow: var(--shadow); }
.cat-icon {
  width: 42px; height: 42px; border-radius: 12px; background: #e6f4ee; color: var(--forest);
  display: grid; place-items: center; margin-bottom: 0.45rem;
}
.cat-icon svg { width: 22px; height: 22px; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: #eafff5;
  display: grid; place-items: center; font-weight: 600; font-family: var(--font-display); flex: none;
}
.avatar.lg { width: clamp(64px, 18vw, 84px); height: clamp(64px, 18vw, 84px); font-size: clamp(1.15rem, 4vw, 1.5rem); }

.newsletter {
  background: linear-gradient(145deg, var(--navy), #123528);
  color: #eefaf4; border-radius: clamp(14px, 3vw, 20px);
  padding: clamp(1.4rem, 4vw, 2.6rem); position: relative; overflow: hidden;
}
.newsletter .coord-grid { position: absolute; inset: 0; opacity: 0.4; }
.newsletter h2 { color: #fff; font-size: clamp(1.25rem, 3vw, 1.65rem); }
.newsletter-form {
  display: flex; gap: 0.6rem; flex-wrap: wrap; position: relative;
  max-width: 560px; width: 100%;
}
.newsletter-form input,
.newsletter-form select { flex: 1 1 160px; min-width: 0; }
.newsletter-form .btn { flex: 1 1 auto; min-width: min(100%, 8rem); }
.nl-ok { color: var(--emerald); font-weight: 600; margin: 0.6rem 0 0; }

.site-footer {
  background: var(--navy); color: #cfe3da;
  padding: clamp(2.2rem, 5vw, 3.2rem) 0 1.5rem; margin-top: 2rem;
  position: relative; overflow: hidden;
}
.site-footer .topo-lines { position: absolute; inset: 0; opacity: 0.35; }
.footer-grid {
  position: relative; display: grid; gap: 1.6rem 2rem;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  min-width: 0;
}
.footer-grid > * { min-width: 0; }
.site-footer h4 { color: #fff; font-size: 0.88rem; }
.site-footer a:hover { color: var(--emerald); }
.footer-bottom {
  position: relative; border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem; padding-top: 1rem; font-size: 0.8rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-logo {
  height: 64px; width: 64px; object-fit: cover; object-position: 50% 32%;
  border-radius: 16px; background: #fff;
}

/* ---------- article ---------- */
.article-head { padding: clamp(1.6rem, 4vw, 2.6rem) 0 1.5rem; }
.article-head h1.editorial { font-size: clamp(1.55rem, 4.5vw, 2.45rem); }
.article-byline {
  display: flex; gap: 0.8rem; align-items: center; margin: 1rem 0;
  flex-wrap: wrap; min-width: 0;
}
.article-byline > div { min-width: 0; }
.article-actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.article-actions .btn { flex: 1 1 auto; min-width: min(100%, 9.5rem); }
.prose { max-width: 74ch; min-width: 0; }
.prose p { margin: 0 0 1.15rem; overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(1.15rem, 2.5vw, 1.38rem); margin: 2.1rem 0 0.7rem; }
.prose ul { padding-left: 1.15rem; }
.prose li { margin: 0.25rem 0; }
.prose blockquote {
  margin: 1.4rem 0; padding: 0.95rem 1.2rem; border-left: 3px solid var(--emerald);
  background: #f0f7f4; border-radius: 0 10px 10px 0; font-style: italic; font-family: var(--font-serif);
}
.prose blockquote cite {
  display: block; font-style: normal; font-family: var(--font-sans);
  font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem;
}
.prose figure { margin: 1.7rem 0; max-width: 100%; }
.figure-canvas {
  height: clamp(170px, 40vw, 230px); border-radius: 12px; border: 1px solid var(--border);
  position: relative; overflow: hidden; width: 100%;
}
.prose figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.prose pre {
  background: var(--navy); color: #d7f5e7; padding: 1rem 1.1rem; border-radius: 12px;
  overflow-x: auto; font-size: 0.82rem; max-width: 100%; -webkit-overflow-scrolling: touch;
}
table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 520px; }
table.data th, table.data td {
  text-align: left; padding: 0.65rem 0.7rem; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data th {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  white-space: nowrap;
}
table.data tr:hover td { background: #f7fbf8; }
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  max-width: 100%; margin: 0.4rem 0;
  border-radius: 10px;
  scrollbar-width: thin;
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: #c5d6ce; border-radius: 999px; }
.refs { list-style: none; padding: 0; counter-reset: r; }
.refs li {
  counter-increment: r; padding: 0.55rem 0 0.55rem 2.1rem; border-bottom: 1px solid var(--border);
  position: relative; font-size: 0.88rem; overflow-wrap: anywhere;
}
.refs li::before {
  content: "[" counter(r) "]"; position: absolute; left: 0; color: var(--emerald-dim);
  font-weight: 700; font-size: 0.8rem;
}

.comment {
  display: flex; gap: 0.85rem; padding: 1.05rem 0; border-bottom: 1px solid var(--border);
  min-width: 0;
}
.comment > div { min-width: 0; flex: 1; }

/* ---------- modales ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, 0.58);
  display: grid; place-items: start center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1.5rem, env(safe-area-inset-bottom, 0px));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.modal {
  background: var(--card); border-radius: clamp(14px, 3vw, 18px);
  width: min(640px, 100%); margin: min(8vh, 2.5rem) auto;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.55);
  max-height: none;
}
.modal-wide { width: min(820px, 100%); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--border);
}
.modal-head strong { min-width: 0; overflow-wrap: anywhere; }
.modal-body { padding: clamp(1rem, 3vw, 1.25rem); }
.search-result { display: block; padding: 0.75rem; border-radius: 10px; }
.search-result:hover { background: #eef6f2; }
.auth-tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }

#toasts {
  position: fixed; top: calc(var(--coord) + var(--header) + 8px); right: var(--gutter);
  left: auto; z-index: 100; display: grid; gap: 0.5rem;
  width: min(340px, calc(100vw - (var(--gutter) * 2)));
  pointer-events: none;
}
.toast {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--emerald);
  border-radius: 10px; padding: 0.75rem 1rem; box-shadow: var(--shadow); font-size: 0.88rem;
  max-width: 100%; animation: in 0.2s ease; pointer-events: auto;
  overflow-wrap: anywhere;
}
.toast.error { border-left-color: #dc2626; }
@keyframes in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- dashboards (maquette SPA) ---------- */
.dash {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.6rem;
  padding: 2rem 0 3rem; align-items: start;
}
.dash > :last-child { min-width: 0; }
.dash-nav {
  background: var(--navy); border-radius: var(--radius); padding: 0.7rem;
  position: sticky; top: calc(var(--coord) + var(--header) + 14px);
}
.dash-nav button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  color: #c8ded4; padding: 0.7rem 0.75rem; border-radius: 8px; cursor: pointer;
  font-size: 0.9rem; min-height: 44px;
}
.dash-nav button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.dash-nav button.active { background: var(--emerald); color: #06281d; font-weight: 600; }
.panel { display: none; min-width: 0; }
.panel.active { display: block; }
.restricted { max-width: 540px; margin: 4rem auto; text-align: center; padding-inline: 0.25rem; }
.restricted .btn { margin: 0.25rem; }

.page-intro { padding: clamp(1.6rem, 4vw, 2.5rem) 0 0.4rem; }
.page-intro h1 { font-size: clamp(1.55rem, 4vw, 2.4rem); }

.profile-hero {
  position: relative; display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap;
}
.profile-hero > div { min-width: 0; flex: 1 1 16rem; }
.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.4rem;
}
.editor-toolbar .btn { min-height: 36px; }
.stack-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.stack-actions .btn { flex: 0 0 auto; min-width: 0; }

/* =========================================================
   Responsive — fluid breakpoints (mobile-first enhancements)
   ========================================================= */

@media (max-width: 1280px) {
  .logo-baseline { display: none; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .header-actions .desktop-only { display: none !important; }
  .burger { display: inline-flex; }
  .btn.burger { display: inline-flex; }
  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .featured-grid > :first-child { grid-row: auto; }
  .featured-grid > :first-child .article-visual {
    height: clamp(180px, 42vw, 240px); min-height: 0; flex: none;
  }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .geo-visual { max-width: 560px; margin-inline: auto; aspect-ratio: 16 / 11; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .dash { grid-template-columns: 1fr; gap: 1.1rem; padding-top: 1.4rem; }
}

@media (max-width: 900px) {
  :root { --header: 68px; }
  .logo-img { width: 46px; height: 46px; border-radius: 12px; }
  .role-switch { padding-inline: 0.45rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
}

@media (max-width: 768px) {
  :root { --header: 64px; }
  .header-actions { gap: 0.25rem; }
  .role-switch span { display: none; }
  .role-switch select { max-width: 7.5rem; }
  section { padding: clamp(1.8rem, 5vw, 2.6rem) 0; }
  .section-head { align-items: start; gap: 0.75rem; }
  .article-card:hover,
  .cat-card:hover { transform: none; }
  .newsletter-form { max-width: none; }
  .newsletter-form input,
  .newsletter-form select,
  .newsletter-form .btn { flex: 1 1 100%; }
  .overlay { padding: 0.75rem; place-items: stretch center; }
  .modal { margin: 0.5rem auto; border-radius: 14px; }
  .modal-head, .modal-body { padding-inline: 1rem; }
  table.data { font-size: 0.82rem; min-width: 480px; }
  table.data th, table.data td { padding: 0.55rem 0.5rem; }
  .comment { gap: 0.65rem; }
  .hero-cta .btn { min-width: 100%; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .logo-text span:not(.logo-baseline),
  .logo-text > span:last-child:not(.logo-baseline) { display: none; }
  .logo-baseline { display: none; }
  .role-switch { display: none; }
  .hero-stats { gap: 1rem 1.25rem; }
  .hero-stats > div { flex: 1 1 calc(50% - 1rem); }
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .article-actions .btn { min-width: 100%; }
  .stack-actions .btn { flex: 1 1 auto; }
  .stat-card { padding: 0.9rem 1rem; }
  .geo-visual .hud { font-size: 0.58rem; letter-spacing: 0.06em; }
  .geo-tooltip { max-width: min(200px, 78%); transform: translate(-10%, -115%); }
  #toasts { left: var(--gutter); right: var(--gutter); width: auto; }
  .restricted { margin: 2.5rem auto; }
  .page-intro h1,
  .article-head h1.editorial { font-size: clamp(1.4rem, 7vw, 1.9rem); }
  .prose blockquote { padding: 0.8rem 0.9rem; }
  .refs li { padding-left: 1.85rem; }
}

@media (max-width: 480px) {
  .account-btn { display: none !important; }
  .header-actions { gap: 0.2rem; }
  .logo { gap: 0.5rem; }
}

@media (max-width: 414px) {
  :root { --gutter: 0.85rem; --header: 60px; }
  .logo-img { width: 42px; height: 42px; border-radius: 11px; }
  .icon-btn, .burger { width: 42px; height: 42px; min-width: 42px; }
  .btn { padding: 0.62rem 0.9rem; }
  .card-pad { padding: 0.95rem; }
  .article-body { padding: 0.95rem 1rem 1.05rem; }
  .article-visual { height: 148px; }
  .figure-canvas { height: 160px; }
  .mobile-drawer { width: min(100vw - 2.5rem, 340px); }
}

@media (max-width: 375px) {
  .coord-bar { font-size: 0.58rem; letter-spacing: 0.1em; }
  .logo-text strong { font-size: 0.86rem; }
  .hero h1 { font-size: clamp(1.55rem, 8vw, 1.9rem); max-width: none; }
  .hero-stats > div { flex: 1 1 100%; }
  .badge { font-size: 0.68rem; }
  table.data { min-width: 440px; }
}

@media (max-width: 320px) {
  :root { --gutter: 0.7rem; --header: 58px; }
  .logo-img { width: 38px; height: 38px; }
  .logo-text em { letter-spacing: 0.08em; }
  .header-actions { gap: 0.15rem; }
  .btn { font-size: 0.84rem; }
  .newsletter { border-radius: 12px; }
  .geo-visual { border-radius: 12px; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .article-card:hover, .cat-card:hover { transform: none; }
}

/* Large desktops: keep composition centered, no stretch */
@media (min-width: 1440px) {
  .container { width: min(1180px, calc(100% - 3rem)); }
}
@media (min-width: 1920px) {
  .hero { padding-block: 5rem; }
}

/* —— Page banners (alignés Django) —— */
.page-banner {
  position: relative;
  overflow: hidden;
  color: #e8f6ef;
  background-color: #0b1f18;
  padding: clamp(2.4rem, 5.5vw, 4.2rem) 0;
  min-height: clamp(200px, 30vw, 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}
.page-banner-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0b1f18;
}
.page-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
}
.page-banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 22, 16, 0.55) 0%, rgba(6, 32, 24, 0.62) 45%, rgba(5, 24, 18, 0.78) 100%),
    linear-gradient(90deg, rgba(4, 28, 20, 0.28), rgba(4, 28, 20, 0.08) 50%, rgba(4, 28, 20, 0.28));
  pointer-events: none;
}
.page-banner--terrain .page-banner-shade {
  background:
    linear-gradient(180deg, rgba(8, 24, 16, 0.5) 0%, rgba(10, 36, 22, 0.58) 55%, rgba(6, 20, 14, 0.76) 100%);
}
.page-banner-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-banner h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.95rem, 4.4vw, 3.1rem);
  max-width: 18ch;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.page-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0.95rem 0 0;
  font-size: 0.92rem;
}
.page-trail-on-dark,
.page-trail-on-dark a { color: #bfe8d6; }
.page-trail-on-dark a:hover { color: #fff; }
.page-trail-on-dark [aria-current="page"] {
  color: #fff;
  font-weight: 650;
}
.page-trail-sep { opacity: 0.55; }
.section-after-banner { padding-top: clamp(1.5rem, 3.2vw, 2.2rem); }
.band-soft { background: #eaf3ee; }
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  align-items: center;
}
.researcher-card-head {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.65rem;
}
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card-link:hover { transform: translateY(-2px); border-color: var(--emerald); }

/* —— About page —— */
.about-intro { padding-bottom: clamp(2rem, 4vw, 3rem); }
.about-intro-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  align-items: center;
}
.about-display {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.85rem;
  color: var(--ink, #0f241c);
}
.about-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 58ch;
  margin: 0 0 0.75rem;
}
.about-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: #0b1f18;
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-visual:hover img { transform: scale(1.06); }
.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8, 36, 26, 0.15), rgba(8, 36, 26, 0.55));
  pointer-events: none;
}
.about-visual-hud {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.about-visual-hud span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8f6ef;
  background: rgba(8, 36, 26, 0.72);
  border: 1px solid rgba(158, 230, 199, 0.35);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}
.about-pillars {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.about-pillar {
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.about-pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 28px rgba(11, 31, 24, 0.08);
}
.about-pillar h3 { margin: 0.7rem 0 0.45rem; font-size: 1.1rem; }
.about-pillar p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }
.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  color: var(--forest);
  background: linear-gradient(145deg, #e3f8ee, #d4f0e4);
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.about-icon svg { width: 1.25rem; height: 1.25rem; }
.about-icon-lg {
  width: 2.85rem;
  height: 2.85rem;
  flex-shrink: 0;
}
.about-icon-lg svg { width: 1.4rem; height: 1.4rem; }
.about-features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.about-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card, #fff);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.about-feature:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}
.about-feature h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.about-feature p { margin: 0; }
.about-stats-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1f18 0%, #12382c 55%, #0f2f24 100%);
  color: #e8f6ef;
  padding: clamp(2.2rem, 4vw, 3rem) 0;
}
.about-stats-band .topo-lines {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}
.about-stats {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.about-stat b {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  display: block;
  color: #9ee6c7;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.about-stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #a9d3c3;
  letter-spacing: 0.02em;
}
.about-process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.about-step {
  position: relative;
  padding: 1.2rem 1.15rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card, #fff);
  box-shadow: var(--shadow);
}
.about-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--emerald), var(--forest));
}
.about-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--emerald-dim, #0c6b48);
  margin-bottom: 0.55rem;
}
.about-step h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.about-step p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.about-split {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}
.about-split-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: #0b1f18;
}
.about-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-checklist {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.about-checklist li {
  position: relative;
  padding: 0.7rem 0.85rem 0.7rem 2.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.45;
}
.about-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--forest);
  color: #e8f6ef;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}
.about-table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.about-table table { margin: 0; }
.about-board { margin-top: 0.25rem; }
.about-cta { padding-top: 0; }
.about-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
  padding: clamp(1.6rem, 3.2vw, 2.2rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse 70% 80% at 90% 20%, rgba(16, 185, 129, 0.22), transparent 55%),
    linear-gradient(125deg, #0b1f18, #143d30 60%, #0f2f24);
  color: #e8f6ef;
  box-shadow: var(--shadow);
}
.about-cta-inner h2 {
  margin: 0.2rem 0 0.45rem;
  color: #f2fbf6;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
}
.about-cta-inner p { margin: 0; max-width: 48ch; color: #a9d3c3; }
.about-cta-ghost {
  border-color: rgba(232, 246, 239, 0.45) !important;
  color: #e8f6ef !important;
  background: transparent !important;
}
.about-cta-ghost:hover {
  border-color: #9ee6c7 !important;
  background: rgba(158, 230, 199, 0.12) !important;
}
@media (max-width: 960px) {
  .about-intro-grid,
  .about-split { grid-template-columns: 1fr; }
  .about-pillars,
  .about-process { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .about-pillars,
  .about-features,
  .about-process,
  .about-stats { grid-template-columns: 1fr; }
  .about-visual { max-height: 280px; }
}

/* —— Sync Django layouts (listes, contact, article, home) —— */
.page-banner--earth .page-banner-shade {
  background: linear-gradient(180deg, rgba(4, 18, 32, 0.52) 0%, rgba(6, 36, 34, 0.6) 50%, rgba(5, 24, 22, 0.78) 100%);
}
.page-banner--geo .page-banner-shade {
  background: linear-gradient(180deg, rgba(4, 22, 16, 0.55) 0%, rgba(6, 32, 24, 0.62) 45%, rgba(5, 24, 18, 0.78) 100%);
}
.page-banner--compact {
  min-height: clamp(160px, 22vw, 220px);
  padding: clamp(1.6rem, 3.5vw, 2.4rem) 0;
}
.page-banner--compact h1 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  max-width: 28ch;
}
.page-intro-lead { margin: 0 0 1.15rem; max-width: 62ch; }
.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1.15rem;
}
.grid-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.filters-bar {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(12rem, 1.1fr) minmax(9rem, 0.9fr) auto;
  margin: 0 0 1.35rem;
  align-items: stretch;
}
.filters-bar--3 {
  grid-template-columns: minmax(0, 1.6fr) minmax(12rem, 1fr) minmax(12rem, 1fr);
}
.filters-bar input,
.filters-bar select {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 2.4rem 0.55rem 1rem;
  background: #fff;
  width: 100%;
}
.filters-bar select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--forest) 50%),
    linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) calc(50% - 0.15rem),
    calc(100% - 0.85rem) calc(50% - 0.15rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.filters-bar select:focus,
.filters-bar input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.filters-bar .btn {
  white-space: nowrap;
  min-width: 7rem;
}
.contact-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
  align-items: start;
}
.contact-meta {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.contact-meta li {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.contact-meta strong {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form.stack,
.stack {
  display: grid;
  gap: 0.75rem;
}
.form-actions { margin-top: 0.35rem; }
.cat-count {
  margin-top: auto;
  padding-top: 0.7rem;
  color: var(--emerald-dim);
  font-weight: 700;
}
.home-hero .eyebrow,
.hero-eyebrow { color: #9ee6c7; }
.hero-cta-secondary,
.home-hero .btn-outline {
  background: transparent !important;
  color: #e8f7ef !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}
.home-newsletter {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.home-newsletter .newsletter-form { position: relative; z-index: 1; max-width: none; }
.home-newsletter .newsletter-copy { position: relative; z-index: 1; }
.article-reading { max-width: 74ch; }
.article-hero-visual {
  position: relative;
  margin: 1.2rem 0 0;
  border-radius: 14px;
  overflow: hidden;
  min-height: 180px;
}
.article-hero-hint {
  position: absolute;
  bottom: 0.55rem;
  left: 0.75rem;
  color: #bfe8d6;
  z-index: 1;
}
.abstract-card { background: #f0f7f4; }
.related-section { background: #eff6f3; }
.comment-list { display: grid; gap: 0.85rem; margin-top: 1rem; }
.researcher-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  color: #e8f6ef;
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
  min-height: clamp(220px, 30vw, 300px);
  display: flex;
  align-items: center;
}
.researcher-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(6, 28, 20, 0.55), rgba(8, 36, 26, 0.72)),
    url("../img/banners/banner-terrain.jpg") center / cover no-repeat;
}
.researcher-hero > * { position: relative; z-index: 1; width: 100%; }
.researcher-hero .profile-hero {
  justify-content: center;
  text-align: center;
  flex-direction: column;
}
.researcher-hero .page-trail {
  justify-content: center;
  margin-top: 1rem;
}
.researcher-avatar {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.5);
}
.researcher-eyebrow { color: #9ee6c7; }
.researcher-meta { color: #a9d3c3; margin: 0; }
.dash-shell { padding-bottom: 2rem; }
@media (max-width: 900px) {
  .filters-bar { grid-template-columns: 1fr 1fr; }
  .filters-bar input[type="search"],
  .filters-bar input:first-child { grid-column: 1 / -1; }
  .filters-bar .btn { grid-column: 1 / -1; }
  .filters-bar--3 { grid-template-columns: 1fr; }
  .home-newsletter { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .researcher-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .researcher-stats { grid-template-columns: 1fr; }
}

.meta { color: var(--muted); font-size: .86rem; display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
