/* ==========================================
   1. VARIABLES GLOBALES (Thème Clair)
   ========================================== */
 @import "footer.css";
 @import "header.css";
:root {
  /* Fond généraux */
  --bg-main: #f8fafc;        /* Fond général (Slate 50) */
  --bg-card: #ffffff;        /* Fond des blocs / cartes */
  --bg-subtle: #f1f5f9;      /* Fond des conteneurs internes */
  --bg-dark: #0f172a;        /* Fond sombre pour le Header / Footer */

  /* Textes */
  --text-main: #0f172a;      /* Texte principal */
  --text-muted: #475569;     /* Texte secondaire */
  --text-dim: #94a3b8;       /* Texte discret / Séparateurs */
  --text-light: #ffffff;     /* Texte sur fond sombre */

  /* Accents et Boutons */
  --accent-gold: #d97706;    /* Boutons principaux & Badges */
  --accent-gold-hover: #b45309;
  --accent-blue: #0284c7;    /* Cotes & Liens */
  --accent-green: #16a34a;   /* Probabilités & Métriques élevées */
  --border-color: #e2e8f0;   /* Border globale */
}

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}
/* Styles pour les Cartes et Top 10 */
.card, 
.best-pick, 
.feature-card {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Ombre douce pour décoller les cartes */
}

.card:hover,
.best-pick:hover,
.actualite-section:hover,
.feature-card:hover {
  background-color: var(--bg-card-hover) !important;
  border-color: #cbd5e1 !important;
}

/* Zone d'informations & Équipes */
.teams, 
.best-bet,
.logo-wrapper {
  background-color: var(--bg-subtle) !important;
  border-color: var(--border-color) !important;
}

.team-name, 
.best-team strong, 
.card h3,
.home-features .section-title,
.section#pronostic h2 {
  color: var(--text-main) !important;
}

/* Textes secondaires et informations */
p, .league, .info, .info .location p, .best-pick-prob-label {
  color: var(--text-muted) !important;
}

.odds-vs, .best-vs {
  color: var(--text-dim) !important;
}

/* Badges et cotes */
.odds-tag strong {
  color: var(--accent-gold) !important;
}

.best-pick-bet, .best-bet-header strong {
  color: var(--accent-blue) !important;
  background: rgba(2, 132, 199, 0.08) !important;
}

.best-pick-prob, .prob.high {
  color: var(--accent-green) !important;
}

/* Boutons d'action */
.btn-melbet {
  background: #f59e0b !important;
  color: #ffffff !important;
}

.btn {
  background: #0f172a !important;
  color: #ffffff !important;
}

a {
  text-decoration: none;
  color: inherit;
}

main {
  display: block;
}

/* Bouton Fixe WhatsApp */
.whatsapp-fixed {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 10px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
}

.whatsapp-fixed:hover {
  transform: scale(1.05);
}

.whatsapp-fixed img {
  width: 20px;
  height: 20px;
}

/* ==========================================
   3. SECTION HERO PROMO (Lisibilité & Layout)
   ========================================== */
.hero-promo {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 60px 20px;
  border-bottom: 3px solid #f59e0b;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Texte à gauche, carte à droite sur PC */
  gap: 40px;
  align-items: center;
}

/* --- TEXTE HERO --- */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff !important;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text .description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #f1f5f9 !important; /* Blanc très clair pour une excellente lisibilité */
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* --- CARTE PROMO --- */
.promo-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promo-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-code {
  background: #0f172a;
  color: #22c55e; /* Vert fluo style code promo */
  border: 2px dashed #22c55e;
  font-size: 1.8rem;
  font-weight: 900;
  padding: 10px;
  border-radius: 10px;
  letter-spacing: 2px;
}

.promo-card p {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.promo-card p strong {
  color: #ffffff;
}

/* Boutons de la Carte Promo */
.promo-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.btn-register {
  background: #f59e0b;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 0;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}

.btn-register:hover {
  background: #d97706;
  transform: translateY(-2px);
}

.btn-copy {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-copy:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

/* ==========================================
   ADAPTATION MOBILE
   ========================================== */
@media (max-width: 900px) {
  .hero-promo {
    padding: 40px 15px;
  }

  .hero-content {
    grid-template-columns: 1fr; /* Passage en 1 colonne sur mobile */
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text .description {
    font-size: 0.95rem;
  }

  .promo-card {
    padding: 20px;
  }

  .promo-buttons {
    grid-template-columns: 1fr; /* Boutons l'un sous l'autre sur petit écran */
  }
}
/* ==========================================
   SECTION PRONOSTICS COMPACTE & OPTIMISÉE
   ========================================== */
.section#pronostic {
  padding: 30px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.section#pronostic h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  border-left: 4px solid #ffcc00;
  padding-left: 10px;
}

/* Grille ultra compacte */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Carte de match plus fine */
.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px 16px; /* Padding réduit pour diminuer la hauteur */
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #64748b;
}

.league {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card h3 {
  display: none; /* Masqué car remplacé par les noms sous les logos */
}

/* Zone Équipes : Logos mis en valeur + Noms en dessous */
.teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.5);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  gap: 4px;
}

/* Design amélioré des logos */
.logo-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.card:hover .logo-wrapper {
  transform: scale(1.08);
}

.team img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.team-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.1;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-prob {
  font-size: 0.7rem;
  color: #38bdf8;
  font-weight: 700;
}

.odds-tag {
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.odds-tag strong {
  color: #ffcc00;
}

.odds-vs {
  font-size: 0.75rem;
  font-weight: 900;
  color: #64748b;
  padding: 0 6px;
}

/* Section Infos Compacte */
.info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: -2px;
}

/* Zone Meilleur Pronostic Compacte */
.best-bet {
  background: rgba(56, 189, 248, 0.05);
  border: 1px dashed rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
}

.best-bet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #38bdf8;
}

.best-odds-badge {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.prob {
  font-size: 0.7rem;
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

.prob.high { color: #22c55e; }
.prob.low { color: #f59e0b; }

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: #22c55e;
  border-radius: 2px;
}

/* Boutons d'action */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.btn-melbet, .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
}

.btn-melbet {
  background: #ffcc00;
  color: #000;
}

.btn {
  background: #334155;
  color: #fff;
}

.btn-melbet:hover, .btn:hover {
  opacity: 0.9;
}
.info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #94a3b8;
  gap: 8px;
}

.info p {
  margin: 0;
}

.info .location p {
  font-weight: 600;
  color: #cbd5e1;
  font-size: 0.72rem;
  /* Tronque proprement si le nom de la rencontre est trop long */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px; 
}

/* ==========================================
   SECTION TOP 10 BEST PICKS
   ========================================== */
.best-picks {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.best-picks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.best-picks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Carte de match principale (Desktop) */
.best-pick {
  display: grid;
  grid-template-columns: 30px 1fr auto 1fr 130px 100px 20px;
  align-items: center;
  gap: 12px;
  background: #1e293b;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #334155;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.best-pick:hover {
  transform: translateY(-2px);
  border-color: #ffcc00;
}

.best-pick-number {
  font-weight: 900;
  color: #ffcc00;
  font-size: 1.1rem;
}

/* NOM SOUS LE LOGO (Grâce à flex-direction: column) */
.best-team {
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.best-team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.best-team strong {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  color: #f8fafc;
}

.best-vs {
  font-weight: 800;
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Pronostic */
.best-pick-bet {
  font-weight: 700;
  font-size: 0.85rem;
  color: #38bdf8;
  text-align: center;
  background: rgba(56, 189, 248, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Probabilité */
.best-pick-prob {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #22c55e;
}

.best-pick-prob-label {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.best-pick-arrow {
  font-size: 1.4rem;
  color: #64748b;
  text-align: right;
}

/* ==========================================
   STYLE MOBILE POUR LE TOP 10 (Pronostics)
   ========================================== */
@media (max-width: 768px) {
  /* Conteneur principal en grille 2 lignes */
  .best-pick {
    display: grid !important;
    grid-template-columns: 28px 1fr auto 1fr 16px !important;
    grid-template-rows: auto auto !important;
    gap: 10px 8px !important;
    padding: 12px 10px !important;
    align-items: center !important;
  }

  /* LIGNE 1 : Alignment des équipes (Logo + Nom en dessous) */
  .best-pick-number {
    grid-column: 1;
    grid-row: 1;
    font-size: 1rem;
    font-weight: 900;
  }

  .best-team {
    display: flex !important;
    flex-direction: column !important; /* Force le nom sous le logo */
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 4px !important;
  }

  .best-team:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .best-vs {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
  }

  .best-team:nth-of-type(2) {
    grid-column: 4;
    grid-row: 1;
  }

  .best-pick-arrow {
    grid-column: 5;
    grid-row: 1;
    font-size: 1.2rem;
  }

  .best-team img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
  }

  .best-team strong {
    font-size: 0.75rem !important;
    line-height: 1.1 !important;
    word-break: break-word; /* Évite que les noms longs ne dépassent */
  }

  /* LIGNE 2 : Pronostic + Probabilité */
  .best-pick-bet {
    grid-column: 1 / span 3;
    grid-row: 2;
    font-size: 0.75rem !important;
    padding: 6px 4px !important;
    text-align: center;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.2);
  }

  .best-pick-prob {
    grid-column: 4 / span 2;
    grid-row: 2;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(34, 197, 94, 0.1);
    padding: 6px 4px !important;
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.2);
  }

  .best-pick-prob-label {
    font-size: 0.65rem !important;
  }

  .prob-valeur {
    font-size: 0.8rem !important;
    font-weight: 800;
  }
}
/* ==========================================
   5. SECTION HOME FEATURES (Coupons & Services)
   ========================================== */
.home-features {
  padding: 50px 20px;
  background: var(--bg-main);
  border-top: 1px solid var(--border-color);
}

.home-features .container {
  max-width: 1200px;
  margin: 0 auto;
}

.home-features .section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
  border-left: 4px solid var(--accent-gold);
  padding-left: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
}

.feature-card.highlights {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.05) 0%, #ffffff 100%);
}

.feature-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 700;
  margin: 0;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.feature-card a {
  display: inline-block;
  margin-top: 5px;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.feature-card a:hover {
  text-decoration: underline;
}
/* ==========================================
   6. ACTUALITES & SCROLL-CONTAINERS
   ========================================== */
.actualite-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 15px;
  scroll-snap-type: x mandatory;
}

.card-wrapper {
  position: relative;
  min-width: 280px;
  max-width: 280px;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #334155;
  scroll-snap-align: start;
}

.card-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-details {
  padding: 14px;
}

.card-details h3 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-details p {
  font-size: 0.8rem;
  color: #94a3b8;
}

.card-date {
  padding: 0 14px 14px;
  font-size: 0.75rem;
  color: #64748b;
}

.btn-favori {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   7. SEO GRID & FAQ ACCORDION
   ========================================== */
.plus-seo, .faq-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.data-driven-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.faq-item {
  background: #1e293b;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #334155;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: none;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #0f172a;
}

.faq-answer p {
  padding: 16px 20px;
  color: #94a3b8;
  font-size: 0.9rem;
}



/* =========================
   PAGINATION PRONOSTICS
   ========================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 35px 0;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 12px;

    border-radius: 8px;

    text-decoration: none;

    box-sizing: border-box;
}

.pagination a {
    border: 1px solid #ddd;
}

.pagination a:hover {
    opacity: 0.8;
}

.pagination .active {
    font-weight: 700;
}

.pagination-separator {
    min-width: auto !important;
    padding: 0 4px !important;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .pagination {
        gap: 5px;
        margin: 25px 0;
    }

    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 9px;
        font-size: 14px;
    }

}