/* ===== BASE & VARIABLES ===== */
:root {
  --green-dark: #2E7D32;
  --green-main: #4CAF50;
  --green-light: #81C784;
  --green-pale: #E8F5E9;
  --brown-dark: #3E2723;
  --brown-main: #5D4037;
  --brown-light: #8D6E63;
  --brown-pale: #EFEBE9;
  --earth: #A0724A;
  --orange: #FF9800;
  --red: #E53935;
  --yellow: #FDD835;
  --blue: #42A5F5;
  --bg: #FAFFF5;
  --text: #2C2C2C;
  --text-light: #666;
  --card-bg: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 16px;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 800; }

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--brown-dark);
}

.section-desc {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 30%, #388E3C 60%, #4CAF50 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.leaf {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.05);
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
}
.leaf-1 { top: 10%; left: 10%; animation: floatLeaf 8s ease-in-out infinite; }
.leaf-2 { top: 60%; right: 15%; width: 40px; height: 40px; animation: floatLeaf 6s ease-in-out infinite 1s; }
.leaf-3 { bottom: 20%; left: 30%; width: 50px; height: 50px; animation: floatLeaf 10s ease-in-out infinite 2s; }

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}
.p1 { top: 20%; left: 40%; animation: floatUp 5s ease-in-out infinite; }
.p2 { top: 50%; left: 70%; animation: floatUp 7s ease-in-out infinite 1.5s; }
.p3 { top: 70%; left: 20%; animation: floatUp 4s ease-in-out infinite 0.5s; }
.p4 { top: 30%; left: 80%; animation: floatUp 6s ease-in-out infinite 2s; }
.p5 { top: 80%; left: 55%; animation: floatUp 8s ease-in-out infinite 3s; }

@keyframes floatLeaf {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-20px); }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
  50% { transform: translateY(-30px) scale(1.5); opacity: 0.3; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 700px;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.worm-hero {
  width: 120px;
  height: 120px;
  animation: wormBounce 2s ease-in-out infinite;
}

@keyframes wormBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.worm-svg { width: 100%; height: 100%; }

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 600;
}

.hero-desc {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: white;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
  background: var(--green-pale);
}

/* Hero badge */
.hero-badge {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-size: 0.9rem;
  color: white;
  animation: fadeInUp 1s ease 0.5s both;
}
.badge-icon { font-size: 1.2rem; }

/* ===== DASHBOARD ===== */
.dashboard-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

/* Worm Card */
.worm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.worm-display {
  width: 240px;
  height: 240px;
  position: relative;
}

.worm-svg-large { width: 100%; height: 100%; }

.worm-body-main {
  animation: wormWiggle 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes wormWiggle {
  0%, 100% { d: path("M50,180 C50,180 55,100 90,70 C125,40 150,55 160,95 C170,135 180,170 180,185"); }
  50% { d: path("M50,180 C50,180 60,105 92,75 C124,45 148,58 158,98 C168,138 175,168 178,183"); }
}

.sparkle-anim {
  animation: sparkle 1.5s ease-in-out infinite;
}
.sparkle-anim.s2 { animation-delay: 0.5s; }
.sparkle-anim.s3 { animation-delay: 1s; }

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.worm-status {
  width: 100%;
  margin-top: 1rem;
}

.status-label {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--brown-dark);
}

.health-bar-container {
  width: 100%;
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.health-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green-main));
  border-radius: 6px;
  transition: width 0.8s ease, background 0.5s;
}

.health-text {
  font-size: 0.85rem;
  color: var(--text-light);
}

.worm-message {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--green-pale);
  border-radius: 12px;
  position: relative;
  font-size: 0.95rem;
}

.worm-message::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--green-pale);
}

/* Input Card */
.input-card h3 {
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--brown-main);
}

.input-icon { font-size: 1.1rem; }

.input-group input[type="range"] {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--green-main), var(--orange), var(--red));
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: white;
  border: 3px solid var(--green-main);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.slider-value {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-top: 0.3rem;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
}

.input-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s;
}
.input-group select:focus {
  outline: none;
  border-color: var(--green-main);
}

.analyze-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(76,175,80,0.3);
}

.analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76,175,80,0.4);
}

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

.analyze-btn.disabled-btn {
  background: linear-gradient(135deg, #9E9E9E, #757575);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.85;
}
.analyze-btn.disabled-btn:hover {
  transform: none;
  box-shadow: none;
}

.btn-notice {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

.btn-icon { font-size: 1.2rem; }

/* ===== RESULTS ===== */
.results-panel {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-panel h3 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.result-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
  border-top: 4px solid #e0e0e0;
}

.result-card:hover { transform: translateY(-3px); }

.result-card.good { border-top-color: var(--green-main); }
.result-card.warning { border-top-color: var(--orange); }
.result-card.bad { border-top-color: var(--red); }

.result-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.result-card h4 {
  color: var(--brown-main);
  margin-bottom: 0.5rem;
}

.result-score {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.result-score-big { font-size: 2rem; }

.result-advice {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.result-overall {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--green-pale), #FFF);
}

/* Score colors */
.score-excellent { color: var(--green-dark); }
.score-good { color: var(--green-main); }
.score-warning { color: var(--orange); }
.score-bad { color: var(--red); }

/* ===== DATA COLLECTION ===== */
.collect-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg), var(--brown-pale));
}

/* Frequency guide */
.frequency-guide {
  background: white;
  border-radius: 1.2rem;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 2px solid var(--green-light);
}

.frequency-guide h3 {
  text-align: center;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.freq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.freq-card {
  display: flex;
  gap: 0.8rem;
  padding: 1.2rem;
  border-radius: 1rem;
  background: var(--bg);
  border-left: 4px solid;
  align-items: flex-start;
}

.freq-hot { border-color: #E53935; }
.freq-cool { border-color: #FB8C00; }
.freq-mature { border-color: var(--green-main); }

.freq-icon { font-size: 2rem; flex-shrink: 0; margin-top: 0.2rem; }

.freq-card strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.freq-period {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.freq-rate {
  display: inline-block;
  background: var(--green-main);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  margin-bottom: 0.4rem;
}

.freq-hot .freq-rate { background: #E53935; }
.freq-cool .freq-rate { background: #FB8C00; }
.freq-mature .freq-rate { background: var(--green-main); }

.freq-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

.freq-tips {
  background: #FFF9E6;
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid #FFE082;
}

.freq-tips p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.collect-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.2rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-2px); }

.stat-flag { font-size: 1.8rem; }
.stat-count { font-size: 2rem; font-weight: 800; color: var(--green-dark); }
.stat-label { font-size: 0.85rem; color: var(--text-light); }

.stat-qc { border-left: 4px solid #E53935; }
.stat-tn { border-left: 4px solid #E53935; }
.stat-total { border-left: 4px solid var(--green-main); }

.collect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Form card */
.collect-form-card h3 {
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

.collect-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.collect-form-card .input-group { margin-bottom: 0.8rem; }

.collect-form-card input[type="text"],
.collect-form-card input[type="number"],
.collect-form-card textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.collect-form-card input:focus,
.collect-form-card textarea:focus {
  outline: none;
  border-color: var(--green-main);
}

.collect-form-card textarea { resize: vertical; }

.collect-btn {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brown-light), var(--brown-dark));
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(93,64,55,0.3);
  margin-top: 0.5rem;
}
.collect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93,64,55,0.4);
}
.collect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.collect-feedback {
  margin-top: 0.8rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}
.collect-feedback.success { background: #E8F5E9; color: #2E7D32; }
.collect-feedback.error { background: #FFEBEE; color: #C62828; }

/* Table card */
.collect-table-card { padding: 1.5rem; }

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.table-header h3 {
  color: var(--brown-dark);
  font-size: 1.2rem;
}

.table-filters {
  display: flex;
  gap: 0.4rem;
}

.filter-btn {
  padding: 0.4rem 0.9rem;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  background: white;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover { border-color: var(--green-main); }
.filter-btn.active {
  background: var(--green-main);
  color: white;
  border-color: var(--green-main);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

#readingsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

#readingsTable th {
  background: var(--green-pale);
  padding: 0.6rem 0.5rem;
  text-align: left;
  font-weight: 700;
  color: var(--brown-dark);
  white-space: nowrap;
  border-bottom: 2px solid #e0e0e0;
}

#readingsTable td {
  padding: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

#readingsTable tbody tr:hover { background: #FAFFF5; }

.table-empty {
  text-align: center;
  color: var(--text-light);
  padding: 2rem !important;
  font-style: italic;
}

.table-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
  .collect-grid { grid-template-columns: 1fr; }
  .collect-row { grid-template-columns: 1fr; }
  .collect-stats { flex-direction: column; align-items: center; }
  .freq-grid { grid-template-columns: 1fr; }
  .frequency-guide { padding: 1.2rem; }
}

/* ===== HOW IT WORKS ===== */
.how-section {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--green-pale), var(--bg));
}

.how-section h2 { margin-bottom: 3rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--green-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.step-icon {
  font-size: 3rem;
  margin: 1.5rem 0 1rem;
}

.step-card h3 {
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== TUTORIALS ===== */
.tutos-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.tutos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.tuto-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s;
}
.tuto-card:hover { transform: translateY(-3px); }

.tuto-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.tuto-header h3 { color: white; font-size: 1.15rem; }
.tuto-emoji { font-size: 2rem; }
.tuto-compost { background: linear-gradient(135deg, var(--green-dark), var(--green-main)); }
.tuto-lombri { background: linear-gradient(135deg, var(--brown-dark), var(--brown-light)); }

.tuto-content { padding: 1.5rem; }

.tuto-step {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}

.tuto-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 2px;
}

.tuto-lombri ~ .tuto-content .tuto-num {
  background: var(--brown-pale);
  color: var(--brown-dark);
}

.tuto-step strong {
  display: block;
  color: var(--brown-dark);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.tuto-step p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.tuto-tips {
  margin: 0 1.5rem 1.5rem;
  padding: 1rem;
  background: #FFF8E1;
  border-radius: 10px;
  border-left: 4px solid var(--orange);
}
.tuto-tips h4 {
  font-size: 0.9rem;
  color: var(--brown-dark);
  margin-bottom: 0.3rem;
}
.tuto-tips p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .tutos-grid { grid-template-columns: 1fr; }
  .hero-badge { font-size: 0.8rem; padding: 0.6rem 1rem; }
}

/* ===== PROJECT INFO ===== */
.project-section {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.partner-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}
a.partner-card, a.soutien-card, a.obj-card {
  text-decoration: none;
  color: inherit;
}

.partner-card:hover { transform: translateY(-3px); }

.partner-logo {
  height: 70px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.partner-icon { font-size: 3rem; margin-bottom: 0.5rem; }

.partner-card h3 {
  color: var(--brown-dark);
  margin-bottom: 0.2rem;
}

.partner-location {
  color: var(--green-main);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.partner-card p:last-child {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Soutien */
.soutien-section {
  text-align: center;
  margin-bottom: 3rem;
}

.soutien-label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.soutien-card {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.2rem 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid #003DA5;
  text-align: left;
}

.soutien-logo {
  height: 60px;
  object-fit: contain;
}

.soutien-card h4 {
  color: var(--brown-dark);
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.soutien-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0;
}

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

.obj-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s;
}
.obj-card:hover { transform: translateY(-3px); }

.obj-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

.obj-logo {
  height: 45px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.obj-card h4 {
  color: var(--brown-dark);
  margin-bottom: 0.4rem;
}

.obj-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--brown-dark);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-worm { font-size: 2rem; }

footer p { opacity: 0.8; font-size: 0.95rem; }

.footer-sub { font-size: 0.85rem !important; margin-top: 0.3rem; }

.footer-sdg {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.footer-sdg a {
  text-decoration: none;
  color: white;
}

.footer-sdg a:hover { opacity: 0.8; }

.footer-sdg span, .footer-sdg a {
  background: rgba(255,255,255,0.1);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ===== WORM STATE COLORS ===== */
.worm-state-excellent .worm-body-main { stroke: #6D9B3A; }
.worm-state-excellent #wormHeadMain { fill: #8AB84A; }
.worm-state-good .worm-body-main { stroke: #8B5E3C; }
.worm-state-good #wormHeadMain { fill: #A0724A; }
.worm-state-warning .worm-body-main { stroke: #B07D4E; }
.worm-state-warning #wormHeadMain { fill: #C49A6C; }
.worm-state-bad .worm-body-main { stroke: #7D6B5D; }
.worm-state-bad #wormHeadMain { fill: #9E8E7E; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 3rem; }
  .partners-grid { grid-template-columns: 1fr; }
  .objectives-grid { grid-template-columns: 1fr; }
  h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }
  .card { padding: 1.5rem; }
}
