/**
 * Comparatif casino — style des deux cartes (non recommandé / recommandé).
 */
.cmp-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 900px;
  margin: 40px auto;
  color: #333;
}

.cmp-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.cmp-title-casino-name {
  color: #1e6f3e;
}

.cmp-subtitle {
  text-align: center;
  font-size: 14px;
  color: #777;
  margin-bottom: 28px;
}

.cmp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cmp-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #fff;
  position: relative;
}

.cmp-card-bad {
  opacity: 0.75;
  filter: saturate(0.6);
}

.cmp-card-bad .cmp-card-header {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.cmp-card-good {
  border: 2px solid #1e6f3e;
  box-shadow: 0 4px 24px rgba(30,111,62,0.12);
}

.cmp-card-good .cmp-card-header {
  background: linear-gradient(135deg, #1a5c35 0%, #1e6f3e 100%);
  border-bottom: none;
}

.cmp-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: -14px;
  position: relative;
  z-index: 2;
}

.cmp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cmp-badge-bad {
  background: #fff0ee;
  color: #c0392b;
  border: 1px solid #f5c6c0;
}

.cmp-badge-good {
  background: #e8f7ee;
  color: #1a6b3a;
  border: 1px solid #a3d9b5;
}

.cmp-card-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cmp-logo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
}

.cmp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cmp-logo-fallback {
  font-size: 18px;
  font-weight: 800;
  color: #aaa;
}
.cmp-card-good .cmp-logo-fallback { color: #1e6f3e; }

.cmp-card-bad .cmp-header-info h3 {
  color: #555;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}

.cmp-card-good .cmp-header-info h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}

.cmp-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 4px;
}

.cmp-star-on  { color: #f0a500; font-size: 14px; }
.cmp-star-off { color: #ccc;    font-size: 14px; }
.cmp-card-good .cmp-star-off { color: rgba(255,255,255,0.3); }

.cmp-note {
  font-size: 12px;
  color: #999;
}
.cmp-card-good .cmp-note { color: rgba(255,255,255,0.7); }

.cmp-body {
  padding: 20px;
}

.cmp-bonus {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  text-align: center;
}

.cmp-bonus-bad {
  background: #fafafa;
  border: 1px dashed #ddd;
}

.cmp-bonus-good {
  background: linear-gradient(135deg, #e8f7ee, #f0fdf4);
  border: 1px solid #a3d9b5;
}

.cmp-bonus-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cmp-bonus-bad  .cmp-bonus-label { color: #999; }
.cmp-bonus-good .cmp-bonus-label { color: #1a6b3a; }

.cmp-bonus-amount {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
.cmp-bonus-bad  .cmp-bonus-amount { color: #aaa; }
.cmp-bonus-good .cmp-bonus-amount { color: #1a6b3a; }

.cmp-bonus-detail {
  font-size: 11px;
  margin-top: 4px;
}
.cmp-bonus-bad  .cmp-bonus-detail { color: #bbb; }
.cmp-bonus-good .cmp-bonus-detail { color: #3a9b5e; }

.cmp-info {
  margin-bottom: 16px;
}

.cmp-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.cmp-info-row:last-child { border-bottom: none; }
.cmp-info-key { color: #888; }
.cmp-info-val { font-weight: 600; color: #333; }
.cmp-info-val.ok  { color: #1a6b3a; }
.cmp-info-val.bad { color: #c0392b; }

.cmp-list {
  margin-bottom: 18px;
  list-style: none;
  padding: 0;
}

.cmp-list-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 8px;
}

.cmp-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  padding: 5px 0;
  color: #555;
  line-height: 1.4;
}

.cmp-list li .ico {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  margin-top: 1px;
}
.ico-ok  { background: #e8f7ee; color: #1a6b3a; font-weight: 700; }
.ico-bad { background: #fff0ee; color: #c0392b; font-weight: 700; }

.cmp-card-bad .cmp-list li { color: #bbb; }

.cmp-cta {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cmp-cta-bad {
  background: #f0f0f0;
  color: #bbb;
  cursor: not-allowed;
  pointer-events: none;
}

.cmp-cta-good {
  background: linear-gradient(135deg, #1e6f3e, #25934f);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30,111,62,0.3);
  position: relative;
  overflow: hidden;
}

.cmp-cta-good::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-15deg);
  animation: cta-shine 2.5s ease 1s infinite;
}

@keyframes cta-shine {
  0%   { left: -60%; }
  50%, 100% { left: 120%; }
}

.cmp-cta-good:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(30,111,62,0.4);
  text-decoration: none;
  color: #fff;
}

.cmp-cta-sub {
  text-align: center;
  font-size: 11px;
  margin-top: 8px;
}
.cmp-card-bad  .cmp-cta-sub { color: #ccc; }
.cmp-card-good .cmp-cta-sub { color: #3a9b5e; }

.cmp-switch-banner {
  background: linear-gradient(135deg, #fff9e6, #fffdf0);
  border: 1px solid #f0d060;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #7a5c00;
  grid-column: 1 / -1;
}
.cmp-switch-banner .icon { font-size: 22px; flex-shrink: 0; }
.cmp-switch-banner strong { color: #5a4000; }

@media (max-width: 620px) {
  .cmp-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
  .cmp-switch-banner { order: 0; }
  .cmp-card-good { order: 1; }
  .cmp-card-bad {
    order: 2;
    display: block;
    opacity: 0.75;
    filter: saturate(0.6);
  }
}

@media (max-width: 767px) {
  body.page-template-template-comparatif-php main#main {
    margin-top: 100px;
  }
  .cmp-wrap {
    padding-left: 5px;
    padding-right: 5px;
  }
}
