/* ============================================================
   Prop Firm Avis — feuille de style principale
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-elevated: #f5f6f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f6f8;
  --border: #e3e6eb;
  --border-light: #d3d7df;
  --text: #14181f;
  --text-muted: #4b5563;
  --text-faint: #6b7280;
  --accent: #159f5e;
  --accent-dark: #0f8049;
  --accent-soft: rgba(21, 159, 94, 0.10);
  --accent-2: #2f6fed;
  --accent-2-soft: rgba(47, 111, 237, 0.10);
  --warn: #b06a00;
  --warn-soft: rgba(176, 106, 0, 0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1180px;
  --shadow: 0 8px 30px rgba(20, 24, 31, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(21, 159, 94, 0.06), transparent 60%),
    radial-gradient(ellipse 900px 500px at 100% 0%, rgba(47, 111, 237, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(176, 232, 87, 0.35);
}

.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-card);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 1.1rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 68px 0 44px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(21, 159, 94, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 660px;
  margin: 0 auto 30px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 30px;
}

.hero-search .search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-search .search-icon,
.page-search .search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-faint);
  font-size: 1.05rem;
  pointer-events: none;
}

.hero-search input[type="search"],
.page-search input[type="search"] {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 15px 18px 15px 46px;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  box-shadow: var(--shadow);
}

.hero-search input[type="search"]:focus,
.page-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 40;
  text-align: left;
  display: none;
}

.search-dropdown.open { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item.active { background: var(--bg-card-hover); }

.search-result-item .info { flex: 1; min-width: 0; }

.search-result-item .name {
  font-weight: 700;
  font-size: 0.92rem;
}

.search-result-item .hq {
  font-size: 0.78rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item .score {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.search-empty {
  padding: 16px;
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
}

.page-search {
  max-width: 460px;
  margin: 0 0 28px;
}

.page-search .search-input-wrap { position: relative; }

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #06170e;
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-light);
  color: var(--text);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 10px;
}

.stat-box .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-box .label {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ---------- Section headers ---------- */

.section {
  padding: 54px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
}

/* ---------- Filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.filters select,
.filters input[type="search"] {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
}

.filters input[type="search"] {
  flex: 1;
  min-width: 180px;
}

.filters .filter-reset {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ---------- Ranking table ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

table.ranking {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

table.ranking th,
table.ranking td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 0.9rem;
}

table.ranking th {
  color: var(--text-faint);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  background: var(--bg-elevated);
  cursor: pointer;
  user-select: none;
}

table.ranking th:hover { color: var(--text); }

table.ranking tbody tr {
  transition: background 0.15s;
}

table.ranking tbody tr:hover { background: var(--bg-card-hover); }

table.ranking tbody tr:last-child td { border-bottom: none; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rank-badge.top1 { background: linear-gradient(135deg, #ffd76a, #e8a33d); color: #201400; border-color: rgba(0, 0, 0, 0.08); }
.rank-badge.top2 { background: linear-gradient(135deg, #d9dfe8, #a9b3c2); color: #1a1e26; border-color: rgba(0, 0, 0, 0.08); }
.rank-badge.top3 { background: linear-gradient(135deg, #e3a26b, #b9713a); color: #201200; border-color: rgba(0, 0, 0, 0.08); }

.firm-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.firm-logo {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  text-transform: uppercase;
}

.firm-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
}

.tier-pill {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.link-btn {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.85rem;
}

.link-btn:hover { text-decoration: underline; }

/* ---------- Firm cards (avis page) ---------- */

.firm-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.firm-toc a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
}

.firm-toc a:hover { color: var(--text); border-color: var(--border-light); }

.firm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 22px;
  scroll-margin-top: 90px;
}

.firm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.firm-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.firm-title .firm-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 1.1rem;
}

.firm-title h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.firm-title .meta {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 2px;
}

.score-badge-lg {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  min-width: 74px;
}

.score-badge-lg .value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.score-badge-lg .value small { font-size: 0.75rem; color: var(--text-faint); font-weight: 600; }

.score-badge-lg .caption {
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.firm-summary {
  color: var(--text-muted);
  margin: 16px 0 20px;
  font-size: 0.98rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.spec-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.spec-item .k {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 5px;
  font-weight: 700;
}

.spec-item .v {
  font-size: 0.92rem;
  font-weight: 700;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.badge {
  background: var(--accent-2-soft);
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pros-cons h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.pros h4 { color: var(--accent); }
.cons h4 { color: var(--warn); }

.pros-cons li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.pros li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.cons li::before {
  content: "!";
  position: absolute;
  left: 3px;
  color: var(--warn);
  font-weight: 800;
}

.firm-card-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.official-link {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.official-link strong { color: var(--text-muted); }

/* ---------- Generic content blocks ---------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card + .card { margin-top: 16px; }

.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card p, .card li { color: var(--text-muted); }
.card li { margin-bottom: 8px; }
.card ul { padding-left: 20px; list-style: disc; }
.card ol { padding-left: 20px; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.callout {
  border: 1px solid rgba(176, 106, 0, 0.3);
  background: var(--warn-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.callout strong { color: var(--warn); }

.callout.accent {
  border-color: rgba(21, 159, 94, 0.3);
  background: var(--accent-soft);
}
.callout.accent strong { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin: 0 0 12px;
}

.footer-col a, .footer-col p {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.footer-col a:hover { color: var(--text); }

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 10px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: 1fr; }
  .firm-card-head { flex-direction: column; align-items: flex-start; }
}
