/* ==========================================================================
   Meilleurs Sites Paris Sportifs — main.css
   Sport-editorial, non-promotional showcase style
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-base: #f3f5f4;
  --color-surface: #ffffff;
  --color-text: #17201f;
  --color-text-soft: #4d5a57;
  --color-accent: #1f7a4d;
  --color-accent-dark: #164b33;
  --color-accent-lime: #b5d95c;
  --color-footer: #071411;
  --color-footer-text: #cfdad4;
  --color-border: #e2e7e4;
  --color-warn-bg: #17201f;
  --color-warn-text: #f3f5f4;
  --radius-card: 18px;
  --radius-btn: 10px;
  --shadow-card: 0 1px 2px rgba(23, 32, 31, 0.05), 0 10px 28px rgba(23, 32, 31, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-base);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

h1, h2, h3 { line-height: 1.25; font-weight: 700; }

/* ---------- Responsible warning banner ---------- */
.warn-banner {
  background: var(--color-warn-bg);
  color: var(--color-warn-text);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  line-height: 1.5;
}
.warn-banner span { color: var(--color-accent-lime); }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.brand-logo img {
  height: 56px;
  width: auto;
}

/* Burger — mobile only */
.burger {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger-line {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 14px 20px 22px;
}
.mobile-menu.is-open { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
  color: var(--color-text);
  font-weight: 600;
}
.mobile-menu a:hover { background: var(--color-base); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  max-width: 860px;
  margin: 0 auto 18px;
}
.hero p.hero-lead {
  max-width: 780px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--color-text-soft);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}
.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.hero-badge:nth-child(2)::before { background: var(--color-accent-dark); }
.hero-badge:nth-child(3)::before { background: #2a6f97; }
.hero-badge:nth-child(4)::before { background: var(--color-accent-lime); }

/* ---------- Editorial info section ---------- */
.info-section {
  padding: 44px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.info-section .container { max-width: 860px; }
.info-section h2 { font-size: 26px; margin-bottom: 14px; }
.info-section p { color: var(--color-text-soft); margin-bottom: 14px; }
.info-section p:last-child { margin-bottom: 0; }
.info-highlight {
  background: var(--color-base);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-top: 18px;
  font-size: 15px;
}

/* ---------- Showcase cards ---------- */
.cards-section { padding: 48px 0 64px; }
.cards-section h2 { font-size: 28px; margin-bottom: 8px; }
.cards-section > .container > .section-note { color: var(--color-text-soft); margin-bottom: 28px; font-size: 15px; }

.platform-card {
  display: flex;
  align-items: stretch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 26px;
}
.platform-card:last-child { margin-bottom: 0; }

/* Left logo column */
.card-logo-col {
  flex: 0 0 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 18px;
}
.card-logo-bg {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.card-logo-bg img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 12px;
}

/* Middle content column */
.card-main {
  flex: 1 1 auto;
  padding: 26px 24px;
  border-left: 1px solid var(--color-border);
}
.card-anj {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-accent-dark);
  background: rgba(31, 122, 77, 0.08);
  border: 1px solid rgba(31, 122, 77, 0.22);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.card-desc { font-size: 15.5px; color: var(--color-text-soft); margin-bottom: 16px; }
.key-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.key-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14.5px;
  color: var(--color-text);
}
.key-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--color-accent);
}

/* Right CTA / score column */
.card-cta-col {
  flex: 0 0 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 26px 18px;
  background: var(--color-base);
  border-left: 1px solid var(--color-border);
}
.score-block { text-align: center; }
.score-value {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
}
.score-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-soft);
  margin-top: 6px;
  max-width: 130px;
}
.btn-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 18px;
  border-radius: var(--radius-btn);
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-cta:hover { background: var(--color-accent-dark); text-decoration: none; }
.btn-cta:active { transform: scale(0.98); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  margin-top: 0;
}
.footer-main { padding: 48px 0 30px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.footer-col p { font-size: 14px; margin-bottom: 12px; line-height: 1.7; color: var(--color-footer-text); }
.footer-col p:last-child { margin-bottom: 0; }
.footer-col strong { color: #ffffff; }
.footer-col a { color: var(--color-accent-lime); }
.footer-col a:hover { color: #d2f08a; }

.footer-resources { margin-top: 34px; }
.footer-resources h3 {
  color: #ffffff;
  font-size: 17px;
  margin-bottom: 16px;
}
.resource-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.resource-link img,
.resource-static img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  background: #0c1f18;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.resource-link:hover img { opacity: 0.85; }

.footer-risk-line {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.6;
}
.footer-risk-line span { color: var(--color-accent-lime); }

.footer-transparency {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-transparency h3 {
  color: #ffffff;
  font-size: 17px;
  margin-bottom: 14px;
}
.footer-transparency h4 {
  color: var(--color-accent-lime);
  font-size: 14.5px;
  margin: 18px 0 8px;
}
.footer-transparency p {
  font-size: 13.5px;
  color: var(--color-footer-text);
  line-height: 1.7;
  margin-bottom: 10px;
}
.footer-transparency p:last-child { margin-bottom: 0; }
.footer-transparency a { color: var(--color-accent-lime); }
.footer-transparency a:hover { color: #d2f08a; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-links a { color: var(--color-footer-text); font-size: 14px; }
.footer-links a:hover { color: var(--color-accent-lime); text-decoration: none; }

.footer-bottom {
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13.5px;
}
.footer-bottom p.mandatory-line {
  font-weight: 700;
  color: var(--color-accent-lime);
  margin-bottom: 6px;
}
.footer-bottom .copyright { color: #8fa39b; }

/* ---------- 18+ popup ---------- */
.age-popup {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 17, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.age-popup.is-open { display: flex; }
.age-popup-box {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  max-width: 480px;
  width: 100%;
  padding: 30px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.age-popup-box .popup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-dark);
  color: var(--color-accent-lime);
  font-weight: 800;
  font-size: 15px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.age-popup-box h2 { font-size: 22px; margin-bottom: 10px; }
.age-popup-box p { font-size: 15px; color: var(--color-text-soft); margin-bottom: 20px; }
.popup-actions { display: flex; gap: 10px; }
.popup-actions button {
  flex: 1;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: var(--radius-btn);
  font-family: inherit;
}
.popup-btn-no { background: var(--color-base); color: var(--color-text); border: 1px solid var(--color-border) !important; }
.popup-btn-yes { background: var(--color-accent); color: #ffffff; }
.popup-btn-no:hover { background: #e6ebe8; }
.popup-btn-yes:hover { background: var(--color-accent-dark); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--color-footer);
  color: var(--color-footer-text);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  z-index: 90;
  display: none;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
}
.cookie-banner.is-open { display: flex; }
.cookie-banner p { flex: 1 1 300px; font-size: 14px; }
.cookie-banner a { color: var(--color-accent-lime); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
}
.cookie-refuse { background: transparent; color: var(--color-footer-text); border: 1px solid rgba(255, 255, 255, 0.3) !important; }
.cookie-accept { background: var(--color-accent); color: #ffffff; }
.cookie-refuse:hover { background: rgba(255, 255, 255, 0.08); }
.cookie-accept:hover { background: var(--color-accent-dark); }

/* ---------- Redirection overlay (écran de chargement) ---------- */
.redirect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 17, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 20px;
}
.redirect-overlay.is-visible { display: flex; }
.redirect-box {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  max-width: 460px;
  width: 100%;
  padding: 34px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.redirect-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: msp-spin 0.8s linear infinite;
}
@keyframes msp-spin { to { transform: rotate(360deg); } }
.redirect-box h2 { font-size: 20px; margin-bottom: 10px; color: var(--color-text); }
.redirect-box p { font-size: 14.5px; color: var(--color-text-soft); margin-bottom: 6px; }
.redirect-box p:last-child { margin-bottom: 0; }
.redirect-count {
  font-weight: 800;
  color: var(--color-accent);
  font-size: 22px;
}

/* ---------- Inner pages ---------- */
.page {
  padding: 52px 0 64px;
}
.page .container { max-width: 840px; }
.page h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 20px; }
.page h2 { font-size: 21px; margin: 26px 0 10px; }
.page p { color: var(--color-text-soft); margin-bottom: 14px; }
.page ul { margin: 0 0 14px 20px; color: var(--color-text-soft); }
.page li { margin-bottom: 6px; }
.page .page-lead { font-size: 17px; color: var(--color-text); }

/* ---------- Vitrine fiche pages ---------- */
.fiche {
  padding: 48px 0 64px;
}
.fiche .container { max-width: 760px; }
.fiche-back {
  margin-bottom: 16px;
  text-align: left;
}
.fiche-back a {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-soft);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.fiche-back a:hover { color: var(--color-accent); border-color: var(--color-accent); text-decoration: none; }
.fiche-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 30px;
  text-align: center;
}
.fiche-logo-bg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.fiche-logo-bg img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; }
.fiche-card h1 { font-size: 26px; margin-bottom: 6px; }
.fiche-anj {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent-dark);
  background: rgba(31, 122, 77, 0.08);
  border: 1px solid rgba(31, 122, 77, 0.22);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.fiche-desc { color: var(--color-text-soft); margin-bottom: 20px; }
.fiche-points { list-style: none; text-align: left; max-width: 460px; margin: 0 auto 22px; }
.fiche-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}
.fiche-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--color-accent);
}
.fiche-cta { margin: 6px 0 14px; }
.fiche-redirect-note { font-size: 13.5px; color: var(--color-text-soft); }
.fiche-note {
  background: var(--color-base);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--color-text-soft);
  margin-top: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-logo-col { flex: 0 0 170px; }
  .card-cta-col { flex: 0 0 160px; }
}

@media (max-width: 767px) {
  .site-header .header-inner { min-height: 64px; }
  .brand-logo img { height: 46px; }
  .burger { display: flex; }

  .hero { padding: 38px 0 30px; }

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

  /* Mobile cards: stacked + centered */
  .platform-card { flex-direction: column; text-align: center; }
  .card-logo-col {
    flex: none;
    padding: 26px 16px 8px;
    gap: 8px;
  }
  .card-logo-bg { width: 100px; height: 100px; }
  .card-logo-bg img { width: 72px; height: 72px; }
  .card-main {
    border-left: none;
    padding: 14px 20px 4px;
  }
  .card-anj { margin-bottom: 10px; }
  .card-desc { text-align: center; }
  .key-points { grid-template-columns: 1fr; text-align: left; max-width: 420px; margin: 0 auto; }
  .key-points li { justify-content: flex-start; }
  .card-cta-col {
    flex: none;
    border-left: none;
    background: none;
    padding: 18px 20px 26px;
  }
  .btn-cta { max-width: 280px; margin: 0 auto; }
}
