:root {
  --bg: #0d1124; --bg2: #141a33; --card: #182040; --line: #2a3460;
  --text: #eef1ff; --muted: #a5adcf; --accent: #b09eff; --accent2: #8ab4ff;
  --btn-text: #0d1124;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7fc; --bg2: #eceffa; --card: #ffffff; --line: #dde1f0;
    --text: #151a33; --muted: #5a6285; --accent: #6b55e0; --accent2: #3a6fd8;
    --btn-text: #ffffff;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f7fc; --bg2: #eceffa; --card: #ffffff; --line: #dde1f0;
  --text: #151a33; --muted: #5a6285; --accent: #6b55e0; --accent2: #3a6fd8;
  --btn-text: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent2); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Barre du haut */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-size: 19px; letter-spacing: -.01em; }
.brand b { font-weight: 700; color: var(--accent); }
.mark { width: 30px; height: 30px; color: var(--accent2); }
.links { display: flex; align-items: center; gap: 22px; }
.links > a { color: var(--muted); text-decoration: none; font-size: 15px; }
.links > a:hover { color: var(--text); }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .05em;
  color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.langs summary::-webkit-details-marker { display: none; }
.langs div { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; min-width: 140px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.langs div a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; }
.langs div a:hover { background: var(--bg2); }
.langs div a[aria-current] { color: var(--accent); font-weight: 600; }

/* Héros */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px;
  background: radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
              radial-gradient(700px 380px at 0% 100%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent 70%); }
.hero .wrap { position: relative; z-index: 1; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0 0 20px; max-width: 15ch; font-size: clamp(36px, 6vw, 60px); line-height: 1.07; letter-spacing: -.025em; }
.lead { margin: 0 0 32px; max-width: 54ch; font-size: 19px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  background: var(--accent); color: var(--btn-text); font-weight: 600; text-decoration: none; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn svg, .link svg { width: 16px; height: 16px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* Mosaïque en diamant (clin d'œil à ElunVault) */
.tiles { position: absolute; right: 6%; top: 50%; width: 300px; height: 300px; transform: translateY(-50%) rotate(45deg);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; opacity: .9; }
.tiles i { border-radius: 6px; background: var(--card); border: 1px solid var(--line); animation: glow 6s infinite; }
.tiles i:nth-child(3n) { animation-delay: -1.5s; }
.tiles i:nth-child(4n+1) { animation-delay: -3s; }
.tiles i:nth-child(5n+2) { animation-delay: -4.5s; }
.tiles i:nth-child(7n) { animation-delay: -2.2s; }
@keyframes glow {
  0%, 70%, 100% { background: var(--card); box-shadow: none; }
  80% { background: color-mix(in srgb, var(--accent) 75%, var(--card)); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 50%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .tiles i { animation: none; } .btn { transition: none; } }

/* Sections */
.section { padding: 72px 20px 8px; }
h2 { margin: 0 0 28px; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -.02em; }
h3 { margin: 0; font-size: 20px; }

.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 22px; background: var(--card);
  border: 1px solid var(--line); }
.app p { margin: 0; color: var(--muted); }
.app-top { display: flex; align-items: center; gap: 16px; }
.app-top img { width: 64px; height: 64px; border-radius: 16px; }
.app.vault .app-top img { background: #141a33; padding: 6px; }
.app .tag { font-size: 14px; font-weight: 600; color: var(--accent); }
.app.alk .tag { color: #e0a84a; }
.link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 24px; border-radius: 18px; background: var(--bg2); }
.value p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.value h3 { font-size: 18px; }
.vi { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.vi svg { width: 24px; height: 24px; }

.about p { max-width: 64ch; margin: 0; color: var(--muted); }
.contact { padding-bottom: 80px; }
.contact p { margin: -12px 0 22px; color: var(--muted); }

footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 24px 20px; color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }

@media (max-width: 900px) {
  .tiles { width: 220px; height: 220px; right: -60px; opacity: .35; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap, .section { padding-left: 16px; padding-right: 16px; }
  .links .opt { display: none; }
  .hero { padding: 64px 0 72px; }
  .apps { grid-template-columns: 1fr; }
  .app { padding: 22px; }
  .section { padding-top: 56px; }
}
