/* Styles de la page d'accueil et des pages par type de litige (HTML classique, lisible par les moteurs de recherche).
   Mêmes couleurs que l'application : voir lib/core/theme.dart. */
.site {
  --bg: #131314;
  --surface: #1E1F22;
  --border: rgba(255, 255, 255, .08);
  --text: #E3E3E3;
  --muted: #BDBDBD;
  --primary: #8AB4F8;
  --secondary: #C58AF9;
  margin: 0 auto;
  max-width: 960px;
  padding: 0 24px 48px;
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.site[hidden] { display: none; }
body.site-page { margin: 0; background: #131314; }

.site a { color: var(--primary); }
.site a:focus-visible, .site summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.site h1, .site h2, .site h3 { color: #fff; line-height: 1.2; text-wrap: balance; }
.site h1 { margin: 0 0 20px; font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -.01em; }
.site h2 { margin: 72px 0 24px; font-size: clamp(24px, 4vw, 32px); }
.site h3 { margin: 0 0 6px; font-size: 18px; }
.site p { margin: 0 0 16px; }

.site-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; text-decoration: none; }
.brand span { background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { border-radius: 10px; }
.site-header .login { font-weight: 600; text-decoration: none; }

.hero { padding: 56px 0 8px; max-width: 760px; }
.lead { font-size: 19px; color: var(--muted); }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Bouton principal : dégradé assez foncé pour du texte blanc (contraste AA) */
.site a.cta {
  display: inline-block; margin-top: 12px; padding: 16px 28px; border-radius: 16px;
  background: linear-gradient(135deg, #2563EB, #9333EA); color: #fff;
  font-size: 18px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px rgba(147, 51, 234, .3);
}
.site a.cta:hover { filter: brightness(1.1); }

.steps, .cards, .prices { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps, .prices { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.steps li, .prices li, .cards a {
  display: block; padding: 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
}
.steps li, .prices li, .cards p { color: var(--muted); font-size: 15px; }
.steps { counter-reset: step; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%;
  background: rgba(138, 180, 248, .14); color: var(--primary); font-weight: 700;
}
.cards a { text-decoration: none; transition: border-color .15s; }
.cards a:hover { border-color: var(--primary); }
.cards p { margin: 0; }
.prices strong { display: block; margin: 4px 0 8px; font-size: 26px; color: #fff; }

.site details { padding: 16px 20px; margin-bottom: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.site summary { cursor: pointer; font-weight: 600; color: #fff; }
.site details p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.site-footer { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }

/* Pages par type de litige */
.guide { max-width: 720px; padding-top: 24px; }
.guide h2 { margin-top: 48px; }
.guide li { margin-bottom: 8px; }
.guide .box { margin: 40px 0; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.guide .box p:last-child { margin-bottom: 0; }
.guide .source { font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .cards a { transition: none; } }
