/* MadaRevues — Design System v2 (Maquette) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================== TOKENS ===================== */
:root {
  --forest:        #0e2f55;
  --green:         #1558a0;
  --green-mid:     #2980c4;
  --green-light:   #60aee0;
  --gold:          #ca8a04;
  --gold-light:    #fde68a;
  --warm:          #f7f9fc;
  --white:         #ffffff;
  --ink:           #111827;
  --ink-70:        #374151;
  --muted:         #6b7280;
  --border:        #e2e8f0;
  --border-soft:   #f1f5f9;
  --dark:          #080f1a;

  --d-health:  #dc2626;
  --d-bio:     #16a34a;
  --d-social:  #7c3aed;
  --d-agro:    #d97706;
  --d-tech:    #0284c7;
  --d-edu:     #db2777;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 20px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.07), 0 8px 32px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.13);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.18);

  --t:      all 0.2s cubic-bezier(0.4,0,0.2,1);
  --t-fast: all 0.15s ease;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--warm);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

.eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green-mid);
}
.lead   { font-size: 1.05rem; color: var(--ink-70); line-height: 1.75; }
.muted  { color: var(--muted); }

/* ===================== LAYOUT ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2.5rem); }
.section        { padding: 88px 0; }
.section.compact { padding: 60px 0; }
.section.band   { background: var(--forest); }
.section.white  { background: white; }

/* ===================== NAVIGATION ===================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--forest);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.brand { display: flex; align-items: center; gap: 12px; color: white; font-weight: 600; font-size: 1rem; }
.brand-mark {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
  color: var(--forest); font-weight: 800; font-size: 0.82rem;
  display: grid; place-items: center;
}
.brand-name { display: flex; flex-direction: column; }
.brand-name small { font-size: 0.7rem; font-weight: 400; opacity: 0.6; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: rgba(255,255,255,0.72); font-size: 0.875rem; font-weight: 500;
  padding: 7px 14px; border-radius: var(--r-sm); transition: var(--t-fast);
}
.nav a:hover  { color: white; background: rgba(255,255,255,0.1); }
.nav a.active { color: white; background: rgba(255,255,255,0.15); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 22px; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif;
  transition: var(--t); cursor: pointer;
}
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: #145535; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost   { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green); color: white; }
.btn-white   { background: white; color: var(--forest); }
.btn-white:hover { background: var(--border-soft); }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; padding: 12px; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===================== TAGS ===================== */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-full);
  font-size: 0.74rem; font-weight: 600; background: var(--border-soft); color: var(--ink-70);
}
.tag.green  { background: #dbeafe; color: #1558a0; }
.tag.blue   { background: #dbeafe; color: #1d4ed8; }
.tag.purple { background: #ede9fe; color: #6d28d9; }
.tag.red    { background: #fee2e2; color: #b91c1c; }
.tag.gold   { background: #fef3c7; color: #b45309; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: var(--r-full); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.badge-current { background: #dbeafe; color: #1558a0; }
.badge-regular  { background: #f3f4f6; color: #374151; }
.badge-special  { background: #ede9fe; color: #6d28d9; }

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; font-size: 0.82rem;
  color: var(--muted); margin-bottom: 14px;
}
.breadcrumb a { color: var(--green); transition: var(--t-fast); }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb .sep { color: var(--border); user-select: none; }

/* Breadcrumb sur fond sombre (hero accueil) */
.hero .breadcrumb { color: rgba(255,255,255,0.5); }
.hero .breadcrumb a { color: rgba(255,255,255,0.75); }
.hero .breadcrumb a:hover { color: white; }
.hero .breadcrumb .sep { color: rgba(255,255,255,0.25); }

/* ===================== META ROW ===================== */
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

/* ===================== HERO (index) ===================== */
.hero {
  background:
    url(hero-bg.svg) center / cover no-repeat, #33883F;
  padding: clamp(48px, 7vw, 80px) 0 clamp(48px, 7vw, 72px);
  position: relative;
}
.hero-dots  { display: none; }
.hero-glow  { display: none; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 400px;
  gap: clamp(40px, 7vw, 88px); align-items: center;
}
.hero-text .eyebrow { color: var(--gold-light) !important; }
.hero-title { color: white; margin: 14px 0 18px; font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.hero-title em { font-style: normal; color: var(--gold-light); }
.hero-lead { color: rgba(255,255,255,0.7); margin-bottom: 36px; }

/* ===================== SEARCH PANEL ===================== */
.search-panel {
  background: white; border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-xl);
}
.search-panel-title { font-size: 1.1rem; color: var(--ink); margin-bottom: 20px; font-family: 'Playfair Display', serif; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-70); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 0.9rem; font-family: 'Inter', sans-serif;
  color: var(--ink); background: var(--warm); transition: var(--t-fast); outline: none;
  -webkit-appearance: none; appearance: none;
}
.field input:focus, .field select:focus {
  border-color: var(--green-mid); background: white;
  box-shadow: 0 0 0 3px rgba(34,160,107,0.12);
}

/* ===================== STATS BAR ===================== */
.stats-bar { background: white; border-bottom: 1px solid var(--border); }
.stats-inner { display: flex; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2.5rem); }
.stat { flex: 1; padding: 28px 0; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 2.25rem; font-weight: 700; color: var(--forest); line-height: 1; }
.stat-label { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

/* ===================== SECTION HEADER ===================== */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-header h2 { margin-top: 8px; }
.section-header p { color: var(--muted); font-size: 0.93rem; margin-top: 8px; max-width: 55ch; }

/* ===================== JOURNAL CARDS ===================== */
.journal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.journal-card {
  display: flex; flex-direction: column;
  background: white; border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: var(--t);
  min-height: 310px;
}
.journal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-accent { height: 4px; width: 100%; }
.card-accent.health { background: linear-gradient(90deg, var(--d-health), #ef4444); }
.card-accent.bio    { background: linear-gradient(90deg, var(--d-bio), #22c55e); }
.card-accent.social { background: linear-gradient(90deg, var(--d-social), #a78bfa); }
.card-accent.agro   { background: linear-gradient(90deg, var(--d-agro), #fbbf24); }
.card-accent.tech   { background: linear-gradient(90deg, var(--d-tech), #38bdf8); }
.card-accent.edu    { background: linear-gradient(90deg, var(--d-edu), #f472b6); }

.card-body {
  display: flex;
  flex-direction: column;
  padding: 20px 22px 16px;
  flex: 1;
  min-height: 0;
}
.card-body h3 {
  margin: 0;
  line-height: 1.35;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.card-body p  {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-card-head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 112px;
}
.journal-logo-top {
  width: 128px;
  height: 112px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(21,88,160,0.10);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: 0;
  box-shadow: 0 10px 20px rgba(15,23,42,0.10);
}
.journal-logo-top img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.10));
}
.journal-tags {
  margin-top: auto;
  padding-top: 14px;
}

.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px; border-top: 1px solid var(--border-soft);
}

.arrow-link {
  font-size: 0.84rem; font-weight: 600; color: var(--green);
  display: inline-flex; align-items: center; gap: 5px; transition: var(--t-fast);
}
.arrow-link::after { content: '→'; transition: transform 0.2s; display: inline-block; }
.journal-card:hover .arrow-link::after { transform: translateX(4px); }

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ===================== FEATURES (dark band) ===================== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r);
  padding: 28px; background: rgba(255,255,255,0.05); transition: var(--t);
}
.feature-card:hover { background: rgba(255,255,255,0.09); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--r-sm); background: rgba(255,255,255,0.1); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.feature-card h3 { color: white; font-size: 1rem; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 600; }
.feature-card p  { color: rgba(255,255,255,0.55); font-size: 0.875rem; line-height: 1.65; }

/* ===================== PAGE HERO ===================== */
.page-hero {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.page-hero-dots { display: none; }
.page-hero-inner { }
.page-hero h1  { color: var(--ink); margin-top: 8px; margin-bottom: 10px; font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
.page-hero .eyebrow { color: var(--green-mid) !important; }
.page-hero .lead    { color: var(--muted); font-size: 0.95rem; }
.page-hero .breadcrumb { color: var(--muted); }
.page-hero .breadcrumb a { color: var(--green); }
.page-hero .breadcrumb a:hover { color: var(--forest); }
.page-hero .breadcrumb .sep { color: var(--border); }

/* ===================== CONTENT LAYOUT ===================== */
.content-layout { display: grid; grid-template-columns: 256px 1fr; gap: 40px; align-items: start; }

/* ===================== SIDEBAR ===================== */
.sidebar {
  background: white; border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky; top: 88px;
}
.sidebar > .eyebrow { margin-bottom: 16px; }
.sidebar-divider { height: 1px; background: var(--border); margin: 16px 0; }

.filter-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 0.875rem; color: var(--ink-70); transition: var(--t-fast); margin-bottom: 2px;
}
.filter-link:hover { background: var(--border-soft); color: var(--ink); }
.filter-link.active { background: #dbeafe; color: #1558a0; font-weight: 600; }
.filter-link .count { font-size: 0.75rem; color: var(--muted); }
.filter-link.active .count { color: #1558a0; }

/* ===================== DATA LIST ===================== */
.data-list { display: flex; flex-direction: column; }
.data-row { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.data-row:last-child { border-bottom: none; }
.data-row dt { font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; }
.data-row dd { font-size: 0.9rem; color: var(--ink); }

/* ===================== ISSUE CARDS ===================== */
.issue-list { display: flex; flex-direction: column; gap: 12px; }

.issue-card {
  display: grid; grid-template-columns: 72px 1fr auto;
  gap: 20px; align-items: center;
  background: white; border-radius: var(--r);
  padding: 20px 24px; box-shadow: var(--shadow);
  border: 1px solid var(--border); border-left: 4px solid transparent; transition: var(--t);
}
.issue-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-left-color: var(--green-mid); }

.issue-cover {
  width: 72px; height: 90px; border-radius: var(--r-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white; font-size: 0.72rem; font-weight: 700; text-align: center; line-height: 1.5;
  background: linear-gradient(160deg, var(--forest), var(--green));
  flex-shrink: 0; font-family: 'Inter', sans-serif;
}
.issue-cover.red    { background: linear-gradient(160deg, #7f1d1d, #dc2626); }
.issue-cover.purple { background: linear-gradient(160deg, #4c1d95, #7c3aed); }
.issue-cover.blue   { background: linear-gradient(160deg, #1e3a8a, #3b82f6); }
.issue-cover.gold   { background: linear-gradient(160deg, #78350f, #d97706); }

.issue-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.issue-body p  { font-size: 0.875rem; color: var(--muted); }

/* ===================== ARTICLE ROWS ===================== */
.article-list { display: flex; flex-direction: column; gap: 12px; }

.article-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 20px;
  background: white; border-radius: var(--r);
  padding: 20px 24px; box-shadow: var(--shadow);
  border: 1px solid var(--border); border-left: 4px solid transparent; transition: var(--t);
}
.article-row:hover { box-shadow: var(--shadow-md); border-left-color: var(--green-mid); transform: translateX(3px); }

.art-type { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green-mid); margin-bottom: 6px; }
.article-row h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.45; }
.authors        { font-size: 0.85rem; color: var(--ink-70); }
.doi-badge {
  color: var(--green);
  font-weight: 700;
  word-break: break-all;
}

/* ===================== SEARCH RESULTS ===================== */
.advanced-search-form { display: flex; flex-direction: column; gap: 12px; }
.advanced-search-form .field { margin-bottom: 0; }
.sidebar-search-form { display: flex; flex-direction: column; gap: 12px; }
.sidebar-search-form .field { margin-bottom: 0; }

.search-results { display: flex; flex-direction: column; gap: 32px; }
.result-section {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.result-section:last-child { border-bottom: none; padding-bottom: 0; }
.result-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}
.result-heading h2 {
  font-size: 1.3rem;
  margin-top: 6px;
}
.result-count {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.empty-result {
  color: var(--muted);
  background: white;
  border: 1px dashed var(--border);
  border-radius: var(--r);
  padding: 20px;
  text-align: center;
}
.search-empty-state {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 36px;
}
.search-empty-state h2 {
  font-size: 1.45rem;
  margin-top: 8px;
}
.search-empty-state p {
  color: var(--muted);
  margin-top: 10px;
}
.compact-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}
.pagination ul,
.pagination li {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination .sep,
.pagination .pagination-items-label {
  display: none;
}
.pagination a,
.pagination strong,
.pagination .on,
.pagination span {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border);
  color: var(--ink-70);
  font-weight: 600;
}
.pagination a:hover {
  border-color: var(--green-mid);
  color: var(--green);
}
.pagination strong,
.pagination .on {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

/* ===================== ARTICLE DETAIL ===================== */
.detail-layout { display: grid; grid-template-columns: 1fr 292px; gap: 40px; align-items: start; }

.article-body {
  background: white; border-radius: var(--r);
  padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.abstract-block { margin-bottom: 32px; }
.abstract-block h2 { font-size: 1.1rem; color: var(--green); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border-soft); }
.abstract-block p  { font-size: 0.95rem; color: var(--ink-70); line-height: 1.85; margin-bottom: 14px; }

.affiliation {
  padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--warm); border-left: 3px solid var(--green); margin-bottom: 10px;
}
.affiliation strong { font-size: 0.9rem; color: var(--ink); display: block; margin-bottom: 2px; }
.affiliation span   { font-size: 0.84rem; color: var(--muted); }

.meta-card {
  background: white; border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--border); position: sticky; top: 88px;
}
.meta-card > .eyebrow { margin-bottom: 16px; }

/* ===================== FOOTER ===================== */
.footer { background: var(--dark); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 32px;
}
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.42); line-height: 1.7; max-width: 28ch; margin-top: 14px; }
.footer h5 { font-family: 'Inter', sans-serif; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.38); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.58); transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.28); }

/* ===================== SPLASH (portal) ===================== */
.splash {
  min-height: 100vh; background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.splash::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.splash-glow {
  position: absolute; pointer-events: none; border-radius: 50%;
}
.splash-glow.a { top: -200px; right: -150px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(34,160,107,0.3) 0%, transparent 68%); }
.splash-glow.b { bottom: -160px; left: -150px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(202,138,4,0.18) 0%, transparent 68%); }
.splash-inner { position: relative; z-index: 1; text-align: center; padding: 40px; max-width: 640px; }
.splash-logo {
  width: 80px; height: 80px; border-radius: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
  color: var(--forest); font-weight: 900; font-size: 1.7rem;
  display: grid; place-items: center;
  margin: 0 auto 32px;
  box-shadow: 0 8px 32px rgba(202,138,4,0.45);
  font-family: 'Inter', sans-serif;
}
.splash h1 { color: white; font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 16px; }
.splash .sub { color: rgba(255,255,255,0.6); font-size: 1.1rem; line-height: 1.7; margin-bottom: 44px; }
.splash .btn-group { justify-content: center; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .search-panel { max-width: 480px; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .issue-card { grid-template-columns: 72px 1fr; }
  .issue-card .arrow-link { display: none; }
}
@media (max-width: 640px) {
  .topbar { height: 56px; }
  .nav a { padding: 6px 10px; font-size: 0.82rem; }
  .stats-inner { flex-wrap: wrap; }
  .stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(even) { border-left: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .journal-grid { grid-template-columns: 1fr; }
  .journal-card { min-height: 310px; }
  .journal-card-head { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; min-height: 100px; }
  .journal-logo-top { width: 112px; height: 100px; }
  .journal-logo-top img { max-height: 88px; }
  .article-row { grid-template-columns: 1fr; }
  .article-row .arrow-link { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .result-heading { flex-direction: column; align-items: flex-start; }
}

/* ===================== UI REFONTE ACADEMIQUE ===================== */
.site-header {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 10px 28px rgba(15,23,42,0.06);
  backdrop-filter: blur(14px);
}
.topbar { border-bottom: none; }
.brand { color: var(--ink); }
.brand-mark {
  background: linear-gradient(135deg, #1558a0 0%, #60aee0 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(21,88,160,0.18);
}
.brand-name small { color: var(--muted); opacity: 1; }
.nav a {
  color: var(--ink-70);
  border: 1px solid transparent;
}
.nav a:hover {
  color: var(--green);
  background: rgba(21,88,160,0.06);
}
.nav a.active {
  color: var(--green);
  background: #eef6ff;
  border-color: rgba(21,88,160,0.12);
}

.page-hero {
  overflow: hidden;
  isolation: isolate;
  position: relative;
  background:
    url('hero-bg3.svg') center / cover no-repeat,
    #2DF;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    radial-gradient(circle at 12px 12px, rgba(255,255,255,0.34) 1.2px, transparent 1.8px),
    linear-gradient(115deg, transparent 0 47%, rgba(255,255,255,0.13) 48% 49%, transparent 50% 100%),
    linear-gradient(25deg, transparent 0 45%, rgba(96,174,224,0.16) 46% 47%, transparent 48% 100%);
  background-size: 82px 82px, 170px 170px, 210px 210px;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(2px);
  z-index: 0;
}
.hero-inner,
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero::before {
  opacity: 0.28;
  background:
    radial-gradient(circle at 12px 12px, rgba(21,88,160,0.28) 1.15px, transparent 1.9px),
    linear-gradient(115deg, transparent 0 47%, rgba(21,88,160,0.105) 48% 49%, transparent 50% 100%),
    linear-gradient(25deg, transparent 0 45%, rgba(96,174,224,0.105) 46% 47%, transparent 48% 100%);
  background-size: 84px 84px, 174px 174px, 218px 218px;
}
.page-hero::after {
  content: none;
}

.page-hero::after {
  inset: 18px;
  border: none;
  background: transparent;
  backdrop-filter: blur(2px);
}

.page-hero h1 { color: black; }
.page-hero .lead { color: rgba(255,255,255,0.74); }
.page-hero .eyebrow { color:#f5f1e1 !important; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.62); }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.82); }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,0.35); }

/* ===================== LOGOS OFFICIELS ===================== */
.brand-mark {
  overflow: hidden;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(21,88,160,0.12);
  box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.brand-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--green);
  font-weight: 800;
  font-size: 0.82rem;
}

.page-hero-inner {
  min-height: 150px;
  padding-right: clamp(180px, 26vw, 330px);
}
.hero-revue-logo {
  position: absolute;
  right: clamp(1rem, 5vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(132px, 18vw, 240px);
  min-height: 96px;
  max-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 18px 38px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
}
.hero-revue-img {
  display: block;
  max-width: 100%;
  max-height: 118px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12));
}

@media (max-width: 820px) {
  .page-hero-inner {
    min-height: 0;
    padding-right: clamp(1rem, 5vw, 2.5rem);
    padding-bottom: 126px;
  }
  .hero-revue-logo {
    top: auto;
    bottom: 24px;
    left: clamp(1rem, 5vw, 2.5rem);
    right: auto;
    transform: none;
    width: min(220px, calc(100% - 2rem));
    min-height: 82px;
    max-height: 108px;
    padding: 12px;
  }
  .hero-revue-img {
    max-height: 84px;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-name small {
    display: none;
  }
  .page-hero-inner {
    padding-bottom: 112px;
  }
  .hero-revue-logo {
    width: 160px;
    min-height: 72px;
  }
  .hero-revue-img {
    max-height: 64px;
  }
}

.search-panel {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(18px);
}
.legacy-advanced-search { display: none; }
.formulaire_recherche form,
.formulaire_recherche {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.formulaire_recherche label { display: none; }
.formulaire_recherche input.text,
.formulaire_recherche input[type="search"],
.formulaire_recherche input[name="recherche"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: white;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.formulaire_recherche input.text:focus,
.formulaire_recherche input[type="search"]:focus,
.formulaire_recherche input[name="recherche"]:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(21,88,160,0.12);
}
.formulaire_recherche input.submit,
.formulaire_recherche button[type="submit"] {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--green);
  color: white;
  font-weight: 700;
}
.advanced-search-link {
  display: inline-flex;
  justify-content: center;
  margin-top: 12px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
}

.stats-bar + .section.white + .section,
.editorial-gradient {
  background:
    linear-gradient(90deg, #f8fafc 0%, rgba(248,250,252,0.96) 46%, rgba(14,47,85,0.08) 100%);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.stats-bar + .section.white + .section .article-row,
.editorial-gradient .article-row {
  border-color: rgba(21,88,160,0.08);
}
.direct-journal-results { margin-top: 20px; }

@media (max-width: 640px) {
  .site-header { position: sticky; }
  .topbar {
    min-height: 64px;
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}
