/* Pages Confidentialité, Conditions (T18) et Tarifs (T26) : charte Homotope, clair et sombre.
   Le thème mémorisé (`data-theme`, posé par /theme-init.js) prime sur le système. */
:root {
  color-scheme: light;
  --bg: #f4f4f3;
  --surface: #ffffff;
  --text: #1b1b1a;
  --muted: #5f5f5c;
  --border: #dddcd8;
  --accent: #2f4fbf;
  --mark: #fff4c2;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #141414;
  --surface: #1c1c1c;
  --text: #ececea;
  --muted: #a3a3a0;
  --border: #2e2e2e;
  --accent: #8fa6ff;
  --mark: #4a3f10;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #141414;
    --surface: #1c1c1c;
    --text: #ececea;
    --muted: #a3a3a0;
    --border: #2e2e2e;
    --accent: #8fa6ff;
    --mark: #4a3f10;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
main {
  box-sizing: border-box;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 16px 3rem;
}
.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  line-height: 1.25;
}
.updated {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}
h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.125rem;
}
p,
ul {
  margin: 0 0 1rem;
}
ul {
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.375rem;
}
a {
  color: var(--accent);
  text-underline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.todo {
  padding: 0 0.25em;
  border-radius: 3px;
  background: var(--mark);
}
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}
/* Tarifs (T26) : une colonne à 320 px, jusqu'à trois côte à côte. */
.lead {
  font-size: 1.0625rem;
}
h3 {
  margin: 0 0 0.25rem;
  font-size: 1.0625rem;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.plan {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.plan ul {
  margin: 0;
  font-size: 0.9375rem;
}
.plan-action {
  margin: 0.75rem 0 0;
}
.price {
  min-height: 1.6em;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.note {
  color: var(--muted);
  font-size: 0.875rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem;
}
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.button.primary {
  background: var(--accent);
  color: var(--surface);
}
blockquote {
  margin: 0 0 1rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--border);
}
/* Documentation de l'API (T30) : listes numérotées, code, tableau défilant à 320 px. */
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
pre {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  line-height: 1.45;
}
pre code {
  overflow-wrap: normal;
}
/* Sources des pages SEO (T40) : une URL affichée en texte se coupe plutôt que de faire
   déborder la page à 390 px. */
.note a {
  overflow-wrap: anywhere;
}
.table {
  margin: 0 0 1rem;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
th,
td {
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
/* Guides et comparaisons (T40) : réponse directe, démonstration avant/après, FAQ dépliable. */
.top-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}
.top-links .back {
  margin-bottom: 0;
}
.lang-switch {
  font-size: 0.875rem;
}
.answer {
  font-weight: 600;
}
.demo {
  margin: 0 0 1rem;
}
.demo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.demo-pane {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
/* Les démonstrations sont des images noir et blanc ou en couleurs sur fond blanc : le cadre
   reste blanc en thème sombre, comme le papier. */
.demo-pane img {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
}
.demo-pane img.pixelated {
  image-rendering: pixelated;
}
.demo-label,
.demo figcaption {
  color: var(--muted);
  font-size: 0.875rem;
}
.demo figcaption {
  margin-top: 0.5rem;
}
details {
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin: 0.5rem 0 0;
}
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
