/* ============================================================
   BetWinner Maroc — Affiliate Site Styles
   Brand: #F6C70F, #067839, #024A33, #B9C3CB
   Font: Poppins (Google Fonts)
   Lang: fr-MA
   ============================================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;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: 'Poppins', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1A202C;
  background: #F8F9FA;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #067839; text-decoration: none; transition: color 0.2s; }
a:hover { color: #024A33; }
ul, ol { padding-left: 1.5em; }
table { border-collapse: collapse; width: 100%; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: #024A33; }
h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 0.5em; }
h2 { font-size: clamp(22px, 3vw, 32px); margin-top: 2em; margin-bottom: 0.6em; }
h3 { font-size: clamp(18px, 2.2vw, 24px); margin-top: 1.5em; margin-bottom: 0.5em; color: #067839; }
p { margin-bottom: 1em;  }
p + img, p + picture { margin-top: 1em; }

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

/* --- Header --- */
.site-header {
  background: #024A33;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(2,74,51,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
}
.logo-link { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 22px; }
.logo-link:hover { color: #F6C70F; }
.logo-link img { height: auto; width: 170px; }
.header-cta { display: flex; gap: 8px; }

/* --- Navigation --- */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  padding: 0;
}
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.main-nav a.active { background: #067839; }

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}
.cta-wrap .btn {
  white-space: wrap;
}
.btn-primary {
  background: #F6C70F;
  color: #024A33;
}
.btn-primary:hover { background: #e0b50a; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(246,199,15,0.35); }
.btn-green {
  background: #067839;
  color: #fff;
}
.btn-green:hover { background: #055d2c; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #F6C70F;
}
.btn-outline:hover { background: #fff; color: #024A33; }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #024A33 0%, #067839 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(246,199,15,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.hero h1 { color: #F6C70F; font-size: clamp(32px, 5vw, 52px); margin-bottom: 0.3em; }
.hero p { color: rgba(255,255,255,0.9); font-size: 17px; max-width: 62ch; margin-bottom: 1.5em; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image { text-align: center; margin-left:auto; }
.hero-image img {
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  max-width: 100%;
  cursor: pointer;
  transition: transform 0.3s;
}
.hero-image img:hover { transform: scale(1.02); }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 12px 0;
  font-size: 13px;
  color: #6b7280;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.breadcrumbs a { color: #067839; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; color: #B9C3CB; }

/* --- Page Layout --- */
.page-section {
  padding: 40px 0;
}
.page-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.page-content img,
.page-content picture { margin: 1.5em 0; border-radius: 8px; }

/* --- TOC (Table of Contents) --- */
.toc-block {
  background: #f0fdf4;
  border: 1px solid #c6e9cf;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 1.5em 0;
}
.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.toc-header h3 { margin: 0; font-size: 16px; color: #024A33; }
.toc-toggle {
  font-size: 12px;
  color: #067839;
  font-weight: 600;
  transition: transform 0.3s;
}
.toc-toggle.open { transform: rotate(180deg); }
.toc-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: none;
  columns: 2;
  column-gap: 24px;
}
.toc-list.open { display: block; columns: 2; }
.toc-list li { margin-bottom: 4px; break-inside: avoid; }
.toc-list a {
  font-size: 14px;
  color: #067839;
  padding: 4px 0;
  display: block;
}
.toc-list a:hover { color: #024A33; text-decoration: underline; }

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5em 0;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.table-wrap table { min-width: 600px; }
.table-wrap caption {
  caption-side: top;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  color: #024A33;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.table-wrap th {
  background: #024A33;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}
.table-wrap td {
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:nth-child(even) td { background: #f8f9fa; }

/* --- Lists --- */
.content-list { margin: 1em 0 1em 1.5em; }
.content-list li { margin-bottom: 6px; }

/* --- FAQ --- */
.faq-list { margin: 1.5em 0; }
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  transition: background 0.2s;
  user-select: none;
}
.faq-q:hover { background: #f9fafb; }
.faq-q::after {
  content: '+';
  font-size: 18px;
  color: #067839;
  font-weight: 700;
  transition: transform 0.3s;
}
.faq-q.open::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-a.open {
  max-height: 300px;
  padding: 14px 18px;
}
.faq-a p { font-size: 14px; color: #4b5563; }

/* --- Author Block --- */
.author-block {
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
  border: 1px solid #c6e9cf;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 2em 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #067839, #024A33);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}
.author-info h4 { margin: 0 0 4px; font-size: 16px; color: #024A33; }
.author-info p { margin: 0; font-size: 14px; color: #4b5563; }

/* --- CTA Modal (Sticky Bottom Mobile) --- */
.cta-modal {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #024A33;
  padding: 8px 14px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  gap: 10px;
  justify-content: center;
}
.cta-modal.show { display: flex; }
.cta-modal .btn { flex: 1; max-width: 220px;    padding: 7px 16px; }

/* --- Footer --- */
.site-footer {
  background: #024A33;
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-col h4 {
  color: #F6C70F;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col p { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #F6C70F; }
.footer-col picture img { margin: 8px 0 20px; width: 120px; }
.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.footer-badge {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.footer-badge:hover { background: rgba(255,255,255,0.15); }
.footer-badge img { height: 28px; width: auto; }
.payment-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.payment-icon {
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #B9C3CB;
}
.age-restriction {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #F6C70F;
  font-weight: 600;
}
.age-restriction .age-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #F6C70F;
  color: #024A33;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 16px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom p {
  max-width: none;
}

/* --- Page-specific hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, #024A33, #067839);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.page-hero h1 { color: #F6C70F; margin-bottom: 0.3em; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: none; }
.page-hero .hero-btns {
  margin-top: 24px;
  justify-content: center;
}


/* --- Section image --- */
.section-img {
  margin: 1.5em 0;
  border-radius: 8px;
  overflow: hidden;
}
.section-img img { width: 100%; border-radius: 8px; }

@media (max-width:1151.98px) {
  .header-inner { height: 60px; justify-content: start; }
  .burger-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #024A33;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 15px; display: block; }
  .burger-toggle {
    order: 2;
  }
  .header-cta {
    margin-left: auto;
    margin-right: 10px;
  }
}

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

@media (max-width: 768px) {
  
  .header-cta.mobile-show { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-image { margin: 0 auto; }
  .page-content { padding: 24px 18px; }
  .toc-list.open { columns: 1; }

  .author-block { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-badges, .payment-icons, .age-restriction { justify-content: center; }

  .cta-modal.show { display: flex; }
  .logo-link img {
    width: 120px;
  }

  .footer-bottom {
    padding-bottom: 60px;
  }

  .footer-col picture img {
    margin: 0 auto 12px;
  }
  .footer-icons {
    justify-content: center;
  }
  .payments-grid {
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .content-list {
    margin-left: 0;
  }
  body { font-size: 15px; }
  h1 { font-size: 26px; }
  .container { padding: 0 14px; }
  .page-content { padding: 16px 14px; }
  .hero { padding: 36px 0; }
  .page-hero { padding: 28px 0; }
  .header-inner, .hero-inner {
    padding-left: 14px;
    padding-right: 14px;
  }
  .header-cta .btn:last-of-type{ display: none; }
  .hero p {
    font-size: 16px;
  }
  .hero-btns {
    flex-direction: column;
  }
  .page-content {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-hero p {
    font-size: 14px;
  }
}

/* --- Print --- */
@media print {
  .site-header, .cta-modal, .site-footer { display: none; }
  .page-content { box-shadow: none; padding: 0; }
}



.payments-wrap h4 {
  color: #fff;
  margin: 0 0 18px;
}
.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  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;
  }
}