/* Ficelle — le site. Les mêmes couleurs et polices que l'appli. */

:root {
  --bg: #F8F3EE;
  --ink: #2A1C1F;
  --muted: #7A6A66;
  --accent: #C8294A;
  --accent-ink: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #F1E8E2;
  --line: #EADFD8;
  --ok: #3B8F6E;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1416;
    --ink: #F6EEEA;
    --muted: #B3A29D;
    --accent: #FF6B85;
    --accent-ink: #2A1C1F;
    --card: #261D20;
    --card-2: #33282B;
    --line: #3A2F32;
    --ok: #6CC9A3;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); line-height: 1; font-weight: 800; margin-bottom: 1.1rem; }
h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 0.6rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.6rem; margin-bottom: 0.2rem; color: var(--accent); }
p { margin: 0.5rem 0 0.8rem; }
em { font-style: normal; font-weight: 600; }

/* ---------------------------------------------------------------- en-tête */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1040px; margin: 0 auto; padding: 18px 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: 1.4rem; text-decoration: none;
}
.brand-logo { width: 30px; height: auto; }
.top nav { display: flex; gap: 18px; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--muted); border-bottom: 1.5px solid transparent; padding-bottom: 2px; }
.top nav a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------------------------------------------------------------- corps */
main { max-width: 1040px; margin: 0 auto; padding: 0 20px 40px; }
section { padding: 24px 0 8px; max-width: 680px; }

.hero { display: flex; align-items: flex-start; gap: 48px; max-width: none; padding-top: 32px; }
.hero-text { max-width: 560px; flex: 1 1 320px; }
.hero-text p { font-size: 1.08rem; }
.actions { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; padding: 14px 26px; border-radius: 999px;
  font-size: 1.05rem; transition: transform 0.12s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(0.97); }
.small { font-size: 0.86rem; color: var(--muted); }

.divider { display: block; width: 100%; max-width: 680px; height: 24px; margin: 28px 0 8px; fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; }

.steps { padding-left: 0; margin: 1rem 0; counter-reset: step; list-style: none; }
.steps li { position: relative; padding-left: 52px; margin-bottom: 1rem; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card-2); color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 1.05rem;
}
.plain { padding-left: 1.2rem; margin: 0.6rem 0; }
.plain li { margin-bottom: 0.5rem; }
.downloading { background: var(--card-2); border-radius: 14px; padding: 12px 16px; margin: 0.6rem 0 1rem; }
#installer.lit h2 { color: var(--accent); }
.steps a { color: var(--accent); font-weight: 600; }
.note { color: var(--muted); font-size: 0.95rem; border-left: 3px solid var(--line); padding-left: 14px; }

footer {
  max-width: 1040px; margin: 20px auto 0; padding: 24px 20px 40px;
  display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- les captures, dans un téléphone */
.phone {
  flex: 0 0 300px; width: 300px; padding: 10px; border-radius: 40px;
  background: #1A1416; box-shadow: 0 24px 60px -24px rgba(0,0,0,0.45);
  transform: rotate(-1.5deg); margin-top: 8px;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 1.8rem 0 0.6rem;
}
.gallery figure { margin: 0; }
.gallery .phone.small { width: 100%; flex: none; padding: 6px; border-radius: 22px; transform: none; margin: 0; box-shadow: 0 14px 30px -18px rgba(0,0,0,0.5); }
.gallery .phone.small img { border-radius: 16px; }
.gallery figcaption { margin-top: 8px; font-size: 0.86rem; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  .hero { flex-direction: column; gap: 32px; }
  /* Sur téléphone, la capture ne doit pas remplir tout l'écran : plus petite, légèrement inclinée, dans la marge droite. */
  .hero { gap: 20px; }
  .phone { align-self: flex-end; transform: rotate(2deg); width: 190px; padding: 7px; border-radius: 28px; margin: -8px 4px 0 0; }
  .phone img { border-radius: 21px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery .phone.small { align-self: auto; transform: none; width: 100%; margin: 0; }
  .top nav { gap: 12px; font-size: 0.9rem; }
  body { font-size: 16px; }
}
