/* ============================================================
   Meilleurs Sites Paris Sportifs — Main Stylesheet
   Design: sport-editorial, compact, responsible
   Colors: #f3f5f4 bg | #17201f text | #1f7a4d accent
          #b5d95c secondary | #071411 footer
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f5f4;
  color: #17201f;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #1f7a4d; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

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

/* --- Age Warning Banner (top & bottom) --- */
.age-warning {
  background: #071411;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.4;
}
.age-warning a { color: #b5d95c; }
.age-warning a:hover { text-decoration: underline; }

/* --- Header --- */
.header {
  background: #ffffff;
  border-bottom: 2px solid #e8ece9;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.header-logo {
  display: block;
  line-height: 0;
}
.header-logo img {
  height: 48px;
  width: auto;
}

/* --- Desktop: no menu button --- */
.desktop-menu-btn { display: none; }

/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  padding: 6px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #17201f;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.mobile-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  background: #ffffff;
  border-top: 1px solid #e8ece9;
  padding: 12px 16px;
}
.mobile-menu.is-open { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  display: block;
  padding: 10px 12px;
  color: #17201f;
  font-size: 15px;
  border-radius: 6px;
  transition: background 0.2s;
}
.mobile-menu a:hover { background: #f3f5f4; text-decoration: none; }

/* --- Hero Section --- */
.hero {
  padding: 48px 0 24px;
  text-align: center;
}
.hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #17201f;
  max-width: 680px;
  margin: 0 auto 16px;
}
.hero p {
  font-size: 15px;
  color: #4a5a56;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #dce2de;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: #4a5a56;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f7a4d;
  flex-shrink: 0;
}

/* --- Info Section --- */
.info-section {
  background: #ffffff;
  border-radius: 10px;
  padding: 28px 32px;
  margin: 16px auto 32px;
  max-width: 1340px;
  border: 1px solid #e8ece9;
}
.info-section h2 {
  font-size: 18px;
  color: #17201f;
  margin-bottom: 12px;
}
.info-section p {
  font-size: 14px;
  color: #4a5a56;
  line-height: 1.7;
}

/* --- Cards Section --- */
.cards-section {
  padding: 0 0 40px;
}

/* --- Card (1 per row) --- */
.card {
  background: #ffffff;
  border: 1px solid #e8ece9;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-inner {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* Card Left — Logo Area (square logos, no numbers) */
.card-logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  min-width: 160px;
  flex: 0 0 160px;
}
.card-logo-bg {
  width: 100px;
  height: 100px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-logo-bg img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.card-number { display: none; }

/* Card Center — Content */
.card-content {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}
.card-anj {
  font-size: 12px;
  color: #8a9e98;
  background: #f3f5f4;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  align-self: flex-start;
}
.card-description {
  font-size: 14px;
  color: #4a5a56;
  line-height: 1.6;
}
.card-keypoints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-keypoint {
  font-size: 12px;
  color: #4a5a56;
  background: #f0f7f3;
  padding: 4px 10px;
  border-radius: 4px;
  border-left: 3px solid #1f7a4d;
}

/* Card Right — Score & CTA */
.card-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  min-width: 200px;
  flex: 0 0 200px;
  background: #fafbfa;
  border-left: 1px solid #e8ece9;
}
.card-score {
  font-size: 32px;
  font-weight: 700;
  color: #1f7a4d;
  line-height: 1;
}
.card-score-label {
  font-size: 12px;
  color: #8a9e98;
  margin: 4px 0 16px;
}
.card-cta {
  display: inline-block;
  background: #1f7a4d;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: background 0.2s;
  border: none;
}
.card-cta:hover { background: #16633d; text-decoration: none; }

/* --- Footer --- */
.footer {
  background: #071411;
  color: #c5d1cb;
  padding: 40px 0 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-block {
  margin-bottom: 28px;
}
.footer-block p {
  font-size: 13px;
  line-height: 1.7;
  color: #a0b2aa;
}
.footer-block a { color: #b5d95c; }
.footer-block a:hover { color: #c9e87a; }

/* Footer Resources */
.footer-resources h3 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 14px;
}
.footer-resources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.footer-resources-grid a {
  display: inline-block;
  line-height: 0;
}
.footer-resources-grid img {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-resources-grid img:hover { opacity: 1; }

/* Footer Links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 12px;
  color: #8a9e98;
}
.footer-links a:hover { color: #b5d95c; }

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #1f3a32;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: #6a8278;
}
.footer-bottom .mandatory-line {
  font-weight: 600;
  color: #a0b2aa;
  margin-bottom: 6px;
}

/* --- 18+ Popup --- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 17, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.popup-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
}
.popup-box h2 {
  font-size: 20px;
  color: #17201f;
  margin-bottom: 12px;
}
.popup-box p {
  font-size: 14px;
  color: #4a5a56;
  line-height: 1.6;
  margin-bottom: 20px;
}
.popup-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.popup-btn {
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background 0.2s;
}
.popup-btn-primary {
  background: #1f7a4d;
  color: #ffffff;
}
.popup-btn-primary:hover { background: #16633d; }
.popup-btn-secondary {
  background: transparent;
  color: #17201f;
  border-color: #dce2de;
}
.popup-btn-secondary:hover { background: #f3f5f4; }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid #e8ece9;
  padding: 16px 20px;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-banner p {
  font-size: 13px;
  color: #4a5a56;
  flex: 1;
  min-width: 200px;
}
.cookie-banner p a { color: #1f7a4d; text-decoration: underline; }
.cookie-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #dce2de;
  background: #ffffff;
  color: #17201f;
  transition: background 0.2s;
}
.cookie-btn:hover { background: #f3f5f4; }
.cookie-btn-accept {
  background: #1f7a4d;
  color: #ffffff;
  border-color: #1f7a4d;
}
.cookie-btn-accept:hover { background: #16633d; }

/* --- Card Title Area (renamed CTA area) --- */
.card-cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* --- Redirect Loading Overlay --- */
.redirect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 17, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.redirect-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.redirect-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #b5d95c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.redirect-overlay p {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- Thank You / Internal Pages --- */
.page-content {
  padding: 40px 0 60px;
  flex: 1;
}
.page-content .container {
  background: #ffffff;
  border-radius: 10px;
  padding: 32px;
  border: 1px solid #e8ece9;
}
.page-content h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #17201f;
}
.page-content h2 {
  font-size: 18px;
  margin: 24px 0 10px;
  color: #17201f;
}
.page-content p {
  font-size: 14px;
  color: #4a5a56;
  line-height: 1.7;
  margin-bottom: 14px;
}
.page-content ul {
  margin: 10px 0 16px 20px;
  list-style: disc;
}
.page-content ul li {
  font-size: 14px;
  color: #4a5a56;
  line-height: 1.7;
  margin-bottom: 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 14px; }

  .mobile-menu-toggle { display: flex; }
  .desktop-menu-btn { display: none; }

  .card-inner { flex-direction: column; }
  .card-logo-area {
    flex: 0 0 auto;
    padding: 20px 16px 12px;
  }
  .card-logo-bg {
    width: 100px;
    height: 100px;
  }
  .card-logo-bg img { width: 80px; height: 80px; }
  .card-content {
    padding: 0 18px 18px;
    text-align: center;
    align-items: center;
  }
  .card-anj { align-self: center; }
  .card-keypoints { justify-content: center; }
  .card-right {
    flex: 0 0 auto;
    border-left: none;
    border-top: 1px solid #e8ece9;
    padding: 16px;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .card-score-label { margin: 2px 0 0; }

  .page-content .container { padding: 24px; }

  .cookie-banner-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 20px; }
  .hero { padding: 32px 0 16px; }
  .hero-badge { font-size: 12px; padding: 4px 12px; }
}
