/* ============================================================
   BET IN FRANCE — Main Stylesheet
   Modern French editorial showcase aggregator
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #081827;
  color: #1a1a2e;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2d6f9f;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #d63a3a;
}

/* --- Responsible Warning Banner --- */
.responsible-banner {
  background: #d63a3a;
  color: #ffffff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.responsible-banner a {
  color: #ffffff;
  text-decoration: underline;
}

.responsible-banner a:hover {
  color: #fff3cd;
}

/* --- Header --- */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid #eef4f8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 50px;
  width: auto;
}

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

/* Mobile burger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: #081827;
  border-radius: 2px;
  position: absolute;
  left: 7px;
  transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { top: 10px; }
.mobile-menu-btn span:nth-child(2) { top: 18px; }
.mobile-menu-btn span:nth-child(3) { top: 26px; }

.mobile-menu-btn.is-active span:nth-child(1) {
  top: 18px;
  transform: rotate(45deg);
}

.mobile-menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-active span:nth-child(3) {
  top: 18px;
  transform: rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 99;
  padding: 80px 24px 32px;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: #081827;
  border-bottom: 1px solid #eef4f8;
}

.mobile-menu a:hover {
  color: #d63a3a;
}

/* Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8,24,39,0.6);
  z-index: 98;
}

.mobile-overlay.is-visible {
  display: block;
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  background: #ffffff;
}

/* --- Hero Section --- */
.hero {
  background: #081827;
  color: #ffffff;
  padding: 60px 24px 48px;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #c8d6e5;
  max-width: 780px;
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.hero-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e0e8f0;
  letter-spacing: 0.02em;
}

/* --- Info Section --- */
.info-section {
  background: #eef4f8;
  padding: 48px 24px;
}

.info-inner {
  max-width: 900px;
  margin: 0 auto;
}

.info-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #081827;
  margin-bottom: 16px;
}

.info-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2c3e50;
  margin-bottom: 12px;
}

.info-section p:last-child {
  margin-bottom: 0;
}

/* --- Cards Section --- */
.cards-section {
  padding: 48px 24px 64px;
  background: #ffffff;
}

.cards-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* 1 card per row — always */
.showcase-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease;
}

.showcase-card:hover {
  box-shadow: 0 4px 20px rgba(8,24,39,0.08);
}

.showcase-card:last-child {
  margin-bottom: 0;
}

/* Card logo area */
.card-logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  width: 200px;
  padding: 28px 16px;
}

.card-logo-bg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.card-logo-bg img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
}

.card-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0,0,0,0.25);
  padding: 2px 12px;
  border-radius: 12px;
}

/* Card body */
.card-body {
  flex: 1;
  padding: 24px 24px 24px 20px;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #081827;
  margin-bottom: 6px;
}

.anj-ref {
  font-size: 0.78rem;
  color: #6c7a89;
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.card-desc {
  font-size: 0.88rem;
  color: #2c3e50;
  line-height: 1.6;
  margin-bottom: 12px;
}

.card-key-points {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.card-key-points li {
  font-size: 0.82rem;
  color: #3d5567;
  position: relative;
  padding-left: 14px;
}

.card-key-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #2d6f9f;
}

/* Card right area */
.card-right {
  min-width: 180px;
  width: 180px;
  padding: 24px 20px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-score {
  font-size: 2rem;
  font-weight: 700;
  color: #081827;
  line-height: 1;
  margin-bottom: 4px;
}

.card-score-label {
  font-size: 0.7rem;
  color: #6c7a89;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 14px;
}

.btn-card {
  display: inline-block;
  background: #2d6f9f;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-card:hover {
  background: #1e5a84;
  color: #ffffff;
}

/* --- Footer --- */
.site-footer {
  background: #06101c;
  color: #b0bec5;
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col p {
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #90a4ae;
}

.footer-col p:last-child {
  margin-bottom: 0;
}

.footer-resources {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  margin-bottom: 28px;
}

.footer-resources h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e0e8f0;
  margin-bottom: 16px;
}

.footer-resources-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  align-items: center;
}

.footer-resources-images a {
  display: inline-flex;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-resources-images a:hover {
  opacity: 1;
}

.footer-resources-images img {
  height: 40px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: #607d8b;
  margin-bottom: 6px;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

.footer-bottom .mandatory-line {
  color: #d63a3a;
  font-weight: 600;
}

.footer-18-img {
  margin-bottom: 20px;
  text-align: center;
}

.footer-18-img img {
  height: 50px;
  width: auto;
}

/* Footer page links — like reference site */
.footer-page-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-page-links a {
  color: #90a4ae;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-page-links a:hover {
  color: #ffffff;
}

/* --- 18+ Popup --- */
.age-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8,24,39,0.85);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.age-popup.is-visible {
  display: flex;
}

.age-popup-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 32px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.age-popup-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #081827;
  margin-bottom: 12px;
}

.age-popup-content p {
  font-size: 0.9rem;
  color: #2c3e50;
  line-height: 1.6;
  margin-bottom: 24px;
}

.age-popup-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-popup {
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 120px;
}

.btn-popup-yes {
  background: #d63a3a;
  color: #ffffff;
}

.btn-popup-yes:hover {
  background: #b82e2e;
}

.btn-popup-no {
  background: #eef4f8;
  color: #081827;
}

.btn-popup-no:hover {
  background: #dce5ed;
}

/* --- Cookie Banner --- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #081827;
  color: #e0e8f0;
  padding: 16px 24px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #b0bec5;
  flex: 1;
  min-width: 240px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cookie-accept {
  background: #2d6f9f;
  color: #ffffff;
}

.btn-cookie-accept:hover {
  background: #1e5a84;
}

.btn-cookie-refuse {
  background: transparent;
  color: #b0bec5;
  border: 1px solid #455a64;
}

.btn-cookie-refuse:hover {
  background: rgba(255,255,255,0.05);
}

/* --- Standard Page Layout --- */
.page-section {
  padding: 48px 24px 64px;
  background: #ffffff;
}

.page-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-section h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #081827;
  margin-bottom: 20px;
}

.page-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #081827;
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2c3e50;
  margin-bottom: 12px;
}

.page-section ul {
  margin: 12px 0;
  padding-left: 20px;
}

.page-section ul li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #2c3e50;
  margin-bottom: 6px;
}

/* --- Thank You Page --- */
.thank-you-section {
  text-align: center;
  padding: 80px 24px;
}

.thank-you-section h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.thank-you-section p {
  font-size: 1rem;
  color: #546e7a;
  max-width: 500px;
  margin: 0 auto;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .header-inner {
    padding: 10px 16px;
  }

  .header-logo img {
    height: 38px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 40px 16px 36px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.92rem;
  }

  .showcase-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-logo-area {
    width: 100%;
    min-width: unset;
    padding: 24px 16px 8px;
  }

  .card-logo-bg {
    width: 100px;
    height: 100px;
  }

  .card-logo-bg img {
    width: 72px;
    height: 72px;
  }

  .card-body {
    padding: 8px 16px 16px;
    align-items: center;
  }

  .card-key-points {
    justify-content: center;
  }

  .card-key-points li {
    text-align: center;
  }

  .card-right {
    width: 100%;
    min-width: unset;
    padding: 0 16px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer-page-links {
    justify-content: center;
    gap: 6px 16px;
  }

  .footer-page-links a {
    font-size: 0.8rem;
  }

  .footer-resources-images {
    justify-content: center;
  }

  .age-popup-content {
    padding: 32px 24px 24px;
  }
}

/* --- Tablet --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .showcase-card {
    /* still 1 per row */
  }
}

/* --- Desktop Large --- */
@media (min-width: 1025px) {
  .hero h1 {
    font-size: 2.4rem;
  }
}
