/*
Theme Name: MCP Annuaire
Description: Thème sur mesure pour serveurmcp.com — annuaire de serveurs MCP francophone.
Author: Serveur MCP
Version: 1.0.0
Text Domain: mcp-annuaire
*/

:root{
	--bg:#f6f7fb;
	--surface:#ffffff;
	--surface-alt:#eef0f7;
	--border:#e1e3ec;
	--text:#181b23;
	--text-muted:#5b6270;
	--accent:#4f3ff0;
	--accent-strong:#3d2fd1;
	--accent-bg:#efecfe;
	--gold:#b9800a;
	--gold-bg:#fdf3dd;
	--green:#15803d;
	--green-bg:#e3f8ea;
	--shadow: 0 1px 2px rgba(20,20,40,0.05), 0 6px 20px rgba(20,20,40,0.04);
}

@media (prefers-color-scheme: dark){
	:root:not([data-theme="light"]){
		--bg:#0f1115;
		--surface:#171a21;
		--surface-alt:#1d212a;
		--border:#2b2f3a;
		--text:#e8eaf0;
		--text-muted:#9199a8;
		--accent:#8b7cf6;
		--accent-strong:#a396f8;
		--accent-bg:#221f3d;
		--gold:#f0b93d;
		--gold-bg:#2c2412;
		--green:#4ade80;
		--green-bg:#12281c;
		--shadow: 0 1px 2px rgba(0,0,0,0.4);
	}
}
:root[data-theme="dark"]{
	--bg:#0f1115;
	--surface:#171a21;
	--surface-alt:#1d212a;
	--border:#2b2f3a;
	--text:#e8eaf0;
	--text-muted:#9199a8;
	--accent:#8b7cf6;
	--accent-strong:#a396f8;
	--accent-bg:#221f3d;
	--gold:#f0b93d;
	--gold-bg:#2c2412;
	--green:#4ade80;
	--green-bg:#12281c;
	--shadow: 0 1px 2px rgba(0,0,0,0.4);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "IBM Plex Sans", -apple-system, system-ui, sans-serif;
	line-height: 1.6;
	font-size: 16px;
}
img{ max-width: 100%; display:block; }
a{ color: var(--accent); }
h1,h2,h3,h4{
	font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
	line-height: 1.25;
	text-wrap: balance;
	margin: 0 0 14px;
}
.container{ max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header{
	border-bottom: 1px solid var(--border);
	background: var(--surface);
	position: sticky; top:0; z-index: 20;
}
.site-header .container{
	display:flex; align-items:center; justify-content:space-between;
	padding-top: 16px; padding-bottom: 16px;
}
.site-logo{
	font-family:"IBM Plex Mono",monospace;
	font-weight:700; font-size:1.05rem;
	text-decoration:none; color: var(--text);
	display:flex; align-items:center; gap:8px;
}
.site-logo .mark{ color: var(--accent); }
.primary-nav ul{ list-style:none; display:flex; gap:22px; margin:0; padding:0; }
.primary-nav a{
	text-decoration:none; color: var(--text-muted); font-weight:500; font-size:0.92rem;
}
.primary-nav a:hover{ color: var(--accent); }
.nav-cta{
	background: var(--accent); color:#fff !important;
	padding: 8px 16px; border-radius: 7px; font-weight:600 !important;
}
.nav-cta:hover{ background: var(--accent-strong); color:#fff !important; }

/* Hero */
.hero{ padding: 64px 0 48px; }
.eyebrow{
	font-family:"IBM Plex Mono",monospace;
	font-size:0.75rem; text-transform:uppercase; letter-spacing:0.09em;
	color: var(--accent); font-weight:700; margin-bottom: 14px;
}
.hero h1{ font-size: clamp(1.9rem, 4.4vw, 2.7rem); max-width: 18ch; }
.hero .lede{ color: var(--text-muted); font-size: 1.08rem; max-width: 58ch; margin-bottom: 28px; }
.hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom: 36px; }
.btn{
	display:inline-flex; align-items:center; gap:8px;
	padding: 12px 22px; border-radius: 8px;
	font-weight:600; text-decoration:none; font-size:0.95rem;
	border: 1px solid transparent;
}
.btn-primary{ background: var(--accent); color:#fff; }
.btn-primary:hover{ background: var(--accent-strong); }
.btn-secondary{ background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover{ border-color: var(--accent); color: var(--accent); }

.terminal{
	background: #0d0f14; color:#c9d1d9;
	font-family:"IBM Plex Mono",monospace; font-size:0.82rem;
	border-radius: 10px; padding: 18px 20px; overflow-x:auto; white-space:pre;
	box-shadow: var(--shadow);
}
.terminal .c1{ color:#79c0ff; }
.terminal .c2{ color:#a5d6ff; }
.terminal .c3{ color:#7ee787; }

.stat-row{ display:flex; gap:28px; margin-top: 28px; flex-wrap:wrap; }
.stat-row .stat .num{
	font-family:"IBM Plex Mono",monospace; font-weight:700; font-size:1.3rem;
	font-variant-numeric: tabular-nums;
}
.stat-row .stat .label{ color: var(--text-muted); font-size:0.82rem; }

/* Sections */
section.block{ padding: 52px 0; }
section.block.alt{ background: var(--surface-alt); }
.section-head{ margin-bottom: 34px; max-width: 62ch; }
.section-head h2{ font-size: 1.5rem; }
.section-head p{ color: var(--text-muted); margin:0; }

/* Explainer */
.explainer{
	display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items:start;
}
.explainer p{ margin: 0 0 14px; }

/* Steps */
.steps-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.step-card{
	background: var(--surface); border:1px solid var(--border); border-radius: 12px;
	padding: 22px; box-shadow: var(--shadow);
}
.step-card .n{
	font-family:"IBM Plex Mono",monospace; color: var(--accent); font-weight:700;
	font-size:0.8rem; margin-bottom: 10px; display:block;
}
.step-card h3{ font-size:1.02rem; margin-bottom:8px; }
.step-card p{ color: var(--text-muted); font-size:0.92rem; margin:0; }

/* Categories */
.cat-grid{ display:flex; flex-wrap:wrap; gap:10px; }
.cat-pill{
	display:inline-flex; align-items:center; gap:8px;
	background: var(--surface); border:1px solid var(--border);
	padding: 10px 16px; border-radius: 999px; text-decoration:none;
	color: var(--text); font-size:0.9rem; font-weight:500;
}
.cat-pill:hover{ border-color: var(--accent); color: var(--accent); }
.cat-pill .count{ color: var(--text-muted); font-family:"IBM Plex Mono",monospace; font-size:0.78rem; }

/* Sponsor callout */
.callout-band{
	background: linear-gradient(135deg, var(--accent-bg), var(--surface-alt));
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 40px;
	display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.callout-band h2{ font-size:1.3rem; margin-bottom:6px; }
.callout-band p{ color: var(--text-muted); margin:0; max-width:48ch; }

/* Badges reused from plugin vocabulary for visual consistency */
.badge{
	display:inline-block; font-family:"IBM Plex Mono",monospace; font-size:0.68rem;
	text-transform:uppercase; letter-spacing:0.04em; padding:2px 8px; border-radius:999px; font-weight:700;
}
.badge-gold{ background: var(--gold-bg); color: var(--gold); }
.badge-green{ background: var(--green-bg); color: var(--green); }

/* Generic page content */
.page-content{ padding: 48px 0 64px; }
.page-content .container{ max-width: 860px; }
.page-title{ font-size: 1.8rem; margin-bottom: 18px; }
.entry-content h2{ font-size:1.3rem; margin-top: 32px; }
.entry-content p{ margin-bottom: 16px; }

/* Single server */
.server-hero{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom: 20px; }
.server-hero h1{ margin-bottom:6px; }
.server-meta{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.server-install{
	background:#0d0f14; color:#d1fae5; font-family:"IBM Plex Mono",monospace;
	font-size:0.85rem; padding:12px 16px; border-radius:8px; overflow-x:auto; margin-bottom: 20px;
}

/* Footer */
.site-footer{
	border-top:1px solid var(--border);
	background: var(--surface);
	padding: 40px 0 32px;
	margin-top: 40px;
}
.footer-grid{ display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.footer-brand{ font-family:"IBM Plex Mono",monospace; font-weight:700; }
.footer-tagline{ color: var(--text-muted); font-size:0.88rem; max-width:36ch; margin-top:6px; }
.footer-links ul{ list-style:none; display:flex; gap:18px; padding:0; margin:0; }
.footer-links a{ color: var(--text-muted); text-decoration:none; font-size:0.88rem; }
.footer-links a:hover{ color: var(--accent); }
.footer-bottom{
	margin-top: 28px; padding-top: 20px; border-top:1px solid var(--border);
	color: var(--text-muted); font-size:0.8rem;
}

@media (max-width: 820px){
	.explainer{ grid-template-columns: 1fr; }
	.steps-grid{ grid-template-columns: 1fr; }
	.primary-nav{ display:none; }
}
