/* PHP Launcher — Annuaire template */
:root {
  --primary: #0077B6;
  --secondary: #90E0EF;
  --primary-dark: color-mix(in srgb, #0077B6 75%, black);
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

/* ───── Header ───── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-weight: 800; font-size: 18px;
}
.brand-logo { display: block; border-radius: 8px; }
.brand-name { font-size: 17px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text); font-weight: 500; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* ───── Breadcrumb ───── */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 14px; }
.breadcrumb { color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: #cbd5e1; }
.breadcrumb span:last-child { color: var(--text); font-weight: 500; }

/* ───── Main ───── */
.site-main { padding: 32px 0 64px; min-height: 60vh; }

/* ───── Hero ───── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  border-radius: 16px;
  margin-bottom: 32px;
}
.hero h1 { font-size: 42px; margin: 0 0 12px; line-height: 1.2; font-weight: 800; }
.hero .lede { font-size: 18px; opacity: 0.95; max-width: 700px; margin: 0 auto 24px; }
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 32px; font-weight: 800; }
.hero-stat-label { font-size: 13px; opacity: 0.85; }

/* ───── Search Bar ───── */
.search-bar {
  display: flex; gap: 8px; max-width: 600px; margin: 0 auto;
  background: #fff; border-radius: 12px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.search-bar input {
  flex: 1; border: none; padding: 12px 16px; font-size: 16px; border-radius: 8px;
  outline: none; color: var(--text);
}
.search-bar button {
  background: var(--primary); color: #fff; border: none; padding: 12px 24px;
  border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 16px;
}
.search-bar button:hover { background: var(--primary-dark); }

/* ───── Cards & Grids ───── */
.enriched-intro {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  box-shadow: var(--shadow);
}

.section { margin: 48px 0; }
.section h2 { font-size: 28px; margin: 0 0 8px; font-weight: 800; }
.section .subtitle { color: var(--text-muted); margin: 0 0 24px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; transition: all .2s; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.card-empty { opacity: 0.65; background: #fafafa; }
.card-empty:hover { opacity: 1; }
.card-empty .card-meta { color: #94a3b8; font-style: italic; }
.card a { color: inherit; text-decoration: none; display: block; }
.card-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.card-meta { color: var(--text-muted); font-size: 14px; }
.card-count { display: inline-block; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-top: 8px; }

/* ───── Listing items ───── */
.item-list { display: flex; flex-direction: column; gap: 12px; }
.item {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; display: flex; gap: 16px; align-items: flex-start;
}
.item:hover { border-color: var(--primary); }
.item-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--primary); font-weight: 800;
}
.item-content { flex: 1; }
.item-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.item-subtitle { color: var(--text-muted); font-size: 14px; }
.item-cta { flex-shrink: 0; }

/* ───── Affiliation block ───── */
.affiliate-block {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, white) 0%, color-mix(in srgb, var(--secondary) 8%, white) 100%);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, white);
  border-radius: 16px; padding: 28px; margin: 32px 0; text-align: center;
}
.affiliate-block h3 { font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.affiliate-block p { color: var(--text-muted); margin: 0 0 16px; }
.btn-cta {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: 10px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: all .2s;
}
.btn-cta:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }

/* ───── Fiche page ───── */
.fiche-header {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; margin-bottom: 24px;
}
.fiche-header h1 { font-size: 32px; margin: 0 0 8px; }
.fiche-meta { color: var(--text-muted); font-size: 15px; }
.fiche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .fiche-grid { grid-template-columns: 1fr; } }
.info-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.info-box h3 { font-size: 14px; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; letter-spacing: 0.5px; }

/* ───── Tags / Badges ───── */
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: var(--text); }

/* ───── Footer ───── */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 24px; margin-top: 64px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-mark { background: var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-tagline { color: #94a3b8; font-size: 14px; margin: 12px 0 0; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #94a3b8; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #64748b; font-size: 12px; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; text-align: center; color: #64748b; font-size: 13px; }

/* ───── Pagination ───── */
.pagination { display: flex; gap: 4px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--border); color: var(--text); font-weight: 500; min-width: 40px; text-align: center; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); text-decoration: none; }
