/* ============================================================
   1windz.net — 1win Affiliate Site (fr-DZ)
   Brand colors: #018BF1, #0157C4, #fda81f, #0B111B
   Font: Poppins (display), Inter (body)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #0B111B;
  background: #F5F7FA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.25; color: #0B111B; }
h1 { font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 16px; }
h2 { font-size: clamp(22px, 2.5vw, 32px); margin-bottom: 14px; margin-top: 40px; }
h3 { font-size: clamp(18px, 1.8vw, 24px); margin-bottom: 10px; margin-top: 28px; font-weight: 600; }
p { margin-bottom: 14px; color: #3A4A5A; }
a { color: #018BF1; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0157C4; }
img { max-width: 100%; height: auto; display: block; }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  background: #0B111B;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(11, 17, 27, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}
.site-logo {
  flex-shrink: 0;
}
.site-logo img {
  height: auto;
  width: 80px;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}
.main-nav a {
  color: #CFD8E3;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(1, 139, 241, 0.15);
  color: #018BF1;
}
.header-cta {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: #018BF1;
  color: #fff;
}
.btn-primary:hover { background: #0157C4; color: #fff; }
.btn-gold {
  background: #fda81f;
  color: #0B111B;
}
.btn-gold:hover { background: #e8980e; color: #0B111B; }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
}
.btn-outline:hover { border-color: #018BF1; color: #018BF1; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* --- Burger --- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #CFD8E3;
  border-radius: 2px;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Main content --- */
.page-content {
  padding: 20px 0 48px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #5A6B7C;
  margin-bottom: 20px;
  align-items: center;
}
.breadcrumbs a { color: #018BF1; font-weight: 500; }
.breadcrumbs .sep { color: #5A6B7C; margin: 0 2px; }
.breadcrumbs .current { color: #5A6B7C; font-weight: 500; }

/* --- Hero / Banner --- */
.hero-section {
  background: linear-gradient(135deg, #0B111B 0%, #1A2635 100%);
  border-radius: 20px;
  padding: 48px 40px;
  margin-bottom: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-section h1 { color: #fff; max-width: 800px; }
.hero-section p { color: rgba(255,255,255,0.7); font-size: 17px; max-width: 680px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-section::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(1,139,241,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* --- Cards --- */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(11,17,27,0.06);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(11,17,27,0.1); }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }

/* --- Info Table --- */
.info-table-wrap { overflow-x: auto; margin: 16px 0 20px; }
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.info-table caption {
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  text-align: left;
  margin-bottom: 8px;
  color: #0B111B;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid #E8EDF2;
}
.info-table th {
  background: #F0F4F9;
  font-weight: 600;
  color: #0B111B;
  width: 40%;
  font-size: 14px;
}
.info-table td { color: #3A4A5A; }

/* --- Lists --- */
.feature-list, .check-list, .bullet-list {
  list-style: none;
  margin: 12px 0 16px;
}
.feature-list li, .check-list li, .bullet-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: #3A4A5A;
}
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: #018BF1; font-weight: 700; }
.check-list li::before { content: '✔'; position: absolute; left: 0; color: #fda81f; font-weight: 700; }
.bullet-list li::before { content: '•'; position: absolute; left: 0; color: #018BF1; font-weight: 700; }

/* --- TOC --- */
.toc-block {
  background: #F0F4F9;
  border: 1px solid #D8E0E8;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0 28px;
}
.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.toc-header h3 { margin: 0; font-size: 16px; color: #0B111B; }
.toc-toggle {
  font-size: 13px;
  color: #018BF1;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.toc-toggle:hover { background: rgba(1,139,241,0.1); }
.toc-list {
  list-style: none;
  padding-top: 12px;
}
.toc-list.collapsed { display: none; }
.toc-list li { padding: 5px 0; }
.toc-list a {
  color: #3A4A5A;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
}
.toc-list a:hover { color: #018BF1; background: rgba(1,139,241,0.06); }

/* --- Section styling --- */
.content-section {
  margin-bottom: 28px;
}
.content-section img {
  border-radius: 12px;
  margin: 16px 0;
  width: 100%;
}
.content-section img.clickable {
  cursor: pointer;
}

/* --- Author block --- */
.author-block {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 1px 4px rgba(11,17,27,0.06);
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #018BF1, #0157C4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}
.author-info h4 { margin-bottom: 4px; font-size: 17px; }
.author-info p { font-size: 14px; color: #5A6B7C; margin: 0; }

/* --- FAQ --- */
.faq-item {
  border: 1px solid #E8EDF2;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  transition: background 0.2s;
  font-size: 15px;
}
.faq-q:hover { background: #F7F9FC; }
.faq-q .faq-arrow { font-size: 12px; color: #5A6B7C; transition: transform 0.3s; margin-left:6px; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-a.open {
  max-height: 400px;
  padding: 16px 20px 20px;
}

/* --- Footer --- */
.site-footer {
  background: #0B111B;
  color: #CFD8E3;
  padding: 48px 20px 32px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col h4 {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  margin-bottom: 14px;
}
.footer-col p, .footer-col li {
  font-size: 14px;
  color: #8899AA;
  line-height: 1.7;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li { padding: 3px 0; }
.footer-col a { color: #8899AA; }
.footer-col a:hover { color: #018BF1; }
.footer-logo img { height: auto; margin-bottom: 12px; width: 140px; }
.footer-trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.footer-trust img {
  height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  padding: 4px 8px;
}
.footer-payments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-payments img {
  height: 30px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  padding: 4px;
}
.age-restriction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 168, 31, 0.12);
  color: #fda81f;
  font-weight: 700;
  font-size: 22px;
  padding: 8px 16px;
  border-radius: 8px;
  margin-top: 12px;
}
.age-restriction small { font-size: 11px; font-weight: 400; color: #8899AA; }
.footer-bottom {
  text-align: center;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: #5A6B7C;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Sticky CTA (mobile) --- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #0B111B;
  padding: 8px 16px;
  box-shadow: 0 -4px 16px rgba(11,17,27,0.25);
  gap: 6px;
}
.sticky-cta .btn { flex: 1; font-size: 14px; padding: 11px 12px; text-align: center; }

/* --- Modal overlay for sticky CTA --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,17,27,0.6);
  z-index: 300;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-box h3 { margin-bottom: 6px; }
.modal-box p { font-size: 14px; color: #5A6B7C; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #5A6B7C;
  cursor: pointer;
}
.modal-box { position: relative; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .site-header {
    z-index: 999;
  }
  .burger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    z-index: 999;
    top: 100%;
    left: 0;
    right: 0;
    background: #0B111B;
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 12px 16px; font-size: 15px; }
  .burger {
    order: 2;
  }

  .header-inner {
    gap: 10px;
  }
  .header-cta {
    margin-left: auto;
  }
  /* .header-cta.mobile-show { display: flex; margin-top: 12px; } */
}

@media (max-width: 768px) {
    .header-inner {
      padding-top: 8px;
      padding-bottom: 8px;
    }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-section { padding: 32px 24px; }
  .hero-section::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .author-block { flex-direction: column; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 55px; }
  .info-table { font-size: 14px; }
  .info-table th, .info-table td { padding: 8px 12px; }

  .header-cta .btn:last-of-type{ display: none; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-section { padding: 24px 18px; }
  .hero-section h1 { font-size: 24px; }
  .hero-section p { font-size: 15px; }
  .card { padding: 18px; }
  .modal-box { padding: 24px; }

  .container, .header-inner {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-actions {
    gap: 9px;
  }
  .hero-actions .btn {width: 100%;}
}

.payments-wrap {
  margin: 10px 0 10px;
}
.payments-wrap h4 {
  color: #fff;
  margin: 0 0 18px;
}
.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.payment-item img {
  display: block;
  box-shadow: none;
  margin: 0 !important;
  border-radius: 0;
  border: none;
  max-width: 70px;
  max-height: 30px;
}
.footer-icons {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 10px;
}
.footer-icons .pay-icon {
  display: flex;
  align-items: center;
}
.footer-icons .pay-icon span {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  font-size: 12px;
  border-radius: 100%;
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-icons .pay-icon img {
  filter: brightness(100);
}
.main-title {
  display: flex;
  align-items: center;
}

.main-title .__right {
  margin-left: 60px;
  flex: 0 0 240px;
}
@media (max-width:800px) {
  .payments-grid {
    gap: 16px;
  }
  .payment-item img {
    max-width: 65px;
    max-height: 30px;
  }

  .table-wrap {
    overflow-x: scroll;
  }

      .main-title .__right {
    margin-left: 20px;
    flex: 0 0 220px;
  }
}
@media (max-width:639.98px) {
      .main-title {
    flex-direction: column;
  }

  .main-title .__right {
    margin-left: 0;
    flex: inherit;
  }
  .main-title .__right img {
    width: 300px !important;
  }
}