/* ── Scope .cgcat — zéro collision avec bundle.css ── */
.cgcat *, .cgcat *::before, .cgcat *::after { box-sizing: border-box; }
.cgcat {
  font-family: "Lato", sans-serif;
  color: #1a0028;
  --c-deep:   #2a0040;
  --c-purple: #581259;
  --c-pink:   #ff0080;
  --c-pink-d: #bf0060;
  --c-gold:   #ffbc79;
  --c-white:  #ffffff;
  --c-bg:     #fdf5ff;
  --c-muted:  #6b4080;
  --c-border: rgba(89,18,89,0.12);
  --c-shadow: 0 3px 20px rgba(89,18,89,0.09);
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
}
.cgcat h2,.cgcat h3 { background: none !important; }

/* Hero intro */
.cgcat .cc-hero {
  background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-purple) 60%, #7b1a6b 100%);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 40px) clamp(20px, 4vw, 40px);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  color: white;
}
.cgcat .cc-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,0,128,0.18), transparent 70%);
  pointer-events: none;
}
.cgcat .cc-hero__badge {
  display: inline-block;
  background: rgba(255,188,121,0.18);
  border: 1px solid rgba(255,188,121,0.38);
  color: var(--c-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
  display: block;
  width: fit-content;
}
.cgcat .cc-hero h2 {
  font-family: "Source Sans Pro", sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: white;
  margin: 0 0 10px;
  line-height: 1.2;
}
.cgcat .cc-hero h2 em { font-style: normal; color: var(--c-gold); }
.cgcat .cc-hero p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin: 0 0 10px;
  max-width: 640px;
}
.cgcat .cc-hero p:last-child { margin-bottom: 0; }
.cgcat .cc-hero strong { color: white; }

/* Stats row */
.cgcat .cc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin-top: 16px;
}
.cgcat .cc-stat__num {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
}
.cgcat .cc-stat__lbl {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Méthode box */
.cgcat .cc-method {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: var(--c-shadow);
}
.cgcat .cc-method h3 {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-purple);
  margin: 0 0 12px;
}
.cgcat .cc-method p {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin: 0 0 8px;
}
.cgcat .cc-method p:last-child { margin-bottom: 0; }
.cgcat .cc-method strong { color: var(--c-deep); }

/* Infobox */
.cgcat .cc-infobox {
  background: var(--c-bg);
  border-left: 4px solid var(--c-pink);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 16px;
  margin: 12px 0 0;
  font-size: 0.87rem;
  color: var(--c-muted);
  line-height: 1.65;
}
.cgcat .cc-infobox strong { color: var(--c-purple); }

/* Tableau comparatif */
.cgcat .cc-table-wrap {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--c-shadow);
  margin-bottom: 24px;
}
.cgcat .cc-table-wrap h3 {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-purple);
  margin: 0;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--c-border);
}
.cgcat .cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cgcat .cc-table th {
  background: linear-gradient(135deg, var(--c-deep), var(--c-purple));
  color: var(--c-gold);
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.cgcat .cc-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
  color: #3d1a50;
  vertical-align: middle;
  white-space: nowrap;
}
.cgcat .cc-table tr:last-child td { border-bottom: none; }
.cgcat .cc-table tr:nth-child(even) td { background: rgba(253,245,255,0.5); }
.cgcat .cc-table .ok  { color: #16a34a; font-weight: 700; }
.cgcat .cc-table .ko  { color: var(--c-pink-d); font-weight: 700; }
.cgcat .cc-table .meh { color: #d97706; font-weight: 700; }
.cgcat .cc-table .rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}
.cgcat .cc-table .r1 { background: linear-gradient(135deg,#ffd700,#e6ac00); color: #3d2000; }
.cgcat .cc-table .r2 { background: linear-gradient(135deg,#d8d8d8,#a8a8a8); color: #1a1a1a; }
.cgcat .cc-table .r3 { background: linear-gradient(135deg,#cd7f32,#8b4513); color: white; }
.cgcat .cc-table .rn { background: rgba(89,18,89,0.12); color: var(--c-purple); }
.cgcat .cc-table .site-name { font-weight: 700; color: var(--c-deep); }

/* 4 critères */
.cgcat .cc-criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.cgcat .cc-criterion {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--c-shadow);
}
.cgcat .cc-criterion__icon { font-size: 1.4rem; margin-bottom: 8px; display: block; }
.cgcat .cc-criterion h3 {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-purple);
  margin: 0 0 6px;
}
.cgcat .cc-criterion p {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin: 0;
}

/* Séparateur avant la liste CMS */
.cgcat .cc-list-intro {
  background: linear-gradient(135deg, var(--c-deep), var(--c-purple));
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cgcat .cc-list-intro__icon { font-size: 1.4rem; flex-shrink: 0; }
.cgcat .cc-list-intro h3 {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-gold);
  margin: 0 0 3px;
}
.cgcat .cc-list-intro p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.5;
}

/* Styles badges rang sur liste CMS */
.sscms-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
.sscms_list li:nth-child(1) .sscms-rank-badge { background: linear-gradient(135deg,#ffd700,#e6ac00); color: #3d2000; }
.sscms_list li:nth-child(2) .sscms-rank-badge { background: linear-gradient(135deg,#d8d8d8,#a8a8a8); color: #1a1a1a; }
.sscms_list li:nth-child(3) .sscms-rank-badge { background: linear-gradient(135deg,#cd7f32,#8b4513); color: white; }
.sscms_list li:nth-child(n+4) .sscms-rank-badge { background: rgba(89,18,89,0.12); color: #581259; }