/* ==========================================================================
   LBFD STORE — feuille de style commune (site public + espace développeur)
   ========================================================================== */

:root {
  --ink: #0b0d12;
  --ink-2: #161a23;
  --ink-3: #232836;
  --text: #1c2130;
  --muted: #5f6878;
  --faint: #8b93a3;
  --line: #e6e8ee;
  --bg: #f5f6f8;
  --white: #ffffff;
  --red: #e3141b;
  --red-dark: #b50e14;
  --red-soft: #fdecec;
  --green: #0f9d58;
  --green-soft: #e7f6ee;
  --amber: #b86e00;
  --amber-soft: #fff4e0;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: #cfd3dc; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #0b8048; }
.btn-danger { background: #fff; color: var(--red); border-color: #f3c2c4; }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: #eef0f4; color: var(--muted);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.no-dot::before { display: none; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }

/* ---------- Messages ---------- */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-sm);
  margin-bottom: 18px; font-size: 15px; border: 1px solid;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert-success { background: var(--green-soft); border-color: #bfe6d1; color: #0b6b3d; }
.alert-warning { background: var(--amber-soft); border-color: #f5d9a6; color: #7a4a00; }
.alert-error { background: var(--red-soft); border-color: #f3c2c4; color: #9b0d12; }
.alert-info { background: var(--blue-soft); border-color: #c7d8fb; color: #1d4ed8; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--faint); margin-top: 5px; }
.field .error { font-size: 13px; color: var(--red); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid #d6dae2; background: #fff; color: var(--ink);
  font: 400 15px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 13, 18, .08);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- Cartes ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.card h2 { font-size: 19px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.card-head h2 { margin: 0; font-size: 17px; }

/* ==========================================================================
   SITE PUBLIC
   ========================================================================== */

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.brand-name b { color: var(--red); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a {
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  font-size: 15px; font-weight: 500; color: var(--muted);
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); background: rgba(0,0,0,.04); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }

/* ---------- Héros ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 72px 0 64px;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(227, 20, 27, .35), transparent);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  font-size: 13px; font-weight: 600; color: #e9eaee; margin-bottom: 22px;
}
.hero-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #2bd47d; }
.hero h1 { color: #fff; font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; letter-spacing: -.03em; max-width: 760px; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: #ff4a50; }
.hero p.lead { font-size: 18px; color: #b9bfcb; max-width: 600px; margin-bottom: 30px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  max-width: 620px; padding: 7px 7px 7px 18px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
}
.search-box svg { width: 20px; height: 20px; color: var(--faint); flex: none; }
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 400 16px var(--font); color: var(--ink); padding: 8px 0;
}
.hero-stats { display: flex; gap: 36px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats div { color: #9aa2b1; font-size: 14px; }
.hero-stats strong { display: block; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 26px; margin: 0; }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.link-more { font-weight: 600; font-size: 15px; color: var(--red); text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* Plateformes */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.platform:hover { border-color: #cfd3dc; box-shadow: var(--shadow); transform: translateY(-2px); }
.platform-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--bg); color: var(--ink);
}
.platform-icon svg { width: 24px; height: 24px; }
.platform strong { display: block; color: var(--ink); font-size: 16px; }
.platform span { color: var(--muted); font-size: 14px; }

/* Catégories (pastilles) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text);
}
.chip:hover { border-color: #c9ced8; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { color: var(--faint); font-weight: 600; }
.chip.active small { color: #aab1bf; }

/* ---------- Cartes d'applis ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.app-card:hover { border-color: #d3d7df; box-shadow: var(--shadow); transform: translateY(-2px); }
.app-card-top { display: flex; gap: 14px; align-items: center; }
.app-logo {
  width: 64px; height: 64px; border-radius: 16px; flex: none; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px; color: var(--muted);
}
.app-logo img { width: 100%; height: 100%; object-fit: cover; }
.app-logo.lg { width: 112px; height: 112px; border-radius: 26px; font-size: 34px; }
.app-card h3 { font-size: 16.5px; margin: 0 0 3px; }
.app-card h3 a { text-decoration: none; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.app-meta { font-size: 13.5px; color: var(--muted); }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.app-card-foot .btn { position: relative; z-index: 1; }
.app-stat { font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 5px; }
.app-stat svg { width: 15px; height: 15px; }

.empty {
  text-align: center; padding: 56px 20px; color: var(--muted);
  background: #fff; border: 1px dashed #d6dae2; border-radius: var(--radius);
}
.empty svg { width: 42px; height: 42px; color: var(--faint); margin: 0 auto 12px; }
.empty h3 { font-size: 18px; }

/* ---------- Bandeau développeurs ---------- */
.cta {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  padding: 40px; border-radius: 22px; background: var(--ink); color: #c7ccd6;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(227, 20, 27, .4), transparent);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: 30px; }
.cta ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cta li { display: flex; gap: 10px; align-items: flex-start; }
.cta li svg { width: 20px; height: 20px; color: #2bd47d; flex: none; margin-top: 2px; }

/* ---------- Atouts ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Pages intérieures ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 36px 0 30px; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 6px; }
.page-head p { color: var(--muted); margin: 0; font-size: 17px; }
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.prose { max-width: 760px; }
.prose h2 { font-size: 21px; margin-top: 32px; }
.prose p, .prose li { color: #3a4150; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* Fiche appli */
.app-hero { display: flex; gap: 24px; align-items: center; }
.app-hero h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 6px; }
.app-hero .app-meta { font-size: 15px; }
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.app-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts strong { color: var(--ink); text-align: right; word-break: break-word; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); max-height: 560px; width: auto; }

/* Étapes */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

/* Tarifs */
.price-card { padding: 30px; border-radius: 20px; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow-lg); }
.price { font-size: 48px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ticks svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 1px; }

/* Contact */
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s;
}
a.contact-item:hover { border-color: #c9ced8; }
.contact-item .platform-icon { background: var(--red-soft); color: var(--red); }
.contact-item strong { display: block; color: var(--ink); }
.contact-item span { color: var(--muted); font-size: 14.5px; word-break: break-all; }

/* Pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 14px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #9aa2b1; padding: 52px 0 26px; margin-top: 56px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand-name { color: #fff; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; color: #9aa2b1; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #fff;
}
.socials a:hover { background: rgba(255,255,255,.14); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px;
}

/* ==========================================================================
   ESPACE DÉVELOPPEUR / ADMIN
   ========================================================================== */
.panel { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--ink); color: #aeb5c2; padding: 20px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar .brand { padding: 4px 8px 22px; }
.sidebar .brand-name { color: #fff; }
.side-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6c7484; padding: 16px 10px 8px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 10px; border-radius: 9px;
  text-decoration: none; color: #c2c8d3; font-size: 15px; font-weight: 500;
}
.side-link svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-link.active { background: rgba(255,255,255,.1); color: #fff; }
.side-link .count {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700; text-align: center;
}
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.side-user { padding: 10px; font-size: 14px; }
.side-user strong { display: block; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user span { color: #7e8696; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot form { margin: 0; }
.side-foot button { width: 100%; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; }

.main { padding: 28px 32px 48px; min-width: 0; }
.main-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.main-head h1 { font-size: 26px; margin: 0 0 4px; }
.main-head p { color: var(--muted); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat span { color: var(--muted); font-size: 14px; }
.stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-top: 4px; }
a.stat { text-decoration: none; transition: border-color .15s; }
a.stat:hover { border-color: #c9ced8; }
.stat.alert-stat strong { color: var(--red); }

.status-banner {
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 20px 22px; border-radius: var(--radius); margin-bottom: 22px; border: 1px solid;
}
.status-banner h2 { font-size: 18px; margin: 0 0 4px; }
.status-banner p { margin: 0; font-size: 15px; }
.status-active { background: var(--green-soft); border-color: #bfe6d1; }
.status-active p { color: #1d6b44; }
.status-pending { background: var(--amber-soft); border-color: #f5d9a6; }
.status-pending p { color: #7a4a00; }
.status-none { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.status-none p { color: var(--muted); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .muted { color: var(--muted); font-size: 13.5px; }
.row-app { display: flex; align-items: center; gap: 12px; }
.row-app .app-logo { width: 42px; height: 42px; border-radius: 11px; font-size: 14px; }
.actions-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.actions-inline form { margin: 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form .input { padding: 7px 10px; font-size: 14px; width: auto; flex: 1; min-width: 160px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { padding: 8px 14px; border-radius: 9px; text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab small { opacity: .7; margin-left: 4px; }

.pay-methods { display: grid; gap: 10px; margin: 14px 0 18px; }
.pay-method { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.pay-method span { color: var(--muted); font-size: 14px; }
.pay-method strong { font-size: 17px; color: var(--ink); letter-spacing: .02em; }
.copy { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; font: 600 13px var(--font); color: var(--ink); }
.copy:hover { background: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.section-gap { margin-top: 22px; }

/* Barre mobile de l'espace développeur */
.panel-topbar { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-header .wrap { gap: 12px; }
  .menu-toggle {
    display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto;
    border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .site-nav, .site-actions { display: none; }
  .site-header.open .wrap { flex-wrap: wrap; padding-bottom: 16px; }
  .site-header.open .site-nav, .site-header.open .site-actions {
    display: flex; flex-direction: column; align-items: stretch; flex-basis: 100%; gap: 2px;
  }
  .site-header.open .site-actions { flex-direction: row; padding-top: 10px; border-top: 1px solid var(--line); }
  .site-header.open .site-actions .btn { flex: 1; }
  .site-header.open .site-nav a { padding: 12px; font-size: 16px; }
  .platforms, .features { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 28px; }
  .hero { padding: 48px 0 44px; }

  .panel { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .panel.open .sidebar { display: flex; position: fixed; inset: 0 30% 0 0; z-index: 60; height: 100vh; min-width: 260px; }
  .panel.open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }
  .panel-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: var(--ink); position: sticky; top: 0; z-index: 40;
  }
  .panel-topbar .brand-name { color: #fff; font-size: 17px; }
  .panel-topbar button { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
  .panel-topbar svg { width: 22px; height: 22px; }
  .main { padding: 20px 16px 40px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .app-hero { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat strong { font-size: 22px; }
  .search-box { padding-left: 14px; }
  .search-box .btn { padding: 11px 14px; }
  .hero-stats { gap: 24px; }
  .card-pad { padding: 18px; }
  .price { font-size: 40px; }
}

/* ==========================================================================
   PAGES CONNEXION / INSCRIPTION
   ========================================================================== */
.auth-body { background: #fff; }
.auth { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; }
.auth-side {
  position: relative; overflow: hidden; background: var(--ink); color: #c7ccd6;
  display: flex; flex-direction: column; justify-content: space-between; padding: 36px 48px;
}
.auth-side::before {
  content: ""; position: absolute; right: -220px; top: -180px; width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(227, 20, 27, .45), transparent); pointer-events: none;
}
.auth-side::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 75%);
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand-name { color: #fff; }
.auth-pitch h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 26px; max-width: 520px; }
.auth-pitch h2 em { font-style: normal; color: #ff4a50; }
.auth-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-pitch li { display: flex; gap: 12px; align-items: center; font-size: 16px; color: #d5d9e1; }
.auth-pitch li svg { width: 22px; height: 22px; color: #2bd47d; flex: none; }
.auth-foot { margin: 0; font-size: 14px; color: #7e8696; }
.auth-foot a { color: #aeb5c2; text-decoration: none; }

.auth-main {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-intro { color: var(--muted); margin-bottom: 26px; }
.auth-card .input { padding: 13px 14px; background: #fff; }
.auth-back { margin-top: 28px; font-size: 14px; color: var(--muted); text-decoration: none; }
.auth-back:hover { color: var(--ink); }
.auth-mobile-brand { display: none; margin-bottom: 28px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main {
    justify-content: flex-start; padding-top: 0;
    background:
      radial-gradient(120% 260px at 100% 0, rgba(227, 20, 27, .35), transparent 70%),
      linear-gradient(180deg, var(--ink) 0, var(--ink) 170px, var(--bg) 170px);
  }
  .auth-mobile-brand { display: flex; margin: 26px 0 30px; }
  .auth-mobile-brand .brand-name { color: #fff; }
  .auth-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 26px 22px; position: relative; }
  .auth-card .auth-mobile-brand { position: absolute; top: -86px; left: 0; margin: 0; }
  .auth-main { padding-top: 100px; }
  .auth-card h1 { font-size: 25px; }
}

/* ==========================================================================
   THÈME SOMBRE LBFD — noir profond + lueurs rouges (couleurs de l'affiche)
   Ce bloc est placé en dernier : il remplace les couleurs claires ci-dessus.
   ========================================================================== */
:root {
  --night: #08080a;          /* fond principal */
  --night-2: #0f0f12;        /* fond des zones sombres (pied de page, barre latérale) */
  --surface: #141418;        /* cartes */
  --surface-2: #1b1b20;      /* cartes au survol, champs */
  --ink: #ffffff;            /* titres et texte fort */
  --text: #d9dbe1;
  --muted: #a0a5b1;
  --faint: #7a808d;
  --line: rgba(255, 255, 255, .09);
  --bg: var(--night);
  --red: #ff1a1a;
  --red-dark: #d10f0f;
  --red-soft: rgba(255, 26, 26, .12);
  --green: #2bd47d;
  --green-soft: rgba(43, 212, 125, .12);
  --amber: #ffb547;
  --amber-soft: rgba(255, 181, 71, .12);
  --blue: #6aa3ff;
  --blue-soft: rgba(106, 163, 255, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
}

body {
  color: var(--text);
  background:
    radial-gradient(900px 620px at 105% -5%, rgba(255, 26, 26, .26), transparent 62%),
    radial-gradient(760px 560px at -10% 105%, rgba(255, 26, 26, .16), transparent 60%),
    linear-gradient(115deg, transparent 0 58%, rgba(255, 26, 26, .05) 58% 59%, transparent 59% 100%),
    var(--night);
  background-attachment: fixed;
}
::selection { background: rgba(255, 26, 26, .45); color: #fff; }

/* Surfaces */
.card, .app-card, .platform, .feature, .step, .stat, .contact-item, .tab, .chip,
.price-card, .status-none, .empty, .menu-toggle {
  background: rgba(20, 20, 24, .82);
  border-color: var(--line);
}
.app-card:hover, .platform:hover, a.stat:hover, a.contact-item:hover, .chip:hover {
  background: rgba(30, 30, 36, .9); border-color: rgba(255, 26, 26, .45);
}
.empty { border-style: dashed; border-color: rgba(255, 255, 255, .15); }
.app-logo, .platform-icon { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.pay-method { background: var(--surface-2); }
.copy { color: #fff; border-color: var(--line); }
.copy:hover { background: rgba(255, 255, 255, .08); }

/* Champs */
.input, .select, .textarea, .auth-card .input {
  background: var(--surface-2); border-color: rgba(255, 255, 255, .14); color: #fff;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 26, 26, .2); }
.input:disabled { opacity: .6; }
.select option { background: var(--surface); color: #fff; }
input[type=file].input { color: var(--muted); }

/* Boutons */
.btn-primary { background: var(--red); box-shadow: 0 6px 22px rgba(255, 26, 26, .35); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .14); }
.btn-dark:hover { background: rgba(255, 255, 255, .14); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn-light:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.btn-danger { background: transparent; color: #ff6b6b; border-color: rgba(255, 107, 107, .4); }
.btn-danger:hover { background: rgba(255, 107, 107, .1); }
.btn-success { background: #13a35c; }
.chip.active, .tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.chip.active small, .tab.active small { color: rgba(255, 255, 255, .8); }
.step::before { background: var(--red); }

/* Badges & messages */
.badge { background: rgba(255, 255, 255, .08); color: var(--muted); }
.alert-success { border-color: rgba(43, 212, 125, .3); color: #7ff0b4; }
.alert-warning { border-color: rgba(255, 181, 71, .3); color: #ffd18a; }
.alert-error { border-color: rgba(255, 26, 26, .35); color: #ff8a8a; }
.alert-info { border-color: rgba(106, 163, 255, .3); color: #a9c8ff; }
.status-active { border-color: rgba(43, 212, 125, .3); }
.status-active p { color: #9fe9c1; }
.status-pending { border-color: rgba(255, 181, 71, .3); }
.status-pending p { color: #ffd18a; }

/* En-tête et bas de page */
.site-header { background: rgba(8, 8, 10, .78); border-bottom-color: var(--line); }
.site-nav a:hover, .site-nav a.active { background: rgba(255, 255, 255, .07); }
.site-header.open .site-actions { border-top-color: var(--line); }
.hero, .cta { background: transparent; }
.hero { border-bottom: 1px solid var(--line); }
.hero::before { background: radial-gradient(closest-side, rgba(255, 26, 26, .45), transparent); }
.cta {
  background: linear-gradient(120deg, rgba(255, 26, 26, .16), rgba(20, 20, 24, .9) 55%);
  border: 1px solid rgba(255, 26, 26, .28);
}
.search-box { background: #fff; }
.page-head { background: transparent; border-bottom-color: var(--line); }
.site-footer { background: rgba(5, 5, 6, .92); border-top: 1px solid var(--line); }
.prose p, .prose li { color: var(--text); }
.prose a, .link-more { color: #ff4d4d; }
.facts li, .table th, .table td, .card-head { border-color: var(--line); }

/* Tarif */
.price-card { border: 1px solid rgba(255, 26, 26, .45); box-shadow: 0 0 0 1px rgba(255, 26, 26, .15), var(--shadow-lg); }

/* Espace développeur */
.sidebar, .panel-topbar { background: rgba(10, 10, 12, .96); border-right: 1px solid var(--line); }

/* Pages connexion */
.auth-body { background: var(--night); }
.auth-side { background: transparent; border-right: 1px solid var(--line); }
.auth-main { background: transparent; }
@media (max-width: 900px) {
  .auth-main { background: transparent; }
  .auth-card { background: rgba(20, 20, 24, .9); border-color: var(--line); }
  .auth-side { border-right: 0; }
}
.search-box input { color: #0b0d12; }
.search-box input::placeholder { color: #8b93a3; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: #ff5c5c; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }

/* Icônes des plateformes (couleurs officielles) */
.platform .platform-icon { width: 52px; height: 52px; border-radius: 14px; }
.platform .platform-icon svg { width: 28px; height: 28px; }
.platform .pi-android { background: rgba(61, 220, 132, .13); color: #3ddc84; border: 1px solid rgba(61, 220, 132, .3); }
.platform .pi-apple   { background: rgba(255, 255, 255, .08); color: #f5f5f7; border: 1px solid rgba(255, 255, 255, .2); }
.platform .pi-windows { background: rgba(0, 164, 239, .13); color: #26b2f2; border: 1px solid rgba(0, 164, 239, .32); }
.platform:hover .pi-android { background: rgba(61, 220, 132, .2); }
.platform:hover .pi-windows { background: rgba(0, 164, 239, .2); }

@media (max-width: 860px) {
  .platforms { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .platform { flex-direction: column; text-align: center; gap: 10px; padding: 16px 8px; }
  .platform strong { font-size: 15px; }
  .platform div span { font-size: 12px; line-height: 1.3; display: block; }
}
@media (max-width: 380px) {
  .platform div span { display: none; }
}
