/* Arrow AI — pages de classement GEO.
   Complement optionnel de /home.css, comme /article.css pour le blog.
   N'utilise que les tokens de la maison : aucun nouveau systeme de couleurs. */

.rk-hero .lede { max-width: 720px; margin-left: auto; margin-right: auto; }

.rk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: clamp(28px, 4vw, 40px) auto 0;
}
.rk-stats div {
  background: var(--bg-card);
  border: 1px solid var(--a8);
  border-radius: var(--r-lg);
  padding: 18px 14px;
  text-align: center;
}
.rk-stats b { display: block; font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.rk-stats b i { font-style: normal; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.rk-stats span { display: block; margin-top: 6px; font-size: 0.76rem; color: var(--muted); }
.rk-date {
  margin-top: 18px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- podium ---------- */
.pod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: end;
  max-width: 900px;
  margin: 0 auto;
}
.pod {
  position: relative;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--a8);
  border-radius: var(--r-lg);
  padding: 30px 18px 22px;
}
.pod-1 { padding-top: 42px; box-shadow: 0 18px 44px -26px rgba(255, 100, 47, 0.5); border-color: var(--heat-20); }
.pod-1 .pod-score strong { color: var(--heat); }
.pod-rank {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  color: #fff; background: var(--ink);
}
.pod-1 .pod-rank { background: var(--heat); width: 36px; height: 36px; font-size: 0.92rem; top: -18px; }
.pod-badge {
  display: grid; place-items: center;
  width: 76px; height: 76px; margin: 0 auto 14px;
  border-radius: 18px; background: var(--bg-lighter);
  border: 1px solid var(--a8); overflow: hidden;
}
.pod-1 .pod-badge { width: 92px; height: 92px; }
.pod-logo { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pod-name { font-size: 1.02rem; font-weight: 650; margin: 0 0 6px; color: var(--ink); }
.pod-score { margin: 0 0 6px; }
.pod-score strong { font-size: 2rem; font-weight: 700; color: var(--geo); }
.pod-score span { font-size: 0.85rem; color: var(--muted); }
.pod-city { margin: 0 0 10px; font-size: 0.78rem; color: var(--muted); }
.pod-link {
  font-family: var(--mono); font-size: 0.7rem; color: var(--geo);
  text-decoration: none; border-bottom: 1px solid var(--geo-soft);
}
.pod-link:hover { border-bottom-color: var(--geo); }

/* ---------- unlock bar + lead popup ---------- */
.rk-unlock {
  position: relative; margin-top: -120px; padding: 130px 20px 4px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(247, 247, 249, 0), var(--bg) 58%);
}
.rk-unlock p { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }
.rk-unlock strong { color: var(--ink); }
.rk-table-wrap:not([data-locked]) .rk-unlock { display: none; }

.lead-modal { z-index: 240; }
.lead-panel {
  position: relative;
  width: min(460px, 100%); height: auto;
  padding: 38px 34px 30px;
  text-align: center;
  display: block;
}
.lead-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; line-height: 1;
}
.lead-mark { display: block; margin: 0 auto 16px; border-radius: 11px; }
.lead-kick {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--geo); margin: 0 0 10px;
}
.lead-panel h2 { font-size: 1.5rem; margin: 0 0 10px; color: var(--ink); }
.lead-sub { color: var(--muted); font-size: 0.93rem; line-height: 1.6; margin: 0 0 22px; }
.lead-form { display: flex; flex-direction: column; gap: 10px; }
.lead-form input {
  padding: 13px 17px; font: inherit; font-size: 0.95rem;
  color: var(--ink); background: var(--bg-lighter);
  border: 1px solid var(--a10); border-radius: 999px; text-align: center;
}
.lead-form input:focus { outline: 2px solid var(--heat); outline-offset: 1px; }
.lead-form .btn { justify-content: center; }
.lead-err { margin: 12px 0 0; color: var(--heat-strong); font-size: 0.85rem; }
.lead-note { margin: 16px 0 0; font-size: 0.75rem; color: var(--muted); }
.lead-note a { color: var(--geo); }

/* ---------- tableau ---------- */
.rk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rk-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 720px; }
.rk-table thead th {
  text-align: left; padding: 10px 12px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--a10); white-space: nowrap;
}
.rk-table td { padding: 12px; border-bottom: 1px solid var(--a6); vertical-align: middle; }
.rk-table tbody tr:hover td { background: var(--heat-4); }
.c-rank { font-family: var(--mono); color: var(--muted); width: 46px; }
.co { display: flex; align-items: center; gap: 12px; }
.rk-logo {
  width: 34px; height: 34px; flex: none; border-radius: 9px; object-fit: contain;
  background: var(--bg-lighter); border: 1px solid var(--a8); padding: 4px;
}
.rk-mono {
  display: grid; place-items: center; padding: 0;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--muted);
}
.c-co a { color: var(--ink); font-weight: 600; text-decoration: none; }
.c-co a:hover { color: var(--geo); }
.co-dom { display: block; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.c-city { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.c-bars { width: 150px; }
.mini { display: inline-block; width: 22px; height: 6px; margin-right: 3px; border-radius: 3px; background: var(--a10); overflow: hidden; vertical-align: middle; }
.mini i { display: block; height: 100%; background: var(--geo); }
.pill {
  display: inline-grid; place-items: center; min-width: 44px; padding: 5px 10px;
  border-radius: 999px; font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
}
.b-strong { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.b-ok { background: var(--geo-soft); color: var(--geo); }
.b-weak { background: var(--heat-12); color: var(--heat-strong); }
.b-crit { background: rgba(190, 18, 60, 0.1); color: #be123c; }
.tg {
  border: 1px solid var(--a10); background: var(--bg-card); color: var(--muted);
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
  font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.tg:hover { border-color: var(--geo); color: var(--geo); }

/* ligne depliee */
.det td { background: var(--bg-lighter); }
.det-in { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 26px; padding: 6px 2px 10px; }
.det-in h4 { font-size: 0.74rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 12px; }
.det-scores { list-style: none; margin: 0; padding: 0; }
.det-scores li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--a6); font-size: 0.84rem; }
.det-scores b { font-family: var(--mono); color: var(--ink); }
.det-scores i { font-style: normal; color: var(--muted); font-weight: 400; }
.det-list { margin: 0; padding-left: 18px; }
.det-list li { margin-bottom: 9px; font-size: 0.87rem; color: var(--muted); line-height: 1.55; }
.det-list strong { color: var(--ink); display: block; }
.det-list code, .rk-meth code, .lede code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--a8); padding: 1px 5px; border-radius: 4px; color: var(--ink);
}

/* ---------- methode & correctifs ---------- */
.rk-warn {
  max-width: 780px; margin: 0 auto clamp(28px, 4vw, 40px);
  background: var(--heat-4); border: 1px solid var(--heat-12);
  border-radius: var(--r-lg); padding: 20px 24px;
}
.rk-warn p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.94rem; }
.rk-warn strong { color: var(--ink); }
.rk-meth { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.rk-meth article { background: var(--bg-card); border: 1px solid var(--a8); border-radius: var(--r-lg); padding: 22px; }
.m-pts { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--geo); }
.rk-meth h3 { font-size: 1rem; margin: 8px 0 8px; color: var(--ink); }
.rk-meth p { margin: 0; font-size: 0.87rem; color: var(--muted); line-height: 1.6; }
.rk-fine { max-width: 780px; margin: 26px auto 0; text-align: center; font-size: 0.8rem; color: var(--muted); }
.rk-fine a { color: var(--geo); }
.rk-fix { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.rk-fix article { background: var(--bg-card); border: 1px solid var(--a8); border-radius: var(--r-lg); padding: 26px 22px; }
.f-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--heat); color: #fff; font-family: var(--mono); font-weight: 600; margin-bottom: 14px;
}
.rk-fix h3 { font-size: 1.04rem; margin: 0 0 10px; color: var(--ink); }
.rk-fix p { margin: 0 0 10px; font-size: 0.89rem; color: var(--muted); line-height: 1.6; }
.f-eff { font-family: var(--mono); font-size: 0.7rem; color: var(--geo); text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 860px) {
  .rk-stats { grid-template-columns: repeat(2, 1fr); }
  .pod-grid { grid-template-columns: 1fr; max-width: 380px; }
  .pod-1 { order: -1; }
  .det-in { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- constellation: Arrow mark wired to the answer engines ---------- */
.cnst { margin: clamp(24px, 3.5vw, 38px) auto 0; max-width: 460px; }
.cnst svg { width: 100%; height: auto; display: block; overflow: visible; }
.cn-l {
  stroke: var(--a16, rgba(18, 20, 40, 0.16));
  stroke-width: 1.2; stroke-dasharray: 4 5;
  animation: cnFlow 3.4s linear infinite;
}
.cn-ring { fill: var(--bg-card); stroke: var(--a10); stroke-width: 1; }
.cn-i { animation: cnPulse 3.4s ease-in-out infinite; }
.cn-t {
  fill: var(--muted); font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.cn-hub { fill: var(--bg-card); stroke: var(--heat-20); stroke-width: 1.4; }
@keyframes cnFlow { to { stroke-dashoffset: -18; } }
@keyframes cnPulse { 0%, 100% { opacity: 0.72; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cn-l, .cn-i { animation: none; opacity: 1; }
}
.cnst figcaption {
  margin-top: 10px; text-align: center;
  font-size: 0.8rem; color: var(--muted);
}

/* ---------- gap column ---------- */
.c-gap {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--heat-strong); white-space: nowrap;
}
.pod-gap { margin: 0 0 10px; font-size: 0.76rem; color: var(--muted); }
.pod-gap b { color: var(--heat-strong); font-family: var(--mono); }

/* ---------- long-form background copy ---------- */
.essay { max-width: 720px; margin: 0 auto; }
.essay h3 {
  font-size: 1.14rem; color: var(--ink);
  margin: 34px 0 12px; padding-top: 22px;
  border-top: 1px solid var(--a8);
}
.essay h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.essay p { color: var(--muted); line-height: 1.75; margin: 0 0 15px; font-size: 0.98rem; }
.essay strong { color: var(--ink); }
.essay em { color: var(--ink); font-style: italic; }
.essay code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--a8); padding: 1px 5px; border-radius: 4px; color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq-grid { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--a8); border-radius: var(--r-lg);
  background: var(--bg-card); margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-weight: 600; color: var(--ink); font-size: 0.98rem;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-family: var(--mono);
  font-size: 1.15rem; color: var(--geo); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--geo); }
.faq-item p {
  margin: 0; padding: 0 22px 20px;
  color: var(--muted); line-height: 1.7; font-size: 0.93rem;
}

/* ---------- segment tag + companies we could not scan ---------- */
.c-seg { white-space: nowrap; }
.seg {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--a8); color: var(--muted);
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.rk-blocked {
  max-width: 780px; margin: clamp(28px, 4vw, 40px) auto 0;
  border: 1px solid var(--a10); border-radius: var(--r-lg);
  background: var(--bg-lighter); padding: 24px 26px;
}
.rk-blocked h3 { margin: 0 0 10px; font-size: 1.02rem; color: var(--ink); }
.rk-blocked p { margin: 0 0 16px; font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.rk-blocked ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rk-blocked li {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-bottom: 8px; border-bottom: 1px solid var(--a6); font-size: 0.9rem;
}
.rk-blocked li:last-child { border-bottom: 0; padding-bottom: 0; }
.rk-blocked a { color: var(--ink); font-weight: 600; text-decoration: none; }
.rk-blocked a:hover { color: var(--geo); }
.rk-blocked span { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }

/* ---------- blurred score teaser inside the lead popup ---------- */
.lead-score {
  position: relative;
  margin: 0 0 20px;
  padding: 20px 18px 16px;
  border: 1px solid var(--a8);
  border-radius: var(--r-lg);
  background: var(--bg-lighter);
}
.ls-blur {
  filter: blur(9px);
  opacity: 0.75;
  transition: filter 0.5s ease, opacity 0.5s ease;
  user-select: none;
}
.lead-score.is-revealed .ls-blur { filter: blur(0); opacity: 1; }
.ls-num { font-size: 2.6rem; font-weight: 700; color: var(--geo); line-height: 1; }
.ls-den { font-size: 1rem; color: var(--muted); }
.ls-bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.ls-bars li { height: 7px; border-radius: 4px; background: var(--a10); overflow: hidden; }
.ls-bars i { display: block; height: 100%; background: var(--geo); }
.ls-lock, .ls-done {
  margin: 12px 0 0; font-family: var(--mono);
  font-size: 0.64rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted);
}
.ls-done { color: var(--geo); }
.lead-cta { margin-top: 12px; display: inline-flex; justify-content: center; width: 100%; }

/* ---------- expanded row: where the gap is, without the recipe ---------- */
.det-weak { margin: 0 0 12px; font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.det-weak strong { color: var(--ink); }
.det-cta { margin: 0; font-size: 0.88rem; }
.det-cta a {
  color: var(--geo); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--geo-soft);
}
.det-cta a:hover { border-bottom-color: var(--geo); }

/* compact constellation: keeps the ranking near the top of the page */
.cnst-sm { max-width: 340px; margin-top: clamp(18px, 2.5vw, 26px); }
.cnst-sm figcaption { font-size: 0.74rem; margin-top: 6px; }

/* tighter top of page so the ranking sits high */
.cnst-sm { max-width: 262px; }
.rk-pod-sec { padding-top: clamp(30px, 4vw, 46px); }
.rk-podline {
  max-width: 620px; margin: 0 auto clamp(20px, 3vw, 28px);
  text-align: center; color: var(--muted); font-size: 0.95rem;
}
.rk-table-sec { padding-top: clamp(26px, 3.5vw, 40px); }
.rk-table-sec .offers-head { margin-bottom: clamp(20px, 3vw, 28px); }
