/* Zarya — site compagnon (nav.jeandon.fr). Palette « Aube ». */
:root {
  --night: #15173a;
  --violet: #7b61ff;
  --aurora: #ff6fa3;
  --sunrise: #ff8a5b;
  --gold: #ffd38a;
  --accent: #e2553f;
  --bg: #fbf8f5;
  --surface: rgba(255, 255, 255, 0.62);
  --border: rgba(21, 23, 58, 0.1);
  --text: #1b1a2e;
  --muted: #5d5a72;
  --glass-shadow: 0 10px 40px -12px rgba(43, 30, 110, 0.25);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e22;
    --surface: rgba(32, 30, 64, 0.55);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f1eef8;
    --muted: #aaa5c4;
    --accent: #ff8f73;
    --glass-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; }

/* Ciel d'aube en fond, fixe et discret */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 80% -10%, rgba(123, 97, 255, 0.28), transparent 70%),
    radial-gradient(50vmax 35vmax at 10% 10%, rgba(255, 111, 163, 0.2), transparent 70%),
    radial-gradient(70vmax 40vmax at 50% 110%, rgba(255, 138, 91, 0.22), transparent 70%);
}

.wrap { width: min(1080px, 100%); margin: 0 auto; padding-inline: 20px; }
.narrow { width: min(760px, 100%); margin: 0 auto; padding-inline: 20px; }

/* En-tête en verre */
.top {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 19px/1 var(--rounded); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a {
  color: var(--muted); text-decoration: none; font: 600 14px/1 var(--rounded);
  padding: 9px 12px; border-radius: 999px;
}
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

/* Héros */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-block: 72px 56px; }
.hero h1 { font: 800 clamp(40px, 7vw, 72px)/1.02 var(--rounded); letter-spacing: -0.03em; margin: 0 0 18px; }
.hero h1 .dawn {
  background: linear-gradient(100deg, var(--violet), var(--aurora) 45%, var(--sunrise) 75%, #f2a93b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font: 600 13px/1 var(--rounded); color: var(--muted);
  padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sunrise); box-shadow: 0 0 10px var(--sunrise); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 700 16px/1 var(--rounded); padding: 15px 22px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .2s cubic-bezier(.3,.7,.4,1.4), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow); }
.btn.primary { color: #fff; border: 0; background: linear-gradient(100deg, var(--violet), var(--aurora) 55%, var(--sunrise)); }

/* Téléphone de démonstration : barre d'adresse en verre avec halo */
.phone {
  position: relative; justify-self: center; width: min(320px, 82vw); aspect-ratio: 9 / 19.2;
  border-radius: 48px; padding: 12px; background: #0b0b14;
  box-shadow: 0 40px 80px -30px rgba(43, 30, 110, 0.55), inset 0 0 0 2px rgba(255,255,255,0.08);
}
.screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 30% 10%, #e7ddff, transparent 60%),
    radial-gradient(110% 70% at 80% 60%, #ffb3c8, transparent 60%),
    radial-gradient(100% 60% at 20% 100%, #ffc3a0, #fff1f4 70%);
  animation: drift 14s ease-in-out infinite alternate;
  background-size: 140% 140%;
}
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.screen .hello { position: absolute; top: 64px; left: 22px; right: 22px; color: #1b1a2e; }
.screen .hello b { display: block; font: 800 30px/1.1 var(--rounded); }
.screen .hello span { font: 500 14px/1.4 var(--rounded); color: #5d5a72; }
.tiles { position: absolute; top: 150px; left: 18px; right: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 14px; border-radius: 22px; background: rgba(255,255,255,0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tiles i { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.bar {
  position: absolute; left: 14px; right: 14px; bottom: 26px; height: 50px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--rounded); color: #1b1a2e;
  background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(16px) saturate(1.8); -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.bar::before, .bar::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--angle), var(--violet), var(--aurora), var(--gold), var(--sunrise), var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 2.6s linear infinite;
}
.bar::after { filter: blur(10px); opacity: .75; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }

/* Sections */
section { padding-block: 40px; }
h2 { font: 800 clamp(28px, 4vw, 40px)/1.1 var(--rounded); letter-spacing: -0.02em; margin: 0 0 14px; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--glass-shadow);
}
.card .ico { font-size: 26px; line-height: 1; margin-bottom: 12px; }
.card h3 { font: 700 18px/1.25 var(--rounded); margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.engines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.engines span {
  font: 600 14px/1 var(--rounded); padding: 10px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.engines span b { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; background: var(--c); vertical-align: 0; }
.promise { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.promise .big { font: 800 64px/1 var(--rounded); background: linear-gradient(var(--violet), var(--sunrise)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Pages de texte (confidentialité, conditions, support) */
.doc { padding-block: 48px 72px; }
.doc h1 { font: 800 clamp(32px, 5vw, 46px)/1.1 var(--rounded); letter-spacing: -0.02em; margin: 0 0 8px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .card { margin: 18px 0; }
details { padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); margin: 10px 0; }
details summary { cursor: pointer; font: 700 17px/1.4 var(--rounded); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Commandes */
.cmd { position: relative; margin: 10px 0 22px; }
.cmd pre {
  margin: 0; padding: 16px 92px 16px 18px; border-radius: 16px; overflow-x: auto;
  font: 14px/1.5 var(--mono); color: #f1eef8; background: #14132a; border: 1px solid rgba(255,255,255,0.08);
}
.cmd button {
  position: absolute; top: 9px; right: 9px; font: 700 13px/1 var(--rounded); cursor: pointer;
  padding: 9px 12px; border-radius: 999px; border: 0; color: #fff;
  background: linear-gradient(100deg, var(--violet), var(--aurora));
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td, th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
td code, p code, li code { font: 14px var(--mono); background: var(--surface); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); }
.table-wrap { overflow-x: auto; }

/* Pied de page */
footer { border-top: 1px solid var(--border); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 40px 24px; gap: 36px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .top nav a { padding: 8px 9px; font-size: 13px; }
  .top nav a.hide-sm { display: none; }
  .promise { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bar::before, .bar::after, .screen { animation: none; }
  .btn { transition: none; }
}
