/* Logbook Gold — site vitrine. Cuir noir + or, pages crème (comme l'app). Aucune ressource externe. */
:root {
  --leather: #141210;
  --leather-2: #1c1916;
  --leather-3: #26221d;
  --line: #3a3229;
  --gold-1: #f1d77e;
  --gold-2: #d9b64a;
  --gold-3: #b8902f;
  --gold-grad: linear-gradient(160deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3));
  --cream: #f6efdc;
  --cream-2: #ebe1c6;
  --ink: #2a241c;
  --ink-soft: #6b5f4c;
  --text: #ece4d2;
  --text-soft: #b5aa95;
  --green: #4f9a5c;
  --red: #c0533f;
  --amber: #e0a43a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font: 17px/1.6 var(--sans); color: var(--text);
  background: var(--leather) radial-gradient(1200px 600px at 20% -10%, #2a241c 0%, transparent 60%) no-repeat;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-1); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: #f4ecd8; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-soft); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--gold-2); color: #000; padding: 6px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; border-radius: 4px; }

/* ── En-tête ── */
.top { position: sticky; top: 0; z-index: 5; background: rgba(20, 18, 16, .88); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #f4ecd8; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-soft); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-1); background: var(--leather-3); }
.lang { border: 1px solid var(--line); font-size: .8rem !important; letter-spacing: .06em; font-weight: 600; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--leather-2); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
}

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold-grad); color: #1a140a; box-shadow: 0 6px 24px rgba(217, 182, 74, .25); }
.btn-gold:hover { color: #000; filter: brightness(1.06); }
.btn-ghost { border-color: var(--gold-3); color: var(--gold-1); }
.btn-ghost:hover { background: rgba(217, 182, 74, .08); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Héros ── */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
.lead { font-size: 1.2rem; color: var(--text-soft); max-width: 36em; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; padding: 0; list-style: none; }
.platforms li { font-size: .85rem; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--text-soft); background: var(--leather-2); }

/* Page de carnet (données fictives) */
.book { background: var(--leather-3); border-radius: 18px; padding: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px #3d342a; position: relative; }
.book::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(217, 182, 74, .45); border-radius: 13px; pointer-events: none; }
.page { background: var(--cream); color: var(--ink); border-radius: 8px; padding: 14px 14px 10px; overflow-x: auto; }
.page-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); margin-bottom: 8px; gap: 12px; }
.page-head b { font-size: 1.05rem; }
.page-head span { font-size: .75rem; color: var(--ink-soft); }
.page table { border-collapse: collapse; width: 100%; font: 12px/1.3 var(--mono); min-width: 420px; }
.page th { font: 600 10px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); text-align: left; border-bottom: 1.5px solid var(--ink); padding: 4px 5px; }
.page td { padding: 5px; border-bottom: 1px solid #d8ccab; white-space: nowrap; }
.page td.n, .page th.n { text-align: right; }
.page tr.draft td { color: var(--green); }
.page tr.late td { color: var(--red); }
.page tr.tot td { border-top: 1.5px solid var(--ink); border-bottom: 0; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font: 11px var(--sans); color: var(--ink-soft); margin-top: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }

/* ── Sections ── */
section { padding: 64px 0; }
.alt { background: var(--leather-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--leather-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.alt .card { background: var(--leather); }
.card p:last-child { margin-bottom: 0; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.ico { width: 26px; height: 26px; flex: none; stroke: var(--gold-2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico.big { width: 34px; height: 34px; }
.paper { background: var(--cream); color: var(--ink); }
.paper h2, .paper h3 { color: var(--ink); }
.paper .muted { color: var(--ink-soft); }
.paper a { color: #8a6a1c; }
.two { display: grid; gap: 36px; align-items: start; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 6px 0 6px 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--gold-2); border-bottom: 2px solid var(--gold-2); transform: rotate(-45deg); }
.paper .ticks li::before { border-color: #8a6a1c; }

/* Tarifs */
.prices { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price { position: relative; }
.price.best { border-color: var(--gold-3); box-shadow: 0 0 0 1px var(--gold-3), 0 18px 50px rgba(0, 0, 0, .35); }
.price .tag { position: absolute; top: -12px; right: 18px; background: var(--gold-grad); color: #1a140a; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.amount { font-family: var(--serif); font-size: 2rem; color: #f4ecd8; margin: 6px 0 2px; }
.amount small { font-size: .95rem; color: var(--text-soft); font-family: var(--sans); }

/* Téléchargements */
.dl { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dl .card { display: flex; flex-direction: column; gap: 10px; }
.dl .card .btns { margin-top: auto; padding-top: 8px; }
.status { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 6px; padding: 2px 8px; }
.status.beta { background: rgba(217, 182, 74, .14); color: var(--gold-1); }
.status.soon { background: rgba(181, 170, 149, .14); color: var(--text-soft); }
.status.invite { background: rgba(79, 154, 92, .16); color: #8fd29a; }

/* Notes de version */
.release { border-left: 2px solid var(--gold-3); padding: 0 0 26px 22px; position: relative; }
.release::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px var(--leather); }
.release h3 { margin-bottom: 2px; }
.release ul { margin: 8px 0 0; padding-left: 20px; }
.release li { margin: 4px 0; }

/* Texte long (privacy, terms, guide) */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--gold-1); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.callout { border: 1px solid var(--gold-3); background: rgba(217, 182, 74, .07); border-radius: var(--radius); padding: 16px 18px; margin: 1.2em 0; }
.callout p:last-child { margin: 0; }
.toc { background: var(--leather-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 2em; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
kbd, code { font-family: var(--mono); font-size: .88em; background: var(--leather-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 18px 48px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-grad); color: #1a140a; font-weight: 700; display: grid; place-items: center; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--gold-2); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--text-soft); }

/* Bandeau d'appel */
.cta { text-align: center; }
.cta .btns { justify-content: center; }
.page-title { padding: 56px 0 8px; }

/* ── Pied ── */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: .9rem; color: var(--text-soft); }
footer .wrap { display: grid; gap: 24px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
footer h4 { color: #f4ecd8; margin: 0 0 8px; font-size: .9rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 5px 0; }
footer a { color: var(--text-soft); text-decoration: none; }
footer a:hover { color: var(--gold-1); }
.fineprint { grid-column: 1 / -1; font-size: .8rem; border-top: 1px solid var(--line); padding-top: 18px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .top, footer, .menu-btn { display: none; } body { background: #fff; color: #000; } }
.dot-ink { background: var(--ink); }
.dot-green { background: var(--green); }
.dot-red { background: var(--red); }
.cta-more { margin: 22px 0 0; }
.hero .wrap > * { min-width: 0; }
.span-all { grid-column: 1 / -1; margin: 0; }
.prices + .small { margin-top: 14px; }
.dl .card .status { align-self: flex-start; }

/* Captures d'écran (SITE-2) */
.screens { padding-top: 24px; }
figure { margin: 0; }
.shot { display: block; width: 100%; height: auto; border-radius: 10px; }
.frame-desk { background: #0c0b0a; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.frame-phone { background: #0c0b0a; border: 1px solid #4a4036; border-radius: 34px; padding: 9px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.frame-phone .shot { border-radius: 26px; }
.showcase { display: grid; gap: 28px; align-items: end; }
@media (min-width: 860px) { .showcase { grid-template-columns: 1fr 250px; } }
@media (max-width: 859px) { .showcase .frame-phone { max-width: 280px; margin: 0 auto; } }
.gallery { display: grid; gap: 28px; margin-top: 28px; align-items: start; }
@media (min-width: 860px) { .gallery { grid-template-columns: 1fr 250px; } }
@media (max-width: 859px) { .gallery .frame-phone { max-width: 280px; margin: 0 auto; } }
figcaption { font-size: .85rem; color: var(--text-soft); text-align: center; padding: 10px 0 2px; }
.caption { margin-top: 14px; }
