/* Lynko — styles communs (accueil, connexion, espace client) */

:root {
  --night: #0b1110;
  --night-2: #121a18;
  --night-3: #1b2623;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --ink: #16201d;
  --muted: #6c7672;
  --muted-on-dark: #a9b5b0;
  --line: #e4ddcf;
  --line-dark: rgba(255, 255, 255, 0.12);
  --amber: #f2a33a;
  --amber-deep: #d9861a;
  --green: #1f8a63;
  --red: #c4432b;
  --radius: 16px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--body); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-amber { background: var(--amber); color: #1d1300; box-shadow: 0 10px 30px -10px rgba(242, 163, 58, 0.7); }
.btn-amber:hover { box-shadow: 0 16px 36px -10px rgba(242, 163, 58, 0.85); }
.btn-dark { background: var(--night); color: #fff; }
.btn-ghost { border-color: var(--line-dark); color: #fff; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(8px); }
.btn-line { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-wa { background: #1fa855; color: #fff; }
.btn-danger { color: var(--red); background: transparent; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 22px var(--display); letter-spacing: -0.04em; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--amber); display: grid; place-items: center; position: relative; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid #1d1300; }
.logo-mark::before { translate: -4px 4px; }
.logo-mark::after { translate: 4px -4px; }

/* =====================================================================
   ACCUEIL
   ===================================================================== */
.landing { background: var(--night); color: #fff; }

.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s, border-color 0.3s, padding 0.3s; border-bottom: 1px solid transparent; padding: 18px 0; }
.nav.scrolled { background: rgba(11, 17, 16, 0.82); backdrop-filter: blur(14px); border-color: var(--line-dark); padding: 10px 0; }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted-on-dark); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 10px; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -6% 0 0 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; animation: kenburns 24s ease-in-out infinite alternate; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night) 8%, rgba(11, 17, 16, 0.86) 38%, rgba(11, 17, 16, 0.15) 72%), linear-gradient(0deg, var(--night) 0%, transparent 28%); }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding: 130px 0 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; color: #ffe2b3; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(242, 163, 58, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(242, 163, 58, 0); } }

.hero h1 { font-size: clamp(40px, 5.4vw, 76px); font-weight: 800; margin: 22px 0 20px; }
.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(2deg); animation: wordIn 0.9s var(--ease) forwards; }
.hero h1 em { font-style: normal; color: var(--amber); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.hero p.sub { font-size: clamp(17px, 1.5vw, 20px); color: #d6dedb; max-width: 52ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted-on-dark); }

/* carte de démonstration */
.demo { justify-self: end; align-self: end; width: min(400px, 100%); border-radius: 22px; padding: 18px; background: rgba(18, 26, 24, 0.72); border: 1px solid var(--line-dark); backdrop-filter: blur(18px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); font-weight: 600; min-height: 48px; }
.demo-bar svg { flex: none; opacity: 0.7; }
.caret { width: 2px; height: 1.1em; background: var(--amber); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-rows { display: grid; gap: 8px; margin-top: 12px; min-height: 236px; align-content: start; }
.demo-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.demo-row.in { opacity: 1; transform: none; }
.demo-avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--amber), #e2612b); display: grid; place-items: center; font: 800 14px var(--display); color: #1d1300; flex: none; }
.demo-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.demo-phone { font-size: 13px; color: var(--muted-on-dark); font-variant-numeric: tabular-nums; }
.demo-row .tick { margin-left: auto; font-size: 12px; font-weight: 700; color: #8fe0bd; }
.demo-foot { margin-top: 10px; font-size: 12px; color: var(--muted-on-dark); text-align: center; }

/* bandeau défilant */
.marquee { border-block: 1px solid var(--line-dark); overflow: hidden; padding: 18px 0; background: var(--night-2); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 700 20px var(--display); color: var(--muted-on-dark); white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.marquee span::after { content: "✦"; color: var(--amber); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-light { background: var(--cream); color: var(--ink); }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-deep); }
.landing .section:not(.section-light) .kicker { color: var(--amber); }
.section h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; margin: 12px 0 16px; max-width: 18ch; }
.section .intro { font-size: 18px; color: var(--muted); max-width: 58ch; margin: 0; }
.landing .section:not(.section-light) .intro { color: var(--muted-on-dark); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.stat { padding: 28px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line-dark); }
.stat b { display: block; font: 800 clamp(44px, 5vw, 68px) var(--display); letter-spacing: -0.04em; color: var(--amber); line-height: 1; }
.stat span { color: var(--muted-on-dark); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(22, 32, 29, 0.35); }
.step::before { counter-increment: step; content: "0" counter(step); font: 800 15px var(--display); color: var(--amber-deep); letter-spacing: 0.05em; }
.step h3 { font-size: 24px; margin: 14px 0 8px; }
.step p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.photo { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.05); }
.photo-badge { position: absolute; left: 18px; bottom: 18px; right: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(11, 17, 16, 0.72); backdrop-filter: blur(14px); border: 1px solid var(--line-dark); display: flex; align-items: center; gap: 12px; font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #d6dedb; }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(242, 163, 58, 0.18); color: var(--amber); display: grid; place-items: center; font-weight: 800; font-size: 13px; }

.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; align-items: stretch; }
.pack { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pack:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -34px rgba(22, 32, 29, 0.45); }
.pack.popular { background: var(--night); color: #fff; border-color: var(--night); }
.pack-flag { position: absolute; top: -13px; left: 26px; padding: 4px 12px; border-radius: 999px; background: var(--amber); color: #1d1300; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pack h3 { font-size: 22px; }
.pack .tagline { color: var(--muted); margin: 4px 0 22px; font-size: 15px; }
.pack.popular .tagline { color: var(--muted-on-dark); }
.pack .price { font: 800 44px var(--display); letter-spacing: -0.04em; line-height: 1; }
.pack .price small { font: 600 15px var(--body); letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.pack.popular .price small { color: var(--muted-on-dark); }
.pack ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 9px; font-size: 15px; }
.pack li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.pack.popular li::before { color: var(--amber); }
.pack .btn { margin-top: auto; }

.faq { max-width: 780px; margin-top: 40px; display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--night-2); border: 1px solid var(--line-dark); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 700 18px var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 24px; line-height: 1; transition: rotate 0.3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq p { margin: 0 0 20px; color: var(--muted-on-dark); }

.cta { text-align: center; padding: clamp(60px, 8vw, 100px) 24px; border-radius: 32px; background: radial-gradient(120% 140% at 50% 0%, #2a3a22 0%, var(--night-2) 55%); border: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 163, 58, 0.28), transparent 65%); top: -280px; left: 50%; translate: -50% 0; animation: glow 8s ease-in-out infinite alternate; }
@keyframes glow { to { translate: -40% 40px; } }
.cta h2 { margin-inline: auto; position: relative; }
.cta p { color: var(--muted-on-dark); margin: 0 auto 28px; max-width: 46ch; position: relative; }
.cta .btn { position: relative; }

.footer { padding: 34px 0 44px; color: var(--muted-on-dark); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* =====================================================================
   CONNEXION
   ===================================================================== */
.auth { min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--cream); }
.auth-photo { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; animation: kenburns 24s ease-in-out infinite alternate; }
.auth-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 17, 16, 0.95) 0%, rgba(11, 17, 16, 0.2) 55%, rgba(11, 17, 16, 0.55) 100%); }
.auth-photo-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 44px 48px; }
.auth-photo h2 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; max-width: 14ch; }
.auth-photo p { color: #d6dedb; max-width: 40ch; margin: 14px 0 0; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); animation: rise 0.8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.auth-card h1 { font-size: 36px; font-weight: 800; }
.auth-card .lead { color: var(--muted); margin: 8px 0 26px; }
.switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: #ebe4d5; margin-bottom: 26px; position: relative; }
.switch button { position: relative; z-index: 1; border: 0; background: none; padding: 10px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); transition: color 0.3s; }
.switch button.on { color: var(--ink); }
.switch::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--paper); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.3); transition: transform 0.4s var(--ease); }
.switch[data-mode="register"]::before { transform: translateX(100%); }

.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber-deep); box-shadow: 0 0 0 4px rgba(242, 163, 58, 0.22); }
.form-error { padding: 11px 14px; border-radius: 12px; background: #fbe6e1; color: #8c2a17; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-card .small { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }

/* =====================================================================
   ESPACE CLIENT
   ===================================================================== */
.shell { min-height: 100svh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.side { background: var(--night); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100svh; }
.side .logo { padding: 0 10px 22px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--muted-on-dark); font-weight: 600; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; transition: background 0.2s, color 0.2s; }
.side-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side-link.on { background: var(--amber); color: #1d1300; }
.side-link svg { flex: none; }
.side-link .n { margin-left: auto; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.side-link.on .n { background: rgba(0, 0, 0, 0.16); }
.side-foot { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--line-dark); font-size: 14px; }
.side-foot b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot span { color: var(--muted-on-dark); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; }
.side-foot button { margin-top: 10px; border: 0; background: none; color: var(--amber); font-weight: 700; cursor: pointer; padding: 0; }

.main { padding: 28px clamp(18px, 3.4vw, 44px) 90px; min-width: 0; }
.topline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.topline h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; margin-right: auto; }
.credit-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; }
.credit-pill b { font: 800 20px var(--display); font-variant-numeric: tabular-nums; }
.credit-pill.bump b { animation: bump 0.6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); color: var(--amber-deep); } }

.view { display: none; animation: rise 0.5s var(--ease) both; }
.view.on { display: block; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.searchbox { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 12px; align-items: end; }
.searchbox .field { margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.chip:hover { background: #fff; border-color: var(--amber-deep); transform: translateY(-1px); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 22px 0 12px; }
.toolbar strong { margin-right: auto; font-size: 17px; }
.toolbar .input { width: auto; flex: 1 1 220px; padding: 10px 14px; }
.toolbar select.input { flex: 0 1 190px; }

.list { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); transition: border-color 0.2s, box-shadow 0.2s; }
.row:hover { border-color: #cfc5b1; box-shadow: 0 14px 30px -24px rgba(22, 32, 29, 0.5); }
.row.owned { background: #f1f8f3; border-color: #cfe5d8; }
.row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--amber-deep); }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--night); color: var(--amber); display: grid; place-items: center; font: 800 16px var(--display); }
.row-name { font-weight: 700; line-height: 1.25; }
.row-sub { font-size: 13px; color: var(--muted); }
.row-phone { font: 700 17px var(--display); font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; }
.row-phone.masked { color: var(--muted); }
.row-phone.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { color: var(--amber-deep); transform: scale(1.08); } }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #ebe4d5; color: var(--muted); }
.tag.ok { background: #d8efe2; color: #17694b; }
.tag.wait { background: #fdeccb; color: #7a5200; }
.tag.no { background: #fbe6e1; color: #8c2a17; }
.links { display: flex; gap: 12px; font-size: 13px; margin-top: 3px; }
.links a { color: var(--amber-deep); font-weight: 700; text-decoration: none; }

.prospect { grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.2fr) auto; }
.prospect select, .prospect textarea { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; width: 100%; }
.prospect textarea { min-height: 38px; resize: vertical; margin-top: 6px; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty b { display: block; font: 800 22px var(--display); color: var(--ink); margin-bottom: 6px; }
.skeleton { height: 70px; border-radius: 14px; background: linear-gradient(100deg, #ece5d6 30%, #f7f2e8 50%, #ece5d6 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-packs .pack { cursor: pointer; }
.app-packs .pack.selected { outline: 3px solid var(--amber); outline-offset: 2px; }
.pay { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay h3 { font-size: 20px; margin-bottom: 10px; }
.paynum { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f1ebde; margin-bottom: 8px; font-weight: 600; }
.paynum b { font: 800 18px var(--display); letter-spacing: 0; }
.hint { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.notice { padding: 14px 16px; border-radius: 12px; background: #fdeccb; color: #7a5200; font-weight: 600; }
.kpi b { display: block; font: 800 34px var(--display); letter-spacing: -0.03em; }
.kpi span { color: var(--muted); font-size: 14px; }
h2.sub { font-size: 22px; margin: 30px 0 12px; }
code.url { display: block; padding: 10px 12px; border-radius: 10px; background: #f1ebde; font: 14px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }

.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--night); color: #fff; font-weight: 700; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6); animation: rise 0.4s var(--ease) both; max-width: calc(100% - 32px); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 120px; }
  .demo { justify-self: start; }
  .hero::after { background: linear-gradient(0deg, var(--night) 12%, rgba(11, 17, 16, 0.78) 60%, rgba(11, 17, 16, 0.55) 100%); }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .stats, .steps, .packs, .grid-3, .split, .pay { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-photo { display: none; }

  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: auto 0 0 0; height: auto; flex-direction: row; padding: 8px; z-index: 40; gap: 4px; border-top: 1px solid var(--line-dark); }
  .side .logo, .side-foot, .side-link .n { display: none; }
  .side-link { flex-direction: column; gap: 3px; font-size: 11px; padding: 8px 4px; text-align: center; align-items: center; }
  .searchbox { grid-template-columns: 1fr; }
  .row, .prospect { grid-template-columns: auto minmax(0, 1fr); }
  .row > :nth-child(n + 3) { grid-column: 1 / -1; }
  .row-actions { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .nav-cta .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .hero h1 .word, .demo-row { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.only-mobile { display: none; }
@media (max-width: 980px) {
  .only-mobile { display: inline-flex; }
  .main { padding-bottom: 110px; }
}

/* =====================================================================
   TABLEAU DE BORD ADMINISTRATEUR
   ===================================================================== */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi-card { position: relative; overflow: hidden; display: grid; gap: 2px; animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.kpi-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kpi-card b { font: 800 clamp(26px, 2.4vw, 36px) var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.kpi-sub { font-size: 14px; color: var(--muted); }
.spark { position: absolute; right: 14px; bottom: 14px; width: 110px; height: 32px; opacity: 0.9; }
.spark-line { fill: none; stroke: var(--amber-deep); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-fill { fill: rgba(242, 163, 58, 0.18); }

.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.panel h3 { font-size: 19px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar { fill: var(--amber); transform-box: fill-box; transform-origin: bottom; animation: grow 0.7s var(--ease) both; }
.chart .bar.zero { fill: transparent; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: rgba(22, 32, 29, 0.06); }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .tick { font: 500 12px var(--body); fill: var(--muted); }
@keyframes grow { from { transform: scaleY(0); } }

.hbar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 0; font-size: 15px; }
.hbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.hbar-track { height: 8px; border-radius: 99px; background: #ece5d6; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 99px; background: var(--amber); animation: widen 0.9s var(--ease) both; transform-origin: left; }
@keyframes widen { from { transform: scaleX(0); } }

.row.blocked { opacity: 0.6; }
.notice.ok { background: #d8efe2; color: #17694b; }
.notice a { color: inherit; }

.fb-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; margin-bottom: 14px; animation: rise 0.5s var(--ease) both; }
.fb-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 800 17px var(--display); background: #ece5d6; color: var(--muted); }
.fb-step.done .fb-num { background: var(--green); color: #fff; }
.fb-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.fb-list code.url { margin-top: 6px; }
.btn-fb { background: #1877f2; color: #fff; }
.paynum code { font: 14px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; text-align: right; }

.status { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.status:last-child { border-bottom: 0; }
.status-dot { flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: #d6b86a; }
.status.ok .status-dot { background: var(--green); }

@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .charts { grid-template-columns: 1fr; }
  .side-link[href="#reglages"], .side-link[href="#recherches"] { font-size: 10px; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }

.btn.disabled, .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* Boîtes de dialogue */
.dlg { border: 0; border-radius: 20px; padding: 26px; width: min(440px, calc(100% - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55); animation: rise 0.3s var(--ease) both; }
.dlg::backdrop { background: rgba(11, 17, 16, 0.55); backdrop-filter: blur(3px); }
.dlg h3 { font-size: 22px; margin-bottom: 8px; }
.dlg-text { margin: 0 0 18px; color: var(--muted); }
.dlg .field { margin-bottom: 18px; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
