/*
 * Site vitrine et pages légales Voty.
 * Pour changer la couleur de marque, modifiez uniquement --accent (et --accent-contrast
 * si le texte posé sur l'accent doit être sombre).
 */

:root {
  --accent: #7C4DE8;
  --accent-contrast: #ffffff;

  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --text: #16181d;
  --text-muted: #5b6270;
  --border: #e3e6eb;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--bg));

  --radius: 14px;
  --maxw: 760px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-soft: #181b21;
    --text: #eceef2;
    --text-muted: #a0a7b4;
    --border: #2a2f38;
    --accent-soft: color-mix(in srgb, var(--accent) 22%, var(--bg));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* Accueil */

.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 25%, transparent);
}

.hero h1 {
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-muted);
  font-size: 19px;
  max-width: 520px;
  margin: 0 auto 32px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  line-height: 1.2;
}

.store-badge small {
  font-size: 12px;
  opacity: 0.8;
}

.store-badge strong {
  font-size: 19px;
}

.store-badge:hover {
  opacity: 0.9;
}

.cards {
  display: grid;
  gap: 12px;
  padding-bottom: 56px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
}

.card strong {
  display: block;
  margin-bottom: 2px;
}

.card span {
  color: var(--text-muted);
  font-size: 15px;
}

.card:hover {
  border-color: var(--accent);
}

/* Pages de contenu (légal, contact) */

.page {
  padding: 40px 0 64px;
}

.page h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}

.page .intro {
  color: var(--text-muted);
  font-size: 18px;
  margin: 0 0 8px;
}

.page .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.page h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 40px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.page h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.page h3 {
  font-size: 17px;
  margin: 24px 0 6px;
}

.page p,
.page ul,
.page ol {
  margin: 0 0 14px;
}

.page ul,
.page ol {
  padding-left: 22px;
}

.page li {
  margin-bottom: 6px;
}

.callout {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  margin: 0 0 20px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  opacity: 0.92;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-soft);
  font-weight: 700;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 10px;
  background: var(--bg-soft);
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details[open] summary {
  margin-bottom: 8px;
}

details p:last-child,
details ol:last-child,
details ul:last-child {
  margin-bottom: 0;
}

code,
.placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

/* 404 */

.not-found {
  text-align: center;
  padding: 80px 0;
}

.not-found .code {
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin: 0 0 12px;
}

/* Pied de page */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 14px;
  padding: 28px 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
}
