/* =====================================================
   style.css — Inside Sports News
   ===================================================== */

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #212529;
  background: #f4f6f8;
  line-height: 1.7;
}

a { color: #e63946; text-decoration: none; }
a:hover { text-decoration: underline; color: #c1121f; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  line-height: 1.3;
  color: #0d1b2a;
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1.1rem; margin: 1rem 0 0.4rem; }

p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- HEADER ---- */
.site-header {
  background: #0d1b2a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 2rem;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Georgia', serif;
  text-decoration: none;
  white-space: nowrap;
}
.logo-inside  { color: #fff; }
.logo-sports  { color: #e63946; }
.logo-news    { color: #adb5bd; font-size: 1rem; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  color: #adb5bd;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s;
}
.main-nav a:hover { color: #e63946; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- SITE MAIN ---- */
.site-main { min-height: 70vh; }

/* ---- HERO BANNER ---- */
.page-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.page-hero .breadcrumb {
  font-size: 0.82rem;
  color: #adb5bd;
  margin-bottom: 0.75rem;
}
.page-hero .breadcrumb a { color: #e63946; }
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero .hero-subtitle {
  font-size: 1.1rem;
  color: #adb5bd;
  max-width: 700px;
}
/* Variante rouge */
.page-hero.hero-red {
  background: linear-gradient(135deg, #c1121f 0%, #e63946 100%);
}

/* ---- LAYOUT : content + sidebar ---- */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2.5rem 0;
}
@media (max-width: 900px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ---- ARTICLE CONTENT ---- */
.article-body {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.article-meta {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}
.article-meta .tag {
  display: inline-block;
  background: #e63946;
  color: #fff;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-right: 0.5rem;
}

/* ---- SIDEBAR ---- */
.sidebar-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sidebar-card h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  border-bottom: 2px solid #e63946;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.sidebar-card ul { margin: 0; padding: 0; list-style: none; }
.sidebar-card li { padding: 0.4rem 0; border-bottom: 1px solid #f4f6f8; }
.sidebar-card li:last-child { border-bottom: none; }

/* ---- CTA BOX ---- */
.cta-box {
  background: #f4f6f8;
  border-left: 4px solid #e63946;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.cta-box p { margin: 0; }

/* ---- TABLE ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.data-table th {
  background: #0d1b2a;
  color: #fff;
  padding: 0.65rem 0.9rem;
  text-align: left;
}
.data-table td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid #dee2e6;
}
.data-table tr:nth-child(even) td { background: #f8f9fa; }
.data-table tr:hover td { background: #fff3cd; }

/* ---- COUNTRY FLAG ICON ---- */
.flag { font-size: 1.4rem; margin-right: 0.5rem; vertical-align: middle; }

/* ---- CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.card-img {
  height: 160px;
  background: linear-gradient(135deg, #0d1b2a, #1a3a5c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.card-body { padding: 1rem; }
.card-body h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.card-body p { font-size: 0.88rem; color: #6c757d; margin: 0 0 0.75rem; }
.card-body a.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e63946;
}

/* ---- PAYS INDEX GRID ---- */
.pays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem 0;
}
.pays-item {
  background: #fff;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: background 0.2s;
}
.pays-item:hover { background: #fff3cd; }
.pays-item .flag { font-size: 2rem; display: block; margin-bottom: 0.4rem; }
.pays-item a { color: #0d1b2a; font-weight: 600; font-size: 0.9rem; }

/* ---- HOMEPAGE HERO ---- */
.home-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 60%, #e63946 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.home-hero h1 { color: #fff; font-size: 2.8rem; margin-bottom: 1rem; }
.home-hero p { font-size: 1.2rem; color: #adb5bd; max-width: 700px; margin: 0 auto 2rem; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary { background: #e63946; color: #fff; }
.btn-primary:hover { background: #c1121f; text-decoration: none; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; margin-left: 1rem; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* ---- SECTIONS HOMEPAGE ---- */
.section { padding: 3rem 0; }
.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  color: #0d1b2a;
}
.section-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 2rem;
}
.section-title span { color: #e63946; }

/* ---- FOOTER ---- */
.site-footer {
  background: #0d1b2a;
  color: #adb5bd;
  margin-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem 1.5rem 2rem;
}
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer h4 {
  color: #e63946;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #adb5bd; font-size: 0.88rem; transition: color 0.2s; }
.site-footer a:hover { color: #e63946; text-decoration: none; }
.site-footer p { font-size: 0.88rem; line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid #1a3a5c;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.82rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .home-hero h1 { font-size: 2rem; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #0d1b2a;
    padding: 1rem;
    z-index: 99;
  }
  .main-nav.open ul { flex-direction: column; gap: 0.5rem; }
  .nav-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .btn-secondary { margin-left: 0; margin-top: 0.75rem; display: block; }
}
