/* Page de présentation de Rouages : une planche à dessin. */
:root {
  --ink: #12213d;
  --paper: #f6f1e4;
  --board: #e2ddd0;
  --blue: #1a4a99;
  --red: #bd261c;
  --line: rgba(26, 74, 153, .13);
  --soft: rgba(18, 33, 61, .72);
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  background-color: var(--board);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 5; }
h1, h2 { font-family: var(--serif); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
p { margin: 0 0 1em; }
.label { font: 600 .78rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 1.1em; }

.bar, main, footer { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.bar { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 6px; }
.brand { font: 800 1.5rem/1 var(--serif); letter-spacing: .14em; color: var(--ink); text-decoration: none; }
.bar nav, footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.bar nav a, footer nav a { font-weight: 600; font-size: .95rem; color: var(--ink); }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.lead { font-size: 1.22rem; color: var(--soft); max-width: 34em; }
.soon { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 14px 0 0; padding: 12px 12px 12px 14px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; box-shadow: 0 4px 0 rgba(18, 33, 61, .2); font-size: .95rem; line-height: 1.35; }
.soon .note { max-width: 9.5em; }
.store { display: inline-block; padding: 11px 18px; background: var(--red); color: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px;
  box-shadow: 0 3px 0 var(--ink); font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform .08s, box-shadow .08s; }
.store:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.store:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.store.light { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 0 3px 0 rgba(246, 241, 228, .35); }
.price { font: 800 1.9rem/1 var(--serif); color: var(--red); white-space: nowrap; }
.emblem { width: 100%; max-width: 420px; justify-self: center; overflow: visible; }
.emblem path { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.emblem .big path { fill: var(--blue); }
.emblem .hub { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.emblem .hub.red { fill: var(--red); }
.emblem .rim { fill: none; stroke: rgba(246, 241, 228, .55); stroke-width: 3; }
.spin { animation: turn 14s linear infinite; }
.spin.big { animation-duration: 28s; animation-direction: reverse; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } html { scroll-behavior: auto; } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 44px 0; border-top: 1.5px solid rgba(18, 33, 61, .22); }
.feature.flip .copy { order: 2; }
.feature .copy p:last-child { color: var(--soft); font-size: 1.08rem; max-width: 30em; }
.shot { margin: 0; justify-self: center; }
.shot img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 22px; box-shadow: 10px 12px 0 rgba(18, 33, 61, .18); background: var(--paper); }
.shot.iphone { max-width: 300px; }
.shot.ipad { max-width: 440px; }
.shot.ipad img { border-radius: 16px; }

.chapters { padding: 48px 0; border-top: 1.5px solid rgba(18, 33, 61, .22); }
.chapters ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.chapters li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--paper); border: 1.5px solid rgba(18, 33, 61, .5); border-radius: 8px; font-weight: 600; }
.chapters li span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--paper); font: 700 .85rem/1 var(--mono); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); background: var(--paper); border-radius: 8px; overflow: hidden; }
.facts div { padding: 20px 18px; border-left: 1.5px solid var(--ink); }
.facts div:first-child { border-left: 0; }
.facts strong { display: block; font: 800 1.9rem/1.1 var(--serif); }
.facts span { color: var(--soft); font-size: .95rem; }

.offer { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 40px 0; padding: 30px 32px; background: var(--ink); color: var(--paper); border-radius: 10px; }
.offer p { color: rgba(246, 241, 228, .84); max-width: 38em; margin: 0; }
.offer .big-price { font: 800 clamp(2.6rem, 7vw, 4rem)/1 var(--serif); color: var(--paper); white-space: nowrap; margin: 0 0 16px; }
.offer-buy { display: flex; flex-direction: column; align-items: flex-end; }

.faq { padding: 12px 0 56px; }
details { background: var(--paper); border: 1.5px solid rgba(18, 33, 61, .5); border-radius: 8px; margin-top: 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 700; }
details p { padding: 0 16px 16px; margin: 0; color: var(--soft); }

footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 40px; border-top: 1.5px solid rgba(18, 33, 61, .35); font-size: .95rem; }
footer p { margin: 0; color: var(--soft); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 24px; }
  .emblem { max-width: 300px; }
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 34px 0; }
  .feature.flip .copy { order: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1.5px solid var(--ink); }
  .offer { flex-direction: column; align-items: flex-start; padding: 24px; }
  .offer-buy { align-items: flex-start; }
  .nav-store { display: none; }
}

/* « Du même atelier » : the developer's other app, a quiet card before the footer */
.also { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 48px; padding: 20px; background: var(--paper); border: 1.5px solid rgba(18, 33, 61, .5); border-radius: 8px; }
.also img { width: 72px; height: 72px; border-radius: 16px; border: 1.5px solid var(--ink); flex: none; }
.also .label { margin-bottom: .5em; }
.also h2 { font-size: 1.5rem; margin: 0 0 .25em; }
.also p { margin: 0; color: var(--soft); }
.also .also-links { margin-top: 10px; display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; }
