/* ============================================================
   Bet9ja Algérie — Style principal
   Couleurs: #00FF03, #e91417, #363944, #B9C3CB
   Google Font: Inter
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #363944;
  background: #FAFBFC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: #00FF03; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: #363944; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 0.75rem; margin-top: 2rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e91417; display: inline-block; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-top: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; max-width: 72ch; }
strong { color: #e91417; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Header --- */
.header {
  background: #363944;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.header .logo img { height: auto; width: 120px; }
.header .logo span { display: none; }

/* --- Navigation --- */
.nav-main { display: flex; align-items: center; }
.nav-main ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-main ul li a {
  display: block;
  padding: 8px 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-main ul li a:hover,
.nav-main ul li a.active {
  background: rgba(255,255,255,0.1);
  color: #00FF03;
}
.nav-main ul li:last-of-type {
  margin-top: 6px;
}
.nav-main .cta-btn {
  background: #00FF03;
  color: #363944;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  margin-left: 8px;
}
.nav-main .cta-btn:hover { background: #00e000; color: #363944; opacity: 1; }

/* --- Burger --- */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 8px;
  transition: 0.3s;
  border-radius: 2px;
}
.burger span:nth-child(1) { top: 12px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 26px; }
.burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.82rem;
  color: #B9C3CB;
  margin-bottom: 0;
}
.breadcrumbs a { color: #363944; }
.breadcrumbs a:hover { color: #e91417; }
.breadcrumbs span { color: #B9C3CB; }
.breadcrumbs .sep { margin: 0 6px; }

/* --- Hero / Page Header --- */
.page-hero {
  background: linear-gradient(135deg, #363944 0%, #2a2e38 100%);
  color: #fff;
  padding: 48px 0 60px;
}
.page-hero .hero-split {
  display: flex;
  align-items: center;
  gap: 40px;
}
.page-hero .hero-text { flex: 1; }
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero h1 span { color: #00FF03; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 900px; font-size: 1.05rem; }
.page-hero .cta-group { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero .hero-image {
  flex: 0 0 380px;
  max-width: 100%;
}
.page-hero .hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.15); opacity: 1; }
.btn-green { background: #00FF03; color: #363944; }
.btn-green:hover { background: #00e000; }
.btn-red { background: #e91417; color: #fff; }
.btn-red:hover { background: #c91013; }
.btn-dark { background: #363944; color: #fff; }
.btn-dark:hover { background: #2a2e38; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: #363944; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* --- Content Section --- */
.content-section { padding: 40px 0; }
.content-section article { max-width: 860px; margin: 0 auto; }

/* --- Table of Contents --- */
.toc { margin: 0 0 20px; }
.toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #363944;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
   width: 100%;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}
.toc-toggle:hover { background: #2a2e38; }
.toc-toggle .arrow { display: inline-block; transition: transform 0.3s;margin-left: auto; order: 2; }
.toc-toggle.open .arrow { transform: rotate(180deg); }
.toc-list {
  margin-top: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #B9C3CB;
  border-radius: 10px;
  display: none;
}
.toc-list.open { display: block; }
.toc-list ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc-list ol li a {
  color: #363944;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.toc-list ol li a:hover { color: #e91417; }

/* --- Tables --- */
.table-wrap { overflow-x: auto; margin: 1rem 0; border-radius: 10px; border: 1px solid #B9C3CB; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
caption { caption-side: top; text-align: left; font-weight: 600; font-size: 0.85rem; color: #B9C3CB; padding: 8px 12px; background: #f5f6f8; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #B9C3CB; font-size: 0.92rem; }
th { background: #363944; color: #fff; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #f8f9fb; }

/* --- Lists --- */
.content-list { margin: 1rem 0 1rem 1.5rem; }
.content-list li { margin-bottom: 0.5rem; position: relative; padding-left: 20px; }
.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #00FF03;
  border-radius: 50%;
}
.content-list ul { margin-left: 1.5rem; margin-top: 0.3rem; }
.content-list ul li::before { background: #e91417; width: 6px; height: 6px; top: 9px; }
ol.content-list { list-style: decimal; padding-left: 0; }
ol.content-list li { padding-left: 0; }
ol.content-list li::before { display: none; }

/* --- Image blocks --- */
.img-block {
  margin: 1.5rem 0;
  border-radius: 10px;
  display: block;
  overflow: hidden;
  border: 1px solid #B9C3CB;
  background: #fff;
}
.img-block a { display: block; }
.img-block img { width: 100%; }

/* --- Author Block --- */
.author-block {
  background: #fff;
  border: 1px solid #B9C3CB;
  border-radius: 12px;
  padding: 28px;
  margin: 0 0 60px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #363944;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.author-info h4 { margin-bottom: 4px; }
.author-info p { font-size: 0.88rem; color: #666; margin-bottom: 0; }

/* --- CTA Bottom Bar (mobile sticky) --- */
.cta-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #363944;
  padding: 8px 16px;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.cta-bottom-bar .btn {
  justify-content: center;
  text-align: center;
  padding: 10px 10px;
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .cta-bottom-bar { display: flex; }

}

/* --- Footer --- */
.footer {
  background: #363944;
  color: rgba(255,255,255,0.8);
  padding: 48px 0 66px;
  font-size: 0.85rem;
  margin-top: auto;
}
.footer .container-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer h4 { color: #00FF03; font-size: 0.95rem; margin-bottom: 12px; padding: 0; border: none; }
.footer p { color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; font-size: 0.85rem; }
.footer ul li { margin-bottom: 6px; }
.footer ul li a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer ul li a:hover { color: #00FF03; }
.footer .logo-footer { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer .logo-footer img { height: 32px; }
.footer .logo-footer span { color: #00FF03; font-weight: 700; font-size: 1.05rem; }
.footer .payment-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.footer .payment-icons img { height: 32px; border-radius: 4px; background: #fff; padding: 4px; }
.footer .trust-icons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.footer .trust-icons img { height: 36px; }
.footer .age-restriction {
  align-items: center;
  margin-left: auto;
  text-align: right;
  display: block;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-top: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 20px;
  display: block;
  width: 100%;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* --- FAQ (details/summary) --- */
.faq-item {
  border: 1px solid #B9C3CB;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}
.faq-item p {
  margin: 10px 0 0;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-item summary:hover { background: #f5f6f8; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: #00FF03;
  font-weight: 700;
  transition: transform 0.3s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer { padding: 0 20px 16px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer .container-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 959px) {
  .burger { display: block; margin-left: auto; }
  .nav-main ul {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #363944;
    flex-direction: column;
    padding: 16px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 999;
  }
  .nav-main ul.open { display: flex; }
  .nav-main ul li a { padding: 8px 16px; font-size: 1rem; }
  .nav-main .cta-btn { margin-left: 0; text-align: center; }
  .footer .container-footer { grid-template-columns: 1fr; gap: 24px; }
  .author-block { flex-direction: column; align-items: center; text-align: center; }
  .page-hero { padding: 40px 0; }
  .page-hero .hero-split { flex-direction: column; text-align: center; }
  .page-hero .hero-text p { margin: 0 auto; }
  .page-hero .hero-image { flex: 0 0 auto; width: 280px; }
  .page-hero .hero-text .cta-group { justify-content: center; }

  .header .logo img {
    width: 110px;
  }
}

@media (max-width:575.98px) {
  .cta-group {
    row-gap: 10px;
  }
  .cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-12 { gap: 12px; }
.flex-center { display: flex; align-items: center; justify-content: center; }


.payments-wrap {
  margin: 30px 0 30px;
}
.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;
  }
}