:root {
  --bg: #0b1114;
  --surface: #131c20;
  --surface-raised: #182226;
  --accent: #2dd4bf;
  --text: #e8f0ef;
  --text-muted: #a3b6b3;
  --border: #223032;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0b1114;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

nav.topbar {
  position: sticky;
  top: 0;
  background: rgba(11, 17, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  flex-wrap: wrap;
  gap: 10px;
}
nav.topbar .brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
nav.topbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
nav.topbar a.navlink {
  color: var(--text-muted);
  text-decoration: none;
}
nav.topbar a.navlink:hover,
nav.topbar a.navlink[aria-current="page"] {
  color: var(--text);
}

header.hero {
  padding: 72px 24px 40px;
  text-align: center;
}
header.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
header.hero p.tagline {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* En-tete de page produit -- plus compact que le hero d'accueil, avec un
   lien de retour et un badge de statut (Bientot / Disponible). */
header.product-hero {
  padding: 48px 24px 32px;
  max-width: 760px;
  margin: 0 auto;
}
header.product-hero .back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 20px;
}
header.product-hero .back:hover { color: var(--text); }
header.product-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
header.product-hero p.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 16px;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  margin-bottom: 56px;
  scroll-margin-top: 80px;
}
section > h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
}
.card p {
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 0 16px;
}
.card p:last-child { margin-bottom: 0; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.pillar:hover, .pillar:focus-visible {
  border-color: var(--accent);
}
.pillar h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text);
}
.pillar p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
}
.badge.muted {
  color: var(--text-muted);
  border-color: var(--border);
}

.a11y-list {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.a11y-list div h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}
.a11y-list div p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Etapes numerotees ("Comment ca marche") -- utilise sur les pages produit. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.steps .num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b1114;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps .step-text h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.steps .step-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.note {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.note strong { color: var(--text); }

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.form-row input[type="text"] {
  flex: 1 1 240px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 1rem;
}
.form-row input[type="text"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}
.form-row button {
  background: var(--accent);
  color: #0b1114;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.form-row button:disabled {
  opacity: 0.6;
  cursor: default;
}
.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.form-status[data-state="success"] { color: var(--accent); }
.form-status[data-state="error"] { color: #f2a154; }

.modules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.modules-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
}

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 32px 24px 64px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer a { color: var(--text-muted); }
