/* casino-en-ligne-top.com — PHP stack */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f1f5f9;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --blue: #4f46e5;
  --blue-hover: #4338ca;
  --red: #be123c;
  --red-hover: #9f1239;
  --card: #ffffff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgb(15 23 42 / 0.06);
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05);
  --header-bg: #ebeef6;
  --header-fg: #17345e;
  --header-muted: #17345e;
  --accent-soft: #eef2ff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgb(99 102 241 / 0.12), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgb(14 165 233 / 0.06), transparent 45%);
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 1.5rem;
  }
}

main {
  padding: 2rem 0 3.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--header-fg);
  border: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.site-logo:focus {
  outline: none;
}

.site-logo:focus-visible {
  outline: 2px solid rgb(148 163 184 / 0.85);
  outline-offset: 4px;
  border-radius: 8px;
}

.site-logo__img {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-height: clamp(44px, 10vw, 56px);
  max-width: min(360px, 92vw);
  object-fit: contain;
  object-position: left center;
  border: 0;
  outline: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.site-logo__domain {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

@media (max-width: 639px) {
  .site-logo__domain {
    display: none;
  }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--header-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--header-fg);
}

.hero {
  margin-bottom: 2.5rem;
}

.hero.wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 2.25rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero.wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(99 102 241 / 0.08) 0%, transparent 42%, rgb(14 165 233 / 0.05) 100%);
  pointer-events: none;
  border-radius: inherit;
}

.hero.wrap > * {
  position: relative;
}

.hero__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: var(--accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0.85rem 0 1rem;
  max-width: 52rem;
}

.hero__lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 0;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section__lead {
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 48rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.criteria-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .criteria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.criteria-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.criteria-item:hover {
  border-color: rgb(99 102 241 / 0.25);
  box-shadow: var(--shadow-sm);
}

.criteria-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.criteria-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Ranking cards */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rank-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rank-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgb(15 23 42 / 0.1);
  border-color: rgb(99 102 241 / 0.2);
}

.rank-card__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .rank-card__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.rank-card__left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.rank-num {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #4f46e5, #6366f1);
  border-radius: 12px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px rgb(79 70 229 / 0.35);
}

.rank-logo {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rank-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 4px;
}

.rank-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.rank-info .bonus {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.rank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .rank-actions {
    margin-left: auto;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn--blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.btn--blue:hover {
  background: var(--blue-hover);
  color: #fff;
}

.btn--red {
  background: #fff;
  color: var(--red);
  border-color: var(--red);
}

.btn--red:hover {
  background: #fef2f2;
}

.btn--red-solid {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn--red-solid:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
}

.btn__arrow {
  width: 1rem;
  height: 1rem;
}

/* Stars */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 1rem;
  line-height: 1;
}

.stars__empty {
  color: #cbd5e1;
}

.stars__half {
  position: relative;
  display: inline-block;
  width: 1em;
}

.stars__half-bg {
  color: #cbd5e1;
}

.stars__half-fg {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #f59e0b;
}

.stars-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.35rem;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--blue);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Article / SEO guide */
.article--guide {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 2.25rem;
  box-shadow: var(--shadow);
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.article--guide h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-soft);
}

.article__intro {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  line-height: 1.7;
}

.article--guide h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--blue);
  line-height: 1.35;
}

.article--guide h3:first-of-type {
  margin-top: 0;
}

.article--guide h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin: 1.35rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.article--guide p {
  margin: 0 0 1rem;
  color: #334155;
  font-size: 0.98rem;
}

.article--guide p:last-child {
  margin-bottom: 0;
}

.cta-offer {
  border: 1px solid var(--border) !important;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
  box-shadow: var(--shadow) !important;
  padding: 1.75rem 1.5rem !important;
}

.cta-offer__note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 28rem;
  line-height: 1.55;
}

/* Casino review */
.review-hero {
  background: linear-gradient(145deg, #fff 0%, #f8fafc 50%, rgb(238 242 255 / 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.review-hero__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .review-hero__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.review-hero__brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.review-hero__logo {
  width: 6rem;
  height: 6rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  object-fit: contain;
}

.review-hero h1 {
  margin: 0.25rem 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.review-hero .hero-bonus {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.5rem 0 0;
  max-width: 36rem;
}

.pros-cons {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pros-cons h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.pros-cons ul {
  margin: 0;
  padding-left: 1.2rem;
}

.pros-cons .pros h3 {
  color: #166534;
}

.pros-cons .cons h3 {
  color: #991b1b;
}

.info-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-grid .card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.info-grid .card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.cat-ratings .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.related-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-grid a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius);
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
}

.related-grid a:hover {
  border-color: var(--blue);
  background: #fff;
}

.related-grid img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.other-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .other-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .other-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-panels h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.feature-panels__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .feature-panels__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.feature-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.feature-panel p {
  margin: 0;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.65;
}

.site-footer {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  background: var(--header-bg);
  color: var(--header-muted);
  padding: 2.5rem 0 1rem;
  margin-top: 2rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.site-footer__name {
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--header-fg);
  letter-spacing: -0.02em;
}

.site-footer__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--header-muted);
  max-width: 28rem;
  line-height: 1.55;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.site-footer__nav a {
  color: var(--header-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__nav a:hover {
  color: var(--header-fg);
}

.site-footer__copy {
  margin: 2rem 0 0;
  font-size: 0.75rem;
  color: rgb(148 163 184 / 0.7);
}

.not-found {
  text-align: center;
  padding: 3rem 1rem;
}

code {
  font-size: 0.85em;
  background: #e2e8f0;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
