:root {
  --bg: #0e0f12;
  --surface: #16181d;
  --surface-2: #1b1e24;
  --line: #262a31;
  --line-2: #343a44;
  --text: #ece9e3;
  --muted: #9b968d;
  --faint: #6f6b63;
  --accent: #d98a3d;          /* amber mat — couleur unique, jamais en glow */
  --accent-ink: #1a1206;
  --accent-weak: rgba(217,138,61,0.10);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 1080px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { letter-spacing: -0.01em; }

/* Topbar */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1rem; }
.brand-mark { width: 9px; height: 9px; background: var(--accent); border-radius: 2px; }
.brand-by { color: var(--muted); font-weight: 500; }

/* Boutons */
.primary-btn {
  appearance: none; border: none; cursor: pointer; background: var(--accent); color: var(--accent-ink);
  font-family: var(--sans); font-weight: 700; font-size: 0.9rem; padding: 10px 16px; border-radius: 6px;
  transition: filter 0.12s ease;
}
.primary-btn:hover { filter: brightness(1.08); }
.primary-btn.small { padding: 9px 14px; }
.ghost-btn {
  appearance: none; background: transparent; border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--sans); font-size: 0.82rem; padding: 6px 12px; border-radius: 6px; cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--text); }
.ghost-btn:disabled { opacity: 0.4; cursor: default; }

/* ============================ ACCUEIL / HERO ============================ */
.hero-full {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  min-height: 92vh; min-height: 92svh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; overflow: hidden; background: #0b0c0e;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,0.55) 0%, rgba(11,12,14,0.32) 45%, rgba(11,12,14,0.92) 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; color: var(--text); padding: 48px 22px; max-width: 680px; }
.kicker {
  display: inline-flex; align-items: center; gap: 11px; font-size: 0.72rem; letter-spacing: 0.26em;
  text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 22px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero-title {
  font-size: clamp(2.6rem, 8vw, 4.8rem); line-height: 0.98; letter-spacing: -0.03em;
  margin: 0 0 16px; font-weight: 800; text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero-title .accent { color: var(--accent); }
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.2rem); color: rgba(236,233,227,0.82); margin: 0 auto 30px; max-width: 32ch; }

/* Molette */
.picker { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 32px; }
.picker-cap { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.wheel-wrap { position: relative; width: 220px; height: 200px; }
.wheel {
  height: 100%; width: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; perspective: 660px; outline: none;
  -ms-overflow-style: none; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, #000 27%, #000 73%, transparent);
  mask-image: linear-gradient(transparent, #000 27%, #000 73%, transparent);
}
.wheel::-webkit-scrollbar { display: none; }
.wheel-list { list-style: none; margin: 0; padding: 78px 0; }
.wheel-item {
  height: 44px; scroll-snap-align: center; display: flex; align-items: center; justify-content: center;
  font: 800 1.7rem/1 var(--mono); color: rgba(236,233,227,0.5);
  transform-style: preserve-3d; will-change: transform, opacity; backface-visibility: hidden;
}
.wheel-item.sel { color: var(--accent); }
.wheel-band {
  position: absolute; left: -8px; right: -8px; top: 50%; height: 46px; transform: translateY(-50%);
  border-top: 1px solid rgba(236,233,227,0.28); border-bottom: 1px solid rgba(236,233,227,0.28);
  pointer-events: none;
}

.cta {
  appearance: none; border: none; cursor: pointer; font-family: var(--sans); font-weight: 800;
  font-size: 1.05rem; color: var(--accent-ink); padding: 16px 30px; border-radius: 10px;
  background: var(--accent); box-shadow: 0 8px 22px rgba(0,0,0,0.35); transition: filter 0.12s ease, transform 0.12s ease;
}
.cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.hero-err { color: #e7b48a; font-size: 0.9rem; margin: 14px 0 0; }
.scroll-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(236,233,227,0.6); font-size: 0.78rem; text-decoration: none; letter-spacing: 0.05em;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

.gap-line { color: rgba(236,233,227,0.9); font-size: 1rem; margin: 14px 0 0; min-height: 1.4em; }
.gap-line strong { color: var(--accent); }
.hero-alt { display: inline-block; margin-top: 16px; color: rgba(236,233,227,0.6); font-size: 0.85rem; text-decoration: none; border-bottom: 1px solid rgba(236,233,227,0.25); }
.hero-alt:hover { color: var(--text); }

/* Bandes de vente */
.band { padding: 66px 0; border-top: 1px solid var(--line); }
.band-alt { background: var(--surface); }
.band-kicker { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.band h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.14; margin: 0 0 24px; max-width: 22ch; }
.wrap.narrow { max-width: 560px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 640px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-n { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
.steps strong { display: block; font-size: 1.1rem; margin-bottom: 3px; }
.steps p { margin: 0; color: var(--muted); }
.steps a { color: var(--accent); text-decoration: none; }

.offer { text-align: center; }
.offer h2 { margin-left: auto; margin-right: auto; }
.offer > .wrap > p, .offer p { color: var(--muted); max-width: 48ch; margin: 0 auto 24px; }
.ig-btn.big { font-size: 1.05rem; padding: 16px 28px; border-radius: 11px; }
.offer-mini { color: var(--faint); font-size: 0.88rem; margin-top: 16px; }

.form-err { color: #e7b48a; font-size: 0.88rem; margin: 12px 0 0; }

/* En-tête programme client */
#program { padding: 28px 0 0; }
.prog-top { margin-bottom: 18px; }
.prog-top h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 6px; }
.prog-top h1 strong { color: var(--accent); }
.prog-intro { color: var(--muted); margin: 0; max-width: 60ch; }
.coach-note { border-left: 3px solid var(--accent); }
.coach-note .note-body { margin: 0; color: var(--text); }

/* Pitch / vente (hérité) */
.pitch { padding: 60px 0 24px; max-width: 660px; }
.pitch-kicker { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.pitch h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); line-height: 1.14; margin: 0 0 16px; }
.pitch-lede { color: var(--muted); margin: 0 0 24px; }
.sells { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 13px; }
.sells li { position: relative; padding-left: 26px; }
.sells li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.pitch-cta { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-align: center; }
.pitch-cta > p { color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; }

/* Bouton Instagram — chalk plein, net, sans glow */
.ig-btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #14151a; font-weight: 700;
  padding: 12px 20px; border-radius: 9px; background: var(--text); transition: filter 0.12s ease, transform 0.12s ease;
}
.ig-btn:hover { filter: brightness(0.94); transform: translateY(-1px); }
.ig-glyph { width: 17px; height: 17px; border: 2px solid #14151a; border-radius: 5px; position: relative; }
.ig-glyph::before { content: ""; position: absolute; inset: 3px; border: 2px solid #14151a; border-radius: 50%; }
.ig-glyph::after { content: ""; position: absolute; top: 1px; right: 1px; width: 2px; height: 2px; background: #14151a; border-radius: 50%; }

/* ============================ DASHBOARD ============================ */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 26px 0 16px; }
.kpi { background: var(--surface); padding: 15px 16px; }
.kpi-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); font-weight: 600; }
.kpi-value { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; margin-top: 5px; }
.kpi-value small { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); font-weight: 500; }

/* Grille 2 colonnes (desktop) */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.block { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h2 { font-size: 1rem; margin: 0; }
.block-sub { font-size: 0.8rem; color: var(--faint); }
.block-note { font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; }
.block-note .tag-test, .row-tag { background: var(--accent-weak); color: var(--accent); border: 1px solid rgba(217,138,61,0.5); border-radius: 4px; padding: 0 5px; font-size: 0.7rem; font-weight: 700; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input {
  flex: 1 1 150px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 6px; padding: 9px 11px; font-family: var(--mono); font-size: 0.95rem;
}
.inline-form input:focus { outline: none; border-color: var(--accent); }

/* Tables de données */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px; }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data th, table.data td { text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--line); }
table.data th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); font-weight: 600; background: var(--surface); position: sticky; top: 0; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data td:first-child { position: sticky; left: 0; background: var(--surface); font-weight: 600; }
table.data .num { font-family: var(--mono); font-size: 0.9rem; color: var(--text); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tr.is-test td { background: var(--accent-weak); }
table.data tr.is-test td:first-child { background: var(--accent-weak); box-shadow: inset 3px 0 0 var(--accent); }
table.data tr.grip-row td { background: rgba(236,233,227,0.03); color: var(--muted); }
table.data .phase { color: var(--faint); font-size: 0.78rem; }
.row-tag { margin-left: 6px; vertical-align: 1px; }

/* Chart */
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; margin: 12px 0 0; font-size: 0.76rem; color: var(--muted); flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 14px; height: 2px; background: currentColor; }
.lg-proj { color: var(--accent); }
.lg-real { color: var(--text); }
.lg-goal { color: var(--faint); }
.lg-goal::before { height: 0; border-top: 1.5px dashed currentColor; }

/* Encart coaching */
.coach-cta { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.coach-cta strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.coach-cta span { color: var(--muted); font-size: 0.86rem; }
.coach-cta .ig-btn { align-self: flex-start; }

/* Références */
.refs { padding: 4px 18px; margin-top: 16px; }
.foldable { border-bottom: 1px solid var(--line); }
.refs .foldable:last-child { border-bottom: none; }
.foldable summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 0; font-weight: 600; font-size: 0.92rem; }
.foldable summary::-webkit-details-marker { display: none; }
.foldable summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 1.2rem; }
.foldable[open] summary::after { content: "\2013"; }
.ref-body { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 14px; }
.ref-img { margin: 0; flex: 0 0 220px; }
.ref-img img { width: 100%; height: auto; border-radius: 6px; display: block; }
.bullets { margin: 0 0 14px; padding-left: 18px; color: var(--muted); }
.bullets li { margin-bottom: 7px; }
.bullets strong { color: var(--text); }

.disclaimer { font-size: 0.8rem; color: var(--faint); margin: 22px 2px 0; }

/* Formulaire admin */
.admin-form { display: grid; gap: 16px; }
.admin-form .arow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.afield { display: flex; flex-direction: column; gap: 6px; }
.afield label { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.afield input, .afield textarea {
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text); border-radius: 6px;
  padding: 10px 12px; font-family: var(--sans); font-size: 0.95rem; width: 100%; resize: vertical;
}
.afield input:focus, .afield textarea:focus { outline: none; border-color: var(--accent); }
.admin-form .primary-btn { justify-self: start; }
#result-link { font-family: var(--mono); font-size: 0.82rem; }

/* Bande image de pied de page */
.foot-band { line-height: 0; margin-top: 36px; }
.foot-band img { width: 100%; height: 130px; object-fit: cover; display: block; filter: grayscale(0.2) brightness(0.85); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--faint); font-size: 0.8rem; background: var(--bg); }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Transitions de vue */
#dashboard.enter { animation: viewIn 0.5s cubic-bezier(0.2,0.7,0.2,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
#onboarding.leaving { animation: heroOut 0.42s ease both; pointer-events: none; }
@keyframes heroOut { to { opacity: 0; transform: scale(1.03); filter: blur(7px); } }

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .wheel-wrap { width: 180px; }
  .pitch { padding: 46px 0 16px; }
  .ref-body { flex-direction: column; }
  .ref-img { flex: none; width: 100%; max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .scroll-hint, #dashboard.enter, #onboarding.leaving { animation: none !important; }
}
