/* TrèfleBonus — comparateur de bonus casino — design system sombre */
:root {
  --bg: #131210;
  --panel: #1f1c17;
  --panel-2: #26221c;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #d8d3c8;
  --text-dim: #9c958a;
  --white: #ffffff;
  --gold: #f3c13a;
  --gold-dark: #d9a82a;
  --green: #2e9e4f;
  --green-dark: #248040;
  --radius: 8px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--white); font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .6rem; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin-bottom: 1rem; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.muted { color: var(--text-dim); }
.green { color: var(--green); font-weight: 700; }
.gold { color: var(--gold); }
.center { text-align: center; }

/* ---------- Bandeau 18+ ---------- */
.topbar {
  background: #0c0b09;
  color: var(--text-dim);
  font-size: .78rem;
  text-align: center;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
}
.topbar strong { color: var(--gold); }
.topbar a { color: var(--text-dim); text-decoration: underline; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: var(--radius);
  padding: 12px 22px;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.06); }
.btn-gold { background: var(--gold); color: #1a1505; }
.btn-green { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn-sm { padding: 8px 14px; font-size: .82rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
}
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 8px;
  font-size: 1.1rem;
}
.logo b { color: var(--gold); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--text); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--gold); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); color: var(--white); border-radius: 6px; padding: 6px 10px; font-size: 1.2rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(243,193,58,.10), transparent 60%),
    radial-gradient(700px 380px at 10% 0%, rgba(46,158,79,.08), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 56px;
}
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 46px;
}
.offer-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.offer-card .top { display: flex; align-items: center; gap: 12px; }
.casino-logo {
  width: 52px; height: 52px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.3rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.lg-1 { background: linear-gradient(135deg, #7b2ff7, #f107a3); }
.lg-2 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.lg-3 { background: linear-gradient(135deg, #f12711, #f5af19); }
.lg-4 { background: linear-gradient(135deg, #2193b0, #6dd5ed); }
.lg-5 { background: linear-gradient(135deg, #cc2b5e, #753a88); }
.lg-6 { background: linear-gradient(135deg, #c31432, #240b36); }
.lg-7 { background: linear-gradient(135deg, #ee9ca7, #b06ab3); }
.lg-8 { background: linear-gradient(135deg, #16a085, #f4d03f); }
.offer-card .cn { font-weight: 800; color: var(--white); font-size: 1.05rem; }
.offer-card .bonus { font-size: 1.15rem; color: var(--white); font-weight: 700; }
.offer-card .bonus small { display: block; color: var(--gold); font-weight: 600; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; }
.offer-card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }

.hero-title { text-align: center; max-width: 820px; margin: 0 auto; }
.hero-title h1 { margin-bottom: 14px; }
.hero-title p { font-size: 1.12rem; color: var(--text-dim); margin-bottom: 26px; }

/* ---------- Casino rows (sélection) ---------- */
.casino-list { display: flex; flex-direction: column; gap: 14px; }
.casino-row {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1.4fr auto 1.7fr;
  align-items: center;
  gap: 18px;
}
.casino-row:hover { border-color: var(--border-strong); }
.cr-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cr-brand .name { font-weight: 800; color: var(--white); font-size: 1.05rem; }
.cr-brand .rank { font-size: .78rem; color: var(--text-dim); display: block; }
.cr-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: .68rem;
  font-weight: 700;
  color: #ffcf6e;
  background: rgba(243,193,58,.12);
  border: 1px solid rgba(243,193,58,.3);
  border-radius: 5px;
  padding: 1px 6px;
}
.cr-actions { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.cr-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}
.cr-stat .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.cr-stat .v { font-weight: 800; color: var(--white); font-size: 1.05rem; }
.cr-stat .v.green { color: var(--green); }

/* ---------- Types de bonus ---------- */
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.type-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}
.type-card .ico {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(243,193,58,.12);
  font-size: 1.6rem;
}
.type-card h3 { margin-bottom: 6px; }
.type-card p { font-size: .9rem; color: var(--text-dim); margin: 0; }

/* ---------- Contenu SEO ---------- */
.seo-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 34px;
}
.seo-block h2 { margin-bottom: 1rem; }

.disclaimer {
  font-size: .85rem;
  color: var(--text-dim);
  background: var(--panel-2);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0c0b09;
  border-top: 1px solid var(--border);
  padding: 44px 0 30px;
  color: var(--text-dim);
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.footer-grid a { color: var(--text-dim); display: block; margin-bottom: 7px; }
.footer-grid a:hover { color: var(--gold); }
.warn-box {
  background: rgba(243,193,58,.06);
  border: 1px solid rgba(243,193,58,.25);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .82rem;
  margin: 20px 0;
}
.warn-box strong { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  text-align: center;
  font-size: .82rem;
}

/* ---------- Page avis ---------- */
.breadcrumb { font-size: .85rem; color: var(--text-dim); padding: 18px 0 0; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }

.review-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin: 22px 0 0;
}
.review-hero .big-logo {
  width: 90px; height: 90px; border-radius: 16px;
  display: grid; place-items: center; font-weight: 800; font-size: 2rem; color: #fff;
}
.review-hero h1 { font-size: 2rem; margin-bottom: 6px; }
.rating { display: flex; align-items: center; gap: 10px; }
.rating .score { font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.bonus-box {
  background: linear-gradient(135deg, rgba(243,193,58,.16), rgba(243,193,58,.05));
  border: 1px solid rgba(243,193,58,.4);
  border-radius: 12px;
  padding: 18px 22px;
  text-align: center;
  min-width: 230px;
}
.bonus-box .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.bonus-box .amt { font-size: 1.25rem; font-weight: 800; color: var(--white); margin: 4px 0 12px; }

.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-top: 36px;
}
.info-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.info-table th { color: var(--text-dim); font-weight: 600; width: 42%; }
.info-table td { color: var(--white); font-weight: 600; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0 30px; }
.pc-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.pc-card h3 { margin-bottom: 12px; }
.pc-card ul { list-style: none; }
.pc-card li { padding: 6px 0 6px 26px; position: relative; font-size: .92rem; }
.pc-card.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.pc-card.cons li::before { content: "✕"; position: absolute; left: 0; color: #e0654f; font-weight: 800; }

.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.faq-item p { margin: 0; font-size: .94rem; }

.sidebar .side-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.sidebar h3 { margin-bottom: 14px; }
.side-score { text-align: center; }
.side-score .num { font-size: 2.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
.side-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 600; }
.side-list a:last-child { border-bottom: none; }
.side-list a:hover { color: var(--gold); text-decoration: none; }
.side-list .mini { width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto; }

.prose h2 { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 70px; right: 20px; left: 20px;
    background: var(--panel); border: 1px solid var(--border-strong);
    border-radius: 10px; padding: 8px; z-index: 50;
  }
  .nav.open a { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .hero-cards { grid-template-columns: 1fr; }
  .casino-row { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .cr-brand { justify-content: center; }
  .cr-actions { flex-direction: row; min-width: 0; }
  .cr-actions .btn { flex: 1; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .review-hero { grid-template-columns: 1fr; text-align: center; }
  .review-hero .rating { justify-content: center; }
  .layout { grid-template-columns: 1fr; }
  .proscons { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .type-grid { grid-template-columns: 1fr; }
  .cr-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
