/* Navette — feuille de style unique.
   Polices système, aucune ressource externe. Les animations ne s'appliquent
   que si « Réduire les animations » est désactivé ; le contenu est toujours
   visible sans elles. */

:root {
  color-scheme: light dark;
  --bg: #fbfbfd;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-muted: #55555c;
  --accent: #1b6b5b;
  --accent-text: #ffffff;
  --border: rgb(0 0 0 / 0.12);
  --glass: rgb(251 251 253 / 0.72);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.08);
  --radius: 14px;
  --measure: 40rem;
  --wide: 68rem;
  font: 100%/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-elevated: #181b21;
    --text: #f2f2f5;
    --text-muted: #a8a8b3;
    --accent: #5cc8b0;
    --accent-text: #0b0d12;
    --border: rgb(255 255 255 / 0.14);
    --glass: rgb(15 17 21 / 0.72);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

@media (prefers-contrast: more) {
  :root { --text-muted: var(--text); --border: currentColor; }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

code, pre {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* En-tête « verre » ; opaque si « Réduire la transparence » est actif. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem max(1rem, calc((100% - var(--wide)) / 2));
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-header ul, .site-footer ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header nav a:not(.button) { color: var(--text); text-decoration: none; }
.site-header nav a:not(.button):hover { text-decoration: underline; }
@media (max-width: 36rem) {
  .site-header nav li:not(:last-child) { display: none; }
}

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button-small { padding: 0.35rem 0.9rem; font-size: 0.9rem; }
.button-large { padding: 0.95rem 2rem; font-size: 1.1rem; }

main { display: block; }

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}
.section > h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); line-height: 1.2; margin: 0 0 1.5rem; }
.section > p, .prose > * { max-width: var(--measure); }

.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 5rem 1.25rem 3rem;
  text-align: center;
}
.hero-icon { display: block; margin: 0 auto 1rem; }
.hero h1 { font-size: clamp(2.75rem, 8vw, 4.5rem); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
.tagline { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 600; margin: 0.5rem 0 1rem; }
.lede { color: var(--text-muted); max-width: var(--measure); margin: 0 auto 2rem; font-size: 1.1rem; }
.download { display: grid; justify-items: center; gap: 0.5rem; }
.download p { margin: 0; }
.download-meta, .hint { color: var(--text-muted); font-size: 0.95rem; }
.hint { margin-top: 1.25rem; }
.hero-shot { margin: 3rem auto 0; }
.hero-shot img { border-radius: var(--radius); box-shadow: var(--shadow); }

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  padding: 1.25rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 48rem) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 36rem) {
  .feature { padding: 0.9rem 1rem; }
}
.feature h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-muted); }

.steps { counter-reset: step; margin: 2rem 0; padding: 0; list-style: none; max-width: var(--measure); }
.step { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 2rem; }
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}
.step h3 { margin: 0.15rem 0 0.35rem; font-size: 1.1rem; }
.step p { margin: 0; }
.step figure { margin: 1rem 0 0; }
.step img { border-radius: 10px; box-shadow: var(--shadow); }

.note { color: var(--text-muted); }

/* Premier lancement : panneau mis en avant, étapes côte à côte sur grand écran. */
.section-first-launch { padding-top: 1rem; }
.panel {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow);
}
.panel > h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); line-height: 1.2; margin: 0 0 1rem; }
.panel > p, .panel > details { max-width: 48rem; }
/* Étapes : texte à gauche, capture à droite sur grand écran ; empilés sinon. */
@media (min-width: 60rem) {
  .panel .step {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: auto 1fr;  /* titre et texte restent en haut, même à côté d'une capture haute */
    gap: 0 2.5rem;
    align-items: start;
    max-width: none;
  }
  .panel .step > h3, .panel .step > p { grid-column: 1; }
  .panel .step > figure { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .panel .steps { max-width: none; }
}
.step img { display: block; }

/* Captures de macOS en clair : en thème sombre, contour fin et luminosité adoucie
   (elles ne sont pas recolorées : c'est ce que l'utilisateur verra). */
@media (prefers-color-scheme: dark) {
  .step img { filter: brightness(0.9); outline: 1px solid var(--border); }
}

details {
  max-width: var(--measure);
  border-top: 1px solid var(--border);
  padding: 0.9rem 0;
}
details:last-child { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 600; }
details > p { margin: 0.75rem 0 0; color: var(--text-muted); }

.command { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.command pre {
  margin: 0;
  padding: 0.6rem 0.9rem;
  overflow-x: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 100%;
}

.section-download { text-align: center; }
.section-download > h2 { margin-bottom: 1.5rem; }

.prose h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.prose p { margin: 0 0 0.6rem; }

.site-footer {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0 0 0.5rem; }

/* Motion design : uniquement si l'utilisateur ne demande pas moins d'animations. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  html { scroll-behavior: smooth; }

  .hero > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero > :nth-child(2) { animation-delay: 0.05s; }
  .hero > :nth-child(3) { animation-delay: 0.1s; }
  .hero > :nth-child(4) { animation-delay: 0.15s; }
  .hero > :nth-child(n + 5) { animation-delay: 0.2s; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }

  .button { transition: filter 0.15s ease, transform 0.15s ease; }
  .button:active { transform: scale(0.97); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Captures commentées : image et légende en alternance sur grand écran. */
.showcase { display: grid; gap: 4rem; }
.showcase-item {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
  margin: 0;
}
.showcase-item img { border-radius: var(--radius); box-shadow: var(--shadow); }
.showcase-item h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }
.showcase-item p { margin: 0; color: var(--text-muted); max-width: 28rem; }
@media (min-width: 60rem) {
  .showcase-item { grid-template-columns: 3fr 2fr; }
  .showcase-item:nth-child(even) > :first-child { order: 2; }
}
.hero-shot { max-width: 64rem; }
