/* =====================================================
   MAGNY FC 78 - Design officiel
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Couleurs principales */
  --bleu-fonce: #1a2744;
  --bleu-marine: #0d1829;
  --bleu-header: #1e3a5f;
  --or: #c9a227;
  --or-hover: #ddb82e;
  --turquoise: #5ce1e6;
  --turquoise-hover: #7eeef2;
  --blanc: #ffffff;
  --gris-clair: #f5f5f5;
  --gris: #888888;
  --gris-fonce: #333333;
  
  /* Typographie */
  --font-titre: 'Oswald', sans-serif;
  --font-texte: 'Open Sans', sans-serif;
  
  /* Spacing */
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-texte);
  background: var(--blanc);
  color: var(--gris-fonce);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =====================================================
   HEADER
   ===================================================== */
header {
  background: var(--bleu-fonce);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--or);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 55px;
  height: 55px;
  background-image: url('/assets/images/logo.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: var(--font-titre);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--blanc);
  letter-spacing: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a {
  font-family: var(--font-texte);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blanc);
  padding: 10px 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--or);
}

nav a.active {
  color: var(--or);
}

.btn-connexion {
  background: var(--or);
  color: var(--bleu-fonce) !important;
  padding: 12px 30px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  border-radius: 50px;
}

.btn-connexion:hover {
  background: var(--or-hover);
  transform: translateY(-2px);
}

/* Menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bleu-fonce);
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  nav.active {
    display: flex;
  }
  
  nav a {
    padding: 15px 20px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .btn-connexion {
    margin-top: 10px;
  }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  min-height: 100vh;
  /* Background image is now set dynamically via JavaScript */
  background-color: var(--bleu-fonce);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  position: relative;
}

.hero-content {
  max-width: 900px;
  padding: 40px;
}

.hero h1 {
  font-family: var(--font-titre);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 300;
  color: var(--blanc);
  letter-spacing: 8px;
  line-height: 1;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero-subtitle {
  font-family: var(--font-texte);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: 50px;
  letter-spacing: 1px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--turquoise);
  color: var(--bleu-fonce);
  font-family: var(--font-texte);
  font-size: 1rem;
  font-weight: 600;
  padding: 18px 50px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background: var(--turquoise-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(92, 225, 230, 0.3);
}

.btn-hero svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-hero:hover svg {
  transform: translateX(5px);
}

/* =====================================================
   SECTIONS COMMUNES
   ===================================================== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-titre);
  font-size: 3rem;
  font-weight: 500;
  color: var(--bleu-fonce);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-line {
  width: 80px;
  height: 3px;
  background: var(--or);
  margin: 0 auto;
}

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats-section {
  background: var(--bleu-fonce);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
  color: var(--blanc);
}

.stat-value {
  font-family: var(--font-titre);
  font-size: 4rem;
  font-weight: 300;
  color: var(--turquoise);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .stat-value {
    font-size: 3rem;
  }
}

/* =====================================================
   ÉQUIPES
   ===================================================== */
.equipes-section {
  background: var(--gris-clair);
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 50px;
}

.filter-btn {
  font-family: var(--font-texte);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 28px;
  background: var(--blanc);
  color: var(--bleu-fonce);
  border: 2px solid var(--bleu-fonce);
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--bleu-fonce);
  color: var(--blanc);
}

.equipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.equipe-card {
  background: var(--blanc);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.equipe-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.equipe-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.equipe-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.equipe-card:hover .equipe-card-image img {
  transform: scale(1.05);
}

.equipe-card-header {
  background: var(--bleu-fonce);
  padding: 30px;
  text-align: center;
}

.equipe-card-header h3 {
  font-family: var(--font-titre);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--blanc);
  letter-spacing: 2px;
}

.equipe-card-body {
  padding: 25px;
}

.equipe-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
}

.badge-or {
  background: var(--or);
  color: var(--bleu-fonce);
}

.badge-bleu {
  background: var(--bleu-fonce);
  color: var(--blanc);
}

.badge-argent {
  background: #c0c0c0;
  color: #333;
}

.badge-bronze {
  background: #cd7f32;
  color: #fff;
}

.equipe-info {
  font-size: 0.9rem;
  color: var(--gris);
}

.equipe-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* =====================================================
   ACTUALITÉS
   ===================================================== */
.actualites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1200px) {
  .actualites-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .actualites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .actualites-grid {
    grid-template-columns: 1fr;
  }
}

.actu-card {
  background: var(--blanc);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.actu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.actu-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--transparent);
}

.actu-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.actu-card:hover .actu-image img {
  transform: scale(1.05);
}

/* Lien Instagram en bas des cartes */
.instagram-link-bottom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.instagram-link-bottom:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(188, 24, 136, 0.4);
}

.instagram-link-bottom img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.actu-body {
  padding: 25px;
}

.actu-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.8rem;
}

.actu-category {
  background: var(--turquoise);
  color: var(--bleu-fonce);
  padding: 4px 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
}

.actu-date {
  color: var(--gris);
}

.actu-title {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--bleu-fonce);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.actu-excerpt {
  font-size: 0.9rem;
  color: var(--gris);
  line-height: 1.7;
}

/* =====================================================
   CALENDRIER / MATCHS
   ===================================================== */
.match-card {
  display: flex;
  background: var(--blanc);
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.match-card:hover {
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.match-date {
  background: var(--bleu-fonce);
  color: var(--blanc);
  padding: 20px 25px;
  text-align: center;
  min-width: 100px;
}

.match-date .day {
  font-family: var(--font-titre);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.match-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.match-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.match-teams .team.highlight {
  color: var(--bleu-fonce);
}

.match-teams .vs {
  color: var(--gris);
  font-weight: 400;
}

.match-teams .match-score {
  background: var(--turquoise);
  color: var(--bleu-fonce);
  padding: 5px 15px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 20px;
}

.match-card.match-termine {
  opacity: 0.85;
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.match-time {
  color: var(--gris);
}

.match-competition {
  background: var(--or);
  color: var(--bleu-fonce);
  padding: 5px 15px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
}

.match-category {
  background: var(--turquoise);
  color: var(--bleu-fonce);
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
  background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu-marine));
  padding: 150px 0 80px;
  text-align: center;
  margin-top: var(--header-height);
}

.page-header h1 {
  font-family: var(--font-titre);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--blanc);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-family: var(--font-titre);
  font-size: 2rem;
  color: var(--bleu-fonce);
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--gris-clair);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: var(--blanc);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-item h3 {
  font-family: var(--font-titre);
  font-size: 1.1rem;
  color: var(--bleu-fonce);
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--gris);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--bleu-fonce);
  padding: 40px;
}

.contact-form h2 {
  font-family: var(--font-titre);
  font-size: 2rem;
  color: var(--blanc);
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--blanc);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 15px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--blanc);
  font-family: var(--font-texte);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--turquoise);
  background: rgba(255,255,255,0.15);
}

.form-control::placeholder {
  color: rgba(255,255,255,0.5);
}

/* Style pour les options du select (dropdown) */
select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

select.form-control option {
  background: var(--bleu-fonce);
  color: var(--blanc);
  padding: 10px;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--turquoise);
  color: var(--bleu-fonce);
  font-family: var(--font-texte);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: var(--turquoise-hover);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--bleu-marine);
  color: var(--blanc);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo .logo-icon {
  width: 60px;
  height: 60px;
}

.footer-logo .logo-text {
  font-size: 1.2rem;
}

.footer-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col h4 {
  font-family: var(--font-titre);
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 25px;
  color: var(--or);
}

.footer-col a,
.footer-col p {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--turquoise);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link svg,
.social-link img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}

.social-link:hover {
  transform: translateY(-3px);
}

.social-facebook:hover {
  background: #1877f2;
}

.social-instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-twitter:hover {
  background: #000;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo, .social-links {
    justify-content: center;
  }
}

/* =====================================================
   GALERIE
   ===================================================== */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.galerie-item {
  aspect-ratio: 1;
  background: var(--bleu-fonce);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galerie-item:hover img {
  transform: scale(1.1);
}

.galerie-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.galerie-item:hover::after {
  background: rgba(26, 39, 68, 0.3);
}

@media (max-width: 900px) {
  .galerie-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   PARTENAIRES
   ===================================================== */
.partenaires-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: center;
}

.partenaire-item {
  background: var(--blanc);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  min-height: 180px;
  border-radius: 10px;
}

.partenaire-item:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

/* Image directe dans partenaire-item (page d'accueil) */
.partenaire-item > img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partenaire-logo {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
}

.partenaire-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partenaire-info h3 {
  font-family: var(--font-titre);
  font-size: 1rem;
  color: var(--bleu-fonce);
  margin-bottom: 10px;
}

.partenaire-info .badge {
  border-radius: 15px;
}

/* Carte partenaire cliquable */
a.partenaire-clickable {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.partenaire-clickable:hover {
  box-shadow: 0 10px 30px rgba(26, 77, 146, 0.15);
  border: 2px solid var(--or);
}

a.partenaire-clickable::after {
  content: '↗';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1rem;
  color: var(--or);
  opacity: 0;
  transition: opacity 0.3s ease;
}

a.partenaire-clickable {
  position: relative;
}

a.partenaire-clickable:hover::after {
  opacity: 1;
}

@media (max-width: 900px) {
  .partenaires-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .partenaires-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   BOUTONS GÉNÉRAUX
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  font-family: var(--font-texte);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--turquoise);
  color: var(--bleu-fonce);
}

.btn-primary:hover {
  background: var(--turquoise-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--or);
  color: var(--bleu-fonce);
}

.btn-secondary:hover {
  background: var(--or-hover);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--bleu-fonce);
  color: var(--bleu-fonce);
}

.btn-outline:hover {
  background: var(--bleu-fonce);
  color: var(--blanc);
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.mt-4 { margin-top: 40px; }
.mb-4 { margin-bottom: 40px; }

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--gris-clair);
  border-top-color: var(--turquoise);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =====================================================
   GALERIE - ALBUMS GRID
   ===================================================== */
.galerie-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.album-card {
  background: var(--blanc);
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 10px;
  display: block;
  text-decoration: none;
  color: inherit;
}

.album-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.album-image {
  position: relative;
  height: 220px;
  background: var(--bleu-fonce);
  overflow: hidden;
}

.album-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.album-card:hover .album-image img {
  transform: scale(1.1);
}

.album-count {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0,0,0,0.7);
  color: var(--blanc);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
}

.album-category {
  position: absolute;
  top: 15px;
  left: 15px;
  color: var(--blanc);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
}

.album-instagram-badge {
  position: absolute;
  bottom: 15px;
  right: 70px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.album-instagram-badge img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.album-info {
  padding: 25px;
}

.album-info h3 {
  font-family: var(--font-titre);
  font-size: 1.4rem;
  color: var(--bleu-fonce);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.album-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.album-date, .album-year {
  font-size: 0.85rem;
  color: var(--gris);
}

.album-info p {
  font-size: 0.9rem;
  color: var(--gris);
  line-height: 1.6;
}

/* Galerie filtres avec couleurs */
.galerie-filters .filter-btn:hover,
.galerie-filters .filter-btn.active {
  background: var(--cat-color, var(--bleu-fonce));
  border-color: var(--cat-color, var(--bleu-fonce));
  color: var(--blanc);
}

/* =====================================================
   PAGE ALBUM DETAIL
   ===================================================== */
.album-category-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--blanc);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 15px;
}

.album-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gris-clair);
}

.album-meta-info {
  display: flex;
  gap: 25px;
  color: var(--gris);
  font-size: 0.95rem;
}

.album-meta-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.album-actions {
  display: flex;
  gap: 10px;
}

.album-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.album-photo-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.album-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.album-photo-item:hover img {
  transform: scale(1.05);
}

.album-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--gris-clair);
  border-radius: 10px;
  color: var(--gris);
}

@media (max-width: 768px) {
  .album-header-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .album-meta-info {
    flex-direction: column;
    gap: 10px;
  }

  .album-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
}

/* =====================================================
   HISTOIRE - BANNER LINK
   ===================================================== */
.histoire-banner {
  margin-bottom: 40px;
}

.histoire-link {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--bleu-fonce), #2a4a6a);
  padding: 25px 35px;
  border-radius: 10px;
  color: var(--blanc);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.histoire-link:hover {
  border-color: var(--or);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(26, 39, 68, 0.3);
}

.histoire-icon {
  font-size: 2.5rem;
}

.histoire-text {
  flex: 1;
}

.histoire-text strong {
  display: block;
  font-family: var(--font-titre);
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.histoire-text span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.histoire-arrow {
  font-size: 2rem;
  color: var(--or);
  transition: transform 0.3s ease;
}

.histoire-link:hover .histoire-arrow {
  transform: translateX(10px);
}

/* =====================================================
   HISTOIRE - PAGE HEADER
   ===================================================== */
.histoire-header {
  background: linear-gradient(135deg,
    rgba(26, 39, 68, 0.95),
    rgba(13, 24, 41, 0.95)
  ), url('/assets/images/hero-bg.jpg') center/cover;
  padding-bottom: 100px;
}

.histoire-header h1 {
  color: var(--or);
}

/* =====================================================
   HISTOIRE - INTRO SECTION
   ===================================================== */
.histoire-intro {
  background: var(--gris-clair);
  padding: 80px 0;
}

.histoire-intro-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.histoire-logo .logo-icon.large {
  width: 150px;
  height: 150px;
  background-color: var(--bleu-fonce);
  border: 5px solid var(--or);
}

.histoire-intro-text h2 {
  font-family: var(--font-titre);
  font-size: 2.5rem;
  color: var(--bleu-fonce);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.histoire-intro-text p {
  font-size: 1.1rem;
  color: var(--gris-fonce);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .histoire-intro-content {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================================================
   HISTOIRE - TIMELINE
   ===================================================== */
.histoire-timeline-section {
  padding: 100px 0;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--or);
  transform: translateX(-50%);
}

.timeline-decade {
  position: relative;
  margin-bottom: 60px;
}

.timeline-decade-header {
  text-align: center;
  margin-bottom: 30px;
}

.decade-badge {
  display: inline-block;
  background: var(--or);
  color: var(--bleu-fonce);
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 15px 40px;
  letter-spacing: 3px;
  position: relative;
  z-index: 2;
  border-radius: 30px;
}

.timeline-albums {
  display: grid;
  gap: 30px;
}

.timeline-album-card {
  background: var(--blanc);
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 200px 1fr;
  align-items: center;
  transition: all 0.3s ease;
}

.timeline-album-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.timeline-year {
  background: var(--bleu-fonce);
  color: var(--turquoise);
  font-family: var(--font-titre);
  font-size: 2rem;
  font-weight: 500;
  padding: 30px 25px;
  text-align: center;
  min-width: 100px;
}

.timeline-album-image {
  height: 150px;
  overflow: hidden;
}

.timeline-album-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-album-info {
  padding: 25px 30px;
}

.timeline-album-info h3 {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  color: var(--bleu-fonce);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.timeline-album-info p {
  font-size: 0.9rem;
  color: var(--gris);
  margin-bottom: 10px;
  line-height: 1.6;
}

.timeline-album-info .photo-count {
  font-size: 0.8rem;
  color: var(--turquoise);
  font-weight: 600;
}

@media (max-width: 900px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-album-card {
    grid-template-columns: 1fr;
  }

  .timeline-year {
    padding: 15px;
    font-size: 1.5rem;
  }

  .timeline-album-image {
    height: 200px;
  }
}

/* =====================================================
   HISTOIRE - STATS SECTION
   ===================================================== */
.histoire-stats {
  background: var(--bleu-fonce);
  padding: 80px 0;
}

.histoire-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.histoire-stats .stat-item {
  text-align: center;
}

.histoire-stats .stat-value {
  font-family: var(--font-titre);
  font-size: 3.5rem;
  color: var(--or);
  margin-bottom: 10px;
}

.histoire-stats .stat-label {
  color: var(--blanc);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .histoire-stats .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   HISTOIRE - MOMENTS CLÉS
   ===================================================== */
.histoire-moments {
  background: var(--gris-clair);
  padding: 100px 0;
}

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

.moment-card {
  background: var(--blanc);
  padding: 40px 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  border-left: 4px solid var(--or);
  transition: all 0.3s ease;
}

.moment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.moment-year {
  font-family: var(--font-titre);
  font-size: 3rem;
  color: var(--turquoise);
  font-weight: 300;
  margin-bottom: 15px;
}

.moment-card h3 {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  color: var(--bleu-fonce);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.moment-card p {
  font-size: 0.95rem;
  color: var(--gris);
  line-height: 1.7;
}

/* =====================================================
   HISTOIRE - EMPTY STATE
   ===================================================== */
.histoire-empty {
  text-align: center;
  padding: 80px 40px;
  background: var(--gris-clair);
  border-radius: 10px;
}

.histoire-empty p {
  font-size: 1.1rem;
  color: var(--gris);
  margin-bottom: 10px;
}

/* =====================================================
   LIGHTBOX - Affichage images en grand format
   ===================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--or);
  transform: scale(1.1);
}

/* Boutons de navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 60px;
  height: 80px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  color: var(--or);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Compteur d'images */
.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 20px;
  border-radius: 20px;
  z-index: 10001;
}

/* Responsive lightbox navigation */
@media (max-width: 768px) {
  .lightbox-nav {
    width: 50px;
    height: 60px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-counter {
    bottom: 20px;
    font-size: 0.9rem;
    padding: 6px 15px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
  }
}

/* Curseur pointer sur les images cliquables */
.actu-image img,
.album-image img,
.galerie-grid img,
.album-photos-grid img,
.album-photo-item img,
.equipe-card img {
  cursor: zoom-in;
}

/* =====================================================
   CALENDRIER & RÉSULTATS - Onglets style FFF
   ===================================================== */
.calendrier-section {
  padding-bottom: 60px;
}

.calendrier-tabs {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  background: var(--gris-clair);
  border-radius: 8px;
  padding: 8px;
}

.tab-btn {
  padding: 12px 30px;
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
  border: none;
  color: var(--gris-fonce);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.tab-btn:hover {
  background: rgba(26, 39, 68, 0.1);
}

.tab-btn.active {
  background: var(--bleu-fonce);
  color: var(--blanc);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-section-title {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  color: var(--bleu-fonce);
  margin-bottom: 30px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Match avec score */
.match-card.match-termine .match-score {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bleu-fonce);
  background: var(--or);
  padding: 5px 15px;
  border-radius: 4px;
}

.match-result {
  font-family: var(--font-titre);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}

.match-result-victoire {
  background: #10b981;
  color: white;
}

.match-result-nul {
  background: #f59e0b;
  color: white;
}

.match-result-defaite {
  background: #ef4444;
  color: white;
}

/* =====================================================
   CLASSEMENT TABLE
   ===================================================== */
.classements-container {
  max-width: 1000px;
  margin: 0 auto;
}

.classement-group {
  margin-bottom: 40px;
  background: var(--blanc);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.classement-title {
  font-family: var(--font-titre);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blanc);
  background: var(--bleu-fonce);
  padding: 15px 20px;
  margin: 0;
}

.classement-table-wrapper {
  overflow-x: auto;
}

.classement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.classement-table th {
  background: var(--gris-clair);
  color: var(--bleu-fonce);
  font-family: var(--font-titre);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 12px 8px;
  text-align: center;
  border-bottom: 2px solid var(--or);
}

.classement-table th:nth-child(2) {
  text-align: left;
  padding-left: 15px;
}

.classement-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.classement-table td.team-name {
  text-align: left;
  padding-left: 15px;
  font-weight: 500;
}

.classement-table td.position {
  font-family: var(--font-titre);
  font-weight: 700;
  color: var(--bleu-fonce);
}

.classement-table td.points strong {
  color: var(--bleu-fonce);
  font-size: 1.1rem;
}

.classement-table td.positive {
  color: #10b981;
  font-weight: 600;
}

.classement-table td.negative {
  color: #ef4444;
  font-weight: 600;
}

.classement-table tbody tr:hover {
  background: rgba(201, 162, 39, 0.08);
}

.classement-table tbody tr.highlight-row {
  background: rgba(201, 162, 39, 0.15);
}

.classement-table tbody tr.highlight-row:hover {
  background: rgba(201, 162, 39, 0.25);
}

.classement-table tbody tr.highlight-row td.team-name {
  color: var(--bleu-fonce);
  font-weight: 700;
}

/* Bouton équipe dans le calendrier */
.equipe-btn {
  transition: all 0.3s ease;
}

.equipe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.equipe-btn.equipe-btn-active {
  background: var(--bleu-fonce) !important;
  color: var(--blanc) !important;
  box-shadow: 0 4px 12px rgba(26, 39, 68, 0.3);
}

/* Sous-tabs équipe */
.equipe-sub-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  background: var(--gris-clair);
  border-radius: 8px;
  padding: 5px;
}

.equipe-sub-tabs .tab-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Footer calendrier */
.calendrier-footer {
  margin-top: 50px;
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.sync-info {
  color: var(--gris);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.fff-link {
  color: var(--bleu-fonce);
  font-weight: 600;
  text-decoration: underline;
}

.fff-link:hover {
  color: var(--or);
}

/* Responsive calendrier */
@media (max-width: 768px) {
  .calendrier-tabs {
    gap: 3px;
    padding: 5px;
  }

  .tab-btn {
    padding: 10px 15px;
    font-size: 0.85rem;
    flex: 1;
    min-width: 80px;
  }

  .classement-table {
    font-size: 0.85rem;
  }

  .classement-table th,
  .classement-table td {
    padding: 8px 5px;
  }

  .classement-title {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .tab-section-title {
    font-size: 1.2rem;
  }

  /* Match cards responsive */
  .match-card {
    flex-direction: column;
  }

  .match-date {
    padding: 12px 15px;
    min-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .match-date .day {
    font-size: 1.5rem;
  }

  .match-content {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    gap: 12px;
  }

  .match-teams {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .match-teams .team {
    word-break: break-word;
    font-size: 0.95rem;
  }

  .match-teams .vs,
  .match-teams .match-score {
    font-size: 1.1rem;
  }

  .match-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .match-category,
  .match-competition {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .classement-table th:nth-child(n+5),
  .classement-table td:nth-child(n+5) {
    display: none;
  }

  /* Match cards mobile */
  .match-date {
    padding: 10px;
  }

  .match-date .day {
    font-size: 1.3rem;
  }

  .match-date .month {
    font-size: 0.7rem;
  }

  .match-content {
    padding: 12px;
  }

  .match-teams .team {
    font-size: 0.9rem;
  }

  .match-time {
    font-size: 0.85rem;
  }
}
