/* SpaceTime Atlas : feuille de style unique, aucune ressource externe (CSP self). */
@font-face {
  font-family: 'STC Mono';
  src: url('/static/fonts/stc-mono.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
:root {
  --night: #1d0070;
  --night-2: #140050;
  --ink: #f4f2ff;
  --muted: #b7b0dd;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.05);
  --accent: #ffd36b;
  --accent-ink: #1a0f00;
  --bad: #ff8a8a;
  --ok: #8fe3b0;
  --radius: 14px;
  --mono: 'STC Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: radial-gradient(1200px 700px at 70% -10%, #2c0aa0 0%, transparent 60%), radial-gradient(900px 600px at -10% 30%, #12004a 0%, transparent 60%), var(--night-2);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.mono { font-family: var(--mono); font-weight: 300; letter-spacing: 0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bad { color: var(--bad); }
.hint { color: var(--muted); font-size: 0.82rem; margin: 0.35rem 0 0; }
.kicker { text-transform: uppercase; color: var(--accent); font-size: 0.78rem; letter-spacing: 0.14em; margin: 0 0 0.6rem; }
.mini-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* ---------------------------------------------------------------- en-tête */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(20, 0, 80, 0.72); }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 1.05rem; letter-spacing: 0.04em; }
.header-nav { display: flex; gap: 0.5rem; align-items: center; }
.site-footer { border-top: 1px solid var(--line); padding: 2rem clamp(1rem, 4vw, 2.5rem); color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 3rem; }
.site-footer p { margin: 0.3rem 0; }

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border-radius: 999px; padding: 0.65rem 1.15rem; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: transform 0.12s, background 0.2s, border-color 0.2s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ffe197; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover, .btn.ghost.on { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: 0.4rem 0.8rem; font-size: 0.85rem; font-weight: 500; }
.btn.big { width: 100%; padding: 0.95rem 1.2rem; font-size: 1.05rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* -------------------------------------------------------------------- hero */
.editor { padding: 0 clamp(1rem, 4vw, 2.5rem); max-width: 1440px; margin: 0 auto; }
.hero { padding: clamp(1.8rem, 5vw, 3.5rem) 0 1.5rem; max-width: 820px; }
.hero h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.12; margin: 0 0 0.8rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); margin: 0; }

/* ---------------------------------------------------------- espace de travail */
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.preview-col { position: sticky; top: 76px; }
.controls { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; }
  .preview-col { position: static; }
}

.preview-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.preview-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-top: 0.8rem; flex-wrap: wrap; }
.jd { display: block; font-size: 1.25rem; }
.utc { color: var(--muted); font-size: 0.85rem; }
.status-line { margin: 0; color: var(--muted); font-size: 0.85rem; min-height: 1.2em; }
.status-line.bad { color: var(--bad); }
.anim-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.8rem; }
.anim-bar select { width: auto; }

/* --------------------------------------------------------------- formulaires */
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 1rem 1.1rem 1.15rem; margin: 0; min-width: 0; }
.panel legend { font-weight: 700; padding: 0 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.step { color: var(--accent); font-size: 0.8rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.75rem; min-width: 0; }
.field > span, .field > .lbl { font-size: 0.8rem; color: var(--muted); }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 0; }
.field.inline select { width: 4.5rem; }
input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='time'], select {
  width: 100%; font: inherit; color: var(--ink); background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.7rem; min-height: 42px;
}
select option, select optgroup { background: #1a0c55; color: var(--ink); }
input:focus, select:focus { border-color: var(--accent); outline: none; }
.date-row { display: grid; grid-template-columns: 4.2rem 1fr 5.6rem; gap: 0.45rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; align-items: end; }
.row2 .check { margin-top: 0.75rem; }
select:disabled { opacity: 0.45; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; cursor: pointer; font-size: 0.9rem; margin-top: 0.55rem; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0.12rem 0 0; flex: none; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.6rem; margin-top: 0.35rem; }
.checks .check:first-child { grid-column: 1 / -1; }
.field.color { flex-direction: row; align-items: center; justify-content: space-between; }
input[type='color'] { width: 46px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: none; padding: 2px; cursor: pointer; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255, 211, 107, 0.35); }
.swatches.tee .mini-label { margin-right: 0.3rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 0.85rem; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 0.4rem 0.85rem; cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--night); }
.advanced { margin-top: 0.8rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: 0.88rem; }
.range { display: grid; grid-template-columns: 9.5rem 1fr 3rem; gap: 0.5rem; align-items: center; margin-top: 0.55rem; font-size: 0.85rem; }
.range input { accent-color: var(--accent); width: 100%; }
.range output { text-align: right; color: var(--muted); }

.buy { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.buy-head { display: flex; justify-content: space-between; align-items: baseline; }
.price { font-size: 1.6rem; }
.buy .btn.big { margin-top: 0.9rem; }
.terms { font-size: 0.8rem; color: var(--muted); }
.form-error { color: var(--bad); min-height: 1.2em; margin: 0.5rem 0 0; font-size: 0.88rem; }
.reset-row { display: flex; justify-content: flex-end; margin-top: 0.4rem; }
.secure { text-align: center; }

/* ------------------------------------------------------------------- scène */
.stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 280px; display: grid; place-items: center; transition: background 0.3s; }
.stage .art { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.stage.mock-flat { background: repeating-conic-gradient(rgba(255, 255, 255, 0.05) 0% 25%, transparent 0% 50%) 50% / 20px 20px; padding: clamp(0.5rem, 2vw, 1.2rem); }
.flat-wrap { width: 100%; max-height: 72vh; display: grid; place-items: center; box-shadow: 0 14px 50px rgba(0, 0, 0, 0.45); }
.stage.is-portrait .flat-wrap { width: auto; height: 72vh; max-width: 100%; }

/* Poster encadré au mur */
.wall { width: 100%; min-height: clamp(320px, 52vw, 640px); display: grid; place-items: center; position: relative; background: radial-gradient(ellipse at 50% 30%, #f2efe8 0%, #ddd8cc 60%, #c9c2b3 100%); padding: 7% 10% 14%; }
.wall .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: linear-gradient(#b59f7e, #8f7859); box-shadow: inset 0 6px 10px rgba(0, 0, 0, 0.25); }
.frame { position: relative; z-index: 1; padding: clamp(8px, 1.6%, 16px); background: linear-gradient(145deg, #2a2a2a, #0d0d0d); box-shadow: 0 28px 40px -14px rgba(0, 0, 0, 0.55), 0 8px 14px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.08); box-sizing: content-box; }
.mat { background: #f7f6f2; padding: 7%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), inset 2px 3px 6px rgba(0, 0, 0, 0.18); }

/* Toile sur châssis */
.canvas-wall { background: radial-gradient(ellipse at 40% 25%, #eef0f2 0%, #d5d8dc 70%, #c2c6cc 100%); padding: 9% 10%; }
.canvas3d { position: relative; transform: perspective(1400px) rotateY(-14deg); transform-style: preserve-3d; box-shadow: 30px 30px 40px -18px rgba(0, 0, 0, 0.5); }
.canvas-face { position: relative; overflow: hidden; }
.canvas-face .art, .mat .art { height: auto; }
.canvas-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px), linear-gradient(100deg, rgba(255, 255, 255, 0.10), transparent 40%); mix-blend-mode: overlay; }
.canvas-edge { position: absolute; top: 0; right: 0; width: 26px; height: 100%; transform-origin: right center; transform: rotateY(90deg); background-size: auto 100%; background-position: right center; filter: brightness(0.55); }

/* T-shirt */
.stage.mock-tshirt { background: radial-gradient(ellipse at 50% 40%, #e9e6df 0%, #cfcac0 100%); padding: 4% 8%; }
.tee-wrap { position: relative; width: min(100%, 560px); aspect-ratio: 600 / 640; }
.tee-svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.28)); }
.tee-print { position: absolute; }
.tee-print .art { opacity: 0.94; filter: blur(0.15px); }
.tee-fabric { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 3px); opacity: 0.6; }

/* --------------------------------------------------------------- positions */
.positions, .how { margin-top: 3rem; }
.positions h2, .how h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.pos-table { width: 100%; max-width: 640px; border-collapse: collapse; font-size: 0.9rem; }
.pos-table th, .pos-table td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line); text-align: right; }
.pos-table th:first-child { text-align: left; font-weight: 500; }
.pos-table thead th { color: var(--muted); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.how-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.how-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--panel); }
.how-list p { margin: 0.4rem 0 0; color: var(--muted); }

/* --------------------------------------------------------- pages annexes */
.narrow { max-width: 860px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem); }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2.2rem); }
.card h1 { margin-top: 0; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.center { text-align: center; }
.order-status { font-size: 1.1rem; }
.order-status.ok { color: var(--ok); font-weight: 600; }
.order-preview { margin: 1rem 0 1.4rem; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(rgba(255, 255, 255, 0.05) 0% 25%, transparent 0% 50%) 50% / 20px 20px; min-height: 120px; display: grid; place-items: center; }
.order-preview .art { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.7rem; }
.png-row { display: flex; gap: 0.4rem; }
.png-row .btn { flex: 1; }
.png-row select { width: auto; max-width: 52%; }
.order-meta { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.2rem; margin: 1.4rem 0; font-size: 0.92rem; }
.order-meta dt { color: var(--muted); }
.order-meta dd { margin: 0; word-break: break-all; }
.order-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.order-actions .btn.big { width: auto; flex: 1; }
.mock-amount { font-size: 2.4rem; font-weight: 700; margin: 1rem 0 0.3rem; }
.legal section { margin-top: 1.4rem; }
.legal h2 { font-size: 1.05rem; margin: 0 0 0.3rem; color: var(--accent); }
.legal p { margin: 0; color: #dcd8f2; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; margin: 1rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 140%); background: #fff; color: #140050; padding: 0.7rem 1.1rem; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.25s; z-index: 50; max-width: 92vw; }
.toast.show { transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

@media (max-width: 560px) {
  .site-header { padding: 0.7rem 1rem; }
  .brand span { display: none; }
  .range { grid-template-columns: 1fr 2.6rem; }
  .range > span { grid-column: 1 / -1; }
  .checks { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .mock-tabs button { padding: 0.35rem 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* =================================================================== landing */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 0.4rem 0.6rem; border-radius: 8px; }
.nav-link:hover { color: var(--ink); }
.l-section { padding: clamp(3rem, 8vw, 6.5rem) 0 0; }
.l-head { max-width: 720px; margin-bottom: 2.2rem; }
.l-head h2, .why h2, .faq h2, .final h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; margin: 0 0 0.7rem; letter-spacing: -0.01em; }
.l-head .lead { margin-top: 0.4rem; }

/* héros */
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; max-width: none; padding-top: clamp(2rem, 6vw, 4.5rem); }
.landing-hero h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 1.1rem; }
.landing-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffd36b, #ffb37a 45%, #c9b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-hero .lead { max-width: 38rem; }
.quick { display: flex; gap: 0.6rem; margin-top: 1.6rem; align-items: end; flex-wrap: wrap; max-width: 34rem; }
.quick-field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 12rem; font-size: 0.8rem; color: var(--muted); }
.quick input[type='date'] { font: inherit; font-size: 1.05rem; color: var(--ink); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 999px; padding: 0.8rem 1.1rem; min-height: 52px; color-scheme: dark; }
.quick input[type='date']:focus { border-color: var(--accent); outline: none; }
.quick .btn.big { width: auto; flex: 1 1 14rem; min-height: 52px; }
.fact { color: var(--accent); font-family: var(--mono); font-size: 0.86rem; min-height: 1.3em; margin: 0.8rem 0 0; }
.link-arrow { display: inline-block; margin-top: 0.8rem; color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.link-arrow:hover { color: var(--ink); }
.hero-visual { position: relative; aspect-ratio: 1.18; min-width: 0; width: 100%; }
.hero-copy { min-width: 0; }
.hero-glow { position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, rgba(140, 100, 255, 0.45), transparent 70%); filter: blur(30px); }
.hero-frame { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; opacity: 0; transform: translateY(12px) scale(0.985); transition: opacity 1.1s ease, transform 1.4s ease; }
.hero-frame.on { opacity: 1; transform: none; }
.hero-frame .frame { width: 88%; box-sizing: border-box; }
.hero-frame .art, .mat .art, .canvas-face .art { width: 100%; }
.hero-frame .mat { padding: 6%; }
.hero-frame figcaption { color: var(--muted); font-size: 0.85rem; }
.hero-frame figcaption .mono { color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
.trust-bar { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2rem; padding: 1.1rem 1rem; margin: clamp(2rem, 5vw, 3.5rem) 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.trust-bar li { display: flex; align-items: center; gap: 0.5rem; }
.trust-bar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* pourquoi */
.why { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.big-p { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: #dcd6fb; margin: 0 0 1rem; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pillars li { border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.pillars h3 { margin: 0.2rem 0 0.35rem; font-size: 1.15rem; }
.pillars p { margin: 0; color: var(--muted); }
.pillar-n { color: var(--accent); font-size: 0.8rem; }

/* exemples */
.occ-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.occ-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); display: flex; flex-direction: column; transition: transform 0.25s, border-color 0.25s; }
.occ-card:hover { transform: translateY(-4px); border-color: rgba(255, 211, 107, 0.5); }
.occ-scene .stage, .prod-scene .stage { border: 0; border-radius: 0; min-height: 0; aspect-ratio: 4 / 3; }
.occ-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; flex: 1; }
.occ-body h3 { margin: 0.35rem 0 0; font-size: 1.12rem; }
.occ-when { color: var(--muted); margin: 0 0 0.7rem; font-size: 0.88rem; }
.occ-body .btn { margin-top: auto; }
.chip { display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); border: 1px solid rgba(255, 211, 107, 0.35); border-radius: 999px; padding: 0.15rem 0.6rem; }

/* scènes compactes */
.stage.compact .wall { min-height: 0; height: 100%; padding: 8% 10% 16%; }
.stage.compact.mock-canvas .wall { padding: 10%; }
.stage.compact .frame { padding: 2.2%; }
.stage.compact .canvas-edge { width: 10px; }
.stage.compact.mock-tshirt { padding: 5% 18%; }
.stage.compact .tee-wrap { width: 100%; }
.stage.compact.mock-poster.is-portrait .frame { width: 34% !important; }
.mock-phone { background: radial-gradient(ellipse at 50% 30%, #2a1f5c 0%, #0e0830 100%); }
.phone-scene { position: absolute; inset: 6% 0; display: flex; justify-content: center; }
.stage.mock-phone { position: relative; }
.phone { position: relative; height: 100%; width: auto; aspect-ratio: 1170 / 2532; box-sizing: border-box; border-radius: 13% / 6%; padding: 2.4%; background: linear-gradient(145deg, #3a3a40, #101014); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.phone .art { border-radius: 11% / 5%; width: 100%; height: 100%; object-fit: cover; }
.phone-notch { position: absolute; top: 3.5%; left: 50%; width: 30%; height: 2.6%; transform: translateX(-50%); background: #0a0a0c; border-radius: 999px; z-index: 1; }
.stage:not(.compact).mock-phone { min-height: 420px; }

/* étapes */
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; counter-reset: s; }
.step-list li { position: relative; padding: 1.4rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.step-list h3 { margin: 0.8rem 0 0.35rem; }
.step-list p { margin: 0; color: var(--muted); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }

/* atelier */
.create { scroll-margin-top: 70px; }
.create .l-head { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; max-width: none; }
.create .l-head > :not(.create-tools) { grid-column: 1; }
.create-tools { grid-column: 2; grid-row: 1 / span 3; align-self: end; }

/* produits */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.prod-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); padding-bottom: 1rem; }
.prod-card h3 { margin: 0.9rem 1.1rem 0.1rem; font-size: 1.08rem; }
.prod-card .hint { margin: 0 1.1rem; }
.prod-price { margin: 0.5rem 1.1rem 0; color: var(--muted); }
.prod-price strong { color: var(--ink); font-size: 1.15rem; }
.files-line { text-align: center; color: var(--accent); margin-top: 1.4rem; font-size: 0.9rem; }

/* cadeau */
.gift { text-align: left; }
.gift-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.gift-list li { padding: 1.3rem; border-left: 2px solid var(--accent); background: linear-gradient(90deg, rgba(255, 211, 107, 0.07), transparent 70%); border-radius: 0 var(--radius) var(--radius) 0; }
.gift-list h3 { margin: 0 0 0.35rem; }
.gift-list p { margin: 0; color: var(--muted); }

/* science */
.science-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.science-grid .how-list { grid-template-columns: 1fr 1fr; }
.science .positions { margin-top: 0; }
.science .positions h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }

/* FAQ */
.faq-list { max-width: 860px; display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0.2rem 1.1rem; }
.faq summary { cursor: pointer; padding: 0.85rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }

/* appel final */
.final { text-align: center; padding-bottom: 1rem; }
.final .quick { margin: 1.4rem auto 0; justify-content: center; }
.final { background: radial-gradient(600px 260px at 50% 70%, rgba(140, 100, 255, 0.25), transparent 70%); }

/* barre d'action mobile */
.sticky-cta { position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 160%); z-index: 30; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: transform 0.3s; white-space: nowrap; }
.sticky-cta.show { transform: translate(-50%, 0); }
@media (min-width: 981px) { .sticky-cta { display: none; } }

@media (max-width: 980px) {
  .landing-hero, .why, .science-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; aspect-ratio: 1.3; }
  .occ-grid, .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-list, .gift-list { grid-template-columns: 1fr; }
  .nav-link { display: none; }
}
@media (max-width: 560px) {
  .occ-grid, .prod-grid, .science-grid .how-list { grid-template-columns: 1fr; }
  .create .l-head { grid-template-columns: 1fr; }
  .create-tools { grid-column: 1; grid-row: auto; margin-top: 0.6rem; }
  .nav-cta { display: none; }
}

/* bandeau d'annonce, promo, suivi */
.site-header.with-bar { flex-wrap: wrap; padding-top: 0; }
.announcement { flex-basis: 100%; margin: 0 calc(-1 * clamp(1rem, 4vw, 2.5rem)) 0.7rem; padding: 0.45rem 1rem; text-align: center; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 0.88rem; }
.promo-row { display: flex; gap: 0.4rem; }
.promo-row input { text-transform: uppercase; }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--bad); }
.old-price { color: var(--muted); font-size: 0.95rem; font-weight: 400; }
.ship-status { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem 0; }
.ship-status h2 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.ship-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; padding: 0; margin: 0 0 0.6rem; counter-reset: st; }
.ship-steps li { font-size: 0.82rem; color: var(--muted); padding-top: 0.6rem; border-top: 3px solid var(--line); }
.ship-steps li.done { color: var(--ink); border-top-color: var(--accent); }

/* Enquête de satisfaction (PostHog Surveys, rendu maison) */
.survey-box { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin: 1rem 0; background: var(--panel); }
.survey-box > p { margin: 0 0 0.7rem; color: var(--muted); }
.survey-panel { margin-top: 0.9rem; display: grid; gap: 0.6rem; }
.survey-q { font-weight: 600; margin: 0; }
.survey-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.survey-note { padding: 0.5rem 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.survey-note:hover { border-color: var(--accent); }
.survey-note.on { background: var(--accent); color: var(--night); border-color: var(--accent); font-weight: 700; }
.survey-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.78rem; }
.survey-lbl { font-size: 0.82rem; color: var(--muted); }
.survey-actions { display: flex; gap: 0.6rem; }
.survey-thanks { color: var(--ok); margin: 0; }
@media (max-width: 620px) { .survey-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Pages légales (contenu éditorialisé dans le CMS) */
.doc h1 { margin-top: 0; }
.doc .lead { color: var(--muted); font-size: 1.02rem; margin-bottom: 1.4rem; }
.doc-body { max-width: 68ch; }
.doc-body h2 { font-size: 1.12rem; margin: 1.8rem 0 0.5rem; }
.doc-body h3 { font-size: 1rem; margin: 1.2rem 0 0.4rem; }
.doc-body p, .doc-body li { line-height: 1.65; color: var(--ink); }
.doc-body ul, .doc-body ol { padding-left: 1.2rem; margin: 0.5rem 0 1rem; }
.doc-body blockquote { border-left: 3px solid var(--accent); margin: 1rem 0; padding: 0.2rem 0 0.2rem 0.9rem; color: var(--muted); }
.doc-body a { color: var(--accent); }
.doc-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.86rem; }
.doc-nav a { color: var(--muted); }
.doc-nav a:hover { color: var(--ink); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.82rem; }
.footer-legal a { color: var(--muted); }

/* Pied de page en colonnes */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2.4rem 1.2rem 1.6rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: 1180px; margin: 0 auto; }
.foot-brand .brand { font-size: 1rem; }
.foot-tagline { color: var(--muted); font-size: 0.86rem; margin: 0.7rem 0 0; max-width: 34ch; }
.foot-ethics { color: var(--accent); font-size: 0.8rem; margin: 0.9rem 0 0; max-width: 36ch; }
.foot-col { display: flex; flex-direction: column; gap: 0.45rem; }
.foot-col h2 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.35rem; font-weight: 600; }
.foot-col a { color: var(--ink); text-decoration: none; font-size: 0.88rem; opacity: 0.85; }
.foot-col a:hover { opacity: 1; color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; align-items: center; justify-content: space-between; max-width: 1180px; margin: 2.4rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }
.foot-disclaimer { max-width: 52ch; }
.foot-ks { color: var(--accent); text-decoration: none; white-space: nowrap; }
.foot-ks:hover { text-decoration: underline; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 1.4rem; } .foot-bottom { flex-direction: column; align-items: flex-start; } }

/* Badge « campagne d'origine » sur la page hommage */
.ks-badge { margin: 2rem 0 0; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.ks-badge a { display: inline-flex; gap: 0.8rem; align-items: center; color: var(--ink); text-decoration: none; }
.ks-badge .ks-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #05ce78; color: #04231a; font-weight: 800; font-size: 1.1rem; }
.ks-badge strong { display: block; font-size: 0.95rem; }
.ks-badge small { color: var(--muted); font-size: 0.8rem; }
.ks-badge .hint { margin: 0.7rem 0 0; }

/* Alignement du pied de page (les règles globales centrent les paragraphes) */
.site-footer, .foot-grid, .foot-bottom { text-align: left; }
.site-footer p { text-align: left; }
.foot-col { align-items: flex-start; }

/* Témoignages : deux bandes défilantes en sens opposés (décoratives) */
.tm-section { margin: 0 0 2rem; }
.tm-title { font-size: 1.1rem; margin: 2rem 0 0.4rem; }
.tm-intro { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.tm-track { position: relative; overflow: hidden; padding: 0.35rem 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tm-group { display: flex; gap: 0.9rem; width: max-content; animation: tm-scroll 46s linear infinite; }
.tm-track--reverse .tm-group { animation-direction: reverse; animation-duration: 54s; }
.tm-track:hover .tm-group, .tm-track:focus-within .tm-group { animation-play-state: paused; }
.tm-card { flex: 0 0 auto; width: min(340px, 78vw); margin: 0; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.tm-card blockquote { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink); }
.tm-card figcaption { margin-top: 0.5rem; font-size: 0.78rem; color: var(--accent); }
.tm-note { margin: 0.6rem 0 0; }
@keyframes tm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .tm-group { animation: none; }
  .tm-track { overflow-x: auto; }
}

/* Carte d'hommage (18 août 2023) */
.homage-map { margin: 1.6rem 0 2rem; }
.homage-map img { display: block; width: auto; max-width: 100%; max-height: min(64vh, 620px); margin-inline: auto; height: auto; border: 1px solid var(--line); border-radius: 14px; background: #000; }
.homage-map figcaption { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; justify-content: space-between; margin-top: 0.7rem; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 620px) { .homage-map figcaption { flex-direction: column; align-items: flex-start; } }
