/* VP247 — interface sobre type « annuaire de services » */
:root {
  --bg: #0a0a0b;
  --panel: #101012;
  --panel-2: #16161a;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f2f2f4;
  --muted: #8e8e98;
  --muted-2: #6a6a74;
  --green: #4ade80;
  --amber: #fbbf24;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.page { flex: 1; padding-bottom: 80px; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── barre haute ────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 54px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #fff, #a1a1aa);
  color: #0a0a0b; font-size: .8rem; font-weight: 800;
}
.brand-name { letter-spacing: -.01em; }

.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a {
  padding: 6px 10px; border-radius: 6px;
  color: var(--muted); font-size: .85rem;
  transition: color .15s, background .15s;
}
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.topnav .lang-btn { border: 1px solid var(--line); color: var(--muted); padding: 4px 9px; font-size: .74rem; letter-spacing: .06em; }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 62px 0 34px; }
.kicker {
  display: inline-block; margin: 0 0 14px;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); font-family: var(--mono);
}
.hero h1 {
  margin: 0; max-width: 24ch;
  font-size: clamp(1.85rem, 4.2vw, 2.9rem);
  line-height: 1.1; letter-spacing: -.03em; font-weight: 700;
}
.hero-sub { margin: 16px 0 0; max-width: 62ch; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ── boutons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: #f4f4f5; color: #0a0a0b; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-danger { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .3); color: #fca5a5; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 5px 10px; font-size: .78rem; border-radius: 6px; }
.btn .mono { font-size: .78rem; }

/* ── barre de filtres ───────────────────────────────────── */
.filterbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 0 12px; height: 36px;
}
.search input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--text); font-size: .87rem; height: 100%;
}
.search input::placeholder { color: var(--muted-2); }
.search .kbd {
  font-family: var(--mono); font-size: .68rem; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px;
}

.select {
  height: 36px; padding: 0 30px 0 11px;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238e8e98' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font-size: .84rem; cursor: pointer;
  -webkit-appearance: none; appearance: none; outline: none;
}
.select:hover { border-color: var(--line-strong); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: .82rem; font-weight: 500; transition: all .15s;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab.is-active { background: #f4f4f5; border-color: #f4f4f5; color: #0a0a0b; font-weight: 600; }

/* ── table des services ─────────────────────────────────── */
.table-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.7fr) minmax(0, 1.5fr) 130px 84px 108px;
  gap: 14px; align-items: center;
  padding: 10px 8px; border-bottom: 1px solid var(--line);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted-2); font-weight: 600; position: sticky; top: 54px;
  background: var(--bg); z-index: 20;
}
.table-head .num { text-align: right; }

.svc-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.7fr) minmax(0, 1.5fr) 130px 84px 108px;
  gap: 14px; align-items: center;
  padding: 12px 8px; border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.svc-row:hover { background: rgba(255, 255, 255, .035); }

.pick { display: grid; place-items: center; }
.pick input {
  width: 15px; height: 15px; accent-color: #f4f4f5; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong);
}

.svc-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 700; color: var(--text);
}
.svc-title { min-width: 0; }
.svc-title a { display: block; font-weight: 600; font-size: .9rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.svc-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: .76rem; color: var(--muted); }
.svc-sub .dot { color: var(--muted-2); }

.specs { display: flex; flex-wrap: wrap; gap: 5px; }
.spec {
  font-family: var(--mono); font-size: .71rem;
  padding: 3px 7px; border-radius: 5px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  color: #c3c3ca; white-space: nowrap;
}

.price-col { text-align: right; }
.price { font-family: var(--mono); font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.price-old { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted-2); text-decoration: line-through; }
.price.big { font-size: 2rem; font-weight: 700; }
.price-block { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }

.off { text-align: right; }
.badge {
  display: inline-block; padding: 3px 7px; border-radius: 5px;
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
}
.badge-off { background: rgba(74, 222, 128, .1); color: var(--green); border: 1px solid rgba(74, 222, 128, .22); }
.badge-featured { background: rgba(251, 191, 36, .1); color: var(--amber); border: 1px solid rgba(251, 191, 36, .22); }
.badge.big { font-size: .85rem; padding: 6px 11px; }
.badge-none { color: var(--muted-2); font-family: var(--mono); font-size: .76rem; }

.row-cta { display: flex; justify-content: flex-end; }
.row-cta .btn { width: 100%; }

/* ── barre de comparaison ───────────────────────────────── */
.compare-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(140%);
  z-index: 60; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px;
  background: #18181c; border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8);
  transition: transform .25s cubic-bezier(.2, .8, .3, 1);
  font-size: .85rem;
}
.compare-bar.is-visible { transform: translateX(-50%) translateY(0); }
.compare-bar .count { font-family: var(--mono); color: var(--muted); }

/* ── carte (detail, admin) ──────────────────────────────── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

/* ── detail ─────────────────────────────────────────────── */
.breadcrumb { margin: 26px 0 0; font-size: .82rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

.detail { margin-top: 12px; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 24px 0 20px; border-bottom: 1px solid var(--line); }
.detail-head h1 { margin: 10px 0 8px; font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.provider-name { margin: 0; font-size: .86rem; color: var(--muted); }
.provider-name.large { font-size: .95rem; color: var(--text); font-weight: 600; }
.category { margin: 2px 0 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.deal-specs { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.55; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; padding-top: 24px; }
.detail-main h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin: 24px 0 10px; font-weight: 600; }
.detail-main h2:first-child { margin-top: 0; }
.detail-main p { line-height: 1.68; color: var(--muted); margin: 0 0 14px; }
.detail-side { align-self: start; position: sticky; top: 78px; }

.metric-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.metric-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; background: var(--panel); font-size: .84rem; }
.metric-list dt { color: var(--muted); }
.metric-list dd { margin: 0; font-family: var(--mono); font-size: .82rem; }

.coupon { margin: 16px 0; padding: 13px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-strong); }
.coupon-label { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.coupon-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.coupon-row code { flex: 1; padding: 8px 10px; border-radius: 6px; background: #0a0a0b; border: 1px solid var(--line); font-family: var(--mono); font-size: .9rem; letter-spacing: .06em; }

.related { margin-top: 48px; }
.related h2 { font-size: .95rem; margin: 0 0 14px; }

/* ── etats / pagination ─────────────────────────────────── */
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 30px 0 0; }
.page-info { font-family: var(--mono); font-size: .8rem; color: var(--muted); }

/* ── pied de page ───────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 20px; }
.footer-inner { display: grid; gap: 10px; }
.footer p { margin: 0; font-size: .82rem; line-height: 1.65; }
.footer .muted { max-width: 80ch; color: var(--muted-2); }
.footer-links { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ── page legale ────────────────────────────────────────── */
.legal { max-width: 72ch; margin: 44px auto; }
.legal h1 { margin: 0 0 16px; font-size: clamp(1.5rem, 3.6vw, 2rem); letter-spacing: -.02em; }
.legal .lead { font-size: 1rem; color: var(--text); }
.legal p { color: var(--muted); line-height: 1.7; margin: 0 0 14px; }

/* ── comparateur ────────────────────────────────────────── */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp { width: 100%; border-collapse: collapse; font-size: .85rem; }
.cmp th, .cmp td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { background: var(--panel); font-size: .82rem; font-weight: 600; position: sticky; top: 54px; }
.cmp tbody th { color: var(--muted); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; width: 150px; background: var(--panel); }
.cmp td { font-family: var(--mono); font-size: .82rem; }
.cmp td.is-empty { color: var(--muted-2); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .cmp-price { font-size: .95rem; font-weight: 600; }
.cmp-best { color: var(--green); }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .table-head { display: none; }
  .svc-row {
    grid-template-columns: 30px minmax(0, 1fr) 110px;
    grid-template-areas:
      "pick name cta"
      ". specs specs"
      ". price off";
    row-gap: 8px;
  }
  .svc-row .pick { grid-area: pick; }
  .svc-row .svc-name { grid-area: name; }
  .svc-row .specs { grid-area: specs; }
  .svc-row .price-col { grid-area: price; text-align: left; }
  .svc-row .off { grid-area: off; text-align: left; }
  .svc-row .row-cta { grid-area: cta; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .hero { padding-top: 40px; }
  .cmp thead th { position: static; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 26px); }
  .topnav a:not(.lang-btn) { display: none; }
  .topnav a.lang-btn { display: inline-block; }
  .hero-actions .btn { flex: 1; }
  .detail-head { flex-direction: column; }
}

/* ── offres liees ───────────────────────────────────────── */
.rel-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rel-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .15s, background .15s;
}
.rel-item:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .025); }
.rel-item .svc-title a { font-size: .85rem; }
