/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Ubuntu', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 60px;
  border-radius: 8px;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: #478ac9;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.nav a:hover,
.nav a.active {
  background-color: #478ac9;
  color: white;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #478ac9;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 80px 20px;
  background: linear-gradient(135deg, #478ac9, #2c3e50);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 500px;
  text-align: left;
  animation: fadeInLeft 1s ease-out;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  font-family: 'Ubuntu', sans-serif;
  line-height: 1.2;
  animation: slideInUp 1s ease-out;
}

.hero-text p {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 20px;
  opacity: 0.9;
  animation: slideInUp 1s ease-out 0.2s both;
}

.hero-text .btn {
  animation: slideInUp 1s ease-out 0.4s both;
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease-out;
}

.hero-image-inner {
  position: relative;
  transform: rotate(-3deg) scale(1.02);
  transition: transform 0.6s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-radius: 10px;
  overflow: hidden;
  max-width: 500px;
  width: 100%;
}

.hero-image-inner:hover {
  transform: rotate(-2deg) scale(1.05);
}

.hero-image-inner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.hero-image-inner:hover img {
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Générale */
.section {
  padding: 60px 20px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #478ac9;
  font-family: 'Ubuntu', sans-serif;
  text-align: center;
}

/* À propos - Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.8s ease, box-shadow 0.8s ease, opacity 0.8s ease;
  opacity: 0;
  transform: translateY(30px);
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon img {
  max-width: 60px;
  max-height: 60px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.stat-card h3 {
  color: #478ac9;
  margin: 10px 0;
  font-size: 1.2rem;
}

.stat-card .stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin: 5px 0 0;
  line-height: 1;
}

/* Rejoignez-nous */
.join {
  background-color: #478ac9;
  color: white;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.join .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.join-content {
  flex: 1;
  max-width: 500px;
  text-align: left;
}

.join-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-family: 'Ubuntu', sans-serif;
  line-height: 1.2;
  animation: fadeInLeft 1s ease-out;
}

.join-content p {
  font-size: 1.25rem;
  margin-bottom: 20px;
  opacity: 0.9;
  animation: fadeInLeft 1s ease-out 0.2s both;
}

.join-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease-out;
}

.join-image-inner {
  position: relative;
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.6s ease;
}

.join-image-inner:hover {
  transform: scale(1.03) rotate(-1deg);
}

.join-image-inner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
  object-fit: cover;
  object-position: center;
}

.join-image-inner:hover img {
  transform: scale(1.05);
}

/* Carte Google Maps */
.map {
  background-color: #f5f5f5;
  padding: 40px 20px;
}

.map-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Programme */
.program {
  padding: 80px 20px;
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.program .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.program-table-wrapper {
  max-width: 800px;
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background-color: white;
  position: relative;
  transform: translateY(0);
  transition: transform 0.6s ease;
}

.program-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}

.program-table th,
.program-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

.program-table th {
  background-color: rgba(30, 60, 120, 0.9);
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.program-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.9);
}

.program-table tr:nth-child(odd) {
  background-color: rgba(30, 60, 120, 0.85);
  color: white;
}

.program-table tr:nth-child(odd) td {
  color: white;
}

.program-table tr:hover {
  background-color: rgba(46, 138, 204, 0.2);
}

/* Animation au scroll */
.program-row {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.program-row.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Comité */
.committee {
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.committee .container {
  max-width: 1200px;
  margin: 0 auto;
}

.committee-grid {
  display: grid;
  grid-template-areas:
    "member1 member2 member3"
    "member4 member5 member6";
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.committee-member.member-1 { grid-area: member1; }
.committee-member.member-2 { grid-area: member2; }
.committee-member.member-3 { grid-area: member3; }
.committee-member.member-4 { grid-area: member4; }
.committee-member.member-5 { grid-area: member5; }
.committee-member.member-6 { grid-area: member6; }

/* Cartes du comité - Rectangle arrondi avec ombre */
.committee-member {
  background: white; /* Fond blanc */
  backdrop-filter: blur(10px); /* Effet de flou (optionnel) */
  padding: 25px;
  border-radius: 12px; /* Bord arrondi */
  box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* Ombre douce */
  text-align: center;
  transition: transform 0.6s ease, box-shadow 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.committee-member:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15); /* Ombre plus foncée au hover */
}

.committee-member.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Photos des membres du comité */
.member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #478ac9;
  object-fit: cover;
  object-position: center;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.member-photo:hover {
  transform: scale(1.05);
}

/* Texte et lien */
.committee-member h3 {
  color: #478ac9;
  margin: 10px 0;
  font-size: 1.2rem;
}

.committee-member p {
  margin: 5px 0;
  color: #666;
  font-size: 0.95rem;
}

.committee-member a {
  color: #478ac9;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.committee-member a:hover {
  text-decoration: underline;
  color: #3498db;
}

/* Sur mobile : cartes plus petites */
@media (max-width: 768px) {
  .committee-member {
    padding: 20px;
    gap: 10px;
  }

  .member-photo {
    width: 100px;
    height: 100px;
  }

  .committee-member h3 {
    font-size: 1.1rem;
  }

  .committee-member p,
  .committee-member a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .committee-member {
    padding: 15px;
    gap: 8px;
  }

  .member-photo {
    width: 80px;
    height: 80px;
  }

  .committee-member h3 {
    font-size: 1rem;
  }

  .committee-member p,
  .committee-member a {
    font-size: 0.85rem;
  }
}

/* Sur tablette (769px → 1024px) : 3 lignes × 2 colonnes */
@media (min-width: 769px) and (max-width: 1024px) {
  .committee-grid {
    grid-template-areas:
      "member1 member2"
      "member3 member4"
      "member5 member6";
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 25px;
  }
}

/* Sur mobile (≤ 768px) : 1 colonne × 6 lignes, conteneur centré */
@media (max-width: 768px) {
  .committee-grid {
    grid-template-areas:
      "member1"
      "member2"
      "member3"
      "member4"
      "member5"
      "member6";
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    gap: 20px;
    justify-items: center;
    max-width: 300px;
    margin: 0 auto;
  }

  .committee-member {
    width: 100%;
  }
}

/* Animation au scroll */
.committee-member {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.committee-member.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Liens */
.links {
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.links .container {
  max-width: 1200px;
  margin: 0 auto;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.link-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.link-item:hover {
  transform: translateY(-5px);
}

.link-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.link-item h3 a {
  color: #478ac9;
  text-decoration: none;
  font-weight: bold;
}

.link-item h3 a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.footer p {
  font-size: 0.9rem;
}

/* Bouton */
.btn {
  display: inline-block;
  background-color: #478ac9;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background-color: #3498db;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 15px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 10px;
  }

  .nav a {
    padding: 10px;
    border-radius: 4px;
  }

  .hero {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 30px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-image img {
    max-width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Concerts dans index.html - Style moderne, centré, animé */
  .concert {
    background: rgba(255, 255, 255, 0.9); /* Fond semi-transparent */
    backdrop-filter: blur(10px); /* Effet de flou */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* Ombre douce */
    max-width: 600px;
    width: 100%;
    text-align: center;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    transform: translateX(0);
    position: relative;
    z-index: 1;
  }

  .concert:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
  }

  /* Sur mobile : cartes plus petites */
  .concert {
    padding: 20px;
    font-size: 0.95rem;
  }

  .concert h3 {
    font-size: 1.3rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .join {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .join-content {
    margin-bottom: 30px;
  }

  .join-content h2 {
    font-size: 2rem;
  }

  .join-image img {
    max-width: 100%;
  }

  .program-table th,
  .program-table td {
    padding: 10px;
    font-size: 0.9rem;
  }

  .committee-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .link-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Concerts dans index.html - Style moderne, centré, animé */
  .concert {
    padding: 15px;
    font-size: 0.9rem;
  }

  .concert h3 {
    font-size: 1.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .committee-grid {
    grid-template-columns: 1fr;
  }

  .member-photo {
    width: 100px;
    height: 100px;
  }

  .link-icon {
    width: 60px;
    height: 60px;
  }
}

/* ———————————————————————————————————————————————————————————————————————————— */
/* ✅ MODIFICATION : STYLES DES CONCERTS (index.html) */
/* ———————————————————————————————————————————————————————————————————————————— */

/* Concerts dans index.html - Style moderne, centré, animé, lisible sur fond sombre */
.concert {
  background: rgba(255, 255, 255, 0.1); /* Fond très clair, presque transparent */
  backdrop-filter: blur(10px); /* Effet de flou */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3); /* Ombre douce */
  max-width: 600px;
  width: 100%;
  text-align: center;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  transform: translateX(0);
  position: relative;
  z-index: 1;
  color: white; /* Texte en blanc */
  display: block; /* Force le bloc pour margin: 0 auto */
  margin: 0 auto; /* Centre horizontalement */
  margin-bottom: 30px; /* ⬅️ Espacement vertical entre les cartes */
}

/* Enlever le margin-bottom sur la dernière carte */
.concert:last-child {
  margin-bottom: 0;
}

.concert:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.5); /* Ombre plus foncée au hover */
  transform: translateY(-5px);
}

.concert h3 {
  color: #478ac9; /* Titre en bleu clair */
  margin: 10px 0;
  font-size: 1.5rem;
}

.concert p {
  color: white; /* Texte en blanc */
  margin: 15px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.concert .btn {
  background-color: #478ac9;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.concert .btn:hover {
  background-color: #3498db;
}

/* Sur mobile : cartes plus petites */
@media (max-width: 768px) {
  .concert {
    padding: 20px;
    font-size: 0.95rem;
    margin-bottom: 20px; /* ⬅️ Espacement réduit sur mobile */
  }

  .concert h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .concert {
    padding: 15px;
    font-size: 0.9rem;
    margin-bottom: 15px; /* ⬅️ Espacement encore plus réduit sur très petit écran */
  }

  .concert h3 {
    font-size: 1.2rem;
  }
}

/* Section Actualité - Centrée horizontalement */
.actualite {
  padding: 60px 20px;
  background-color: #3a3a3a;
  color: white;
  text-align: center;
}

.actualite .container {
  max-width: 800px;
  margin: 0 auto;
}

/* Centrer le titre et les concerts dans la section Actualité */
.actualite .container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center; /* ⬅️ Centre le titre et les concerts */
}

/* Titre de la section Actualité */
.actualite h2 {
  color: #478ac9; /* Bleu clair pour le contraste */
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-family: 'Ubuntu', sans-serif;
  text-align: center; /* ⬅️ Redondant, mais sécurisant */
}

/* ———————————————————————————————————————————————————————————————————————————— */
/* ✅ FIN MODIFICATION : STYLES DES CONCERTS */
/* ———————————————————————————————————————————————————————————————————————————— */