/* Lab : pages fonctionnalités, même design system que la page d'accueil (fond brun, encre crème, terracotta + ocre). */
:root {
  --ground: #14120e; --card: #1c1a15; --card-2: #232019;
  --line: #342f25; --line-soft: #2a261e;
  --ink: #f3eee4; --ink-2: #b8b0a0; --ink-3: #8c8474;
  --terracotta: #e0925f; --terracotta-soft: #3a271a;
  --ochre: #cbab74; --slate: #8fb6d3;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.accent { color: var(--terracotta); }

/* Bandeau « version de travail » */
.banner { background: var(--terracotta-soft); color: var(--ochre); font-family: var(--mono); font-size: 12px; text-align: center; padding: 7px 16px; letter-spacing: .02em; }

/* En-tête */
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.mark { width: 30px; height: 30px; flex: none; display: block; }
.mark path { stroke-linecap: butt; stroke-width: 4; }
.mark .a1, .mark .a2 { fill: none; }
.mark .a1 { stroke: var(--terracotta); }
.mark .a2 { stroke: var(--ochre); }
.mark .a3 { fill: var(--ink); stroke: none; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.04em; }
header nav:not(.gnav) { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; order: 3; width: 100%; padding-bottom: 2px; }
header nav:not(.gnav)::-webkit-scrollbar { display: none; }
header nav:not(.gnav) a { flex: none; text-decoration: none; color: var(--ink-3); font-size: 13px; padding: 6px 11px; border-radius: 999px; border: 1px solid transparent; }
header nav:not(.gnav) a:hover { color: var(--ink); }
header nav:not(.gnav) a[aria-current="page"] { color: var(--ink); border-color: var(--line); background: var(--card); }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 9px; text-decoration: none; font-weight: 600; transition: background .15s, color .15s, transform .15s; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn-primary {
  --spin: 0deg; color: var(--ink); font-size: 15px; padding: 7px 8px 7px 20px;
  border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(180deg, #2a251d, #1a1712) padding-box, conic-gradient(from var(--spin), var(--terracotta), var(--ochre), var(--slate), var(--terracotta)) border-box;
  box-shadow: 0 10px 34px -10px rgba(224,146,95,.55), inset 0 1px 0 rgba(255,255,255,.06);
  animation: spin 6s linear infinite;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary .arr { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--ground); line-height: 1; transition: transform .25s; }
.btn-primary:hover .arr { transform: translateX(3px) rotate(-45deg); }
.btn-primary.btn-sm { padding: 8px 16px; font-size: 13px; }
@keyframes spin { to { --spin: 360deg; } }
.btn-ghost { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); padding: 12px 20px; font-size: 15px; }
.btn-ghost:hover { background: var(--card-2); color: var(--ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px; }

/* Titres */
h1, h2 { font-family: var(--display); letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(36px, 5.4vw, 72px); line-height: .98; }
h2 { font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.08; }
.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ochre); margin: 0 0 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lede { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); max-width: 56ch; margin: 20px 0 0; }
.soon { font-family: var(--mono); font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--terracotta); border: 1px dashed var(--terracotta); border-radius: 999px; padding: 2px 9px; display: inline-block; }
.num { font-family: var(--mono); font-size: 12px; color: var(--terracotta); display: block; margin-bottom: 12px; }

/* Héros */
.hero { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding: 6vh 0 8vh; }
@media (min-width: 960px) { .hero { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

/* Placeholders d'images : le contenu à intégrer est écrit dedans */
.ph { margin: 0; width: 100%; border: 1.5px dashed var(--line); border-radius: 16px; background: repeating-linear-gradient(135deg, var(--card) 0 14px, #1a1813 14px 28px); display: grid; place-items: center; padding: 22px; min-height: 220px; }
.ph.tall { max-width: 340px; justify-self: center; }
.ph-in { max-width: 46ch; text-align: center; }
.ph-tag { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--ground); background: var(--ochre); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.ph strong { display: block; font-family: var(--display); font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 8px; }
.ph p { margin: 0; color: var(--ink-3); font-size: 13.5px; }

/* « Ce que ça remplace » */
.strip { border-block: 1px solid var(--line-soft); padding: 22px 0; display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; }
.strip p { margin: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.strip div { display: flex; gap: 8px; flex-wrap: wrap; }
.strip span { font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: line-through; text-decoration-color: var(--terracotta); }

/* Blocs alternés */
.blocks { display: grid; gap: 72px; padding: 80px 0; }
.blk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.blk > *, .hero > * { min-width: 0; }
.blk-copy p { color: var(--ink-2); font-size: 16px; margin: 14px 0 0; max-width: 48ch; }
@media (min-width: 900px) {
  .blk { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; }
  .blk.flip .blk-copy { order: 2; }
}

/* En bref */
.points { background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.points ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.points li { padding-left: 26px; position: relative; color: var(--ink-2); }
.points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--terracotta); border-bottom: 2px solid var(--terracotta); transform: rotate(-45deg); }

/* Fin de page */
.final { text-align: center; padding: 110px 0 90px; }
.final h2 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 800; }
.final .actions { justify-content: center; }

/* Sommaire du lab */
.hubhead { padding: 7vh 0 5vh; max-width: 900px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding-bottom: 80px; }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; padding: 24px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card .num { margin: 0; }
.card h2 { font-size: 22px; }
.card .soon { align-self: flex-start; }
.new { font-family: var(--mono); font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--ochre); border: 1px solid var(--ochre); border-radius: 999px; padding: 2px 9px; display: inline-block; vertical-align: middle; }
h2 .new { font-size: 12px; margin-left: 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; flex: 1; }
.card .go { font-size: 13px; color: var(--terracotta); font-weight: 600; }

/* Pied de page */
footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding: 26px 0 40px; color: var(--ink-3); font-size: 13px; }
footer a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { .btn-primary { animation: none; } * { transition: none !important; } }

/* Tarifs */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); max-width: 920px; }
.plan { background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; }
.plan.featured { border-color: var(--terracotta); box-shadow: 0 24px 70px -30px rgba(224,146,95,.45); }
.plan-name { margin: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ochre); }
.price { margin: 14px 0 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price strong { font-family: var(--display); font-size: clamp(38px, 5vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price .from, .price .per { color: var(--ink-3); font-size: 14px; }
.price .from { width: 100%; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plan li { padding-left: 26px; position: relative; color: var(--ink-2); }
.plan li b { color: var(--ink); font-weight: 600; }
.incl li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--terracotta); border-bottom: 2px solid var(--terracotta); transform: rotate(-45deg); }
.excl { margin-top: 16px !important; padding-top: 16px !important; border-top: 1px solid var(--line-soft); }
.excl li { color: var(--ink-3); }
.excl li::before { content: "×"; position: absolute; left: 1px; top: -1px; color: var(--ink-3); font-size: 18px; line-height: 1; }
.plan .actions { margin-top: auto; padding-top: 28px; }

/* Captures de l'app : de vraies pages HTML, mises à l'échelle du cadre */
.shot { margin: 0; width: 100%; }
.shot-frame { position: relative; width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); background: #14120e; }
.shot img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.shot figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* Cadre de tablette autour de la capture du héros */
.shot.tablet .shot-frame { border: 12px solid #0d0c0a; border-radius: 26px; outline: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); }
@media (max-width: 600px) { .shot.tablet .shot-frame { border-width: 7px; border-radius: 18px; } }
/* Zoom : une zone de l'écran, plus grande */
.shot.zoom .shot-frame { border-radius: 16px; }
.shot.zoom.tall { max-width: 420px; justify-self: center; }
.shot.zoom.tall figcaption { text-align: center; }

/* Interrupteur nuit / jour sous la capture la plus en vue */
.shot { position: relative; }
.shot-switch { position: absolute; right: 0; bottom: -4px; z-index: 2; display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .25s, transform .25s; }
.shot-switch.on { opacity: 1; transform: none; pointer-events: auto; }
.shot-switch .ss-opt { display: grid; place-items: center; width: 30px; height: 26px; border-radius: 999px; color: var(--ink-3); transition: background .2s, color .2s; }
.shot-switch .ss-opt.on { background: var(--ink); color: var(--ground); }
.shot-switch svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shot-switch .ss-opt:first-child svg { fill: currentColor; stroke: none; }
.shot figcaption { padding-right: 84px; min-height: 30px; }
.shot.phone figcaption, .shot.zoom.tall figcaption { padding-right: 0; padding-bottom: 36px; }
.phones .shot.phone figcaption { padding-bottom: 0; }
.phones { position: relative; }
.phones .shot-switch { bottom: -38px; }

/* Captures iPhone */
.shot.phone { max-width: 300px; justify-self: center; }
.shot.phone .shot-frame { border: 9px solid #0d0c0a; border-radius: 38px; outline: 1px solid var(--line); box-shadow: 0 30px 70px -25px rgba(0,0,0,.9); }
.shot.phone figcaption { text-align: center; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.phones .shot.phone { max-width: none; }
.phones .shot.phone .shot-frame { border-width: 6px; border-radius: 26px; }
@media (max-width: 600px) { .phones { gap: 8px; } .phones .shot.phone .shot-frame { border-width: 4px; border-radius: 18px; } .phones figcaption { font-size: 11px; } }
