/* NapBuild — site vitrine. Dans la charte de l'appli : gris très clair, panneaux blancs aux ombres douces,
   encre profonde, un seul bleu ; vert pour ce qui est fait, violet pour une décision. Calme, aéré, téléphone d'abord. */

:root {
  --bg: #f2f4f7;
  --panel: #ffffff;
  --soft: #f7f8fa;
  /* Charte NapBuild (direction B, 31/10/2026) : bleu nuit pour agir, orange de la marque pour les mots forts et le
     mode 100 % auto. L'orange n'est jamais un fond sous du texte blanc (2,4 pour 1) : texte orange = --orange-texte. */
  --ink: #142033;
  --ink-2: #3a4252;
  --muted: #5a6476;
  --line: #dee3ea;
  --accent: #1c3f6b;
  --accent-hi: #2a5288;
  --accent-deep: #102640;
  --accent-soft: #e7edf5;
  --orange: #ec915f;
  --orange-fonce: #e5814b;
  --orange-titre: #c4612c;
  --orange-texte: #b85a28;
  --ok: #17703f;
  --ok-soft: #e1f3e8;
  --arb: #6a43c9;
  --arb-soft: #eee8fb;
  --night: #0c1626;

  --f-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ombre: inset 0 1px 0 rgb(255 255 255 / .9), 0 0 0 1px rgb(16 24 40 / .035), 0 1px 2px rgb(16 24 40 / .05), 0 4px 10px -2px rgb(16 24 40 / .05), 0 14px 28px -12px rgb(16 24 40 / .10);
  --ombre-haute: inset 0 1px 0 rgb(255 255 255 / .9), 0 0 0 1px rgb(16 24 40 / .04), 0 2px 4px rgb(16 24 40 / .05), 0 10px 22px -4px rgb(16 24 40 / .09), 0 40px 70px -30px rgb(16 24 40 / .22);
  --r: 20px;
  --gutter: 16px;
  --wrap: 1160px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent-soft); color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #b9c1cf var(--bg); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.s { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
section { position: relative; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 12px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 16px/1 var(--f-sans); letter-spacing: -.01em;
  transition: background-color .2s, box-shadow .25s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-blue { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 1px 2px rgb(16 24 40 / .12), 0 8px 18px -8px rgb(16 38 64 / .55); }
.btn-blue:hover { background: #102640; }
.btn-soft { background: var(--panel); color: var(--ink); box-shadow: var(--ombre); }
.btn-soft:hover { box-shadow: var(--ombre-haute); }
.btn svg { flex: none; }

/* ---------- Barre ---------- */
.bar { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgb(16 24 40 / .06), 0 6px 18px -14px rgb(16 24 40 / .25); }
.bar .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1; }
.brand img { width: 32px; height: 32px; }
/* Nom NapBuild (planche du pilote, 31/10/2026) : lettres géométriques grasses, bleu nuit. */
.brand .mot { font-family: 'Outfit', var(--f-sans); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: #102640; }
.nav { display: none; }
.bar .btn { margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
@media (min-width: 1140px) {
  .nav { display: flex; gap: 2px; margin-left: auto; }
  .nav a { white-space: nowrap; text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
  .nav a:hover { color: var(--ink); background: var(--soft); }
  .bar .btn { margin-left: 8px; }
}

/* ---------- Héros ---------- */
.hero { padding: 48px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: -260px; width: 1100px; height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(47 116 230 / .16), rgb(47 116 230 / 0)); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 9.6vw, 64px); line-height: 1.04; letter-spacing: -.032em; max-width: 12ch; }
.hero h1 .blue { color: var(--orange-titre); }
.lead { margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 36ch; }
.lead b { color: var(--ink); font-weight: 700; }
.cta { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.cta .btn { width: 100%; }
.cta-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* La carte de projet du héros : un mot entre, dix étapes se cochent, l'appli part. */
.scene { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.card { background: var(--panel); border-radius: var(--r); box-shadow: var(--ombre-haute); padding: 20px; }
.idea { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.idea-label { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.idea-text { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; }
.idea-text::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.card-head b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.auto { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.toggle { flex: none; position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--orange-fonce); }
.toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.pills { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pill { border-radius: 10px; padding: 8px 4px; min-height: 52px; display: grid; place-items: center; text-align: center; font-size: 10.5px; line-height: 1.2; font-weight: 600; color: var(--muted); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s var(--ease), color .4s, box-shadow .4s; }
.pill i { display: block; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.pill.done { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.pill.done i { color: var(--ok); }
.pill.now { background: var(--accent); color: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.pill.now i { color: #fff; }
.card-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); min-height: 52px; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.card-foot.done .dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.card-foot.done { color: var(--ok); }
.scene-phone { position: relative; }
.scene-phone .phone { width: min(280px, 78vw); margin: 0 auto; }
.scene-phone figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }

@media (min-width: 720px) {
  .cta { flex-direction: row; }
  .cta .btn { width: auto; }
  .pill { font-size: 11.5px; }
}
@media (min-width: 1040px) {
  .hero { padding: 88px 0 110px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .scene { margin-top: 0; grid-template-columns: minmax(0, 1fr) 250px; align-items: end; gap: 0; }
  .scene .card { position: relative; z-index: 2; margin-right: -32px; margin-bottom: 40px; }
  .scene-phone .phone { width: 240px; }
  .lead { font-size: 19px; }
}

/* Téléphone */
.phone { position: relative; border-radius: 42px; padding: 8px; background: #11151e; box-shadow: inset 0 0 0 1.5px #2c3241, 0 2px 4px rgb(16 24 40 / .08), 0 30px 60px -24px rgb(16 24 40 / .35); }
.phone img, .phone video { width: 100%; aspect-ratio: 1170 / 2532; object-fit: cover; object-position: top; border-radius: 34px; background: #fff; }

/* ---------- Sections ---------- */
.sec { padding: 80px 0; }
@media (min-width: 960px) { .sec { padding: 128px 0; } }
.title { font-weight: 800; font-size: clamp(34px, 8.6vw, 64px); line-height: 1.05; letter-spacing: -.03em; max-width: 16ch; }
.title .blue { color: var(--orange-titre); }
.intro { margin-top: 18px; font-size: 17.5px; color: var(--muted); max-width: 56ch; }
.intro b { color: var(--ink); font-weight: 700; }
.white { background: var(--panel); }

/* ---------- Départ ---------- */
.starts { margin-top: 40px; display: grid; gap: 12px; }
.start { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; padding: 20px; border-radius: var(--r); background: var(--panel); box-shadow: var(--ombre); }
.start .ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.start b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.start p { color: var(--muted); font-size: 15px; }
.start.zero { background: var(--accent); color: #fff; box-shadow: 0 20px 40px -24px rgb(16 38 64 / .7); }
.start.zero .ico { background: rgb(255 255 255 / .16); color: #fff; }
.start.zero p { color: #dbe6fb; }
@media (min-width: 900px) { .starts { grid-template-columns: repeat(3, 1fr); gap: 16px; } .start { grid-template-columns: 1fr; padding: 26px; } .start .ico { grid-row: auto; margin-bottom: 14px; } }

/* ---------- Le trajet ---------- */
.trajet-grid { margin-top: 48px; display: grid; gap: 40px; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--accent-soft)); border-radius: 2px; }
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 2px 16px; padding: 0 0 26px; }
.step:last-child { padding-bottom: 0; }
.step .n { grid-row: span 3; position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); box-shadow: var(--ombre), inset 0 0 0 1.5px var(--accent-soft); font: 600 14px/1 var(--f-mono); color: var(--accent); }
.step h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; padding-top: 8px; }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.step .proof { margin-top: 10px; justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 700; }
.step.last .n { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgb(16 38 64 / .6); }
.step.last h3 { color: var(--accent); }
.trajet-shot { margin: 0; }
.trajet-shot .phone { width: min(300px, 80vw); margin: 0 auto; }
.trajet-shot figcaption { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }
@media (min-width: 960px) {
  .trajet-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 96px; align-items: start; }
  .trajet-shot { position: sticky; top: 104px; }
  .steps { columns: 2; column-gap: 48px; }
  .steps::before { display: none; }
  .step { break-inside: avoid; padding-bottom: 30px; }
}

/* ---------- Automatique ---------- */
.auto-grid { display: grid; gap: 40px; }
.switches { margin-top: 36px; background: var(--panel); border-radius: var(--r); box-shadow: var(--ombre-haute); overflow: hidden; }
.status { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 15px; transition: background .35s var(--ease), color .35s; }
.status .dot { background: var(--ok); box-shadow: 0 0 0 4px rgb(23 112 63 / .14); transition: background .35s, box-shadow .35s; }
.status.wait { background: var(--arb-soft); color: var(--arb); }
.status.wait .dot { background: var(--arb); box-shadow: 0 0 0 4px rgb(106 67 201 / .14); }
.sw { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; text-align: left; padding: 22px 20px; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; cursor: pointer; font: inherit; transition: background .2s; }
.sw:hover { background: var(--soft); }
.sw b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.sw p { grid-column: 1; color: var(--muted); font-size: 15px; line-height: 1.55; }
.knob { grid-row: 1 / span 2; grid-column: 2; position: relative; width: 56px; height: 34px; border-radius: 999px; background: #c9d1de; transition: background .3s var(--ease); }
.knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(16 24 40 / .3); transition: transform .35s var(--ease); }
.sw[aria-checked="true"] .knob { background: var(--orange-fonce); }
.sw[aria-checked="true"] .knob::after { transform: translateX(22px); }
.guard { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 14.5px; color: var(--muted); max-width: 60ch; }
.guard svg { flex: none; color: var(--accent); margin-top: 2px; }
.auto-shot { margin: 0; }
.auto-shot .shot { max-width: 400px; margin: 0 auto; border-radius: var(--r); overflow: hidden; background: var(--panel); box-shadow: var(--ombre-haute); }
.auto-shot figcaption { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }
@media (min-width: 960px) { .auto-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 96px; align-items: center; } }

/* ---------- Watt Carnet ---------- */
.watt { background: var(--night); color: #eef1f7; overflow: hidden; }
.watt::before { content: ""; position: absolute; left: 50%; top: -30%; width: 1200px; height: 800px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(47 116 230 / .22), rgb(47 116 230 / 0)); pointer-events: none; }
.watt .wrap { position: relative; }
.watt .title { color: #fff; }
.watt .title .blue { color: #f2a274; }
.watt .intro { color: #a7b0c4; }
.watt .intro b { color: #fff; }
.watt-id { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.watt-id img { width: 56px; height: 56px; border-radius: 14px; }
.watt-id b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.watt-id span { font-size: 14px; color: #a7b0c4; }
.strip { margin-top: 44px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; flex: 0 0 min(220px, 60vw); scroll-snap-align: center; }
.strip .phone { background: #05080f; box-shadow: inset 0 0 0 1.5px #2a3245, 0 30px 60px -24px rgb(0 0 0 / .7); }
.strip figcaption { margin-top: 14px; font-size: 14px; color: #c3cada; font-weight: 600; }
@media (min-width: 1040px) {
  .watt-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; overflow: visible; padding: 0; margin: 64px 0 0; }
  .strip figure:nth-child(even) { translate: 0 40px; }
}
.kit { margin-top: 64px; display: grid; gap: 16px; }
.slab { background: var(--panel); color: var(--ink); border-radius: var(--r); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); overflow: hidden; }
.slab-cap { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 16px 20px; font-size: 14px; color: var(--muted); }
.slab-cap b { font-weight: 700; color: var(--ink); }
.video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #f6ecd6; }
.store-scroll { overflow-x: auto; scrollbar-width: none; background: #f3e6c8; }
.store-scroll::-webkit-scrollbar { display: none; }
.store-scroll img { min-width: 860px; width: 100%; }
.manifest { list-style: none; margin: 0; padding: 0 20px 8px; }
.manifest li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.manifest li b { color: var(--ink); font-weight: 700; }
.manifest svg { color: var(--ok); margin-top: 3px; }
.dossier { display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; padding: 20px; }
.dossier img { border-radius: 6px; box-shadow: 0 10px 20px -10px rgb(16 24 40 / .45); }
.dossier b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.dossier p { font-size: 14.5px; color: var(--muted); }
@media (min-width: 960px) {
  .kit { grid-template-columns: 1.6fr 1fr; grid-template-areas: "video list" "dossier list" "store store"; align-items: start; }
  .kit .video-slab { grid-area: video; }
  .kit .list-slab { grid-area: list; }
  .kit .dossier-slab { grid-area: dossier; }
  .kit .store-slab { grid-area: store; }
  .store-scroll img { min-width: 0; }
}

/* ---------- Autres applis ---------- */
.others { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.other { margin: 0; background: var(--panel); border-radius: var(--r); padding: 12px 12px 16px; box-shadow: var(--ombre); }
.other img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 12px; }
.other b { display: block; margin-top: 12px; font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.other span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.other:last-child { grid-column: 1 / -1; }
.note { margin-top: 18px; font-size: 13.5px; color: var(--muted); max-width: 70ch; }
@media (min-width: 900px) { .others { grid-template-columns: repeat(3, 1fr); gap: 20px; } .other:last-child { grid-column: auto; } .other { padding: 14px 14px 18px; } }

/* ---------- Preuves ---------- */
.proofs { margin-top: 44px; display: grid; gap: 14px; }
.proofs article { background: var(--panel); border-radius: var(--r); box-shadow: var(--ombre); padding: 22px; }
.proofs .k { font-weight: 800; font-size: 38px; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.proofs h3 { margin-top: 12px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.proofs p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.proofs .wide { background: var(--accent); color: #fff; box-shadow: 0 20px 40px -24px rgb(16 38 64 / .7); }
.proofs .wide .k { color: #fff; font-size: 64px; }
.proofs .wide p { color: #dbe6fb; }
@media (min-width: 900px) {
  .proofs { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
  .proofs .wide { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; }
  .proofs .wide .k { font-size: 112px; }
  .proofs article { padding: 26px; }
}

/* ---------- Pilotage ---------- */
.trio { margin-top: 44px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); scrollbar-width: none; }
.trio::-webkit-scrollbar { display: none; }
.trio figure { margin: 0; flex: 0 0 min(260px, 72vw); scroll-snap-align: center; }
.trio figcaption { margin-top: 18px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.trio figcaption b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-bottom: 4px; }
.extras { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.extras li { padding: 16px 18px; border-radius: 16px; background: var(--panel); box-shadow: var(--ombre); font-size: 15px; color: var(--muted); }
.extras b { color: var(--ink); font-weight: 700; }
.desk { margin: 64px 0 0; }
.window { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--ombre-haute); }
.window-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #eceff4; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd2dd; }
.desk figcaption { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
@media (min-width: 960px) {
  .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; overflow: visible; padding: 0; margin: 64px 0 0; }
  .trio figure:nth-child(2) { translate: 0 44px; }
  .trio .phone { width: min(280px, 100%); margin: 0 auto; }
  .trio figcaption { max-width: 30ch; margin-left: auto; margin-right: auto; }
  .extras { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 104px; }
}

/* ---------- Sur mesure ---------- */
.mesure-grid { margin-top: 44px; display: grid; gap: 16px; }
.mesure-grid > div { background: var(--panel); border-radius: var(--r); box-shadow: var(--ombre); padding: 22px; }
.mesure-grid h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.mesure-grid h3 + p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.rows { list-style: none; margin: 16px 0 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.rows li b { font-weight: 700; }
.rows li span { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; text-align: right; }
.ok { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
@media (min-width: 900px) { .mesure-grid { grid-template-columns: 1fr 1fr; gap: 20px; } .mesure-grid > div { padding: 30px; } }

/* ---------- Questions ---------- */
.faq-grid { display: grid; gap: 28px; }
.faq { background: var(--panel); border-radius: var(--r); box-shadow: var(--ombre); padding: 4px 20px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-75%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .a { padding: 0 0 20px; color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 64ch; }
.faq .a p + p { margin-top: 10px; }
.faq .a b { color: var(--ink); font-weight: 700; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; } .faq { padding: 6px 28px; } .faq summary { font-size: 18px; padding: 22px 40px 22px 0; } }

/* ---------- Télécharger ---------- */
.final { text-align: left; }
.final-grid { display: grid; gap: 32px; }
.platforms { background: var(--panel); border-radius: var(--r); box-shadow: var(--ombre-haute); overflow: hidden; }
.pf { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; text-decoration: none; color: inherit; transition: background .2s; }
.pf + .pf { border-top: 1px solid var(--line); }
.pf-name { display: flex; align-items: center; gap: 14px; }
.pf-name .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.pf-name b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.pf-name small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.pf .go { font-size: 14px; font-weight: 700; padding: 10px 14px; border-radius: 10px; white-space: nowrap; }
a.pf .go { background: var(--accent); color: #fff; }
a.pf:hover { background: var(--soft); }
a.pf:hover .go { background: #102640; }
.pf.soon .go { background: var(--soft); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.final-meta { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
@media (min-width: 960px) { .final-grid { grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; } .pf { padding: 20px 24px; } }

/* ---------- Pied ---------- */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--panel); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* ---------- Mouvement : une seule montée, douce ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
  .js .rise.in { opacity: 1; translate: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .idea-text::after { animation: none; } }

/* ---------- Retouches du 30/10 : plateformes, abonnement, technologies ---------- */

.auto-grid > div:last-child .switches { margin-top: 0; }
@media (max-width: 959px) { .auto-grid { gap: 32px; } }
@media (min-width: 960px) { .auto-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: center; } }

.sub-grid { margin-top: 40px; display: grid; gap: 16px; }
.sub-rows { margin: 0; background: var(--soft); border-radius: var(--r); padding: 4px 20px; box-shadow: inset 0 0 0 1px var(--line); }
.sub-rows li:first-child { border-top: 0; }
.sub-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sub-facts li { padding: 18px 20px; border-radius: 16px; background: var(--panel); box-shadow: var(--ombre); font-size: 15px; color: var(--muted); }
.sub-facts b { display: block; color: var(--ink); font-size: 16.5px; font-weight: 800; letter-spacing: -.015em; margin-bottom: 4px; }
@media (min-width: 900px) { .sub-grid { grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; } .sub-rows { padding: 6px 28px; } }

.techs { margin-top: 40px; display: grid; gap: 14px; }
.tech { position: relative; background: var(--soft); border-radius: var(--r); padding: 24px 22px; box-shadow: inset 0 0 0 1px var(--line); }
.tech h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.tech .tech-stack { margin-top: 4px; font: 600 13px/1.3 var(--f-mono); color: var(--accent); }
.tech p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.tech .tech-stack + p { margin-top: 14px; }
.tech-plus { padding-top: 12px; border-top: 1px solid var(--line); }
.tech-plus b { color: var(--ok); font-weight: 700; margin-right: 6px; }
.tech .tag { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.makes { margin-top: 16px; border-radius: var(--r); background: var(--panel); box-shadow: var(--ombre); padding: 22px; }
.makes h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.makes ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; }
.makes li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.makes li b { display: block; color: var(--ink); font-weight: 700; }
@media (min-width: 900px) {
  .techs { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .tech { padding: 28px 26px; }
  .makes { padding: 28px; }
  .makes ul { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .makes li { border-top: 0; padding: 0; }
}

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: none; box-shadow: none; overflow: visible; }
.pf { grid-template-columns: 1fr; justify-items: start; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--panel); box-shadow: var(--ombre); }
.pf + .pf { border-top: 0; }
.pf-name { flex-direction: column; align-items: flex-start; gap: 12px; }
.pf .go { width: 100%; text-align: center; }
a.pf:hover { background: var(--panel); box-shadow: var(--ombre-haute); }
@media (min-width: 960px) { .pf { padding: 22px; } }
.faq .a a { color: var(--accent); font-weight: 600; }

/* ---------- Guides ---------- */
.guide { padding: 28px 0 0; }
.g-grille { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) {
  .g-grille { grid-template-columns: minmax(0, 1fr) 260px; column-gap: 56px; align-items: start; }
  .g-tete { grid-column: 1 / -1; }
  .g-sommaire { grid-column: 2; grid-row: 2; position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .g-texte { grid-column: 1; grid-row: 2; }
}
.g-ariane { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.g-ariane a { color: var(--muted); text-decoration: none; }
.g-ariane a:hover { color: var(--accent); }
.guide h1 { font-size: clamp(30px, 6.4vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; max-width: 22ch; }
.g-date { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.g-chapo { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 58ch; }
.g-sommaire, .g-sommaire-court { background: var(--panel); border-radius: 16px; box-shadow: var(--ombre); padding: 6px 18px; }
.g-sommaire { display: none; }
@media (min-width: 1040px) { .g-sommaire { display: block; } .g-sommaire-court { display: none; } }
.g-sommaire p, .g-sommaire-court summary { padding: 12px 0; font-weight: 700; font-size: 14.5px; }
.g-sommaire-court summary { cursor: pointer; }
.g-sommaire ol, .g-sommaire-court ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.4; }
.g-sommaire a, .g-sommaire-court a { color: var(--ink-2); text-decoration: none; }
.g-sommaire a:hover, .g-sommaire-court a:hover { color: var(--accent); }
.g-texte { max-width: 70ch; min-width: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.g-texte > * + * { margin-top: 18px; }
.g-texte h2 { margin-top: 48px; color: var(--ink); font-size: clamp(23px, 4.4vw, 29px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; scroll-margin-top: 86px; }
.g-texte h3 { margin-top: 30px; color: var(--ink); font-size: 19px; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
.g-texte b { color: var(--ink); font-weight: 700; }
.g-texte a { color: var(--accent); font-weight: 600; }
.g-texte ul, .g-texte ol { padding-left: 22px; display: grid; gap: 8px; }
.g-texte li::marker { color: var(--accent); font-weight: 700; }
.g-note { background: var(--accent-soft); color: var(--ink); border-radius: 14px; padding: 14px 18px; font-size: 16px; }
.g-fig img { border-radius: 16px; box-shadow: var(--ombre-haute); background: var(--panel); }
.g-fig { margin-left: 0; margin-right: 0; }
.g-table { overflow-x: auto; background: var(--panel); border-radius: 16px; box-shadow: var(--ombre); }
.g-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.g-table th { text-align: left; color: var(--ink); font-weight: 700; background: var(--soft); }
.g-table th, .g-table td { padding: 11px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
.g-table tr:last-child td { border-bottom: 0; }
.g-cta { margin-top: 44px !important; background: var(--panel); border-radius: var(--r); box-shadow: var(--ombre-haute); padding: 22px; display: grid; gap: 16px; justify-items: start; }
.g-cta p { color: var(--ink-2); font-size: 16px; }
.g-sources { margin-top: 44px !important; border-top: 1px solid var(--line); padding-top: 8px; }
.g-sources h2 { margin-top: 18px; font-size: 20px; }
.g-sources ol { font-size: 14.5px; line-height: 1.5; gap: 10px; }
.g-sources li span { display: block; color: var(--muted); }
.g-fait { font-size: 14px; color: var(--muted); }
.g-aussi { padding: 56px 0 64px; }
.g-aussi h2, .g-liste h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 18px; }
.g-cartes { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .g-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .g-aussi .g-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-carte { display: grid; gap: 8px; align-content: start; background: var(--panel); border-radius: var(--r); box-shadow: var(--ombre); padding: 20px; text-decoration: none; color: var(--ink); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.g-carte:hover { box-shadow: var(--ombre-haute); transform: translateY(-2px); }
.g-carte b { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.g-carte span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.g-carte small { color: var(--muted); font-size: 13px; }
.g-liste { padding-bottom: 72px; }
.g-liste .g-cartes { margin-top: 30px; }

/* ---------- Essai du héros : l'idée du visiteur devient le petit kit de son appli ---------- */
.esquisse { padding: 8px 0 64px; }
.kit-tete { display: grid; gap: 10px; margin-bottom: 18px; }
.kit-idee { font-weight: 800; font-size: clamp(20px, 3vw, 26px); letter-spacing: -.02em; }

/* Le kit : une affiche aux couleurs de l'appli (variables posées par assets/esquisse.js). */
.kit { --k-fond: #eef1f6; --k-encre: #161b24; --k-principale: var(--accent); --k-accent: #e0703a; --k-titres: var(--f-sans);
  position: relative; overflow: hidden; border-radius: 28px; display: grid; gap: 28px; padding: 32px 24px 0; color: var(--k-encre);
  background: radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--k-principale) 26%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--k-fond) 92%, var(--k-principale)), var(--k-fond));
  box-shadow: var(--ombre-haute); transition: background .6s var(--ease); }
.kit-texte { display: grid; gap: 18px; align-content: center; position: relative; z-index: 2; min-width: 0; }
.kit-marque { display: flex; align-items: center; gap: 14px; }
.kit-marque b { font-family: var(--k-titres), var(--f-sans); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.kit-icone { width: 64px; height: 64px; flex: none; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--k-principale); color: #fff; font-weight: 800; font-size: 28px; box-shadow: 0 12px 24px -12px rgb(0 0 0 / .45); }
.kit-icone img { width: 100%; height: 100%; display: block; }
.kit-promesse { font-family: var(--k-titres), var(--f-sans); font-size: clamp(34px, 5vw, 58px); line-height: 1; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.kit-atouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kit-atouts li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; }
.kit-atouts li::before { content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
  background: color-mix(in srgb, var(--k-principale) 20%, transparent); color: var(--k-principale); }
.kit-atouts li.vide::after { content: ""; display: block; height: 14px; width: 60%; border-radius: 7px; background: color-mix(in srgb, var(--k-encre) 10%, transparent); }
.kit-badge { justify-self: start; padding: 10px 18px; border-radius: 999px; background: var(--k-encre); color: var(--k-fond); font-size: 14px; font-weight: 700; }

/* Les 3 téléphones : sur grand écran, inclinés et en éventail ; sur téléphone, côte à côte et à plat. */
.kit-tels { display: flex; gap: 14px; overflow-x: auto; padding: 0 0 28px; margin: 0 -24px; padding-inline: 24px; overscroll-behavior-x: contain; }
.kit-tel { flex: none; width: 236px; border-radius: 38px; padding: 7px; background: #0d0f14; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .12) inset, 0 30px 60px -22px rgb(0 0 0 / .55); }
.kit-tel.t0 { order: -1; }
.ecran { position: relative; width: 222px; height: 480px; border-radius: 31px; overflow: hidden; background: #fff; }
.ecran iframe { width: 390px; height: 843px; border: 0; transform: scale(.5692); transform-origin: 0 0; pointer-events: none; }
.ecran .attente { position: absolute; inset: 0; background: linear-gradient(110deg, #eef0f4 30%, #f8f9fb 50%, #eef0f4 70%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .ecran .attente { animation: kit-reflet 1.4s linear infinite; }
  .ecran iframe { animation: kit-arrive .7s var(--ease) both; }
}
@keyframes kit-reflet { to { background-position: -200% 0; } }
@keyframes kit-arrive { from { opacity: 0; transform: scale(.5692) translateY(30px); } }
@media (min-width: 960px) {
  .kit { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding: 48px 0 0 56px; min-height: 600px; }
  .kit-tels { position: relative; display: block; overflow: visible; margin: 0; padding: 0; height: 600px; }
  .kit-tel { position: absolute; transform-origin: 50% 100%; }
  .kit-tel.t0 { z-index: 3; left: 32%; top: 30px; transform: rotate(-4deg) scale(1.12); }
  .kit-tel.t1 { z-index: 1; left: 2%; top: 110px; transform: rotate(-10deg); filter: brightness(.97); }
  .kit-tel.t2 { z-index: 2; left: 57%; top: 80px; transform: rotate(6deg); filter: brightness(.97); }
}
.kit-suite { margin-top: 24px; display: grid; gap: 14px; max-width: 720px; }
.kit-suite p { color: var(--ink-2); }
.kit-suite .cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Disponibilité : les plateformes affichées sans lien de téléchargement. */
.pf.dispo .go { background: var(--ok-soft); color: var(--ok); }

@media (prefers-reduced-motion: no-preference) {
  .card.reel .pill.now { animation: pill-pulse 1.2s ease-in-out infinite; }
  .card.reel .card-foot:not(.done):not(.err) .dot { animation: pill-pulse 1.2s ease-in-out infinite; }
}
@keyframes pill-pulse { 50% { box-shadow: 0 0 0 7px var(--accent-soft); } }
/* Sous le kit : avec quel moteur il a été dessiné. */
.kit-suite .kit-moteur { font-size: 14px; color: var(--muted); padding-left: 12px; border-left: 3px solid var(--accent-soft); }

/* Héros : trois puces sous la présentation. */
.hero-puces { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-puces li { display: flex; align-items: center; gap: 11px; font-size: 16.5px; font-weight: 650; color: var(--ink-2); }
.hero-puces span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
@media (max-width: 1039px) { .hero .scene { margin-top: 32px; } }

/* La carte du héros sert aussi à l'essai : la case « Ton idée » ne change pas d'aspect ; un clic dedans, la démonstration
   s'efface et le curseur attend l'idée du visiteur. */
.idea { position: relative; cursor: text; transition: box-shadow .2s, background .2s; }
.idea-champ { position: relative; flex: 1; min-width: 0; display: flex; }
.idea-input { width: 100%; min-width: 0; height: 1.6em; padding: 0; border: 0; outline: none; background: transparent; font: 700 17px/1.6 var(--f-sans); letter-spacing: -.01em; color: var(--ink); caret-color: var(--accent); opacity: 0; }
.idea-text { position: absolute; inset: 0; pointer-events: none; }
.card.saisie .idea-input { opacity: 1; }
.card.saisie .idea-text { visibility: hidden; }
.card.a-texte .idea-input { padding-right: 34px; }
.idea-go { position: absolute; right: 9px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--accent); color: #fff; opacity: 0; visibility: hidden; transform: scale(.7); transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s; }
.card.a-texte .idea-go { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s var(--ease); }
.idea-go:hover { background: #102640; }
.idea-go:disabled { opacity: .45; cursor: default; }
.card-foot.err { color: #a3361b; }
.card-foot.err .dot { background: #c2410c; box-shadow: 0 0 0 4px #fde4d6; }
.card { min-width: 0; max-width: 100%; }
.pill { min-width: 0; }
/* Petits téléphones : le texte des tuiles rapetisse un peu pour que les mots tiennent entiers. */
@media (max-width: 719px) { .pill { padding: 8px 2px; font-size: clamp(8px, 2.6vw, 10.5px); } }
