/* ============================================
   FOOD SOVEREIGNTY — PEDAGOGICAL PLATFORM
   education.foodsov.arkoconsulting.org
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #FDFBF7;
  --bg-section: #F5F0E8;
  --bg-card: #FFFFFF;
  --bg-dark: #2D2A24;
  --text: #2D2A24;
  --text-muted: #6B6560;
  --text-light: #9B9590;
  --accent: #B85C2F;
  --accent-light: #D4845A;
  --accent-glow: rgba(184, 92, 47, 0.08);
  --green: #4A7C59;
  --green-light: #6B9B7A;
  --green-pale: rgba(74, 124, 89, 0.08);
  --gold: #C49A3C;
  --gold-pale: rgba(196, 154, 60, 0.08);
  --brown-dark: #5C4033;
  --highlight: #E8DCC8;
  --border: rgba(45, 42, 36, 0.08);
  --shadow-sm: 0 1px 3px rgba(45, 42, 36, 0.06);
  --shadow-md: 0 4px 16px rgba(45, 42, 36, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 42, 36, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Font --- */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--brown-dark);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--brown-dark);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-light);
}

/* --- Progress Bar --- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 1001;
  transition: width 0.1s linear;
  width: 0%;
}

/* --- Password Gate --- */
.password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.password-gate.hidden {
  opacity: 0;
  pointer-events: none;
}

.gate-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
}

.gate-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--accent-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.gate-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.gate-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.gate-input-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.gate-input-wrap input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}

.gate-input-wrap input:focus {
  border-color: var(--accent);
}

.gate-input-wrap input.error {
  border-color: #c0392b;
  animation: shake 0.4s ease;
}

.gate-btn {
  width: 100%;
  padding: 0.875rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gate-btn:hover {
  background: var(--accent-light);
}

.gate-btn:active {
  transform: scale(0.98);
}

.gate-error-msg {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  display: none;
}

.gate-error-msg.visible {
  display: block;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

.nav.visible {
  transform: translateY(0);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-hamburger svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

/* --- Main Content --- */
.main-content {
  opacity: 0;
  transition: opacity 0.5s ease 0.2s;
}

.main-content.visible {
  opacity: 1;
}

/* --- Sections --- */
.section {
  padding: 5rem 2rem;
}

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label svg {
  width: 16px;
  height: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin-bottom: 3rem;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--green-pale) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-glow);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 130px;
}

.hero-stat .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 2s ease infinite;
}

.hero-scroll-hint svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Objectives Grid --- */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.objective-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.objective-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.objective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.objective-card:nth-child(1)::before,
.objective-card:nth-child(2)::before { background: var(--accent); }
.objective-card:nth-child(3)::before,
.objective-card:nth-child(4)::before { background: var(--green); }
.objective-card:nth-child(5)::before,
.objective-card:nth-child(6)::before { background: var(--gold); }

.objective-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.objective-card:nth-child(1) .objective-number,
.objective-card:nth-child(2) .objective-number {
  background: var(--accent-glow);
  color: var(--accent);
}

.objective-card:nth-child(3) .objective-number,
.objective-card:nth-child(4) .objective-number {
  background: var(--green-pale);
  color: var(--green);
}

.objective-card:nth-child(5) .objective-number,
.objective-card:nth-child(6) .objective-number {
  background: var(--gold-pale);
  color: var(--gold);
}

.objective-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.objective-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Programme Timeline --- */
.programme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.day-column h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--brown-dark);
}

.day-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: block;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
  padding-left: 1.5rem;
  cursor: pointer;
  transition: opacity var(--transition);
}

.timeline-item:hover {
  opacity: 0.85;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg);
  transition: background var(--transition);
}

.timeline-item:hover::before,
.timeline-item.active::before {
  background: var(--accent);
}

.timeline-item.type-exercise::before {
  border-color: var(--green);
}

.timeline-item.type-exercise:hover::before,
.timeline-item.type-exercise.active::before {
  background: var(--green);
}

.timeline-item.type-case::before {
  border-color: var(--gold);
}

.timeline-item.type-case:hover::before,
.timeline-item.type-case.active::before {
  background: var(--gold);
}

.timeline-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.timeline-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.tag-lecture {
  background: var(--accent-glow);
  color: var(--accent);
}

.tag-exercise {
  background: var(--green-pale);
  color: var(--green);
}

.tag-case {
  background: var(--gold-pale);
  color: var(--gold);
}

.tag-break {
  background: var(--bg-section);
  color: var(--text-light);
}

/* --- Accordion --- */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.accordion:hover {
  box-shadow: var(--shadow-md);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  gap: 1rem;
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.accordion-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accordion-icon svg {
  width: 20px;
  height: 20px;
}

.accordion-icon.icon-accent {
  background: var(--accent-glow);
  color: var(--accent);
}

.accordion-icon.icon-green {
  background: var(--green-pale);
  color: var(--green);
}

.accordion-icon.icon-gold {
  background: var(--gold-pale);
  color: var(--gold);
}

.accordion-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.accordion-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.accordion-content p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.accordion-content li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text);
  line-height: 1.6;
}

.concept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.concept-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-section);
  color: var(--text-muted);
}

.thinker-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.thinker-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.thinker-info {
  font-size: 0.85rem;
  line-height: 1.5;
}

.thinker-name {
  font-weight: 600;
  color: var(--text);
}

.thinker-role {
  color: var(--text-muted);
}

.quote-block {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
}

.quote-block cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --- Tools Section --- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tool-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon svg {
  width: 24px;
  height: 24px;
}

.tool-icon.icon-accent {
  background: var(--accent-glow);
  color: var(--accent);
}

.tool-icon.icon-green {
  background: var(--green-pale);
  color: var(--green);
}

.tool-icon.icon-gold {
  background: var(--gold-pale);
  color: var(--gold);
}

.tool-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.tool-stat {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 0.75rem;
}

/* --- Case Study Section --- */
.case-study-section {
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--highlight) 100%);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.case-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.case-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.case-card h4 svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.case-card ul {
  padding-left: 1.25rem;
  margin: 0;
}

.case-card li {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.case-params {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.case-param {
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.case-param .param-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  display: block;
}

.case-param .param-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Bibliography --- */
.biblio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.biblio-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.biblio-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.biblio-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  height: fit-content;
}

.biblio-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.biblio-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.biblio-publisher {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

.biblio-video {
  border: 2px solid var(--accent-glow);
}

.biblio-video .biblio-year {
  background: var(--green-pale);
  color: var(--green);
}

/* --- Downloads --- */
.download-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.download-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.download-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.download-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.download-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.download-card.hidden {
  display: none;
}

.download-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.download-icon.icon-pdf {
  background: #fde8e8;
  color: #c0392b;
}

.download-icon.icon-pptx {
  background: #fef3e2;
  color: #d4740a;
}

.download-icon.icon-docx {
  background: #e8f0fe;
  color: #2b6cb0;
}

.download-info {
  flex: 1;
}

.download-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.download-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.download-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.download-size {
  font-size: 0.75rem;
  color: var(--text-light);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}

.download-btn:hover {
  background: var(--accent-light);
  color: white;
}

.download-btn svg {
  width: 12px;
  height: 12px;
}

.size-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-name {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}

.footer-org {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xs);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.footer-logout:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .objectives-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .programme-grid {
    gap: 2rem;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 1.25rem;
  }

  .hero {
    padding: 4rem 1.25rem;
    min-height: 90vh;
  }

  .hero-stats {
    gap: 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
  }

  .hero-stat {
    min-width: unset;
    padding: 1rem;
  }

  .hero-stat:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .hero-stat .stat-number {
    font-size: 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-hamburger {
    display: block;
  }

  .objectives-grid {
    grid-template-columns: 1fr;
  }

  .programme-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .biblio-grid {
    grid-template-columns: 1fr;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .case-params {
    gap: 1rem;
  }

  .case-param {
    flex: 1;
    min-width: 120px;
  }

  .download-tabs {
    gap: 0.35rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .download-tab {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* --- Print --- */
@media print {
  .password-gate,
  .nav,
  .progress-bar,
  .back-to-top,
  .download-btn,
  .hero-scroll-hint,
  .footer-logout {
    display: none !important;
  }

  .section {
    padding: 2rem 0;
    break-inside: avoid;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  .accordion-body {
    max-height: none !important;
    overflow: visible !important;
  }

  .accordion-content {
    display: block !important;
  }
}
