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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
}

body {
  background: #f9f9f9;
}

header {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
  margin-bottom: 20px;
  font-size: 2.5em;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover {
  background: rgba(255,255,255,0.2);
}

main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

h2 {
  margin-bottom: 15px;
  color: #0d7d74;
}

p {
  margin-bottom: 10px;
}

ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 10px;
}

button {
  background: #11998e;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

button:hover {
  background: #0d7d74;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
}

/* Callout box (index.html) */
.callout {
  margin-top: 20px;
  padding: 15px;
  background: #e0f7f4;
  border-radius: 4px;
}

.cta {
  display: inline-block;
  margin-top: 10px;
  background: #11998e;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}

.cta:hover {
  background: #0d7d74;
}

/* Foresight Universe: table of contents */
.toc-list {
  list-style: none;
  margin-left: 0;
}

.toc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 0;
}

.toc-list li:last-child {
  border-bottom: none;
}

.toc-list a {
  color: #0d7d74;
  text-decoration: none;
  font-weight: 600;
}

.toc-list a:hover,
.toc-list a.active {
  text-decoration: underline;
}

/* Foresight Universe: entry cards */
.entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.horizon {
  font-size: 0.85em;
  color: #666;
}

.back {
  margin-top: 20px;
  font-size: 0.9em;
}

/* Badges (shared) */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: bold;
  white-space: nowrap;
}

.badge-accel {
  background: #e0f7f4;
  color: #0d7d74;
}

.badge-emergent {
  background: #fff4e0;
  color: #b26a00;
}

.badge-mainstream {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-exploratoire {
  background: #ede7f6;
  color: #5e35b1;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    display: block;
  }

  section {
    padding: 20px;
  }

  .toc-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
