/* =====================================
   ✅ 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;
}

/* ================================
   DROPDOWN NAVIGATION
================================ */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-drop-btn {
  color: #004878;
  font-weight: bold;
  background: none;
  border: none;
  padding: 3px 13px;
  margin-right: 6px;
  font-size: 1.15em;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-drop-btn:hover {
  background: #ffc300;
  color: #fff;
  transform: scale(1.1);
}

.nav-drop-btn.active {
  background-color: #004878b2;
  color: #fff;
  transform: scale(0.9);
}

/* Contenu du dropdown */
.nav-drop-content {
  display: none;
  position: absolute;
  background: #ffffff;
  min-width: 180px;
  border-radius: 14px;
  padding: 8px 0;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  z-index: 100;
}

.nav-drop-content a {
  color: #004878;
  padding: 10px 15px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.nav-drop-content a:hover {
  background: #ffc300;
  color: #fff;
  transform: translateX(4px);
}

/* Affichage */
.nav-dropdown:hover .nav-drop-content {
  display: block;
}

/* Mobile */
@media(max-width: 768px){
  .nav-dropdown { width: 100%; }
  .nav-drop-content {
    position: relative;
    box-shadow: none;
    margin-top: 4px;
  }
}
.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .nav-drop-content,
.nav-drop-content:hover {
  display: block;
}
.nav-drop-content {
  margin-top: -4px; /* rapproche le menu du bouton */
}
.nav-dropdown .nav-drop-btn:hover {
  transform: none;
}

/* 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: 900px;
    margin: 30px auto 0;
    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: #fff;
  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;
  }
}

    /* ====== Cartes catégories ====== */
    .teams-wrapper { padding: 2rem; max-width: 1200px; margin: 0 auto; }
    .teams-title { font-size: 3rem; font-weight: 900; color:#004878; text-align:center; margin: 0 0 1.5rem; }
    .teams-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.2rem;
    }
    .team-card {
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.08);
      overflow: hidden;
      transform: translateY(20px);
      opacity: 0;
      animation: fadeUp 0.6s ease both;
      transition: transform 0.18s ease, box-shadow 0.18s ease;
      cursor: pointer;
    }
    .team-card:hover {
      transform: translateY(-2px) scale(1.01);
      box-shadow: 0 10px 22px rgba(0,0,0,0.10);
    }
    .team-head {
      display: flex; align-items: center; justify-content: space-between;
      gap: .8rem; padding: 1.1rem 1.2rem; background: #f7f9fd;
    }
    .team-name { font-weight: 900; font-size: 1.25rem; color:#004878; }
    .team-meta { font-size: .95rem; color:#222; display:flex; align-items:center; gap:.6rem; }
    .coach { font-style: italic; opacity:.9; }
    .toggle-icon { color:#004878; transition: transform .2s ease; }
    .team-card.expanded .toggle-icon { transform: rotate(180deg); }
    .team-body {
      max-height: 0; overflow: hidden; transition: max-height .35s ease;
      padding: 0 1.2rem;
    }
    .team-card.expanded .team-body { padding: 0 1.2rem 1.2rem; }
    .info-row {
      background: #f1f1f1; border-radius: 14px; padding: .85rem 1rem; margin-top: .9rem;
      display:flex; align-items:center; gap:.6rem; font-weight:600;
    }
    .info-row .label { color:#004878; }
    .info-row .value { color:#1e1e1e; }
    .match-block {
      background:#fff; border:1px solid #eee; border-radius: 14px; padding: .9rem 1rem; margin-top: .9rem;
    }
    .match-header { display:flex; align-items:center; gap:.5rem; font-weight:800; margin-bottom:.5rem; color:#004878; }
    .match-line { display:flex; align-items:center; gap:.55rem; margin:.25rem 0; }
    .score-pill {
      background:#ffc300; color:#004878; font-weight:900; border-radius: 999px; padding: .15rem .6rem;
    }
    .badge {
      display:inline-flex; align-items:center; gap:.4rem;
      background:#e7eef9; color:#004878; border-radius: 999px; padding: .15rem .6rem; font-weight:700; font-size:.92rem;
    }
    @keyframes fadeUp { to { transform: translateY(0); opacity: 1; } }
    @media (prefers-reduced-motion: reduce) {
      .team-card { animation: none; transform:none; opacity:1; }
      .team-body { transition: none; }
    }

/* ===========================
   TABLEAU JOUEURS AMÉLIORÉ
=========================== */

.players-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.players-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.players-table th {
    color: #3e3e3e;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 0.98rem;
}

.players-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  line-height: 1.6;
  background: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.players-table tr:nth-child(even) td {
  background: #f8fafc;
}

.players-table tr:hover td {
  background: #e7eef9;
  transform: translateX(4px);
}

/* ===========================
   MATCHS – TABLEAU STYLE FFFB
=========================== */

.matches-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.matches-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.matches-table th {
  background: #f5f5f5;
  color: #222;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid #e2e2e2;
}

.matches-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  vertical-align: middle;
  transition: background 0.18s ease, transform 0.18s ease;
}

.matches-table tr:last-child td {
  border-bottom: none;
}

.match-row:hover td {
  background: #f7faff;
  transform: translateX(3px);
}

/* Date (23 / nov.) */
.match-date-cell {
  width: 90px;
  text-align: center;
  font-weight: 700;
  color: #004878;
}
.match-month {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Équipes */
.match-team-cell {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

/* Résultat */
.match-result-cell {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Couleur victoire / défaite */
.score-win {
  color: #1fa463;
}
.score-lose {
  color: #d93025;
}

/* Compétition */
.match-comp-cell {
  text-align: right;
}

.badge-champ {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffc938;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Icône domicile / extérieur */
.match-lieu-icon {
  font-size: 0.9rem;
  color: #cacaca;
  opacity: 0.8;
}

/* Petite animation d'apparition des lignes */
.match-row {
  animation: rowFadeUp 0.4s ease forwards;
  opacity: 0;
}
.match-row:nth-child(1) { animation-delay: 0.02s; }
.match-row:nth-child(2) { animation-delay: 0.04s; }
.match-row:nth-child(3) { animation-delay: 0.06s; }
.match-row:nth-child(4) { animation-delay: 0.08s; }

@keyframes rowFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Entraîneur + carte effectif un peu plus aérée */
.effectif-card {
  padding-bottom: 2.5rem;
}
.coach-line {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 200;
}
/* ===========================
   MATCHS ACCUEIL – DOUBLE TABLEAU
=========================== */

.matches-columns {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.matches-column {
  flex: 1 1 0;
  min-width: 320px;
}

.matches-column h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #000000;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  justify-content: flex-start;
}

.matches-column h3 i {
  font-size: 1.1em;
  color: #383838;
}

/* Pagination compacte pour les tableaux de matchs */
.small-pagination {
  margin-top: 1rem;
}

.small-pagination a {
  font-size: 0.85rem;
  padding: 4px 10px;
}

/* ===========================
   ACTUALITÉS – LISTE SIMPLE
=========================== */

.news-list {
  max-width: 900px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===========================
   SECTION CONTACT ACCUEIL
=========================== */

.contact-section {
  background: #f7f9fd;
  padding: 3rem 2rem 4rem;
}

.contact-card {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 2.3rem 2.5rem;
  text-align: center;
}

.contact-card h2 {
  font-size: 2.3rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  color: #383838;
}

.contact-card h2 i {
  margin-right: .5rem;
  color: #3a3a3a;
}

.contact-intro {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.7rem;
}

.contact-infos {
  font-size: 0.98rem;
  color: #222;
  margin-bottom: 1.7rem;
}

.contact-infos p {
  margin: 0.3rem 0;
}

.contact-infos i {
  color: #004878;
  margin-right: .4rem;
}

.contact-infos a {
  color: #004878;
  font-weight: 700;
  text-decoration: none;
}

.contact-infos a:hover {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  justify-content: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #ffc300;
  color: #1e1e1e;
  border-radius: 999px;
  padding: 0.65rem 1.7rem;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-btn i {
  font-size: 1.05em;
}

.contact-btn:hover {
  background: #ffdb58;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 7px 18px rgba(0,0,0,0.16);
}

/* Responsive */
@media (max-width: 900px) {
  .matches-columns {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .contact-card {
    padding: 1.8rem 1.6rem;
  }
}
/* ===========================
   ESPACE MEMBRE – ACCESS
   (design léger, responsive)
=========================== */
.member-access {
  min-height: 70vh;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #004878 0%, #0b2740 40%, #111827 100%);
}

.member-card {
  width: 100%;
  max-width: 980px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  overflow: hidden;
}

.member-left {
  padding: 2.2rem 2.4rem;
}

.member-right {
  background: radial-gradient(circle at top, #ffc300 0, #f59e0b 25%, #004878 75%);
  color: #fff;
  padding: 2.2rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.member-tab {
  flex: 1;
  text-align: center;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 2px solid #004878;
  font-weight: 800;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  text-decoration: none;
  color: #004878;
  background: #ffffff;
  transition: all .18s ease;
}

.member-tab.active {
  background: #004878;
  color: #ffffff;
  transform: translateY(-1px);
}

.member-tab:hover {
  transform: translateY(-1px);
}

/* Messages */
.alert {
  border-radius: 12px;
  padding: .85rem 1rem;
  font-size: .92rem;
  margin-bottom: 1rem;
}
.alert-error {
  background: #ffebe8;
  border-left: 4px solid #d93025;
  color: #5f2120;
}
.alert-success {
  background: #e7fce7;
  border-left: 4px solid #1fa463;
  color: #0b3b22;
}

/* Formulaires */
.member-form h2 {
  margin: 0 0 .3rem 0;
  font-size: 1.45rem;
  font-weight: 900;
  color: #111827;
}
.member-form p.sub {
  margin: 0 0 1.3rem 0;
  font-size: .92rem;
  color: #4b5563;
}

.member-form label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: #003355;
  margin-top: .75rem;
}

.member-form input,
.member-form select {
  width: 100%;
  margin-top: .25rem;
  padding: .7rem .9rem;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: .96rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.member-form input:focus,
.member-form select:focus {
  border-color: #004878;
  box-shadow: 0 0 0 2px rgba(0,72,120,0.12);
}

.member-form small {
  font-size: .8rem;
  color: #6b7280;
}

.btn-primary {
  margin-top: 1.4rem;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: .85rem 1rem;
  font-weight: 800;
  font-size: .98rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  background: #ffc300;
  color: #111827;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.26);
  background: #ffdd55;
}

/* Colonnes en dessous de 800px */
@media (max-width: 800px) {
  .member-card {
    grid-template-columns: 1fr;
  }
  .member-right {
    display: none;
  }
}

/* Colonne droite */
.member-right h3 {
  margin: 0 0 .5rem;
  font-size: 1.5rem;
  font-weight: 900;
}
.member-right p {
  font-size: .98rem;
  margin: 0 0 .7rem;
}
.member-points {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
}
.member-points li {
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.member-points i {
  font-size: .9rem;
}
.member-tagline {
  font-size: .82rem;
  opacity: .85;
  margin-top: 1rem;
}



/* ============================================
   📱 MODE MOBILE — STYLE APPLICATION (≤ 600px)
============================================ */
@media (max-width: 600px) {

  /* ----- Header ----- */
  header {
    padding: 1rem 1.2rem;
    flex-direction: row;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.25rem;
  }

  nav {
    display: none !important;
  }

  /* Menu burger centré et propre */
  .menu-toggle {
    font-size: 1.8rem;
    display: block;
  }

  /* ----- Sections ----- */
  h1, h2, h3 {
    text-align: left;
  }

  .hero {
    flex-direction: column;
    height: auto;
    padding: 2.2rem 1rem;
    text-align: center;
  }
  .hero-content {
    font-size: 1.1rem;
  }
  .hero-content h1 {
    font-size: 1.4rem;
  }
  .hero-logo img {
    max-width: 120px;
    margin-top: 1rem;
  }

  /* ----- Actualités ----- */
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem;
  }
  .news-card {
    padding: 1.3rem;
  }

  /* ----- Matchs ----- */
  .match-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .match-card {
    padding: 1.2rem;
  }

  /* ----- Équipes ----- */
  .teams-grid {
    grid-template-columns: 1fr !important;
  }

  /* ----- Tableau joueurs ----- */
  .players-table,
  .matches-table {
    display: block;
    overflow-x: auto;
    border-radius: 12px;
  }

  /* ============================================
     📱 NAVIGATION BAS DE PAGE (style App)
  ============================================= */
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: .6rem 0 .7rem;
    z-index: 9999;
  }

  .mobile-nav a {
    text-align: center;
    font-size: .74rem;
    color: #004878;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
  }

  .mobile-nav i {
    font-size: 1.35rem;
  }

  .mobile-nav a.active {
    color: #ffc300;
  }

  /* Evite que le contenu passe sous la nav mobile */
  body {
    padding-bottom: 80px;
  }
}
/* ==============================
   TABS STYLE iOS
============================== */
.ios-tabs {
  display: flex;
  gap: .4rem;
  padding: .6rem;
  background: #f3f4f6;
  border-radius: 999px;
  max-width: 420px;
  margin: 1rem auto 2rem;
  position: sticky;
  top: 70px;
  z-index: 50;
}

.ios-tab {
  flex: 1;
  text-align: center;
  padding: .55rem .7rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #004878;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .15s ease;
}

.ios-tab.active {
  background: #ffffff;
  color: #004878;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.ios-tab span {
  opacity: .8;
  font-size: .8rem;
}

@media (max-width: 600px) {
  .ios-tabs {
    top: 60px;
    margin-top: .5rem;
  }
}
/* Transitions globales entre mobile / desktop */
body.is-mobile .hero,
body.is-desktop .hero,
body.is-mobile header,
body.is-desktop header,
body.is-mobile .teams-wrapper,
body.is-desktop .teams-wrapper,
body.is-mobile .matches,
body.is-desktop .matches {
  transition: padding .25s ease, margin .25s ease, font-size .25s ease, height .25s ease;
}

/* Exemple : léger ajustement différent selon mode */
body.is-mobile .hero {
  padding: 2.2rem 1rem;
}

body.is-desktop .hero {
  padding: 3rem 4rem;
}

body.is-mobile .teams-wrapper {
  padding: 1.4rem 1rem;
}

body.is-desktop .teams-wrapper {
  padding: 2rem 3rem;
}
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 0;
  }

  nav.active {
    display: flex !important;
    animation: fadeIn 0.25s ease forwards;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.25rem !important; }

  .actus h2,
  .matches h2 {
    font-size: 2rem !important;
  }
}

@media (max-width: 600px) {

  .hero {
    flex-direction: column !important;
    text-align: center;
    padding: 3rem 1rem !important;
    height: auto !important;        /* plus de hauteur fixe */
    gap: 1.8rem;                     /* espace entre éléments */
  }

  .hero-content {
    max-width: 100%;
    font-size: 1.05rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: .5rem;
  }

  .hero-content button {
    margin: 0 auto;
    margin-top: .5rem;
    font-size: .9rem;
    padding: .8rem 1.4rem;
  }

  .hero-logo img {
    max-width: 130px !important;
    margin-top: .5rem;
  }
}
/* ===============================
   📱 MATCHS – MODE CARDS MOBILE
   (≤ 600px)
================================ */
@media (max-width: 600px) {

  .matches-wrapper {
    max-width: 100%;
    padding: 0 1rem;
  }

  .matches-table {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    width: 100%;
    display: block;
    overflow: visible;
  }

  .matches-table thead {
    display: none; /* on cache l'en-tête */
  }

  .matches-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .matches-table tr {
    display: block;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 8px 12px;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .matches-table td {
    display: block;
    border-bottom: none;
    padding: 3px 0;
    font-size: 0.82rem;
    background: transparent !important;
  }

  /* Date en haut de la carte */
  .match-date-cell {
    font-weight: 700;
    color: #004878;
    text-align: left;
    margin-bottom: 2px;
  }
  .match-month {
    display: inline;
    font-size: 0.78rem;
    opacity: 0.7;
    margin-left: 4px;
  }

  /* Équipes */
  .match-team-cell {
    display: block;
    margin: 4px 0;
  }

  /* Résultat */
  .match-result-cell {
    margin-top: 4px;
    text-align: left;
    font-weight: 800;
    font-size: 0.9rem;
  }

  /* Compétition + badge */
  .match-comp-cell {
    margin-top: 2px;
    text-align: left;
  }

  .badge-champ {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}
/* ===============================
   📱 JOUEURS – MODE CARDS MOBILE
   (≤ 600px)
================================ */
@media (max-width: 600px) {

  .players-table {
    width: 100%;
    display: block;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .players-table thead {
    display: none;
  }

  .players-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .players-table tr {
    display: block;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 8px 12px;
  }

  .players-table td {
    display: block;
    padding: 3px 0;
    border-bottom: none;
    font-size: 0.82rem;
    background: transparent !important;
  }

  .players-table tr:nth-child(even) td {
    background: transparent;
  }

  /* première colonne (nom du joueur) un peu plus mise en avant
     si c'est bien la première cellule de la ligne */
  .players-table tr td:first-child {
    font-weight: 700;
    font-size: 0.9rem;
    color: #004878;
    margin-bottom: 2px;
  }
}
