/* Lead Desk — design doux type Shopify */

:root {
  --bg: #F6F6F7;
  --surface: #FFFFFF;
  --border: #E4E5E9;
  --ink: #1A1C1F;
  --soft: #6B7076;
  --faint: #9CA1A8;
  --green: #0E7C56;
  --green-deep: #0A5F42;
  --green-soft: #E4F1EB;
  --blue: #2463EB;
  --danger: #C43333;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23,24,24,.06), 0 2px 8px rgba(23,24,24,.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
p a, dd a { color: var(--green); }
p a:hover, dd a:hover { text-decoration: underline; }

h1 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 650; }

.muted { color: var(--soft); font-size: 13.5px; }

/* Animation en cascade */
.rise { animation: rise .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-in {
  max-width: 860px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; display: block; flex: none; }
.brand-badge {
  background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 700;
  border-radius: 99px; padding: 1px 7px; margin-left: 2px;
}
.back {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; color: var(--soft); flex: none;
  border: 1px solid var(--border); background: var(--surface);
}
.back:hover { color: var(--ink); }
.search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 7px 12px; color: var(--faint); min-width: 0;
}
.search:focus-within { border-color: var(--green); background: #fff; }
.search input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font: inherit; font-size: 14px; color: var(--ink);
}
.iconbtn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; color: var(--soft); flex: none;
}
.iconbtn:hover { background: var(--bg); color: var(--ink); }

/* ---------- Barre d'onglets du bas (18/09/2026, façon app mobile) ---------- */

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottomnav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px 7px; color: var(--faint); font-size: 11px; font-weight: 650;
}
.bottomnav__item.on { color: var(--green); }
.bottomnav__icon { position: relative; display: flex; }
.bottomnav__badge {
  position: absolute; top: -3px; right: -9px;
  background: var(--blue); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 99px; min-width: 16px; height: 16px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ---------- Layout ---------- */

.wrap { max-width: 860px; margin: 0 auto; padding: 22px 16px 60px; }
.wrap--bottomnav { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0)); }

.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.section-title { margin: 26px 0 10px; font-size: 14px; color: var(--soft); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}
.card-title { margin-bottom: 12px; }
.card.empty { text-align: center; padding: 36px 18px; }
.card.list { padding: 4px 0; }

.flash, .sync-note {
  background: var(--green-soft); color: var(--green-deep);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px;
}

.push-card {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  border-color: #CFE5DB; background: #F4FAF7;
}
.push-card .btn { flex: none; }

/* ---------- Accueil : cartes sites ---------- */

.grid-sites { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* nombre impair de sites : la dernière carte prend la ligne entière (jamais de carte orpheline) */
.grid-sites > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 620px) { .grid-sites { grid-template-columns: 1fr; } }

.site-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; margin-bottom: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.site-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(23,24,24,.09); }

.site-square {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; letter-spacing: .02em;
}
.mini-square {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 7px; font-size: 10.5px; font-weight: 800;
  vertical-align: -5px; margin-right: 2px;
}
.site-square.has-logo, .mini-square.has-logo {
  border: 1px solid var(--border);
  overflow: hidden;
}
.site-square.has-logo img, .mini-square.has-logo img {
  width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; box-sizing: border-box;
}
.mini-square.has-logo img { padding: 2px; }
.site-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.site-meta strong { font-size: 15px; }
.site-meta .muted { font-size: 12.5px; }
.site-stats { font-size: 12px; color: var(--faint); margin-top: 3px; }

.pastille {
  flex: none; min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: 99px; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(36,99,235,.35);
}
.pastille-ok {
  flex: none; width: 26px; height: 26px; border-radius: 99px;
  background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}

