/* === Base === */

:root {
  --primary-color: #1e40af;
  --primary-dark: #172554;
  --light-bg: #f9fafb;
  --light-text: #111827;
  --muted: #6b7280;
  --accent-green: #4CAF50;
  --accent-orange: #FFA500;
  --accent-red: #E11D48;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--light-bg);
  color: var(--light-text);
  line-height: 1.6;
}

/* === Typographie par défaut === */
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

/* Titres */
h2, h3 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
  font-size: 2.25rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}

/* Paragraphes */
p {
  margin-bottom: 1em;
  color: var(--text-color-light);
}

/* Liens */
a {
  color: var(--highlight-color);
  text-decoration: underline;
}
a:hover {
  text-decoration: none;
}

/* Listes */
ul {
  padding-left: 1.5em;
}
li {
  margin-bottom: 0.5em;
}


/* === Thème sombre (Dark Mode) === */

[data-theme="dark"] {
  --light-bg: #111827;
  --light-text: #f9fafb;
  --muted: #9ca3af;
  --primary-color: #60a5fa;
  --primary-dark: #3b82f6;
  --accent-green: #34d399;
  --accent-orange: #fbbf24;
  --accent-red: #f87171;
  background-color: var(--light-bg);
  color: var(--light-text);
}

/* Cartes en thème sombre */
[data-theme="dark"] .prediction-card,
[data-theme="dark"] .process-steps .step,
[data-theme="dark"] .highlight-league,
[data-theme="dark"] .testimonial-list blockquote {
  background-color: #1f2937;
  color: var(--light-text);
  box-shadow: 0 1px 4px rgba(255, 255, 255, 0.05);
  border-color: #374151;
}

/* Sections avec fond clair à adapter */
[data-theme="dark"] .section.light {
  background-color: #1a202c;
}

/* Boutons ligue */
[data-theme="dark"] .league-buttons a {
  background: var(--primary-color);
  color: white;
}
[data-theme="dark"] .league-buttons a:hover {
  background: var(--primary-dark);
}

/* Texte du footer ou contenu secondaire */
[data-theme="dark"] .stats-description,
[data-theme="dark"] .prediction-header span,
[data-theme="dark"] .match-time {
  color: var(--muted);
}

/* Bouton X Twitter */
[data-theme="dark"] .prediction-footer .link.share-button {
  background-color: #1da1f2;
  color: white;
}
[data-theme="dark"] .prediction-footer .link.share-button:hover {
  background-color: #0d8ddc;
}

/* Process steps dans dark */
[data-theme="dark"] .process-steps .step {
  border: 1px solid #374151;
}

.link-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.link-button:hover {
  background-color: var(--primary-color);
  color: white;
}
[data-theme="dark"] .link-button {
  color: white;
  border-color: white;
}

[data-theme="dark"] .link-button:hover {
  background-color: white;
  color: var(--primary-color);
}

/* =========================
   ADSENSE - FIX MOBILE
   Empêche les pubs de sortir du layout et d'aller à droite
   ========================= */

html, body {
  overflow-x: hidden;
}

/* bloc adsense standard */
ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  margin: 16px auto !important;
}

/* iframe injectée par adsense */
ins.adsbygoogle > iframe {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

/* si un wrapper ad-hoc existe */
.ads, .ads-container, .ad-container, .ad-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* mobile : réduit le risque de "colonne à droite" */
@media (max-width: 768px) {
  ins.adsbygoogle {
    margin: 12px auto !important;
  }
}

/* =========================================================
   Anti-CLS : TermsFeed cookie banner (cc-nb-main-container)
   ========================================================= */
.cc-nb-main-container {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;

  width: 100% !important;
  max-width: none !important;

  z-index: 999999 !important;

  min-height: 72px !important;

  background: #fff !important;
  color: #111 !important;
  box-shadow: 0 -8px 24px rgba(0,0,0,.15) !important;
  border-top: 1px solid rgba(0,0,0,.08) !important;
}

/* Évite les webfonts externes => moins de micro-shifts */
.cc-nb-main-container,
.cc-nb-main-container * {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* === Sections === */

.section {
  padding: 10px 20px;
  text-align: center;
}

.section.light,
.section.highlight-league {
  background-color: #eef2f7;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Ombre douce */
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
}

/* === Stats section === */

[data-theme="dark"] .section.stats {
  background-color: #1f2937;
}

[data-theme="dark"] .stats-description {
  color: #d1d5db;
}

[data-theme="dark"] .stats-number .total {
  color: #9ca3af;
}

.stats-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.stats-number {
  font-size: 48px;
  font-weight: 700;
}

.stats-number .correct {
  color: var(--accent-green);
}

.stats-number .total {
  color: #999;
}

.stats-description {
  font-size: 18px;
  color: var(--muted);
}

.stats a.link {
  margin-top: 10px;
  display: inline-block;
  font-weight: 500;
  text-decoration: underline;
}

/* === Témoignages === */

.testimonials {
  background-color: #f9fafb;
  padding: 40px 20px;
}

.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-style: italic;
}

.testimonial-list blockquote {
  background-color: #ffffff;
  padding: 20px;
  border-left: 5px solid var(--primary-color);
  border-radius: 10px;
  color: var(--light-text);
}

/* === Header & Footer === */

.main-header,
.main-footer {
  background: #1e40af;
  color: white;
  width: 100%;
}


.header-container,
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo */

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-img { width: 40px; height: 40px; display:block; }

.logo-title {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

/* Lien Direct (CTA) */

.header-direct-link {
  margin-left: auto; /* pousse "Direct" vers la droite */
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 2px solid #facc15;
  color: #facc15;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.header-direct-link:hover {
  background: #facc15;
  color: #1e40af;
  transform: translateY(-1px);
}

/* Burger */

#burger-toggle {
  display: flex; /* visible aussi sur desktop */
  font-size: 26px;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  font-family: inherit;
  margin-left: 10px;
}

.burger-icon {
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.burger-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(1px);
}

/* Au cas où d'autres pages utilisent .main-links */

.main-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.main-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 6px 0;
}

/* Icônes réseaux */

.social-icon {
  font-size: 20px;
  margin-left: 4px;
}

.nav-actions .social-icon i {
  font-size: 20px;
  color: white;
  transition: color 0.3s ease;
  vertical-align: middle;
  display: inline-block;
}

.nav-actions .social-icon:hover i {
  color: #cbd5e1;
}

/* Bouton thème */

#toggle-theme,
.nav-actions #toggle-theme {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
}

/* Footer */

/* Footer */

.main-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  background: #1e40af;
  color: #e5e7eb;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

/* Colonne gauche : logo + texte */

.footer-left {
  flex: 1;
  min-width: 240px;
}

.footer-description {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #e5e7eb;
  line-height: 1.5;
}

.footer-responsible {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Colonnes de droite */

.footer-right {
  flex: 2;
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-column {
  min-width: 180px;
}

.footer-column-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: #bfdbfe;
}

/* Liens du footer */

.footer-right a {
  display: block;
  margin: 4px 0;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.footer-right a:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* Bas du footer */

.footer-bottom {
  text-align: center;
  padding: 10px 20px 16px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0e7ff;
}


/* === Responsive === */

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }

  .logo-title {
    font-size: 1.25rem;
  }

  .logo-img {
    height: 36px;
  }

  /* On compacte un peu le CTA sur mobile */
  .header-direct-link {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .main-nav {
    align-items: flex-start;
    margin-top: 10px;
  }

  .nav-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-actions a,
  .nav-actions button {
    width: auto !important;
    text-align: right;
    padding: 8px;
    border-top: none;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .footer-right {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-column {
    min-width: 50%;
  }

  .footer-right a {
    margin: 3px 0;
  }
  
}

/* Les actions (icônes + thème) restent à droite */
.main-header .nav-actions {
  justify-content: flex-end !important;
}

html, body {
  min-height: 100%;
}

/* Icône X spécifique (si tu l'utilises ailleurs) */

.social-icon i.fa-x-twitter {
  font-size: 20px;
  color: white;
  transition: color 0.3s ease;
  vertical-align: middle;
  display: inline-block;
}

.social-icon:hover i.fa-x-twitter {
  color: #cbd5e1;
}

/* Divers */

.prediction-header span:last-child {
  font-weight: 600;
  color: var(--highlight-color);
}

/* === MENU BURGER EN OVERLAY === */
/* === MENU BURGER EN OVERLAY === */
/* Le header reste au-dessus du contenu */
.main-header {
  position: relative;
  z-index: 10;
}

/* Drawer auto-size sur la droite */
.main-nav {
  position: fixed;
  top: 72px;      /* sous le header */
  right: 0;
  bottom: 20px;   /* petite marge en bas */
  left: auto;

  display: none;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 16px;

  background: #1e40af;
  padding: 16px 20px 20px;
  box-sizing: border-box;
  overflow-y: auto;

  /* 🔥 largeurs dynamiques */
  width: auto;              /* largeur naturelle selon le contenu */
  max-width: 90vw;          /* ne dépasse jamais l’écran */
  min-width: max-content;   /* au moins la taille du plus long texte */

  border-radius: 16px 0 0 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

  z-index: 40;
}

.main-nav.open {
  display: flex;
}


/* Sections dans le menu */
.nav-section {
  width: 100%;
  margin-top: 4px;
  text-align: right;
}

.nav-section-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bfdbfe;
  margin-bottom: 4px;
  text-align: right;
}

/* Liens de navigation */
.main-nav a {
  display: block;
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 4px 0;
  font-size: 0.95rem;
  text-align: right;
  width: 100%;
}

.main-nav a:hover {
  color: #cbd5e1;
}

/* Zone actions (réseaux + thème) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  justify-content: flex-end;
}

/* Overlay sombre derrière le menu (plein écran, sous le header) */
#overlay {
  position: fixed;
  top: 72px;      /* sous le header */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  z-index: 30;    /* sous le menu, au-dessus du contenu */
}

/* Quand le menu est ouvert, on affiche l’overlay */
.main-nav.open + #overlay {
  display: block;
}


/* Responsive : légèrement plus compact mais même logique */
@media (max-width: 768px) {
  .main-nav {
    max-width: 85vw;     /* un peu plus petit sur mobile */
    padding: 12px 16px;
  }

  .nav-actions {
    flex-wrap: wrap;
  }
}

/* Header sticky uniquement quand le menu est ouvert ET que le user scroll */
body.header-sticky .main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100; /* au-dessus du drawer */
}

/* Pour éviter que le contenu saute quand le header passe en fixed */
body.header-sticky {
  padding-top: 72px; /* même hauteur que ton header */
}

/* Reserve space before header injection */
#header { min-height: 72px; }     /* mobile - ajuste si besoin */
@media (min-width: 768px) {
  #header { min-height: 64px; }   /* desktop */
}

/* Compte (Sans pub / login) */
.account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 6px;
  border-radius: 10px;
}

.account-dot {
  font-size: 18px;   /* cohérent avec tes icônes 20px */
  line-height: 1;
  display: inline-flex;
}

.account-icon:hover {
  background: rgba(255, 255, 255, 0.10);
}

.account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 10px;
  text-decoration: none;

  /* 👉 collé au burger */
  margin-right: 6px;
}

/* Indication pub ultra discrète au-dessus de Compte */
.nav-noads-hint {
  font-size: 11px;
  opacity: 0.6;
  margin-bottom: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav-noads-hint:hover {
  opacity: 0.9;
}

/* Quand sans pub activé */
.nav-noads-hint[data-noads="1"] {
  cursor: default;
  opacity: 0.45;
}

/* Corrige l'espace entre le hint "passer sans pub" et le titre de section */
.nav-noads-hint {
  margin-bottom: -18px;   /* au lieu de 4–8px implicites */
}

.nav-section-title {
  margin-top: 0;        /* supprime l'espace vertical superflu */
}
/* Cas où la section Compte suit directement le hint */
.nav-noads-hint + .nav-section-title {
  margin-top: 0;
}
.nav-noads-hint {
  text-align: left;
  width: 100%;
}

.social-icon svg { display:block; fill: currentColor; }

/* === Hero === */

.hero {
  background: linear-gradient(to right, #2563eb, var(--primary-color));
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero.hero--compact {
  padding: 40px 20px; /* moitié moins haut en mode app */
}


.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-inline: auto;
}
.cta-button {
  padding: 12px 28px;
  background: white;
  color: var(--primary-color);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
  min-width: 250px;
}
.cta-button:hover {
  background: #e0e7ff;
}


/* === Prediction Cards === */

.predictions-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.prediction-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.prediction-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.teams-row strong {
  font-size: 1.05rem;
  color: var(--light-text);
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.teams-row img {
  width: 42px;
  height: 42px;
  background: #f3f4f6;
  border-radius: 6px;
  object-fit: contain;
}
.teams-row span.vs {
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
}
.prediction-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  font-size: 0.9rem;
}
.prediction-footer .winner {
  font-weight: 600;
  font-size: 1rem;
  color: var(--light-text);
  margin-bottom: 4px;
}
.prediction-footer .confidence {
  font-weight: 500;
  margin-bottom: 6px;
}
.prediction-footer .link {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: underline;
}
.match-time {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}



/* === Ligue buttons === */

.league-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.league-buttons a {
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}
.league-buttons a:hover {
  background: var(--primary-dark);
}



/* === Process steps === */

.process-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.process-steps .step {
  background-color: white;
  padding: 20px;
  border-radius: 15px;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  flex: 1 1 200px;
  max-width: 300px;
  text-align: center;
}



/* === Animation fade-in === */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}



/* === Responsive === */

@media (min-width: 768px) {
  .predictions-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .prediction-card {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .teams-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .teams-row span.vs {
    display: none;
  }
  .prediction-header {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .prediction-footer {
    text-align: center;
  }
}

.prediction-footer .share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #1da1f2;
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 9999px;
  font-size: 0.95rem;
  min-width: 220px; /* <- Ajoute une largeur minimale cohérente */
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.prediction-footer .share-button:hover {
  background-color: #0d8ddc;
  transform: scale(1.04);
}

.prediction-footer .share-button img.icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}


.prediction-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* optionnel, centre les boutons */
  gap: 15px; /* espace entre les boutons */
}

/* .cta-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 18px;
  text-align: center;
} */

/* === Top Pronostics Cards === */

.top-pronos-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.top-pronos-card {
    background-color: var(--background-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    width: 300px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.top-pronos-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.top-pronos-card .emoji {
    font-size: 40px;
    margin-bottom: 15px;
}

.top-pronos-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.top-pronos-card p {
    font-size: 18px;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.btn-primary {
    padding: 15px 40px;
    background-color: var(--btn-bg-color);
    color: var(--text-color-light);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.btn-primary:hover {
    background-color: var(--btn-hover-color);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.6);
}

.emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    margin-top: 0px;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

@media screen and (max-width: 768px) {
    .top-pronos-cards {
        flex-direction: column;
        gap: 20px;
        margin: 0 auto;
    }

    .top-pronos-card {
        width: calc(100% - 40px);
        max-width: 400px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .btn-primary {
        padding: 10px 30px;
        font-size: 16px;
    }
}

/* === Composant Switch / Toggle === */

.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background-color: rgba(240, 240, 240, 0.1);
  border-radius: 10px;
  border: 1px solid var(--btn-bg-color);
  justify-content: center;
  flex-wrap: wrap;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #4A90E2;
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.filter-label {
  font-size: 1rem;
  color: var(--text-color-light);
}

/* =========================
   AUTH / COMPTE (Sans pub)
   ========================= */

/* Formulaires auth */
form input[type="email"],
form input[type="text"],
form input[type="password"],
form input[inputmode="numeric"] {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgb(0, 0, 0);
  font-size: 0.95rem;
}

form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

form input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.8); /* bleu Foresportia */
  background: rgba(255, 255, 255, 0.08);
}

/* Messages feedback (OTP / profil) */
#otp-message,
#profile-msg {
  font-size: 0.9rem;
}

/* Bloc code OTP */
#code-block {
  padding-top: 6px;
}

/* Alignement boutons multiples */
.proof-actions {
  gap: 10px;
}

/* État compte (petite emphase) */
#acc-status,
#acc-noads {
  font-weight: 600;
}

/* Mobile : éviter que ça fasse trop tassé */
@media (max-width: 768px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

/* Icône compte (login / sans pub) */
.account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 10px;
  text-decoration: none;
}

.account-dot {
  font-size: 18px;
  line-height: 1;
}

.account-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* =========================
   BUTTONS – System
   ========================= */

.btn {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-text: inherit;
  --btn-hover-bg: transparent;
  --btn-hover-border: transparent;
  --btn-hover-text: inherit;

  appearance: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.1;
  cursor: pointer;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .05s ease;
}

.btn:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-border);
  color: var(--btn-hover-text);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[data-busy="1"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================
   PRIMARY
   ========================= */

.btn-primary {
  --btn-bg: #2563eb;
  --btn-border: #2563eb;
  --btn-text: #ffffff;

  --btn-hover-bg: #1e40af;
  --btn-hover-border: #1e40af;
  --btn-hover-text: #ffffff;

  box-shadow: 0 6px 16px rgba(37,99,235,0.25);
}

/* =========================
   SECONDARY
   ========================= */

.btn-secondary {
  --btn-bg: rgba(37,99,235,0.08);
  --btn-border: rgba(37,99,235,0.25);
  --btn-text: #1e40af;

  --btn-hover-bg: rgba(37,99,235,0.16);
  --btn-hover-border: rgba(37,99,235,0.45);
  --btn-hover-text: #1e40af;
}

/* =========================
   TERTIARY (low emphasis / logout)
   ========================= */

.btn-tertiary {
  --btn-bg: transparent;
  --btn-border: rgba(15,23,42,0.20);
  --btn-text: #334155;

  --btn-hover-bg: rgba(15,23,42,0.06);
  --btn-hover-border: rgba(15,23,42,0.35);
  --btn-hover-text: #0f172a;
}

/* =========================
   DANGER (si un jour tu veux)
   ========================= */

.btn-danger {
  --btn-bg: rgba(185,28,28,0.08);
  --btn-border: rgba(185,28,28,0.35);
  --btn-text: #b91c1c;

  --btn-hover-bg: rgba(185,28,28,0.16);
  --btn-hover-border: rgba(185,28,28,0.55);
  --btn-hover-text: #7f1d1d;
}

/* =========================
   DARK MODE
   ========================= */

[data-theme="dark"] .btn-secondary {
  --btn-bg: rgba(96,165,250,0.12);
  --btn-border: rgba(96,165,250,0.35);
  --btn-text: rgba(191,219,254,0.95);

  --btn-hover-bg: rgba(96,165,250,0.20);
  --btn-hover-border: rgba(96,165,250,0.55);
  --btn-hover-text: #ffffff;
}

[data-theme="dark"] .btn-tertiary {
  --btn-bg: transparent;
  --btn-border: rgba(255,255,255,0.25);
  --btn-text: rgba(255,255,255,0.75);

  --btn-hover-bg: rgba(255,255,255,0.08);
  --btn-hover-border: rgba(255,255,255,0.45);
  --btn-hover-text: #ffffff;
}

/* ===========================
   Home - Foresportia light (clean + centered) - NO HORIZONTAL OVERFLOW
   =========================== */

/* --- Hard guards (no horizontal overflow) --- */
*,
*::before,
*::after { box-sizing: border-box; }

html { width: 100%; overflow-x: clip; }  /* clip si supporté */
body { width: 100%; overflow-x: hidden; } /* filet de sécurité final */

/* Prevent grid/flex children from forcing overflow by default */
.container,
.container * { min-width: 0; }

/* Media never exceed viewport */
img, svg, video, canvas { max-width: 100%; height: auto; }

/* Long text never forces a single unbreakable line */
p, h1, h2, h3, li, a, strong { overflow-wrap: anywhere; }

/* ===========================
   Tokens
   =========================== */
:root{
  --home-max: 1120px;
  --radius: 18px;
  --radius-sm: 12px;

  /* Palette Foresportia (bleu + slate clair) */
  --brand: #1e40af;
  --brand-2: #2563eb;
  --brand-soft: rgba(37,99,235,0.10);

  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;

  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --card: #ffffff;

  --border: rgba(15,23,42,0.10);
  --shadow: 0 12px 28px rgba(2,6,23,0.08);
  --shadow-soft: 0 10px 22px rgba(2,6,23,0.06);

  --success: #16a34a;
}

/* ===========================
   Layout helpers
   =========================== */
.container{
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0 20px;
}

.muted{ color: var(--muted); }
.center{ text-align: center; }

/* ===========================
   Buttons (Home scope)
   =========================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 18px;
  border-radius: 9999px;

  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.1px;

  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
  user-select: none;

  line-height: 1.1;
  max-width: 100%;
  white-space: normal;       /* important: no overflow on narrow screens */
  text-align: center;
}

.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px rgba(30,64,175,0.22);
}
.btn-primary:hover{
  background: #1b3aa4;
  box-shadow: 0 16px 34px rgba(30,64,175,0.26);
}

.btn-secondary{
  background: #fff;
  color: var(--brand);
  border-color: rgba(30,64,175,0.26);
  box-shadow: 0 10px 20px rgba(2,6,23,0.06);
}
.btn-secondary:hover{
  background: rgba(30,64,175,0.06);
  border-color: rgba(30,64,175,0.32);
}

.btn-tertiary{
  background: transparent;
  color: var(--brand);
  border-color: rgba(30,64,175,0.18);
}
.btn-tertiary:hover{
  background: rgba(30,64,175,0.06);
  border-color: rgba(30,64,175,0.26);
}

/* ===========================
   HERO
   =========================== */
.home-hero{
  background:
    radial-gradient(1200px 420px at 50% -10%, rgba(255,255,255,0.35), transparent 60%),
    linear-gradient(to right, var(--brand), var(--brand-2));
  color: #fff;
  padding: 78px 0 54px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 8px 14px;
  border-radius: 9999px;

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  font-weight: 700;
  font-size: 0.92rem;

  max-width: 100%;
}

.home-hero h1{
  margin: 14px auto 12px;
  max-width: 920px;
  font-size: 2.55rem;
  line-height: 1.10;
  color: #fff;
  text-shadow: 0 2px 12px rgba(2,6,23,0.18);
}

.hero-subtitle{
  max-width: 860px;
  margin: 0 auto 22px;
  font-size: 1.10rem;
  color: rgba(255,255,255,0.95);
}

.hero-ctas{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 24px;
}

/* Tertiary visible on hero */
.home-hero .btn-tertiary{
  color: #ffffff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.10);
}
.home-hero .btn-tertiary:hover{
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.75);
}

/* Trust strip */
.trust-strip{
  margin: 12px auto 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-item{
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(6px);
}

.trust-title{
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.trust-desc{
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
}

/* ===========================
   PROOF
   =========================== */
.home-proof{
  padding: 54px 0;
  background: var(--bg-soft);
  color: var(--text);
}

.proof-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.proof-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.proof-card h2{
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.55rem;
}

.proof-card h3{
  margin: 0 0 8px;
  color: var(--text);
}

.stats-number{
  font-size: 56px;
  font-weight: 900;
  margin: 10px 0 8px;
  letter-spacing: -1px;
}

.stats-number .correct{ color: var(--success); }
.stats-number .total{ color: rgba(15,23,42,0.55); }
.stats-number .separator{ color: rgba(15,23,42,0.35); }

.stats-description{
  margin: 0 auto 14px;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.45;
}

.proof-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.proof-mini{
  text-align: left;
}

.proof-mini .mini-list{
  margin: 10px 0 6px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.proof-mini li{ margin: 6px 0; }

.link-inline{
  display: inline-block;
  margin-top: 10px;
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
}

/* ===========================
   TODAY
   =========================== */
.home-today{
  padding: 62px 0;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}

.section-head{
  max-width: 900px;
  margin: 0 auto 22px;
  text-align: center;
}

.section-head h2{
  margin: 0 0 8px;
  color: var(--text);
  font-size: 2rem;
}

.section-head p{
  margin: 0 auto;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.55;
}

.after-cards{
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Guard: predictions generated content should not overflow */
#top-predictions,
.predictions-grid,
.prediction-card,
.teams-row{ max-width: 100%; }

/* Team names can be long */
.teams-row strong{
  max-width: 42vw;
}

/* ===========================
   FEATURED
   =========================== */
.home-featured{
  padding: 10px 0 62px;
  background: var(--bg);
}

.featured-card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
  padding: 24px;
  text-align: center;
}

/* ===========================
   PATHS
   =========================== */
.home-paths{
  padding: 62px 0;
  background: var(--bg-soft);
}

.cards-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 18px;
}

.info-card{
  text-align: left;
  display: block;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.info-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(30,64,175,0.20);
}

.info-card .icon{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 22px;
  margin-bottom: 10px;
}

.info-card h3{ margin: 0 0 8px; color: var(--text); }
.info-card p{ margin: 0 0 12px; color: var(--muted); line-height: 1.5; }

.card-cta{
  font-weight: 900;
  color: var(--brand);
  text-decoration: underline;
}

/* ===========================
   NEWSLETTER - CLEAN & NO OVERFLOW
   =========================== */
.newsletter-section{
  padding: 62px 0;
  background: var(--bg);
  text-align: center;
}

.newsletter-section .container{
  max-width: 920px;
}

/* IMPORTANT: never overflow */
#newsletter-form{
  width: min(680px, 100%);
  margin: 0 auto 10px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;

  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
}

#newsletter-form > *{ min-width: 0; }

/* Input */
#newsletter-email{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;

  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}

/* Submit anchor behaves like a button: shrink-safe */
#newsletter-submit{
  display: flex;            /* kills inline formatting width quirks */
  align-items: center;
  justify-content: center;

  max-width: 100%;
  min-width: 0;
  justify-self: end;

  white-space: nowrap;      /* desktop clean */
  padding-left: 16px;       /* slightly smaller than default btn */
  padding-right: 16px;
}

/* Consent */
.newsletter-consent{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 820px;
  margin: 10px auto 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

#newsletter-message{
  margin-top: 12px;
  font-weight: 650;
}

/* ===========================
   SOCIAL
   =========================== */
.home-social{
  padding: 58px 0;
  background: var(--bg-soft);
  text-align: center;
}

.home-social h2{ margin: 0 0 8px; }
.home-social p{
  margin: 0 auto 18px;
  max-width: 820px;
  color: var(--muted);
}

.social-links{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 980px){
  .proof-grid{ grid-template-columns: 1fr; }
  .cards-3{ grid-template-columns: 1fr; }
  .trust-strip{ grid-template-columns: 1fr; }
  .home-hero h1{ font-size: 2.0rem; }
}

@media (max-width: 640px){
  #newsletter-form{
    grid-template-columns: 1fr;
  }
  #newsletter-submit{
    width: 100%;
    justify-self: stretch;
    white-space: normal;  /* mobile: allow wrap if needed */
  }
}

@media (max-width: 420px){
  .stats-number{ font-size: 42px; }
}

.user-no-ads ins.adsbygoogle,
.user-no-ads .adsbygoogle,
.user-no-ads [data-ad-client],
.user-no-ads [data-ad-slot],
.user-no-ads iframe[src*="doubleclick.net"],
.user-no-ads iframe[src*="googlesyndication.com"],
.user-no-ads iframe[id^="aswift_"],
.user-no-ads iframe[id^="google_ads_iframe"],
.user-no-ads div[id^="google_ads_iframe"],
.user-no-ads .ad,
.user-no-ads .ads,
.user-no-ads .ad-container,
.user-no-ads .ads-container,
.user-no-ads .ad-wrapper,
.user-no-ads .ads-wrapper,
.user-no-ads .pub,
.user-no-ads .publicite,
.user-no-ads .banner-ad {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* évite les trous si certains wrappers ont une hauteur fixée */
.user-no-ads .ad,
.user-no-ads .ads,
.user-no-ads .ad-container,
.user-no-ads .ads-container,
.user-no-ads .ad-wrapper,
.user-no-ads .ads-wrapper,
.user-no-ads .banner-ad {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

