/* =====================================
   ✅ GLOBAL RESET & BODY
===================================== */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: white;
  color: #1e1e1e;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.loaded {
  opacity: 1;
}

p {
  padding: 0;
  margin: 0;
}
/* =====================================
   ✅ HEADER & NAVIGATION
===================================== */
header {
  background-color: white;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo {
  font-weight: 700;
  color: #004878;
  font-size: 1.5em;
  animation: float 8s ease-in-out infinite;
}
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

/* ======== NAVIGATION LINKS ======== */
nav a {
  color: #004878;
  font-weight: bold;
  background: none;
  border-radius: 12px;
  padding: 3px 13px;
  margin-right: 6px;
  text-decoration: none;
  font-size: 1.15em;
  transition: background 0.15s, color 0.15s;
  display: inline-block;
}

nav a.active {
  color: #fff;
  background-color: #004878b2;
    transform: scale(0.9);
}
nav a:hover,
nav a:focus {
  color: #fff;
  background: #ffc300;
  text-decoration: none;
  transform: scale(1.1);
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
}

/* CTA Buttons */
.cta {
  background-color: #ffc300;
  color: black;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
.cta, button {
  transition: all 0.2s ease;
}
.cta:hover, button:hover {
  color: white;
  transform: scale(1.2);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.cta:active, button:active {
  color: white;
  transform: scale(1.2);
}

/* =====================================
   ✅ HERO SECTION
===================================== */
.hero {
  position: relative;
  background: linear-gradient(rgba(0, 72, 120, 0.9), rgba(0, 72, 120, 0.8)),
              url('../images/basketball_herobg.jpg') center / cover no-repeat;
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 40px 60px;
  height: 30rem;
  text-align: left;
}
.hero-content {
  max-width: 40rem;
  font-size: 1.4rem;
  font-weight: 900;
}
.hero-content h1 {
  font-size: 2em;
  margin: 0;
  color: white;
}
.hero-content h1 span {
  color: #ffc300;
}
.hero-content button {
  margin-top: 2rem;
  margin-left: 8rem;
  background-color: #ffc300;
  border: none;
  padding: 1rem 2rem;
  font-weight: bold;
  font-size: 1em;
  border-radius: 2rem;
  cursor: pointer;
}
.hero-content button:hover {
  transform: scale(1.2);
  color: #fff
}
.hero-logo img {
  max-width: 22rem;
}

/* Floating effect */
.floating {
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

/* Parallax effect */
.parallax {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* Hero transitions */
.hero-transition, .section-transition-top {
  position: absolute;
  width: 100%;
  height: 50px;
  line-height: 0;
  overflow: hidden;
  z-index: 2;
}
.hero-transition {
    bottom: 0px;
}
.hero-transition svg,
.section-transition-top svg {
  display: block;
  width: 100%;
  height: 100%;
}
.section-transition-top {
  top: -10px;
  transform: rotate(180deg);
}

/* =====================================
   ✅ ACTUALITÉS
===================================== */
.actus {
    padding: 0rem 2rem 2rem 2rem;
    text-align: center;
}
.actus h2 {
  font-size: 4em;
  font-weight: 900;
}
.actus-card {
  max-width: 600px;
  margin: 30px auto 0;
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 20px;
  text-align: left;
}
.actus-card h3 {
  margin-top: 0;
}
.actus-card button {
  margin-top: 15px;
  background-color: #ffc300;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* =====================================
   ✅ MATCHS
===================================== */
.matches {
  background-color: #ebebeb;
  text-align: center;
  padding: 1rem 2rem;
}
.matches h2 {
  font-size: 4em;
  font-weight: 900;
}
.match-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.match-item {
  background: white;
  padding: 20px;
  border-radius: 20px;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex: 1 1 250px;
}
.match-item span {
  display: block;
}
.match-vs {
  font-size: 1.2em;
  font-weight: 700;
  color: #ffc300;
  margin: 10px 0;
}

/* =====================================
   ✅ FOOTER
===================================== */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #004878;
  color: white;
  font-size: 0.8em;
}

/* =====================================
   ✅ RESPONSIVE
===================================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
  }
  .header-left {
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
  }
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }
  nav.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 1.5em;
  }
  .hero-content button {
    font-size: 0.9em;
    margin-left: 0;
  }
  .hero-logo img {
    max-width: 150px;
    margin: 20px 0 0;
  }
}

/* ======== NEWS GRID ======== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.news-card {
  background: #f1f1f1;
  border-radius: 18px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  position: relative;
}

.news-card h3 {
  margin-top: 0;
  font-weight: 900;
  font-size: 1.7rem;
}

.news-date {
  font-size: 0.95em;
  color: #888;
  margin-bottom: 0.8em;
}

.news-content {
  color: #222;
  font-size: 1.13rem;
  line-height: 1.5;
  min-height: 2.7em;
  max-width: 100%;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.read-more {
  background: #ffc300;
  color: #1e1e1e;
  border: none;
  border-radius: 1.5rem;
  padding: 8px 24px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 0.5em;
  align-self: flex-start;
  transition: all 0.2s;
}
.read-more:hover { background: #ffdb58; }

.news-tags {
  margin-top: 0.3em;
  font-size: 0.97em;
}
.news-tag {
  color: #004878;
  font-style: italic;
  opacity: 0.5;
  font-size: 0.8rem;
  background: #fff;
  border-radius: 12px;
  padding: 2px 12px;
  margin-right: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-weight: bold;
}
.news-tag:hover {
  color: #fff;
  background: #ffdb58;
  transform: scale(1.2);
}

.pagination {
  text-align: center;
  margin: 1.5rem 0 2rem;
}
.pagination a {
  display: inline-block;
  margin: 0 6px;
  color: #004878;
  padding: 5px 13px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  background: #e7eef9;
  transition: background 0.2s, color 0.2s;
}
.pagination a.active,
.pagination a:hover {
  background: #ffc300;
  color: #1e1e1e;
}

.matches-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  min-width: 0;
  width: 100%;
  max-width: 1100px;
}

.match-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.4rem 1.6rem 1rem 1.6rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 0;
}

.match-type-icon {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1.25em;
  opacity: 0.93;
}

.teams {
  display: flex;
  align-items: center;
  gap: 1.1em;
  margin: 1.3em 0 0.8em 0;
  font-size: 1.18em;
  font-weight: bold;
}
.team.our-team { color: #004878; }
.vs { font-weight: 900; color: #ffc300; }

.match-meta {
  text-align: center;
  color: #222;
  font-size: 1em;
  margin-bottom: 0.8em;
}

.match-score {
  margin-top: 0.7em;
  background: #ffc300;
  color: #004878;
  border-radius: 18px;
  padding: 0.25em 1.1em;
  font-weight: 900;
  font-size: 1.12em;
  letter-spacing: 1px;
}

.slider-btn {
  background: #fff;
  color: #004878;
  border: 2px solid #004878;
  border-radius: 50%;
  padding: 9px 13px;
  font-size: 1.25em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.slider-btn:hover {
  background: #ffc300;
  color: #1e1e1e;
  border-color: #ffc300;
}

@media (max-width: 900px) {
  .match-grid {
    grid-template-columns: 1fr;
  }
  .matches-slider {
    flex-direction: column;
    gap: 0.4rem;
  }
}
