/* ═══════════════════════════════════════════════════════════════════
   FootActu — Features (Favoris, Cmd+K, Comparateur, Push)
═══════════════════════════════════════════════════════════════════ */

/* ── TOAST (partagé) ────────────────────────────────────────────── */
.fa-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120%);
  min-width: 280px;
  max-width: calc(100vw - 32px);
  background: var(--ink);
  color: #fff;
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  font-size: 13px;
  line-height: 1.4;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s;
  opacity: 0;
}
.fa-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.fa-toast-msg { flex: 1; color: #fff; }
.fa-toast-action {
  padding: 5px 11px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.fa-toast-action:hover { background: var(--accent-text); }
.fa-toast-close {
  color: rgba(255,255,255,.6);
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
  flex-shrink: 0;
}
.fa-toast-close:hover { color: #fff; }

@media (max-width: 480px) {
  .fa-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: translateY(120%);
    min-width: 0;
    max-width: none;
  }
  .fa-toast.show { transform: translateY(0); }
}

/* ── FAVORI — bouton étoile sur fiches ───────────────────────────── */
.fa-fav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  transition: all .15s;
  backdrop-filter: blur(6px);
}
.fa-fav-btn:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.3);
}
.fa-fav-btn .fa-fav-icon {
  transition: fill .15s, stroke .15s;
  fill: transparent;
  stroke: #fff;
}
.fa-fav-btn.is-active {
  background: #fbbf24;
  color: #1f2937;
  border-color: #f59e0b;
}
.fa-fav-btn.is-active .fa-fav-icon {
  fill: #1f2937;
  stroke: #1f2937;
}

/* ── FAVORIS — widget sidebar ─────────────────────────────────────── */
.fa-favs-widget .fa-w-hd {
  display: flex; align-items: center; justify-content: space-between;
}
.fa-w-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: 10px;
}
.fa-fav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.fa-fav-item:last-child { border-bottom: none; }
.fa-fav-item:hover { background: var(--bg); }
.fa-fav-item img { flex-shrink: 0; }
.fa-fav-ph {
  display: inline-block; width: 28px; height: 28px;
  background: var(--bg); border-radius: 4px; flex-shrink: 0;
}
.fa-fav-name {
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fa-favs-empty {
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--ink3);
  line-height: 1.5;
}

/* ── COMPARATEUR — bouton ─────────────────────────────────────────── */
.fa-cmp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  transition: all .15s;
  backdrop-filter: blur(6px);
}
.fa-cmp-btn:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.3);
}
.fa-cmp-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── COMPARATEUR — page /comparer ─────────────────────────────────── */
.fa-compare-empty {
  padding: 40px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  color: var(--ink2);
}
.fa-compare-empty p { margin-bottom: 16px; font-size: 14px; }
.fa-btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
}
.fa-btn-primary:hover { background: var(--accent-text); }

.fa-compare-loading {
  padding: 40px;
  text-align: center;
  color: var(--ink3);
}

.fa-cmp {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  overflow: hidden;
}
.fa-cmp-cols {
  display: grid;
  grid-template-columns: 120px repeat(var(--cmp-n), 1fr);
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
}
.fa-cmp-cols::before {
  content: '';
}
.fa-cmp-col {
  position: relative;
  padding: 16px 10px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.1);
}
.fa-cmp-col:first-child { border-left: none; }
.fa-cmp-remove {
  position: absolute; top: 6px; right: 6px;
  width: 20px; height: 20px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: 50%;
  font-size: 14px; line-height: 1;
}
.fa-cmp-remove:hover { background: rgba(255,255,255,.3); }
.fa-cmp-head { color: #fff; }
.fa-cmp-photo {
  width: 60px; height: 60px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.3);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.fa-cmp-photo img { width: 100%; height: 100%; object-fit: cover; }
.fa-cmp-photo-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  color: rgba(255,255,255,.6);
}
.fa-cmp-name {
  font-size: 14px; font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}
.fa-cmp-poste {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 5px;
}
.fa-cmp-team {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 11px; color: rgba(255,255,255,.85);
}
.fa-cmp-team img { flex-shrink: 0; object-fit: contain; }

.fa-cmp-rows {
  /* body */
}
.fa-cmp-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.fa-cmp-row:last-child { border-bottom: none; }
.fa-cmp-row.is-highlight { background: var(--accent-bg); }
.fa-cmp-lbl {
  padding: 12px 14px;
  font-size: 12px; font-weight: 600;
  color: var(--ink2);
  text-transform: uppercase; letter-spacing: .3px;
}
.fa-cmp-cells {
  display: grid;
  grid-template-columns: repeat(var(--cmp-n), 1fr);
}
.fa-cmp-cell {
  padding: 12px 8px;
  text-align: center;
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  border-left: 1px solid var(--border);
}
.fa-cmp-cell.fa-cmp-best {
  color: var(--green);
  background: rgba(22,163,74,.08);
}

.fa-cmp-clear {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--bg);
  color: var(--live);
  font-size: 13px; font-weight: 600;
  border-top: 1px solid var(--border);
  transition: background .15s;
}
.fa-cmp-clear:hover { background: #fee2e2; }

/* Responsive compare */
@media (max-width: 640px) {
  .fa-cmp-cols { grid-template-columns: 90px repeat(var(--cmp-n), 1fr); }
  .fa-cmp-row { grid-template-columns: 90px 1fr; }
  .fa-cmp-lbl { font-size: 10.5px; padding: 10px 8px; }
  .fa-cmp-cell { padding: 10px 4px; font-size: 13px; }
  .fa-cmp-photo { width: 50px; height: 50px; }
  .fa-cmp-name { font-size: 12.5px; }
  .fa-cmp-col { padding: 14px 6px; }
}

/* ── PALETTE Cmd+K ────────────────────────────────────────────────── */
.fa-palette {
  position: fixed; inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}
.fa-palette.is-open {
  pointer-events: auto;
  opacity: 1;
}
.fa-palette-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(4px);
}
.fa-palette-box {
  position: relative;
  max-width: 620px;
  margin: 8vh auto 0;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  overflow: hidden;
  transform: translateY(-20px) scale(.98);
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.fa-palette.is-open .fa-palette-box { transform: none; }
.fa-palette-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink3);
}
.fa-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
}
.fa-palette-input::placeholder { color: var(--ink4); }
.fa-palette-header kbd,
.fa-palette-footer kbd {
  display: inline-block;
  padding: 2px 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px; font-weight: 600;
  color: var(--ink3);
  font-family: inherit;
}
.fa-palette-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 4px 0;
}
.fa-palette-hint {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink3);
}
.fa-palette-group {
  padding: 4px 0;
}
.fa-palette-group-hd {
  padding: 8px 16px 4px;
  font-size: 10px; font-weight: 700;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.fa-palette-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px;
  color: var(--ink);
  transition: background .1s;
  cursor: pointer;
}
.fa-palette-item.is-active {
  background: var(--accent-bg);
}
.fa-palette-thumb {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.fa-palette-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.fa-palette-thumb img.rounded {
  border-radius: 50%;
  object-fit: cover;
}
.fa-palette-ph {
  display: inline-block;
  width: 28px; height: 28px;
  background: var(--bg);
  border-radius: 4px;
}
.fa-palette-body { flex: 1; min-width: 0; }
.fa-palette-title {
  font-size: 13.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fa-palette-sub {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px;
  color: var(--ink3);
  margin-top: 1px;
}
.fa-palette-sub img { object-fit: cover; }
.fa-palette-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 11px;
  color: var(--ink3);
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 640px) {
  .fa-palette-box { margin: 4vh 12px 0; }
  .fa-palette-footer { display: none; }
}
