/* Identité Meso — « Nuit néon × Sobre premium ». Les valeurs sont celles de
   design/identite.html et de src/theme.ts : le site et l'app doivent se
   ressembler, un utilisateur qui arrive ici depuis l'App Store doit reconnaître
   ce qu'il a installé. */

:root {
  --bg: #0b0b0f;
  --card: #17171c;
  --elevated: #1f1f26;
  --border: #26262e;
  --text: #f4f4f5;
  --text2: #a1a1aa;
  --indigo: #6366f1;
  --terracotta: #e07a5f;
  --ambre: #d4a373;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  /* la nappe de lumière des visuels de la fiche App Store */
  background-image:
    radial-gradient(900px 600px at 15% -5%, rgba(99, 102, 241, 0.22), transparent 70%),
    radial-gradient(700px 500px at 95% 30%, rgba(224, 122, 95, 0.10), transparent 70%);
  background-repeat: no-repeat;
}

.wrap { max-width: 720px; margin: 0 auto; }

/* ---- en-tête ---- */

header.site { padding: 40px 0 24px; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}
.brand img { width: 44px; height: 44px; }
.brand span {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(100deg, var(--indigo), var(--terracotta) 55%, var(--ambre));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav.site { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
nav.site a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--elevated);
}
nav.site a:hover { color: var(--text); }
nav.site a[aria-current='page'] { color: var(--text); background: rgba(99, 102, 241, 0.18); }

/* ---- texte ---- */

h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.03em; margin: 32px 0 12px; }
h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin: 56px 0 20px;
}
h3 { font-size: 18px; margin: 28px 0 8px; }
p, li { color: var(--text2); }
p strong, li strong { color: var(--text); font-weight: 600; }
a { color: #8b8df5; }
.lead { font-size: 19px; color: var(--text); }
.date { font-size: 13px; color: var(--text2); }

ul { padding-left: 20px; }
li { margin: 6px 0; }

/* ---- blocs ---- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin: 16px 0;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.contact {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(224, 122, 95, 0.10));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin: 32px 0;
}
.contact a { font-size: 20px; font-weight: 700; color: var(--text); word-break: break-all; }

/* ---- questions ---- */

details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 17px;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: '+ '; color: var(--indigo); font-weight: 700; }
details[open] summary::before { content: '– '; }
details p:last-child { margin-bottom: 0; }

footer.site {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
}
footer.site a { color: var(--text2); }

@media (max-width: 520px) {
  h1 { font-size: 32px; }
}
