@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&display=swap');

:root {
  --bg: #f2f2f7;
  --bg-card: #ffffff;
  --bg-secondary: #f5f5f7;
  --border: #e0e0e5;
  --border-strong: #c8c8cc;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #aeaeb2;
  --accent: #0066cc;
  --accent-hover: #0055aa;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242,242,247,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links { list-style: none; display: flex; gap: 0.25rem; }
.nav-links a {
  font-size: 0.825rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--border); }

.back-btn {
  font-size: 0.825rem;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.back-btn:hover { background: #e0ecf8; }

/* ── LAYOUT ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

/* ── HERO ── */
.hero { padding: 2.5rem 0 2rem; }

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ── INDEX CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* ── TABLE ── */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }

th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  vertical-align: top;
  color: var(--text);
  background: var(--bg-card);
}

tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-secondary); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--accent-hover); text-decoration: underline; text-decoration-thickness: 1px; }

.link-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.3rem 0;
  line-height: 1.5;
}

/* ── RESOURCES GRID ── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.resource-card h3 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.resource-card a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.resource-card a:last-child { border-bottom: none; }
.resource-card a:hover { color: var(--accent-hover); text-decoration: none; }

/* ── RESOURCE SECTION (cinquieme) ── */
.resource-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.resource-section h3 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.resource-link {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.resource-link:last-child { border-bottom: none; }
.resource-link:hover { color: var(--accent-hover); }

/* ── SNT CARDS ── */
.snt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.snt-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.snt-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }

.snt-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.snt-card h3 {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text);
}

.snt-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* ── SECTIONS ── */
.intro-section, .info-box, .archive-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow-sm);
}

.intro-section h2, .info-box h3 {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.intro-section ul { list-style: none; }
.intro-section li {
  padding: 0.55rem 0 0.55rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.intro-section li:last-child { border-bottom: none; }
.intro-section li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
}

.info-box { border-left: 3px solid var(--border-strong); }
.info-box p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.75; }
.info-box strong { color: var(--text); font-weight: 500; }

.archive-section h3 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ── DOWNLOAD / VIDEO LINKS ── */
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  margin: 0.4rem 0.3rem 0.4rem 0;
  transition: background 0.15s;
}
.download-link:hover { background: var(--accent-hover); }

.video-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--accent) !important;
  text-decoration: none !important;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.video-link:last-child { border-bottom: none; }
.video-link:hover { color: var(--accent-hover) !important; text-decoration: none !important; }

.resources-section h2 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-align: left;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 4rem;
}

footer p {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  font-size: 0.775rem;
  color: var(--text-tertiary);
}

footer a { color: var(--text-secondary); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .nav-links { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 2rem 1.25rem 4rem; }
  th, td { padding: 0.75rem 1rem; font-size: 0.825rem; }
}

@media (max-width: 480px) {
  .cards-grid, .snt-grid { grid-template-columns: 1fr; }
}

/* ── LOGO WITH IMAGE ── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
