/* Feuille de style commune aux pages publiques d'AI Playground
   (accueil, support, confidentialité). */

:root {
  color-scheme: light dark;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --rule: #e3e3e8;
  --accent: #0a6cff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e11;
    --surface: #16161a;
    --text: #f2f2f5;
    --muted: #9c9ca4;
    --rule: #2a2a31;
    --accent: #5b9dff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 3rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.2; margin: 0 0 .35rem; letter-spacing: -0.02em; }
h2 { font-size: 1.2rem; margin: 2.4rem 0 .6rem; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 1.6rem 0 .4rem; }
p, li { color: var(--text); }
.lede { color: var(--muted); margin: 0 0 .25rem; }
.date { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
ul { padding-left: 1.15rem; }
li { margin: .35rem 0; }
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: color-mix(in srgb, var(--text) 8%, transparent); padding: .1em .35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0 2rem; }

.highlight {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.highlight p { margin: 0; }
.highlight p + p { margin-top: .6rem; }

.en { color: var(--muted); }
.en h2, .en h3, .en li, .en p { color: inherit; }

/* Pied de page et navigation inter-pages */
footer {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}
footer nav {
  margin-bottom: .5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  justify-content: center;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* --- Accueil : en-tête --- */
.hero { text-align: center; }
.hero img.icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--text) 18%, transparent);
  margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: .5rem; }
.tagline { font-size: 1.15rem; color: var(--muted); margin: 0 auto 1.5rem; max-width: 30rem; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.pills li {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .3rem .8rem;
}

.cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: .5rem; }
.cta a {
  display: inline-block;
  text-decoration: none;
  border-radius: 12px;
  padding: .7rem 1.4rem;
  font-weight: 600;
  border: 1px solid var(--accent);
}
.cta a.primary { background: var(--accent); color: #fff; }
.cta a.secondary { color: var(--accent); border-color: var(--rule); }
.cta-note { font-size: .85rem; color: var(--muted); text-align: center; margin: .25rem 0 0; }

/* --- Accueil : grille de fonctionnalités --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .9rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.features li {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: color-mix(in srgb, var(--text) 2%, transparent);
}
.features h3 { margin: 0 0 .3rem; }
.features p { margin: 0; color: var(--muted); font-size: .95rem; }

/* --- Étapes numérotées --- */
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0 0; }
ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin: .9rem 0;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Support : questions/réponses --- */
details {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: .85rem 1.1rem;
  margin: .6rem 0;
  background: color-mix(in srgb, var(--text) 2%, transparent);
}
details[open] { background: var(--surface); }
summary { cursor: pointer; font-weight: 600; }
summary::marker { color: var(--muted); }
details > *:not(summary) { margin-bottom: 0; }
details p:first-of-type, details ul:first-of-type { margin-top: .7rem; }

table { border-collapse: collapse; width: 100%; margin-top: .8rem; font-size: .95rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
