/* Pages statiques /guides/ (générées au build par vite.config.js) : lecture simple, même thème sombre que le site. */
:root {
  color-scheme: dark;
  --bg: #07090d;
  --surface: #0f131c;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e9ecf3;
  --text-2: #a4acbe;
  --accent: #8e80ff;
  --accent-2: #52d3ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-2);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.top nav {
  color: var(--text-2);
  font-size: 14px;
}

.top nav a {
  display: inline-block;
  padding: 10px 0;
}

main,
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px;
  /* Longs mots ou adresses : jamais de défilement horizontal sur téléphone */
  overflow-wrap: break-word;
}

.kicker {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
}

h2 {
  margin: 32px 0 10px;
  font-size: 20px;
}

h3 {
  margin: 20px 0 6px;
  font-size: 17px;
}

.lead {
  color: var(--text-2);
  font-size: 18px;
}

li {
  margin: 6px 0;
}

.index {
  columns: 2 260px;
  padding-left: 18px;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  color: #0b0c14;
  background: linear-gradient(120deg, #b3aaff 0%, #8f9bff 50%, #6cdcff 100%);
  font-weight: 600;
  text-decoration: none;
}

.tip {
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
}

.src,
footer {
  color: var(--text-2);
  font-size: 14px;
}

footer {
  border-top: 1px solid var(--border);
}

small {
  color: var(--text-2);
  font-weight: 400;
}

/* Liens « à propos » en bas de chaque fiche (cibles tactiles de 44 px) */
footer .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

footer .legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
