/* ════════════════════════════════════════
   COMPARER.CSS — Pages X vs Y
   Utilisé par : comparer/[slug].html
   Données depuis : data/comparaisons.json
   ════════════════════════════════════════ */

/* ── IMPORTS ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* ── VARIABLES (reprises d'Albexia) ── */
:root {
  --radius:    4px;
  --radius-sm: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
}

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

.nav-link {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--sans);
  transition: all .15s;
}

.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--text); background: rgba(255,255,255,0.08); }

/* ── HERO ── */
.cp-hero {
  padding: 56px 32px 36px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.cp-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 560px; height: 280px;
  /* Accent coloré supprimé dans le hero. */
  background: none;
  pointer-events: none;
}

.cp-vs-badge {
  display: inline-block;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: var(--radius);
  margin-bottom: 20px;
}

.cp-hero h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.1;
}

.cp-hero h1 .vs-sep { color: var(--text-dim); margin: 0 12px; }

.cp-resume {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── OUTILS HEADER ── */
.cp-tools-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 760px;
  margin: 36px auto;
  padding: 0 32px;
}

.cp-tool-card {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color .2s;
}

.cp-tool-card.winner {
  border-color: var(--border-hover);
  background: var(--bg2);
  position: relative;
}

.cp-tool-card.winner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--text);
  border-radius: var(--radius) var(--radius) 0 0;
}

.cp-tool-logo {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  background: var(--bg3);
}

.cp-tool-logo-fallback {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
}

.cp-tool-name {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700;
  margin-bottom: 4px;
}

.cp-tool-cat {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.cp-tool-note {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  padding: 3px 12px; border-radius: var(--radius-sm);
}

.note-top { background: var(--bg3); color: var(--text); border: 1px solid var(--border-hover); }
.note-bon { background: var(--bg3); color: var(--text); border: 1px solid var(--border-hover); }
.note-ok  { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border-hover); }

.cp-vs-divider {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ── TABLEAU CRITÈRES ── */
.cp-section {
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 32px;
}

.cp-section-title {
  font-family: var(--serif);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}

.cp-section-title::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--border);
}

.cp-table { width: 100%; border-collapse: collapse; }

.cp-table thead tr { background: var(--bg2); }

.cp-table th {
  padding: 13px 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cp-table th.th-tool {
  text-align: center;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0; text-transform: none;
  color: var(--text);
}

.cp-table th.th-tool img {
  width: 20px; height: 20px;
  border-radius: var(--radius-sm); object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.cp-table tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.cp-table tr:hover { background: rgba(255,255,255,0.02); }

.cp-table td { padding: 12px 16px; font-size: 13px; text-align: center; }
.cp-table td.td-label { text-align: left; color: var(--text-muted); font-weight: 400; }

.check-yes { color: var(--text); font-size: 16px; font-weight: 700; }
.check-no  { color: var(--text-dim); font-size: 16px; font-weight: 700; }
.check-na  { color: var(--text-dim); }

/* ── AVANTAGES / INCONVÉNIENTS ── */
.cp-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 48px;
}

.cp-pros-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.cp-pros-card-title {
  font-family: var(--serif);
  font-size: 14px; font-weight: 700;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}

.cp-pros-card-title img {
  width: 22px; height: 22px;
  border-radius: var(--radius-sm); object-fit: contain;
}

.cp-pros-list { list-style: none; }

.cp-pros-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 0;
  display: flex; gap: 8px; align-items: flex-start;
  line-height: 1.5;
}

.cp-pros-list li::before { content: '✓'; color: var(--text); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.cp-cons-list li::before { content: '✗'; color: var(--text-dim); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── CAS D'USAGE ── */
.cp-cas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 48px;
}

.cp-cas-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.cp-cas-card.card-a { border-top: 2px solid var(--border-hover); }
.cp-cas-card.card-b { border-top: 2px solid var(--border-hover); }

.cp-cas-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}

.card-a .cp-cas-label { color: var(--text-muted); }
.card-b .cp-cas-label { color: var(--text-muted); }

.cp-cas-title {
  font-family: var(--serif);
  font-size: 14px; font-weight: 700;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}

.cp-cas-title img {
  width: 20px; height: 20px;
  border-radius: var(--radius-sm); object-fit: contain;
}

.cp-cas-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── VERDICT ── */
.cp-verdict-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
}

.cp-verdict-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}

.cp-verdict-title {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}

.cp-verdict-title img {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm); object-fit: contain;
}

.cp-verdict-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

/* ── FAQ ── */
.cp-faq { margin-bottom: 48px; }

.cp-faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .2s;
}

.cp-faq-item:hover { border-color: var(--border-hover); }

.cp-faq-question {
  width: 100%; text-align: left;
  padding: 16px 20px;
  font-size: 14px; font-weight: 500;
  color: var(--text);
  background: transparent; border: none;
  cursor: pointer;
  font-family: var(--sans);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: color .15s;
}

.cp-faq-question:hover { color: var(--text-muted); }

.cp-faq-arrow {
  font-size: 12px; color: var(--text-dim);
  transition: transform .2s;
  flex-shrink: 0;
}

.cp-faq-item.open .cp-faq-arrow { transform: rotate(180deg); }

.cp-faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.cp-faq-item.open .cp-faq-answer { display: block; }

/* ── CTAs ── */
.cp-cta-wrap {
  display: flex; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cp-cta-btn {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .2s; border: 1px solid;
  gap: 10px;
}

.cp-cta-btn img {
  width: 22px; height: 22px;
  border-radius: var(--radius-sm); object-fit: contain;
}

.cp-cta-a, .cp-cta-b { background: transparent; border-color: var(--border-hover); color: var(--text); }
.cp-cta-a:hover, .cp-cta-b:hover { background: var(--bg3); border-color: var(--text-dim); transform: translateY(-1px); }

/* ── BACK LINK ── */
.cp-back {
  display: block; text-align: center;
  margin-bottom: 48px;
  font-size: 13px; color: var(--text-dim);
  text-decoration: none; transition: color .15s;
}

.cp-back:hover { color: var(--text); }


