@font-face { font-family: "Onest"; src: url(fonts/onest-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url(fonts/onest-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Onest"; src: url(fonts/onest-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Gloock"; src: url(fonts/gloock-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

/* Mise en page inspirée de zen-browser.app : héros centré en grande serif, capture posée
   sur une photo, fonctions en liste cliquable face à une capture, pied de page clair.
   Sombre d'abord (mousse, sauge, lilas), clair en variante. */
:root {
  --bg: #151713;
  --surface: #1d1f1a;
  --raised: #262923;
  --fg: #e9e8e1;
  --muted: #a3a298;
  --line: #31342d;
  --sauge: #9fbf8f;
  --lilas: #a99cf0;
  --brume: #8fb0d6;
  --lin: #e6e4d8;          /* bouton clair et pied de page */
  --ink: #1d1f1a;          /* texte sur fond lin */
  --ink-muted: #5d5c53;
  --shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08);
  --f-title: "Gloock", Georgia, "Times New Roman", serif;
  --f-ui: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eceee4;
    --surface: #f7f5f1;
    --raised: #fffdf9;
    --fg: #2a2b26;
    --muted: #6c6b62;
    --line: #d6d2c6;
    --sauge: #4f7a45;
    --lilas: #6a5acd;
    --brume: #4d6f96;
    --lin: #1d1f1a;
    --ink: #eceee4;
    --ink-muted: #a3a298;
    --shadow: 0 40px 80px rgba(40, 45, 30, .25), 0 0 0 1px rgba(0, 0, 0, .06);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--lilas); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }

.top, main, .foot-inner {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* En-tête */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font: 400 30px/1 var(--f-title); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.top nav { display: flex; gap: 28px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--fg); }
.top nav .gh { display: inline-flex; align-items: center; gap: 6px; }
.top nav .gh svg { width: 15px; height: 15px; }
.top > .btn { justify-self: end; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 500; font-size: 15.5px; text-decoration: none; transition: filter .15s, background .15s; }
.btn svg { width: 16px; height: 16px; }
.btn.small { padding: 9px 15px; font-size: 14.5px; }
.btn.light { background: var(--lin); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset; }
.btn.light:hover { filter: brightness(1.06); }
.btn.dark { background: var(--raised); color: var(--fg); box-shadow: 0 0 0 1px var(--line) inset; }
.btn.dark:hover { background: var(--surface); }
.btn.ink { background: var(--ink); color: var(--lin); }
.btn.ink:hover { filter: brightness(1.15); }

/* Héros */
.hero { text-align: center; padding-block: 96px 64px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.hero-icon { width: clamp(72px, 9vw, 112px); height: auto; filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .45)); }
.hero-name { font: 400 clamp(64px, 10vw, 120px)/1 var(--f-title); letter-spacing: -0.02em; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -0.015em; color: var(--muted); }
.hero h1 em { color: var(--sauge); }
.hero h1 em { font-style: italic; color: var(--sauge); }
.lead { max-width: 46ch; color: var(--muted); font-size: clamp(16px, 2vw, 18.5px); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.meta { color: var(--muted); font-size: 13.5px; }
.meta a { color: var(--fg); }

/* Capture posée sur une photo */
.showcase { position: relative; border-radius: 22px; overflow: hidden; padding: clamp(18px, 6vw, 80px) clamp(14px, 8vw, 100px) 0; }
.backdrop { position: absolute; inset: 0; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; }
.window img { width: 100%; }
.window { position: relative; display: block; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: var(--shadow); }

/* Exemple de gain */
.shed-band { max-width: 760px; margin: 110px auto 0; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.skin { position: relative; height: 48px; }
.skin .old { position: absolute; inset: 0; border-radius: 12px; border: 2px dashed var(--muted); opacity: .5; }
.skin .new { position: absolute; left: 0; top: 0; bottom: 0; width: 3%; border-radius: 12px; background: var(--sauge); }
.nums { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-variant-numeric: tabular-nums; }
.nums b { font: 400 clamp(32px, 5vw, 48px)/1 var(--f-title); color: var(--fg); margin-right: 6px; }
.nums .after b { color: var(--sauge); }
.shed-band p { color: var(--muted); font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .skin .new { animation: shed 1.6s cubic-bezier(.2, .8, .2, 1) .3s both; }
  @keyframes shed { from { width: 100%; opacity: .35; } }
}

/* Fonctions */
.features { margin-top: 140px; display: flex; flex-direction: column; gap: 36px; }
.features h2, .details h2, .soon h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -0.01em; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 40px; align-items: start; }
.feature-list { display: flex; flex-direction: column; gap: 8px; }
.features-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.features-head p { color: var(--muted); font-size: 15px; }
.feature-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px; transition: background .15s; }
.feature-item { box-shadow: 0 0 0 1px var(--line) inset; }
.fi-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feature-item b { font-weight: 600; font-size: 17px; color: var(--muted); transition: color .15s; }
.play { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--muted); transition: background .15s, color .15s; }
.play svg { width: 10px; height: 10px; margin-left: 1px; }
.feature-item:hover .play { background: var(--lilas); color: var(--bg); }
.feature-item.on .play { background: var(--sauge); color: var(--bg); }
.fi-desc { display: none; color: var(--muted); font-size: 15px; line-height: 1.55; }
.feature-item:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.feature-item:hover b { color: var(--fg); }
.feature-item.on { background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.feature-item.on b { color: var(--fg); }
.feature-item.on .fi-desc { display: block; }
.feature-item:focus-visible { outline: 2px solid var(--lilas); }
.fi-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 1; background: transparent; }
.fi-progress i { display: block; height: 100%; width: 0; background: var(--sauge); }
.feature-shot { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 24px; }

/* Et aussi */
.details { margin-top: 140px; display: flex; flex-direction: column; gap: 40px; }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; }
.detail { display: flex; flex-direction: column; gap: 8px; }
.detail svg { width: 30px; height: 30px; color: var(--sauge); margin-bottom: 6px; }
.detail h3 { font: 600 17px var(--f-ui); }
.detail p { color: var(--muted); font-size: 15.5px; }

/* Bientôt */
.soon { margin-top: 140px; display: flex; flex-direction: column; gap: 28px; }
.soon-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.soon-rows.single { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
.soon-row { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: 16px; }
.soon-row svg { width: 32px; height: 32px; flex: none; }
.soon-row h3 { font-size: 26px; margin-bottom: 4px; }
.soon-row p { color: var(--muted); font-size: 15.5px; }
.soon-row.pdf { background: color-mix(in srgb, var(--lilas) 12%, transparent); }
.soon-row.pdf svg { color: var(--lilas); }
.soon-row.video { background: color-mix(in srgb, var(--brume) 12%, transparent); }
.soon-row.video svg { color: var(--brume); }

/* Pied de page clair, comme Zen */
.foot { margin-top: 160px; background: var(--lin); color: var(--ink); padding-block: 72px 56px; }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.6fr); gap: 48px; }
.foot-main { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { width: 64px; height: 64px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .25)); }
.foot-main h2 { font-size: clamp(48px, 7vw, 76px); line-height: .95; }
.foot-main > p { max-width: 36ch; }
.foot .small { font-size: 13.5px; color: var(--ink-muted); }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-muted); }
.foot-col h3 { font: 600 15px var(--f-ui); color: var(--ink); }
.foot-col a { color: var(--ink); }

@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .top nav { display: none; }
  .hero { padding-block: 56px 44px; }
  .feature-grid, .foot-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .details-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature-shot { position: static; order: -1; }
  .soon-rows { grid-template-columns: minmax(0, 1fr); }
  .features, .details, .soon { margin-top: 96px; }
}

/* Page des nouveautés */
.notes { max-width: 820px; margin: 0 auto; padding-block: 72px 40px; display: flex; flex-direction: column; gap: 64px; }
.notes-head { display: flex; flex-direction: column; gap: 16px; }
.notes-head h1 { font-size: clamp(52px, 9vw, 96px); line-height: .95; letter-spacing: -0.02em; }
.notes-head p { color: var(--muted); max-width: 52ch; }
.release { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.release-meta { display: flex; flex-direction: column; gap: 6px; }
.release-meta .v { font: 400 40px/1 var(--f-title); }
.release-meta time { color: var(--muted); font-size: 14px; }
.release-meta .tag { align-self: flex-start; margin-top: 6px; padding: 2px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 600; background: color-mix(in srgb, var(--sauge) 18%, transparent); color: var(--sauge); }
.release-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.release-body > p { color: var(--muted); }
.release-body h3 { font: 600 17px var(--f-ui); margin-bottom: 8px; }
.release-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.release-body li::marker { color: var(--lilas); }
.release-body figure { margin: 4px 0 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.release-body .dl { align-self: flex-start; }
@media (max-width: 860px) { .release { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* Page de téléchargement, comme zen-browser.app/download */
.dlp { max-width: 900px; margin: 0 auto; padding-block: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 96px; }
.dl-start, .dl-thanks { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; }
.dl-start[hidden], .dl-thanks[hidden] { display: none; }
.dlp h1 { font-size: clamp(48px, 8vw, 88px); line-height: .98; letter-spacing: -0.02em; }
.dlp .lead { max-width: 48ch; }
.dlp .lead a, .dlp .meta a { color: var(--fg); }
.dl-icon { width: 104px; height: 104px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .4)); }
.btn.big { padding: 15px 28px; font-size: 17px; }
.btn.big svg { width: 17px; height: 20px; }
.dl-warn { max-width: 46ch; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--lilas) 14%, transparent); font-size: 15px; }
.dl-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.dl-steps li { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.dl-steps .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 400 18px var(--f-title); background: color-mix(in srgb, var(--sauge) 20%, transparent); color: var(--sauge); }
.dl-steps b { display: block; margin-bottom: 4px; }
.dl-steps p { color: var(--muted); font-size: 15px; }
.dl-other { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.dl-other h2 { font-size: clamp(28px, 4vw, 36px); }
.dl-other ul { list-style: none; margin: 0; padding: 0; }
.dl-other li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); flex-wrap: wrap; }
.dl-other li:last-child { border-bottom: 1px solid var(--line); }
.dl-other b { color: var(--fg); font-weight: 600; }
.dl-other a { color: var(--lilas); font-weight: 500; text-decoration: none; }
.dl-page .foot { margin-top: 120px; }
@media (max-width: 860px) { .dl-steps { grid-template-columns: minmax(0, 1fr); } .dlp { gap: 64px; } }
