@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=DM+Serif+Display&family=JetBrains+Mono:wght@400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: hsl(210, 20%, 98%);
  --bg-alt: hsl(210, 15%, 95%);
  --fg: hsl(215, 25%, 20%);
  --card: hsl(0, 0%, 100%);
  --primary: hsl(215, 40%, 50%);
  --primary-light: hsl(215, 40%, 94%);
  --primary-fg: hsl(0, 0%, 100%);
  --secondary: hsl(170, 35%, 48%);
  --secondary-light: hsl(170, 35%, 92%);
  --muted: hsl(215, 10%, 58%);
  --muted-fg: hsl(215, 12%, 42%);
  --border: hsl(215, 12%, 90%);
  --accent-red: hsl(0, 55%, 58%);
  --accent-blue: hsl(200, 55%, 52%);
  --accent-green: hsl(155, 40%, 48%);
  --accent-orange: hsl(30, 60%, 55%);
  --accent-purple: hsl(260, 40%, 58%);
  --accent-teal: hsl(175, 40%, 45%);
  --shadow: 0 2px 12px hsla(215, 20%, 10%, 0.05);
  --shadow-hover: 0 6px 20px hsla(215, 20%, 10%, 0.08);
  --radius: 14px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  color: var(--fg);
}

code, .mono {
  font-family: 'JetBrains Mono', monospace;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsla(210, 20%, 98%, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px hsla(220, 25%, 10%, 0.04);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.navbar-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-weight: 700;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
}
.navbar-brand span { color: var(--primary); }
.navbar-links {
  display: flex;
  gap: 28px;
}
.navbar-links button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}
.navbar-links button:hover { color: var(--primary); }

@media (max-width: 768px) {
  .navbar-links { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(215, 35%, 35%) 0%, hsl(200, 30%, 45%) 100%);
}
.hero.hero-fullscreen {
  min-height: 100vh;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsla(215, 30%, 8%, 0.35) 0%, hsla(215, 30%, 8%, 0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
}
.hero-course {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.72);
  margin-bottom: 26px;
}
.hero-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.7);
  margin-bottom: 20px;
}
.hero-title-unified {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 22px;
  color: white;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: white;
}
.text-highlight {
  color: hsl(170, 50%, 65%);
}
.hero-desc {
  font-size: 22px;
  max-width: 640px;
  color: hsla(0,0%,100%,0.55);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Nav pill buttons */
.hero-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: hsla(0, 0%, 100%, 0.08);
  border: 1px solid hsla(0, 0%, 100%, 0.12);
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.nav-pill:hover {
  background: hsla(0, 0%, 100%, 0.15);
  color: hsla(0, 0%, 100%, 0.9);
  border-color: hsla(0, 0%, 100%, 0.25);
}
.nav-pill svg {
  opacity: 0.7;
}

/* Team badges */
.hero-team-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.team-badge {
  padding: 6px 16px;
  border-radius: 999px;
  background: hsla(0, 0%, 100%, 0.1);
  border: 1px solid hsla(0, 0%, 100%, 0.15);
  color: hsla(0, 0%, 100%, 0.75);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.hero-authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: hsla(0, 0%, 100%, 0.6);
}
.hero-authors span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(170, 50%, 65%);
  display: inline-block;
}

/* ===== Section Commons ===== */
section {
  padding: 80px 0;
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label .picto {
  font-size: 18px;
}
.section-title {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--fg);
}
.section-desc {
  font-size: 16px;
  color: var(--muted-fg);
  line-height: 1.8;
  max-width: 650px;
}

.bg-alt {
  background: var(--bg-alt);
}

/* ===== Pictogram Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.3s, transform 0.2s;
  box-shadow: var(--shadow);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.card-icon.safety { background: hsl(0, 65%, 94%); }
.card-icon.transport { background: hsl(200, 65%, 92%); }
.card-icon.education { background: hsl(140, 50%, 92%); }
.card-icon.green { background: hsl(85, 50%, 90%); }

.card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  color: var(--muted-fg);
  line-height: 1.6;
  margin-bottom: 20px;
}
.card-stat {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.card-stat .number {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.card-stat .label {
  font-size: 12px;
  color: var(--muted);
}

/* ===== Methodology Steps ===== */
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.step-content {
  flex: 1;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.step-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-content p {
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 650px;
  font-size: 14px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

@media (max-width: 600px) {
  .step { flex-direction: column; gap: 10px; }
}

/* ===== Data Sources ===== */
.source-card ul {
  list-style: none;
  padding: 0;
}
.source-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-fg);
  margin-bottom: 6px;
}
.source-card li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}
.source-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}

/* ===== Analysis Grid ===== */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .analysis-grid {
    grid-template-columns: 1fr;
  }
}
.analysis-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.3s, transform 0.2s, border-color 0.3s;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.analysis-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--primary);
}
.analysis-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.analysis-icon.c1 { background: hsl(200, 65%, 92%); }
.analysis-icon.c2 { background: hsl(140, 50%, 92%); }
.analysis-icon.c3 { background: hsl(30, 70%, 92%); }
.analysis-icon.c4 { background: hsl(270, 45%, 92%); }
.analysis-icon.c5 { background: hsl(0, 60%, 93%); }
.analysis-icon.c6 { background: hsl(175, 45%, 90%); }

.analysis-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.analysis-info p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.analysis-arrow {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.analysis-arrow::after {
  content: '→';
  transition: transform 0.2s;
}
.analysis-card:hover .analysis-arrow::after {
  transform: translateX(4px);
}

/* ===== Charts Section ===== */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.chart-card.full-width {
  grid-column: 1 / -1;
}
.chart-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.chart-card .chart-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.chart-container {
  position: relative;
  width: 100%;
  height: 280px;
}
.chart-container.radar-container {
  max-width: 450px;
  margin: 0 auto;
  height: 320px;
}
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 13px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .charts-grid { grid-template-columns: 1fr; }
}

/* ===== Team Section ===== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.team-member {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.team-member .name {
  font-weight: 600;
  font-size: 15px;
}
.team-member .role {
  font-size: 13px;
  color: var(--muted);
}

.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.criteria-item .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}
.criteria-item p {
  font-size: 14px;
  color: var(--muted-fg);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== Footer ===== */
.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 32px;
}

/* ===== Sub-page styles ===== */
.sub-page {
  padding-top: 80px;
}
.sub-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.sub-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 16px;
  cursor: pointer;
  text-decoration: none;
}
.sub-hero .back-link:hover {
  text-decoration: underline;
}
.sub-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 8px;
}
.sub-hero p {
  color: var(--muted-fg);
  font-size: 15px;
  max-width: 600px;
}
.content-placeholder {
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.content-placeholder .placeholder-icon {
  font-size: 48px;
  opacity: 0.5;
}

.final-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.final-line p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--fg-muted);
  margin: 0;
  flex: 1;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 14px;
  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 500;

  color: var(--fg);
  background: rgba(0, 0, 0, 0.04);

  text-decoration: none;

  transition: all 0.25s ease;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.back-btn:active {
  transform: translateY(0);
}
