/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #3a1a22;
  background: url('fond.jpg') no-repeat center center fixed;
  line-height: 1.6;
  font-size: 16px;
	background-size: cover;
}

/* LIENS */
a {
  color: #800000;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* HEADER */
header {
  background-color: #800000;
  color: white;
  padding: 1rem 2rem 0.5rem;
  text-align: center;
}

.logo {
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 3px;
  font-family: 'Arial Black', Arial, sans-serif;
  margin-bottom: 0.5rem;
}

/* Bandeau lumineux */
.bandeau-annonce {
  background-color: #fff;
  color: #800000;
  text-align: center;
  font-weight: bold;
  padding: 0.6rem;
  font-size: 1.1rem;
  animation: clignote 1.5s infinite;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes clignote {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* NAVIGATION */
.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

#menu-toggle {
  display: none;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.main-nav a {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.main-nav a:hover {
  background-color: #b30000;
}

/* MAIN */
main {
  flex: 1;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section {
  margin-bottom: 3rem;
}

h1, h2 {
  color: #fff;
  margin-bottom: 1rem;
}

/* À PROPOS */
#about p {
  max-width: 700px;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* ÉQUIPE */
.joueurs-grid {
  display: flex;          /* place les enfants en ligne */
  flex-wrap: wrap;        /* passe à la ligne si trop large */
  gap: 15px;              /* espace entre les cartes */
}

.joueur-card {
  flex: 0 1 150px;        /* largeur fixe max 150px, ajustable */
  box-sizing: border-box;
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  background: #f9f9f9;
  border-radius: 5px;
}

.joueur-card img {
  width: 100%;            /* image prend toute la largeur de la carte */
  height: auto;           /* proportions conservées */
  border-radius: 3px;
}


/* CALENDRIER */
#calendar table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

#calendar th, #calendar td {
  border: 1px solid #800000;
  padding: 0.6rem 0.8rem;
  text-align: center;
}

#calendar th {
  background-color: #800000;
  color: white;
}

#calendar tbody tr:nth-child(even) {
  background-color: #f0e6e6;
}

/* FOOTER */
footer {
  background: #800000;
  color: white;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  user-select: none;
  margin-top: auto;
}

/* PAGINATION */
.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination a {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #800000;
  color: #800000;
  text-decoration: none;
  border-radius: 4px;
}

.pagination a:hover,
.pagination a.active {
  background-color: #800000;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  main {
    margin: 1.5rem 1rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  #calendar th, #calendar td {
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  .menu-icon {
    display: block;
    text-align: center;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    background: #800000;
    width: 100%;
    padding: 1rem 0;
  }

  #menu-toggle:checked + .menu-icon + .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #b30000;
    width: 100%;
    text-align: center;
  }
  #menu-toggle:checked ~ .nav-container .main-nav {
    display: flex;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .logo {
    font-size: 1.8rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem 1rem;
  }

  .player-photo {
    max-width: 140px;
    aspect-ratio: 1 / 1;
  }

  #calendar th, #calendar td {
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
  }
}

@media (max-width: 400px) {
  body {
    font-size: 13px;
  }

  main {
    margin: 0.8rem 0.5rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .player-photo {
    max-width: 100%;
  }

  #calendar th, #calendar td {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }
}
/* ----- TABS PRINCIPAUX ----- */
.tabs {
  margin-top: 2rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  background-color: #f2f2f2;
  border: 2px solid #800000;
  border-radius: 6px;
  font-weight: bold;
  color: #800000;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
  background-color: #800000;
  color: white;
}

/* Masquer les contenus sauf l'actif */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* ----- SOUS-ONGLETS (Équipe A/B) ----- */
.sub-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sub-btn {
  padding: 0.5rem 1rem;
  background-color: #ffe6e6;
  border: 1px solid #800000;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  color: #800000;
  transition: background 0.3s;
}

.sub-btn.active, .sub-btn:hover {
  background-color: #800000;
  color: white;
}

/* Contenu des sous-onglets */
.sub-content {
  display: none;
}
.sub-content.active {
  display: block;
}

/* ----- ONGLET INTERNES (Joueurs, Match suivant...) ----- */
.inner-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.inner-btn {
  padding: 0.4rem 0.9rem;
  background-color: #f7f7f7;
  border: 1px solid #800000;
  border-radius: 4px;
  color: #800000;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}

.inner-btn.active, .inner-btn:hover {
  background-color: #800000;
  color: white;
}

/* Contenu des onglets internes */
.inner-content {
  display: none;
  padding: 1rem;
}
.inner-content.active {
  display: block;
}

/* Responsive onglets */
@media (max-width: 600px) {
  .tab-buttons, .sub-tabs, .inner-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn, .sub-btn, .inner-btn {
    width: 90%;
    text-align: center;
  }
}
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #aaa;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  text-align: center;
}

.carousel-item img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}

.carousel-caption {
  margin-top: 5px;
  font-weight: bold;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #902020;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 2;
  border-radius: 5px;
}

.carousel-prev {
  left: 10px;
}
.carousel-next {
  right: 10px;
}

/* === Fullscreen Galerie === */
#fullscreen-overlay {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
}

#fullscreen-img {
  max-width: 90%;
  max-height: 80%;
}

#fullscreen-caption {
  color: white;
  margin-top: 1em;
  font-size: 1.1em;
  text-align: center;
  max-width: 90%;
}

.fullscreen-arrow {
  color: white;
  font-size: 3em;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

#fullscreen-prev { left: 2%; }
#fullscreen-next { right: 2%; }

#fullscreen-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2em;
  color: white;
  cursor: pointer;
  z-index: 10001;
}

.img-wrapper {
  position: relative;
  display: inline-block;
}

.info-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 18px;
  width: 24px;
  height: 24px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  line-height: 24px;
  z-index: 10;
}

.info-icon:hover .info-box,
.info-icon.active .info-box {
  display: block;
}

.info-box {
  display: none;
  position: absolute;
  bottom: 30px;
  right: 0;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 4px;
  max-width: 200px;
  white-space: normal;
  z-index: 10;
}


.carousel-thumbnails {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 5px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 60px;
  height: 40px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.thumbnail.active-thumb {
  opacity: 1;
  border-color: white;
}

/* FORMULAIRE AMÉLIORÉ */
.form-wrapper {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #800000;
  outline: none;
  box-shadow: 0 0 5px rgba(128,0,0,0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  align-self: flex-start;
  background-color: #800000;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #a00000;
}

/* Messages de retour */
.success, .error {
  font-weight: bold;
  text-align: center;
  margin: 1rem 0;
}

.success {
  color: #0a9a0a;
}
.error {
  color: #c00;
}
.contact-info {
	text-align: center;
}
.contact-container{
	text-align: center;
}

	#main-container2 {
  margin-top: 60px; /* Laisser de l'espace sous le menu */
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Style du label et select */
.nav-label2 {
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
  font-size: 1.1em;
  color: #333;
}

.nav-select2 {
  width: 250px;
  padding: 8px 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 30px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.nav-select2:hover,
.nav-select2:focus {
  border-color: #800000;
  outline: none;
}

/* Titre du tableau */
.table-title2 {
  margin-bottom: 15px;
  color: #800000;
  font-weight: 700;
  font-size: 1.4em;
  border-bottom: 2px solid #800000;
  padding-bottom: 5px;
}

/* Conteneur avec scroll si trop large */
.table-container2 {
  overflow-x: auto;
}

/* Tableau */
table {
  width: 100%;
  border-collapse: separate; /* pour gérer les bordures arrondies */
  border-spacing: 0;
  min-width: 700px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden; /* pour les coins arrondis */
  background: #fff;
}

thead th {
  background-color: #800000;
  color: white;
  padding: 12px 15px;
  text-align: left;
  border-bottom: 3px solid #550000;
  white-space: nowrap;
}

tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  vertical-align: top;
  color: #444;
}

/* Suppression de la bordure droite sur la dernière colonne */
tbody td:last-child {
  border-right: none;
}

/* Suppression de la bordure droite sur le dernier th */
thead th:last-child {
  border-right: none;
}

/* Ajout d’une bordure autour du tableau */
table {
  border: 1px solid #ccc;
}

/* Hover row avec une couleur douce */
tbody tr:hover {
  background-color: #f9f0f0;
  cursor: default;
}


/* Message d'erreur */
.error-msg {
  color: #d9534f;
  font-weight: 600;
  margin-top: 20px;
  font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
  #main-container {
    padding: 15px 10px;
  }
  .nav-select {
    width: 100%;
  }
  table {
    font-size: 0.85em;
  }
}

.two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}

.column-left, .column-right {
  flex: 1;
  min-width: 300px;
  background: #fdfdfd;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.column-left h2, .column-right h2 {
  color: #800000;
  margin-bottom: 15px;
}

.hierarchy-list {
  list-style: none;
  padding-left: 0;
  line-height: 1.8;
}

.hierarchy-list li {
  border-bottom: 1px dashed #ccc;
  padding: 6px 0;
  color: #333;
}

@media (max-width: 768px) {
  .two-columns {
    flex-direction: column;
  }
}

.logo-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.logo-img {
  height: 60px;
  width: auto;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  padding-bottom: 10px;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* Responsive: cacher logos latéraux si trop petit */
@media (max-width: 768px) {
  .logo-wrapper {
    display: none;
  }

  .social-icons {
    margin-top: 0.8rem;
  }
}
