/* Page /comparatif-emelia-lemlist-heyreach — comparatif outils cold outbound.
 * Hérite : style.css, forms.css (.audit-hero), expertises.css, about.css,
 * tarifs.css (overrides max-width 1100 + expertises-main 100%).
 * Ajoute ici : .comparatif-table, .tool-detail, .profile-reco, .client-breakdown. */

/* === Tableau comparatif 11 critères === */
.comparatif-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-top: 8px;
}
.theme-light .comparatif-table-wrap {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
}
.comparatif-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  min-width: 720px;
}
.comparatif-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 18px 20px;
  text-align: left;
  background: rgba(var(--violet-rgb), 0.04);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.comparatif-table thead th.featured-col {
  color: var(--violet-2);
  background: rgba(var(--violet-rgb), 0.10);
}
.comparatif-table tbody tr {
  border-bottom: 1px solid var(--line);
}
.theme-light .comparatif-table tbody tr {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.comparatif-table tbody tr:last-child {
  border-bottom: none;
}
.comparatif-table tbody td {
  padding: 16px 20px;
  color: var(--ink);
  vertical-align: middle;
}
.comparatif-table tbody td.row-label {
  font-weight: 600;
  color: var(--ink-2);
}
.comparatif-table tbody td.featured-col {
  background: rgba(var(--violet-rgb), 0.04);
}

/* === Détail outil par outil (3 colonnes) === */
.tool-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.tool-detail {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.theme-light .tool-detail {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
}
.tool-detail::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.tool-detail-cyan::before     { background: var(--cyan); }
.tool-detail-violet::before   { background: var(--violet); }
.tool-detail-gradient::before { background: linear-gradient(90deg, var(--violet-2), var(--cyan)); }

.tool-detail-featured {
  border-color: var(--violet);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px rgba(var(--violet-rgb), 0.45);
}
.theme-light .tool-detail-featured {
  border-color: rgba(var(--violet-rgb), 0.4);
}
.tool-detail-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(var(--violet-rgb), 0.12);
  color: var(--violet-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--violet-rgb), 0.22);
  font-weight: 600;
}
.tool-detail-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.025em;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.tool-detail-name a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 200ms ease;
}
.tool-detail-name a:hover {
  color: var(--violet-2);
}
.tool-detail-name a svg {
  transition: transform 200ms ease;
  opacity: 0.6;
}
.tool-detail-name a:hover svg {
  transform: translate(2px, -2px);
  opacity: 1;
  color: var(--violet-2);
}
.tool-detail-affiliate-chip {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(var(--cyan-rgb), 0.10);
  color: var(--cyan);
  border: 1px solid rgba(var(--cyan-rgb), 0.22);
  font-weight: 600;
  white-space: nowrap;
}

/* Liens cliquables dans le header du tableau */
.comparatif-table thead th a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 200ms ease;
}
.comparatif-table thead th a:hover {
  opacity: 0.7;
}
.comparatif-table thead th a svg {
  opacity: 0.5;
}
.tool-detail-tagline {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: -8px 0 0;
  font-style: italic;
}

.tool-detail-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-detail-block-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
.tool-detail-block-warn {
  color: var(--violet-2);
}
.tool-detail-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-detail-block li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.tool-detail-block li svg {
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 4px;
}
.tool-detail-weaknesses li {
  padding-left: 18px;
  position: relative;
}
.tool-detail-weaknesses li::before {
  content: "−";
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--violet-2);
  font-weight: 700;
}

.tool-detail-best {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theme-light .tool-detail-best {
  border-top-color: rgba(0, 0, 0, 0.06);
}
.tool-detail-best p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

/* === Recommandations par profil (3 cards) === */
.profile-reco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.profile-reco {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.theme-light .profile-reco {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
}
.profile-reco-featured {
  border-color: var(--violet);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px rgba(var(--violet-rgb), 0.45);
}
.theme-light .profile-reco-featured {
  border-color: rgba(var(--violet-rgb), 0.4);
}
.profile-reco-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(var(--violet-rgb), 0.12);
  color: var(--violet-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--violet-rgb), 0.22);
  font-weight: 600;
}
.profile-reco-profile {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.profile-reco-criteria {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-reco-criteria li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13.5px;
}
.profile-reco-criteria .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.profile-reco-criteria strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}
.profile-reco-pick {
  padding: 18px 20px;
  background: rgba(var(--violet-rgb), 0.06);
  border: 1px solid rgba(var(--violet-rgb), 0.18);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-light .profile-reco-pick {
  background: rgba(var(--violet-rgb), 0.04);
}
.profile-reco-pick-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.profile-reco-pick-tool {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--violet-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.profile-reco-why {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

/* === Client breakdown (3 rows avec barres horizontales) === */
.client-breakdown {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.client-breakdown-row {
  display: grid;
  grid-template-columns: 110px 200px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.theme-light .client-breakdown-row {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.client-breakdown-row:last-child {
  border-bottom: none;
}
.client-breakdown-tool {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.client-breakdown-bar-wrap {
  height: 36px;
  background: rgba(var(--violet-rgb), 0.06);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.client-breakdown-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--violet-2), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  min-width: 50px;
}
.client-breakdown-bar span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.client-breakdown-body {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

/* === Responsive === */
@media (max-width: 1100px) {
  .tool-detail-grid,
  .profile-reco-grid {
    grid-template-columns: 1fr;
  }
  .tool-detail-featured,
  .profile-reco-featured {
    transform: none;
  }
}
@media (max-width: 760px) {
  .client-breakdown-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .client-breakdown-bar-wrap {
    width: 100%;
  }
}
