/* Vitrine — style commun (site, app, pages légales) */
:root {
  --bg: #faf8ff;
  --bg-alt: #f2eefc;
  --surface: #ffffff;
  --ink: #16121f;
  --ink-2: #463f57;
  --muted: #776f8a;
  --line: #e7e2f3;
  --accent: #7c3aed;
  --accent-2: #6d28d9;
  --accent-ink: #ffffff;
  --accent-soft: #efe7ff;
  --pink: #ec4899;
  --orange: #f97316;
  --grad: linear-gradient(120deg, #7c3aed 0%, #ec4899 55%, #f97316 100%);
  --ok: #15803d; --ok-soft: #dcfce7;
  --warn: #a16207; --warn-soft: #fef3c7;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(30, 15, 60, .06), 0 1px 1px rgba(30, 15, 60, .03);
  --shadow: 0 1px 2px rgba(30, 15, 60, .05), 0 12px 32px -12px rgba(30, 15, 60, .2);
  --shadow-lg: 0 2px 6px rgba(30, 15, 60, .05), 0 34px 80px -24px rgba(60, 20, 120, .35);
  --ring: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0c16; --bg-alt: #151120; --surface: #1a1526; --ink: #f3f0fa; --ink-2: #cdc6dd; --muted: #9a91ad; --line: #2c2540;
    --accent: #a78bfa; --accent-2: #c4b5fd; --accent-ink: #160b2e; --accent-soft: #2a1f47;
    --ok: #4ade80; --ok-soft: #14301f; --warn: #fbbf24; --warn-soft: #33290f;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 12px 32px -12px rgba(0,0,0,.6); --shadow-lg: 0 34px 80px -24px rgba(0,0,0,.75);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.03em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: .75em 1.3em; border-radius: 999px; font: 600 15px var(--sans); cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--muted); }
.btn:active { transform: none; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--grad); background-size: 140% 100%; border-color: transparent; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -10px rgba(124, 58, 237, .8); }
.btn-primary:hover { border-color: transparent; filter: saturate(1.15); background-position: 100% 0; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 30px -10px rgba(236, 72, 153, .8); }
.btn-small { padding: .48em 1em; font-size: 14px; }
.btn-lg { padding: .95em 1.7em; font-size: 16px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.top::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 21px var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.logo::before { content: ""; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); box-shadow: inset 0 0 0 7px rgba(255,255,255,.0), 0 6px 16px -6px rgba(236, 72, 153, .9); -webkit-mask: radial-gradient(circle at 50% 50%, transparent 5px, #000 5.5px); mask: radial-gradient(circle at 50% 50%, transparent 5px, #000 5.5px); }
.top nav { display: flex; gap: 4px; align-items: center; }
.top nav a.link { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.top nav a.link:hover { background: var(--bg-alt); color: var(--ink); }
@media (max-width: 680px) { .top nav a.link:not(.link-lang) { display: none; } }

.foot { padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 80px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
@media (max-width: 680px) { .foot nav { margin-left: 0; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
