/* ============================================================
   Bet Online France — Observatoire des plateformes de paris
   main.css — Dark technical sports-observatory aesthetic
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #091218;
  color: #ECF4F5;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  color: #2C7BE5;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* --- RESPONSIBLE WARNING BAR --- */
.responsible-top {
  width: 100%;
  background: #0E1A24;
  border-bottom: 1px solid #1A2D3D;
  padding: 10px 16px;
  text-align: center;
}
.responsible-top p {
  font-size: 13px;
  color: #8AA4B8;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

/* --- WRAPPER --- */
.page-wrapper {
  width: 100%;
  max-width: 1080px;
  padding: 0 16px;
}

/* --- HEADER / NAV --- */
.site-header {
  width: 100%;
  padding: 32px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-bar {
  width: 100%;
  max-width: 1080px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}

.logo-link {
  display: flex;
  align-items: center;
}
.logo-link img {
  height: 44px;
  width: auto;
}

/* Mobile burger — hidden on desktop */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.burger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: #ECF4F5;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  border-radius: 1px;
}
.burger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.open span:nth-child(2) {
  opacity: 0;
}
.burger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 11, 15, 0.98);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-size: 18px;
  color: #ECF4F5;
  font-weight: 500;
  padding: 8px 16px;
  text-align: center;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: #4FC3A1;
  text-decoration: none;
}

/* --- HERO SECTION --- */
.hero {
  width: 100%;
  padding: 48px 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-content {
  text-align: center;
  max-width: 820px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ECF4F5 0%, #2C7BE5 50%, #4FC3A1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero p {
  font-size: 17px;
  color: #8AA4B8;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

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

.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #1A2D3D;
  border-radius: 20px;
  background: #0E1A24;
  font-size: 13px;
  color: #B0C8D8;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4FC3A1;
  flex-shrink: 0;
}
.hero-badge .dot.blue {
  background: #2C7BE5;
}
.hero-badge .dot.orange {
  background: #F08A4B;
}

/* --- INFO BLOCK --- */
.info-block {
  width: 100%;
  max-width: 820px;
  padding: 20px 24px;
  border-left: 3px solid #2C7BE5;
  background: #0E1A24;
  border-radius: 0 8px 8px 0;
  margin: 8px auto 0;
}
.info-block p {
  font-size: 14px;
  color: #A0B8C8;
  line-height: 1.7;
}

/* --- CARDS SHOWCASE --- */
.cards-showcase {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 0;
}

/* One card per row — wide horizontal layout */
.editorial-card {
  width: 100%;
  background: #0E1A24;
  border: 1px solid #1A2D3D;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: border-color 0.2s;
}
.editorial-card:hover {
  border-color: #2C7BE5;
}

.card-logo-col {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  min-height: 240px;
}
.card-logo-col .logo-bg {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.card-logo-col .logo-bg img {
  width: 100px;
  height: 80px;
  object-fit: contain;
}
.card-logo-col .anj-ref {
  font-size: 10px;
  color: #6B8A9E;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.2px;
  max-width: 140px;
}

.card-body-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 24px 0;
  justify-content: space-between;
}

.card-description {
  font-size: 14px;
  color: #B0C8D8;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 520px;
}

.card-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.card-bullets li {
  list-style: none;
  font-size: 13px;
  color: #8AA4B8;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.card-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2C7BE5;
  opacity: 0.6;
}

.card-footer-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card-score {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-score .score-value {
  font-size: 28px;
  font-weight: 800;
  color: #4FC3A1;
  line-height: 1;
  letter-spacing: -1px;
}
.card-score .score-label {
  font-size: 11px;
  color: #6B8A9E;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  max-width: 80px;
  line-height: 1.3;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid #2C7BE5;
  border-radius: 6px;
  background: transparent;
  color: #2C7BE5;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.3px;
  -webkit-appearance: none;
  appearance: none;
}
.card-cta:hover {
  background: #2C7BE5;
  color: #091218;
  text-decoration: none;
}

/* --- RESPONSIBLE BOTTOM BAR --- */
.responsible-bottom {
  width: 100%;
  background: #0E1A24;
  border-top: 1px solid #1A2D3D;
  padding: 12px 16px;
  text-align: center;
  margin-top: 16px;
}
.responsible-bottom p {
  font-size: 13px;
  color: #8AA4B8;
  font-weight: 500;
}

/* --- FOOTER --- */
.site-footer {
  width: 100%;
  background: #050B0F;
  border-top: 1px solid #12232D;
  padding: 48px 16px 32px;
  margin-top: 32px;
}

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

.footer-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}
.footer-paragraphs p {
  font-size: 13px;
  color: #6B8A9E;
  line-height: 1.8;
  max-width: 780px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #12232D;
}
.footer-links a {
  font-size: 13px;
  color: #8AA4B8;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #4FC3A1;
  text-decoration: none;
}

.footer-resource-heading {
  font-size: 15px;
  font-weight: 700;
  color: #ECF4F5;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.footer-resource-img {
  display: inline-block;
  opacity: 0.7;
}
.footer-resource-img img {
  height: 40px;
  width: auto;
  border-radius: 4px;
}

.footer-mandatory {
  font-size: 12px;
  color: #4A6A80;
  text-align: center;
  letter-spacing: 0.5px;
}

/* --- 18+ POPUP --- */
.age-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 11, 15, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.age-popup-overlay.hidden {
  display: none;
}

.age-popup {
  background: #0E1A24;
  border: 1px solid #1A2D3D;
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.age-popup h2 {
  font-size: 32px;
  font-weight: 800;
  color: #ECF4F5;
  margin-bottom: 8px;
}
.age-popup .age-sub {
  font-size: 14px;
  color: #8AA4B8;
  margin-bottom: 24px;
  line-height: 1.6;
}
.age-popup .age-legal {
  font-size: 12px;
  color: #6B8A9E;
  margin-bottom: 24px;
  line-height: 1.5;
}
.age-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.age-btn {
  padding: 10px 32px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.5px;
}
.age-btn.yes {
  background: #2C7BE5;
  color: #fff;
}
.age-btn.yes:hover {
  background: #1A6AD4;
}
.age-btn.no {
  background: transparent;
  color: #8AA4B8;
  border: 1px solid #1A2D3D;
}
.age-btn.no:hover {
  background: #12232D;
  color: #ECF4F5;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #050B0F;
  border-top: 1px solid #1A2D3D;
  z-index: 9998;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.cookie-banner.hidden {
  display: none;
}
.cookie-banner p {
  font-size: 13px;
  color: #8AA4B8;
  line-height: 1.5;
  max-width: 600px;
}
.cookie-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.3px;
}
.cookie-btn.accept {
  background: #2C7BE5;
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #1A6AD4;
}
.cookie-btn.refuse {
  background: transparent;
  color: #8AA4B8;
  border: 1px solid #1A2D3D;
}
.cookie-btn.refuse:hover {
  background: #12232D;
  color: #ECF4F5;
}

/* --- INTERNAL PAGES (fiche-*) --- */
.internal-page {
  width: 100%;
  max-width: 640px;
  margin: 64px auto;
  text-align: center;
  padding: 0 16px;
}
.internal-page h1 {
  font-size: 28px;
  color: #ECF4F5;
  margin-bottom: 20px;
}
.internal-page p {
  font-size: 15px;
  color: #8AA4B8;
  line-height: 1.8;
  margin-bottom: 12px;
}
.internal-page .fallback-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  border: 1px solid #2C7BE5;
  border-radius: 6px;
  color: #2C7BE5;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.internal-page .fallback-btn:hover {
  background: #2C7BE5;
  color: #091218;
  text-decoration: none;
}

/* --- STANDARD CONTENT PAGES --- */
.content-page {
  width: 100%;
  max-width: 780px;
  margin: 48px auto;
  padding: 0 16px;
}
.content-page h1 {
  font-size: 32px;
  color: #ECF4F5;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}
.content-page h2 {
  font-size: 22px;
  color: #ECF4F5;
  margin-top: 32px;
  margin-bottom: 12px;
}
.content-page p {
  font-size: 15px;
  color: #8AA4B8;
  line-height: 1.8;
  margin-bottom: 16px;
}
.content-page ul, .content-page ol {
  margin: 12px 0 20px 20px;
  color: #8AA4B8;
  font-size: 15px;
  line-height: 1.7;
}
.content-page li {
  margin-bottom: 6px;
}
.content-page a {
  color: #4FC3A1;
}

/* --- CONTACT FORM --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin-top: 24px;
}
.contact-form label {
  font-size: 13px;
  color: #B0C8D8;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  background: #0E1A24;
  border: 1px solid #1A2D3D;
  border-radius: 6px;
  padding: 10px 14px;
  color: #ECF4F5;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2C7BE5;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form .submit-btn {
  padding: 10px 24px;
  background: #2C7BE5;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}
.contact-form .submit-btn:hover {
  background: #1A6AD4;
}

/* --- THANK YOU PAGE --- */
.thankyou-page {
  text-align: center;
  padding: 80px 16px;
}
.thankyou-page h1 {
  font-size: 32px;
  color: #ECF4F5;
  margin-bottom: 16px;
}
.thankyou-page p {
  font-size: 16px;
  color: #8AA4B8;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- VISUALLY HIDDEN --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet & below: 768px */
@media (max-width: 768px) {
  .burger-btn {
    display: block;
  }

  .hero h1 {
    font-size: 26px;
  }
  .hero p {
    font-size: 15px;
  }

  .editorial-card {
    flex-direction: column;
  }
  .card-logo-col {
    flex: 0 0 auto;
    padding: 24px 20px 12px;
    min-height: auto;
  }
  .card-logo-col .logo-bg {
    width: 100px;
    height: 100px;
  }
  .card-logo-col .logo-bg img {
    width: 100px;
    height: 100px;
  }
  .card-body-col {
    padding: 12px 20px 20px;
  }
  .card-description {
    max-width: 100%;
  }
  .card-footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .age-popup {
    padding: 28px 20px;
  }
  .age-popup h2 {
    font-size: 26px;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .content-page h1 {
    font-size: 26px;
  }
  .internal-page h1 {
    font-size: 24px;
  }
}

/* Small mobile: 430px & below */
@media (max-width: 430px) {
  .hero h1 {
    font-size: 22px;
  }
  .hero-badges {
    gap: 6px;
  }
  .hero-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
  .card-score .score-value {
    font-size: 24px;
  }
  .site-footer {
    padding: 32px 12px 24px;
  }
}

/* Very small: 360px */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 20px;
  }
  .card-cta {
    font-size: 13px;
    padding: 8px 18px;
  }
  .age-buttons {
    flex-direction: column;
  }
  .age-btn {
    width: 100%;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 44px;
  }
  .editorial-card {
    min-height: 200px;
  }
}
