/* ==========================================================================
   Casino Comparator — CTR-optimized
   Used on: /nouveaux-casinos-en-ligne, /casino-free-spins, /casino-retrait-instantane
   ========================================================================== */

/* ── H3 casino logo (full-width banner inside detailed sections) ───── */
.h3-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 110px;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0 20px;
  text-decoration: none;
}
.h3-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 14px 28px;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .h3-logo { height: 80px; }
  .h3-logo img { padding: 10px 16px; }
}

/* Defensive resets: override global `main a:not(.cta-button)` rules (orange underline). */
.cc-list a,
.cc-list a:hover,
.cc-list a:visited,
.cc-list a:focus { text-decoration: none; }
.cc-list a.cc-card__trustpilot { color: #00734d; }
.cc-list a.cc-card__trustpilot:hover { color: #005a3d; background: #d8f3e6; }

/* ── Filters bar ─────────────────────────────────────────── */
.cc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 14px;
  padding: 14px 16px;
  background: #fff8ed;
  border: 1px solid #f4d9b3;
  border-radius: 14px;
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
}
.cc-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  margin: 0;
  background: #fff;
  border: 1.5px solid #f0d9b3;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #1a3853;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.cc-filter:hover {
  border-color: #ff8a00;
  background: #fff4e5;
}
.cc-filter.is-active {
  background: linear-gradient(135deg, #ff8a00, #d97300);
  border-color: #d97300;
  color: #fff;
  box-shadow: 0 3px 10px rgba(217, 115, 0, .3);
}
.cc-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(26, 56, 83, .08);
  border-radius: 9px;
  color: inherit;
}
.cc-filter.is-active .cc-filter__count {
  background: rgba(255, 255, 255, .25);
}

.cc-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 14px 0 36px;
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
}

.cc-list .cc-card[hidden] { display: none !important; }

.cc-card {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr 1.4fr 200px;
  gap: 20px;
  align-items: stretch;
  background: #fff;
  border: 2px solid #f4d9b3;
  border-radius: 14px;
  padding: 22px 22px 22px 22px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 138, 0, .18);
  border-color: #ff8a00;
}
.cc-card[data-rank="1"] { border-color: #ff8a00; box-shadow: 0 6px 20px rgba(255, 138, 0, .12); }

/* ── Rank pill (orange tab top-left) ───────────────────────── */
.cc-card__rank {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 12px;
  background: #ff8a00;
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  border-radius: 12px 0 10px 0;
  letter-spacing: .5px;
}

/* ── Optional badge under the rank ─────────────────────────── */
.cc-card__badge {
  position: absolute;
  top: 8px;
  right: 14px;
  background: linear-gradient(135deg, #ff8a00, #d97300);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .6px;
  padding: 4px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(217, 115, 0, .35);
  z-index: 2;
}
.cc-card__badge--trust { background: linear-gradient(135deg, #00b67a, #008f5e); box-shadow: 0 2px 6px rgba(0, 143, 94, .35); }

/* ── Brand column (logo + score + trustpilot) ─────────────── */
.cc-card__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  justify-content: center;
}
.cc-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 88px;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
}
.cc-card__logo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px 10px;
  box-sizing: border-box;
}
.cc-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  white-space: nowrap;
}
.cc-card__stars {
  color: #ffb800;
  letter-spacing: 1.5px;
  font-size: 15px;
  line-height: 1;
}
.cc-card__score {
  font-weight: 800;
  color: #1f1f1f;
}
.cc-card__trustpilot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #00734d;
  text-decoration: none;
  background: #ecf9f3;
  border: 1px solid #c9ecdd;
  padding: 4px 10px;
  border-radius: 14px;
  transition: background .15s ease;
}
.cc-card__trustpilot:hover { background: #d8f3e6; }
.cc-card__trustpilot::before {
  content: "★";
  color: #00b67a;
  font-size: 14px;
  line-height: 1;
}

/* ── Specs column (retrait, dépôt min, paiements) ─────────── */
.cc-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-content: start;
  padding-top: 18px;
}
.cc-spec { display: flex; flex-direction: column; gap: 2px; }
.cc-spec__label {
  font-size: 11px;
  color: #5c6a78;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.cc-spec__value {
  font-size: 16px;
  font-weight: 800;
  color: #1a3853;
  line-height: 1.2;
}
.cc-payments { grid-column: 1 / -1; margin-top: 2px; }
.cc-payments__label {
  display: block;
  font-size: 11px;
  color: #5c6a78;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}
.cc-payments__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.cc-payments__list img {
  display: block;
  height: 26px;
  width: 39px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
  box-sizing: border-box;
}
.cc-payments__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-width: 32px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: #5c6a78;
  background: #f7f4ef;
  border: 1px solid #ebe4d8;
  border-radius: 4px;
}

/* ── Offer column (bonus + highlight + benefits) ──────────── */
.cc-card__offer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  align-content: start;
  justify-content: flex-start;
}
.cc-card__bonus {
  font-size: 19px;
  font-weight: 900;
  color: #1a3853;
  line-height: 1.22;
  letter-spacing: -.2px;
}
.cc-card__highlight {
  display: inline-block;
  width: fit-content;
  font-size: 13px;
  font-weight: 800;
  color: #b34d00;
  background: #fff4e5;
  border-left: 3px solid #ff8a00;
  padding: 5px 10px 5px 8px;
  border-radius: 0 4px 4px 0;
}
.cc-card__benefits {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cc-card__benefits li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #1f1f1f;
}
.cc-card__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background-color: #16a34a;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.5 11.6 2.9 8l1.4-1.4 2.2 2.2L11.7 3.6 13.1 5l-6.6 6.6z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.5 11.6 2.9 8l1.4-1.4 2.2 2.2L11.7 3.6 13.1 5l-6.6 6.6z'/></svg>") center/contain no-repeat;
}

/* ── CTA column (button + legal) ──────────────────────────── */
.cc-card__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 18px;
}
.cc-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  background: linear-gradient(180deg, #2ecc71, #16a34a);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .8px;
  border-radius: 8px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(22, 163, 74, .35), inset 0 -3px 0 rgba(0, 0, 0, .12);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  border: 0;
  cursor: pointer;
}
.cc-card__btn:hover,
.cc-card__btn:focus-visible {
  transform: scale(1.035);
  box-shadow: 0 6px 18px rgba(22, 163, 74, .5), inset 0 -3px 0 rgba(0, 0, 0, .12);
  filter: brightness(1.05);
}
.cc-card__btn .arrow { font-size: 20px; line-height: 1; }
.cc-card[data-rank="1"] .cc-card__btn { animation: cc-pulse 2.4s ease-in-out infinite; }
@keyframes cc-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(22, 163, 74, .35), inset 0 -3px 0 rgba(0, 0, 0, .12); }
  50%      { box-shadow: 0 4px 22px rgba(22, 163, 74, .7),  inset 0 -3px 0 rgba(0, 0, 0, .12); }
}
.cc-card__legal {
  font-size: 11px;
  color: #8a9097;
  text-align: center;
  line-height: 1.3;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1000px) {
  .cc-card {
    grid-template-columns: 180px 1fr 180px;
    grid-template-areas:
      "brand offer cta"
      "specs specs specs";
    gap: 18px;
  }
  .cc-card__brand { grid-area: brand; }
  .cc-card__specs { grid-area: specs; padding-top: 6px; border-top: 1px solid #f0eadf; padding-top: 14px; margin-top: 4px; }
  .cc-card__offer { grid-area: offer; }
  .cc-card__cta   { grid-area: cta; }
}
@media (max-width: 720px) {
  .cc-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "offer"
      "specs"
      "cta";
    padding: 36px 16px 18px;
    gap: 14px;
  }
  .cc-card__rank { font-size: 16px; }
  .cc-card__brand { padding-top: 6px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .cc-card__logo { max-width: 160px; height: 64px; padding: 8px 12px; }
  .cc-card__rating { font-size: 13px; }
  .cc-card__specs { padding-top: 12px; grid-template-columns: 1fr 1fr; }
  .cc-card__bonus { font-size: 17px; }
  .cc-card__cta { padding-top: 6px; }
  .cc-card__btn { min-height: 52px; font-size: 17px; }
  .cc-card__badge { top: 6px; right: 10px; font-size: 9px; padding: 3px 7px; }
}
@media (max-width: 420px) {
  .cc-card__brand { flex-direction: column; }
  .cc-card__logo { max-width: 100%; }
}
