.sf-app {
  --sf-blue: #2563eb;
  --sf-blue-2: #1d4ed8;
  --sf-ink: #0f172a;
  --sf-muted: #64748b;
  --sf-line: #e2e8f0;
  --sf-soft: #f8fafc;
  --sf-white: #ffffff;
  --sf-green: #16a34a;
  --sf-red: #dc2626;
  --sf-amber: #d97706;
  color: var(--sf-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  max-width: 880px;
  margin: 0 auto 2rem;
  box-sizing: border-box;
}
.sf-app *,
.sf-app *::before,
.sf-app *::after { box-sizing: border-box; }

.sf-hero { margin-bottom: 1.4rem; }
.sf-hero-title {
  margin: 0 0 .35rem !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  letter-spacing: -.03em;
  color: var(--sf-ink) !important;
}
.sf-hero-sub {
  margin: 0 0 1.15rem !important;
  color: var(--sf-muted);
  font-size: 1.02rem;
}

.sf-search { margin: 0; }
.sf-search-inner {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .4rem .4rem .95rem;
  background: var(--sf-white);
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sf-search-inner:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 16px 44px rgba(37, 99, 235, .16);
  transform: translateY(-1px);
}
.sf-search-icon { color: #94a3b8; display: grid; place-items: center; flex: 0 0 auto; }
.sf-search input[type="search"] {
  flex: 1;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: .85rem .4rem !important;
  font-size: 1.02rem !important;
  width: auto !important;
  min-width: 0;
  color: var(--sf-ink);
}
.sf-search input[type="search"]::placeholder { color: #94a3b8; }

.sf-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0 !important;
  margin: 0 !important;
  padding: .9rem 1.25rem !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  cursor: pointer;
  line-height: 1 !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sf-btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.38) 48%, transparent 72%);
  transform: translateX(-130%);
  animation: sf-shine 2.4s ease-in-out infinite;
  pointer-events: none;
}
.sf-btn-label,
.sf-btn-arrow { position: relative; z-index: 1; }
.sf-btn-arrow {
  display: inline-block;
  transition: transform .22s ease;
}
.sf-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .42);
}
.sf-btn:hover .sf-btn-arrow { transform: translateX(3px); }
.sf-btn:active { transform: translateY(0) scale(.98); }
.sf-search.is-loading .sf-btn {
  pointer-events: none;
  animation: sf-pulse 1s ease-in-out infinite;
}
.sf-search.is-loading .sf-btn-label { opacity: .85; }
.sf-search.is-loading .sf-btn-arrow {
  animation: sf-spin .7s linear infinite;
  transform-origin: center;
}

@keyframes sf-shine {
  0%, 20% { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}
@keyframes sf-pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(37, 99, 235, .35); }
  50% { box-shadow: 0 8px 28px rgba(37, 99, 235, .6); }
}
@keyframes sf-spin {
  to { transform: rotate(180deg); }
}

.sf-meta { color: var(--sf-muted); margin: 0 0 1rem; }
.sf-results { display: grid; gap: .8rem; }
.sf-card {
  background: var(--sf-white);
  border: 1px solid var(--sf-line);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.sf-result { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.sf-result:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .08);
}
.sf-result-main,
.sf-company-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.sf-name {
  margin: 0 0 .3rem !important;
  font-size: 1.15rem !important;
  color: var(--sf-ink) !important;
}
.sf-name a { color: inherit !important; text-decoration: none !important; }
.sf-name a:hover { color: var(--sf-blue) !important; }
.sf-line { margin: .12rem 0 !important; color: var(--sf-muted); font-size: .94rem; }
.sf-more {
  display: inline-block;
  margin-top: .75rem;
  color: var(--sf-blue) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.sf-more:hover { text-decoration: underline !important; }
.sf-result-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.sf-result-actions .sf-more { margin-top: 0; }
.sf-report-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .9rem;
}
.sf-report {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  color: #b91c1c !important;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: .42rem .9rem;
  text-decoration: none !important;
  transition: background .18s ease, transform .18s ease;
}
.sf-report:hover { background: #fee2e2; transform: translateY(-1px); }
.sf-report::before { content: '⚠ '; }
.sf-report-small {
  color: var(--sf-muted) !important;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none !important;
}
.sf-report-small:hover { color: #b91c1c !important; }

.sf-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.sf-tag {
  display: inline-flex;
  align-items: center;
  font-size: .74rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .22rem .62rem;
  background: #f1f5f9;
  color: #334155;
}
.sf-tag-green { background: #dcfce7; color: var(--sf-green); }
.sf-tag-red { background: #fee2e2; color: var(--sf-red); }
.sf-tag-gray { background: #f1f5f9; color: #334155; }
.sf-tag-blue { background: #dbeafe; color: var(--sf-blue); }

.sf-enseigne {
  margin-top: 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: .9rem 1rem;
  color: #1e3a8a;
}
.sf-enseigne strong { display: block; margin-bottom: .25rem; }
.sf-enseigne p { margin: .2rem 0 0 !important; }
.sf-enseigne a { color: var(--sf-blue) !important; font-weight: 700; }

.sf-score {
  min-width: 86px;
  text-align: center;
  border-radius: 14px;
  padding: .55rem .65rem;
  border: 1px solid var(--sf-line);
}
.sf-score strong { display: block; font-size: 1.45rem; line-height: 1; }
.sf-score small { display: block; margin-top: .25rem; color: var(--sf-muted); font-weight: 700; }
.sf-score-lg { min-width: 118px; padding: .8rem; }
.sf-score-lg strong { font-size: 1.9rem; }
.sf-score-high { background: #f0fdf4; border-color: #bbf7d0; color: var(--sf-green); }
.sf-score-mid { background: #fffbeb; border-color: #fde68a; color: var(--sf-amber); }
.sf-score-low { background: #fef2f2; border-color: #fecaca; color: var(--sf-red); }

.sf-h {
  margin: 1.35rem 0 .65rem !important;
  font-size: 1.05rem !important;
}
.sf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}
.sf-info {
  background: var(--sf-soft);
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  padding: .75rem .85rem;
}
.sf-info span {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sf-muted);
  font-weight: 700;
  margin-bottom: .2rem;
}
.sf-info b { font-weight: 700; word-break: break-word; }

.sf-why {
  margin-top: 1rem;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 14px;
  padding: .9rem 1rem;
}
.sf-why ul { margin: .4rem 0 0 1.1rem; padding: 0; }
.sf-why li { margin: .2rem 0; }

.sf-table-wrap { overflow-x: auto; }
.sf-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.sf-table th,
.sf-table td {
  text-align: left;
  padding: .65rem .45rem;
  border-bottom: 1px solid var(--sf-line);
  vertical-align: top;
}
.sf-table th {
  color: var(--sf-muted);
  font-size: .74rem;
  text-transform: uppercase;
}
.sf-table tr:last-child td { border-bottom: 0; }

.sf-alert,
.sf-empty {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  text-align: center;
}
.sf-alert { background: #fee2e2; color: #991b1b; font-weight: 700; }
.sf-empty { border: 1px dashed var(--sf-line); color: var(--sf-muted); }

.sf-pager {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.sf-pager a {
  background: #dbeafe;
  color: var(--sf-blue) !important;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: 999px;
  padding: .35rem .85rem;
}
.sf-pager span { color: var(--sf-muted); }
.sf-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1rem;
  color: var(--sf-blue) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.sf-app-box { margin-bottom: 1rem; }

@media (max-width: 700px) {
  .sf-grid { grid-template-columns: 1fr; }
  .sf-search-inner {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: .7rem;
  }
  .sf-search input[type="search"] { width: 100% !important; padding: .55rem .3rem !important; }
  .sf-btn { width: 100%; }
}
