/* ─── La Revue des Territoires — Design System ─── */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: #ffffff;
    --bg-tertiary: #f1f5f9;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #4f46e5;
    --accent-light: #6366f1;
    --accent-glow: rgba(79, 70, 229, 0.12);
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px var(--border-color);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--border-color);
    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── Header ─── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}
.header-inner {
    display: flex; align-items: center; gap: 24px;
    height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.logo-icon { font-size: 1.4rem; color: var(--accent); }
.logo-text { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-accent { color: var(--accent-light); }
.nav-main { display: flex; gap: 8px; margin-left: auto; }
.nav-link {
    padding: 6px 14px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    transition: all var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.nav-search { margin-left: 8px; }
.search-form { display: flex; align-items: center; gap: 0; }
.search-input {
    background: var(--bg-tertiary); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 7px 14px; color: var(--text-primary); font-size: 0.85rem;
    width: 180px; outline: none; font-family: var(--font);
    transition: all var(--transition);
}
.search-input:focus { border-color: var(--accent); width: 240px; }
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
    background: var(--accent); border: none; padding: 7px 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: white; cursor: pointer; display: flex; align-items: center;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-secondary); margin: 5px 0; transition: all var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 768px) {
    .nav-main { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-secondary); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border-color); }
    .nav-main.open { display: flex; }
    .nav-toggle { display: block; }
    .nav-search { display: none; }
}

/* ─── Hero Landing ─── */
.hero-landing { padding: 80px 0; min-height: calc(100vh - 64px); display: flex; align-items: center; background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-content { padding: 0; }
.hero-image { position: relative; }
.hero-image img { width: 100%; height: auto; border-radius: var(--radius-xl); filter: drop-shadow(0 20px 30px rgba(15,23,42,0.06)); transform: scale(1.05); }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
    background: var(--accent-glow); border: 1px solid rgba(99,102,241,0.3);
    border-radius: 99px; font-size: 0.75rem; font-weight: 600; color: var(--accent-light);
    letter-spacing: 0.04em; margin-bottom: 24px; text-transform: uppercase;
}
.hero-content h1 { font-size: 3.2rem; font-weight: 900; letter-spacing: -0.035em; line-height: 1.12; margin-bottom: 20px; max-width: 700px; }
.gradient { background: linear-gradient(135deg, var(--accent-light), #a78bfa, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-lead { font-size: 1.15rem; color: var(--text-secondary); max-width: 580px; line-height: 1.75; }
.hero-lead strong { color: var(--text-primary); }
.hero-search { margin-top: 32px; display: flex; max-width: 520px; }
.hero-search input {
    flex: 1; padding: 16px 22px; background: rgba(255, 255, 255, 0.95); border: 1px solid var(--border-color);
    border-radius: var(--radius-md) 0 0 var(--radius-md); color: var(--text-primary); font-size: 1rem;
    outline: none; font-family: var(--font); backdrop-filter: blur(8px);
}
.hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button {
    padding: 16px 28px; background: var(--accent); border: none; color: white;
    border-radius: 0 var(--radius-md) var(--radius-md) 0; font-weight: 700; cursor: pointer;
    font-size: 0.95rem; font-family: var(--font); transition: all var(--transition);
}
.hero-search button:hover { background: var(--accent-light); transform: translateX(2px); }
.hero-stats-row {
    display: flex; align-items: center; gap: 24px; margin-top: 48px;
    padding-top: 32px; border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.hero-stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(15, 23, 42, 0.08); }

/* ─── Section Shared ─── */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-tag {
    display: inline-block; padding: 4px 14px; border-radius: 99px; font-size: 0.72rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    background: var(--accent-glow); color: var(--accent-light); border: 1px solid rgba(99,102,241,0.2);
    margin-bottom: 16px;
}
.section-header h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 1rem; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
    background: var(--accent); color: white; border-radius: var(--radius-md);
    font-weight: 700; font-size: 0.9rem; transition: all var(--transition);
    border: none; cursor: pointer; font-family: var(--font); text-decoration: none;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); color: white; }

/* ─── Pillars ─── */
.section-pillars { padding: 80px 0; background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl);
    padding: 36px 28px; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.pillar-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--pillar-color, var(--accent)), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.pillar-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-card:hover::before { opacity: 1; }
.pillar-featured { border-color: rgba(99,102,241,0.2); background: linear-gradient(180deg, rgba(99,102,241,0.05) 0%, var(--bg-card) 100%); }
.pillar-icon {
    width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, 0.04); color: var(--pillar-color, var(--accent)); margin-bottom: 20px;
}
.pillar-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.pillar-card > p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.pillar-card > p strong { color: var(--text-primary); }
.pillar-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pillar-features li {
    font-size: 0.8rem; color: var(--text-muted); padding-left: 20px;
    position: relative;
}
.pillar-features li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ─── Data Cross ─── */
.section-datacross { padding: 80px 0; }
.datacross-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.datacross-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.datacross-image img { width: 100%; display: block; }
.datacross-content .section-tag { margin-bottom: 16px; }
.datacross-content h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.datacross-content > p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; }
.datacross-content > p strong { color: var(--text-primary); }
.datacross-sources { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.source-item { display: flex; align-items: flex-start; gap: 14px; }
.source-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.source-item strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.source-item span { font-size: 0.8rem; color: var(--text-muted); }
.datacross-note { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* ─── Villes Section ─── */
.section-villes { padding: 80px 0; background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

/* ─── Compare Section ─── */
.section-compare { padding: 80px 0; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.compare-col h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.compare-badge { font-size: 1.2rem; }
.compare-list { display: flex; flex-direction: column; gap: 8px; }
.compare-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); transition: all var(--transition);
    text-decoration: none; color: var(--text-primary);
}
.compare-item:hover { border-color: var(--accent); background: var(--bg-card-hover); color: var(--text-primary); }
.compare-rank { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; min-width: 24px; }
.compare-info { flex: 1; display: flex; flex-direction: column; }
.compare-name { font-weight: 600; font-size: 0.9rem; }
.compare-dept { font-size: 0.75rem; color: var(--text-muted); }
.compare-more {
    display: block; text-align: center; margin-top: 16px; padding: 10px;
    font-size: 0.85rem; font-weight: 600; color: var(--accent-light);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    transition: all var(--transition);
}
.compare-more:hover { border-color: var(--accent); background: var(--accent-glow); }

/* ─── Ecosystem ─── */
.section-ecosystem { padding: 80px 0; background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.eco-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl);
    padding: 32px; transition: all 0.3s ease; text-decoration: none; color: var(--text-primary);
    display: flex; flex-direction: column;
}
.eco-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text-primary); }
.eco-icon { font-size: 2rem; margin-bottom: 16px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.04); border-radius: var(--radius-md); }
.eco-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.eco-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.eco-link { font-size: 0.8rem; font-weight: 600; color: var(--accent-light); margin-top: 16px; }

/* ─── SEO Section ─── */
.section-seo { padding: 60px 0; }

/* ─── Methodology Steps ─── */
.section-method { padding: 80px 0; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.method-step {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl);
    padding: 32px 24px; position: relative; transition: all 0.3s ease;
}
.method-step:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.method-number {
    font-size: 2.4rem; font-weight: 900; color: rgba(99,102,241,0.2);
    letter-spacing: -0.04em; margin-bottom: 12px; line-height: 1;
}
.method-step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.method-step p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.method-step p strong { color: var(--text-primary); }

/* ─── Score Legend ─── */
.section-score-explain { padding: 80px 0; background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.score-legend { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.score-legend-item {
    display: flex; align-items: flex-start; gap: 20px; padding: 16px 20px;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md);
}
.score-legend-item .commune-score { min-width: 60px; font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; }
.score-legend-item strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.score-legend-item p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ─── FAQ ─── */
.section-faq { padding: 80px 0; }
.faq-list { margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md);
    transition: all var(--transition); overflow: hidden;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
    padding: 18px 24px; font-weight: 600; font-size: 0.95rem; cursor: pointer;
    list-style: none; display: flex; align-items: center; justify-content: space-between;
    transition: background var(--transition);
}
.faq-item summary:hover { background: var(--bg-card-hover); }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--text-muted); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; color: var(--accent-light); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 24px 18px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ─── Page Header ─── */
.page-header { padding: 40px 0 32px; border-bottom: 1px solid var(--border-color); }
.page-header h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; }
.page-subtitle { color: var(--text-secondary); margin-top: 8px; font-size: 1rem; }

/* ─── Breadcrumb ─── */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb span:last-child { color: var(--text-secondary); }

/* ─── Stats Cards ─── */
.stats-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 32px 0; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 20px; text-align: center; transition: all var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-card .stat-icon { margin-bottom: 8px; color: var(--text-muted); display: flex; justify-content: center; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.info .stat-value { color: var(--info); }
.stat-card.accent .stat-value { color: var(--accent-light); }

/* ─── Score Gauge ─── */
.score-gauge-container { display: flex; justify-content: center; padding: 24px 0; }
.score-gauge { position: relative; width: 180px; height: 180px; }
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { stroke: var(--bg-tertiary); }
.gauge-fill { transition: stroke-dashoffset 1.5s ease-out; }
.gauge-number { font-size: 2.8rem; font-weight: 900; fill: var(--text-primary); transform: rotate(90deg); transform-origin: center; }
.gauge-label { font-size: 0.85rem; fill: var(--text-muted); transform: rotate(90deg); transform-origin: center; }
.gauge-status { font-size: 0.9rem; font-weight: 600; transform: rotate(90deg); transform-origin: center; }

/* ─── Section ─── */
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--border-color); }
.section-title {
    font-size: 1.3rem; font-weight: 700; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em;
}
.section-title svg { color: var(--accent-light); flex-shrink: 0; }

/* ─── Cards Grid ─── */
.card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
    transition: all var(--transition);
}
.card:hover { border-color: var(--border-hover); }
.card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

/* ─── Charts ─── */
.chart-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 24px;
}
.chart-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; color: var(--text-secondary); }
.chart-canvas-wrap { position: relative; height: 250px; }
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 24px 0; }

/* ─── Communes list ─── */
.communes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.commune-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); transition: all var(--transition); text-decoration: none; color: var(--text-primary);
}
.commune-item:hover { border-color: var(--accent); background: var(--bg-card-hover); transform: translateX(4px); color: var(--text-primary); }
.commune-rank { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; min-width: 28px; text-align: center; }
.commune-name { font-weight: 600; font-size: 0.95rem; flex: 1; }
.commune-pop { font-size: 0.8rem; color: var(--text-muted); }
.commune-score {
    font-weight: 700; font-size: 0.85rem; padding: 4px 10px;
    border-radius: var(--radius-sm); min-width: 44px; text-align: center;
}
.commune-score.excellent { background: rgba(16,185,129,0.15); color: var(--success); }
.commune-score.bon { background: rgba(52,211,153,0.15); color: #34d399; }
.commune-score.moyen { background: rgba(245,158,11,0.15); color: var(--warning); }
.commune-score.faible { background: rgba(249,115,22,0.15); color: #f97316; }
.commune-score.danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.commune-score.na { background: var(--bg-tertiary); color: var(--text-muted); }

/* ─── Table ─── */
.table-container { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th { text-align: left; padding: 12px 16px; color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border-color); background: var(--bg-secondary); }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
tbody tr:hover { background: var(--bg-card-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ─── Badge ─── */
.badge { display: inline-flex; padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info { background: rgba(99,102,241,0.15); color: var(--accent-light); }

/* ─── SEO Content Block ─── */
.seo-content {
    margin-top: 48px; padding: 32px; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--radius-lg);
}
.seo-content h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.seo-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; margin-bottom: 12px; }
.seo-content a { color: var(--accent-light); }

/* ─── Cross-links ─── */
.cross-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 24px 0; }
.cross-link {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); transition: all var(--transition);
    text-decoration: none; color: var(--text-primary);
}
.cross-link:hover { border-color: var(--accent); background: var(--bg-card-hover); color: var(--text-primary); }
.cross-link svg { color: var(--accent-light); flex-shrink: 0; }
.cross-link-text { display: flex; flex-direction: column; gap: 2px; }
.cross-link-title { font-weight: 600; font-size: 0.9rem; }
.cross-link-sub { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Article (legacy) ─── */
.article-content { max-width: 800px; margin: 0 auto; padding: 48px 0; }
.article-content h1 { font-size: 2rem; font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.article-meta { display: flex; gap: 16px; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.article-body { font-size: 1.05rem; line-height: 1.85; color: var(--text-secondary); }
.article-body p { margin-bottom: 20px; }
.article-body strong { color: var(--text-primary); }
.article-body h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin: 36px 0 16px; }

/* ─── Footer ─── */
.site-footer { border-top: 1px solid var(--border-color); padding: 60px 0 40px; margin-top: 60px; background: var(--bg-secondary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; line-height: 1.6; }
.footer-issn { color: var(--text-muted); font-size: 0.8rem; margin-top: 8px; font-style: italic; }
.footer-links .footer-heading { display: block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; color: var(--text-secondary); }
.footer-links a { display: block; color: var(--text-muted); font-size: 0.85rem; padding: 4px 0; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-image { order: -1; }
    .hero-image img { transform: scale(1); max-height: 300px; object-fit: cover; }
    .hero-landing { min-height: auto; padding: 60px 0; }
    .hero-content h1 { font-size: 2rem; }
    .hero-search { max-width: 100%; }
    .hero-search form { flex-direction: column; gap: 12px; }
    .hero-search input { border-radius: var(--radius-md); padding: 14px 16px; font-size: 0.95rem; }
    .hero-search button { border-radius: var(--radius-md); padding: 14px 20px; width: 100%; }
    .hero-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--border-color); padding-top: 24px; margin-top: 32px; }
    .hero-stat-divider { display: none; }
    .stats-hero { grid-template-columns: repeat(2, 1fr); }
    .communes-list { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 1.4rem; }
    .pillars-grid { grid-template-columns: 1fr; }
    .datacross-layout { grid-template-columns: 1fr; gap: 32px; }
    .compare-grid { grid-template-columns: 1fr; }
    .eco-grid { grid-template-columns: 1fr; }
    .section-pillars, .section-datacross, .section-villes, .section-compare, .section-ecosystem, .section-method, .section-score-explain, .section-faq { padding: 48px 0; }
    .section-header h2 { font-size: 1.5rem; }
    .method-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Animations ─── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeIn 0.5s ease forwards; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }

/* ─── 404 ─── */
.page-404 { text-align: center; padding: 100px 20px; }
.page-404 h1 { font-size: 4rem; font-weight: 900; color: var(--accent); }
.page-404 p { color: var(--text-secondary); margin-top: 12px; }
.page-404 a { display: inline-block; margin-top: 24px; padding: 10px 24px; background: var(--accent); color: white; border-radius: var(--radius-md); font-weight: 600; }
