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


body {
  font-family: 'Helvetica Neue', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #FFF;
  padding-top: 80px;
}

a {
  color: #620080;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


header {
  background: #FFFFFF
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: auto; 
  display: flex;
  align-items: center;
  padding: 10px;
}

.logo {
  height: 60px;
}

nav {
  margin-left: auto;
}

.menu {
  display: flex;
  list-style: none;
  gap: 20px;
  position: relative;
}

.menu>li {
  position: relative;
}

.menu a.active {
  font-weight: bold;
  color: #000;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  list-style: none;
  padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 5px 20px;
}

.dropdown-menu li a {
  color: #333;
}


.hero {
  height: 70vh;
  background: url('clubbasketbuxynois_varandaine-bg.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
}

.overlay h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}


main {
  padding-top: 120px;
  max-width: 1000px;
  margin: auto;
}

.info-section {
  background: #f9f9f9;
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
}

.gym-section {
  margin: 20px 0;
}

.gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery img {
  width: calc(33% - 10px);
  border-radius: 5px;
}


.contact-section ul {
  list-style: none;
  padding-left: 0;
}

.contact-section li {
  margin-bottom: 8px;
}


@media(max-width:800px) {
  .overlay h1 {
    font-size: 2rem;
  }

  .gallery img {
    width: 100%;
  }

  .menu {
    flex-direction: column;
    background: #fff;
    position: absolute;
    right: 10px;
    top: 70px;
    display: none;
  }

  .menu.show {
    display: flex;
  }
}


.socials {
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
}

.socials h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.icons a img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.icons a:hover img {
  transform: scale(1.2);
}


.entraineurs-section {
  background: #f9f9f9;
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
}

.entraineurs-section h2 {
  margin-bottom: 10px;
}

.entraineurs-section ul {
  list-style: none;
  padding-left: 0;
}

.entraineurs-section li {
  margin-bottom: 8px;
}

.hero {
  height: 70vh;
  background: url('clubbasketbuxynois_varandaine-bg.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
}

.overlay h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}


html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}


body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #620080;
  color: white;
  text-align: center;
  padding: 20px;
  z-index: 1;
  margin-top: 40px;
}

.histoire-section,
.actu-section,
.equipe-section,
.entraineurs-section,
.matchs-section,
.événements-section,
.gym-section,
.socials-section,
.socials-section {
  margin: 30px 0;

  padding: 20px 30px;
  background-color: #f9f9f9;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.presentation-equipes .equipe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.equipe-carte {
  text-align: center;
  width: 200px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease;
}

.equipe-carte:hover {
  transform: scale(1.05);
}

.equipe-carte img {
  width: 100%;
  border-radius: 5px;
}




@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 10px;
    background-color: white;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
  }
}


.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}


@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
    z-index: 1000;
  }

  .menu.active {
    display: flex;
  }
}


@media (min-width: 769px) {
  .menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
  }
}

.itineraire-link {
  margin-top: 30px;
  margin-bottom: 1000px;

  font-size: 1.1rem;
}


.gym-section {
  padding-bottom: 100px;

}

.itineraire-container {
  margin-top: 30px;
  margin-bottom: 120px;

  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

nav a.active::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  background-image: url("clubbasketbuxynois_ballon.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}








body {
  padding-bottom: 100px;
}


@media (max-width: 600px) {
  main {
    margin: 10px;
    padding: 10px;
  }

  #calendar {
    height: 600px;
  }
}

.actualites {
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}

.actualites h2 {
  margin: 0;
}

.actualites p {
  margin: 5px 0;
}



.actualites {
  background-color: #fff;
  border-left: 5px solid #620080;

  margin-bottom: 25px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.actualites:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.actualites h2 {
  margin: 0 0 10px;
  font-size: 1.6em;
  color: #004aad;
}

.actualites p {
  margin: 5px 0;
  line-height: 1.6;
}

.actualites em {
  display: block;
  font-size: 0.9em;
  color: #888;
  margin-bottom: 10px;
}

.presentation-entraineurs {
  padding: 1.5rem;
  background-color: #f5f5f5;
  text-align: center;
}

.presentation-entraineurs h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.entraineur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.entraineur {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.entraineur img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.entraineur:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.entraineur h3 {
  margin: 0;
  padding: 0.4rem;
  font-size: 0.95rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-weight: 500;
}

.page-histoire {
  padding-bottom: 160px;
}

@keyframes scroll-sponsors {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}



.menu {
  transition: max-height 0.3s ease;
}

nav {
  margin-left: 40px;
}

.download-button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: #620080;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
  transition: all 0.3s ease;
}

.download-button:hover {
  background-color: #620080;
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.3);
}

@media (max-width: 600px) {

  h1,
  h2 {
    margin-top: 40px;

  }
}




#calendar {
  max-width: 100%;
  height: 700px;
  margin: auto;
  border: 2px solid #620080;
  background-color: rgb(253, 253, 253);
}


.fc {
  width: 100% !important;
  overflow: visible !important;
}


main {
  padding-top: 120px;
  box-sizing: border-box;
}


section.matchs-calendar {
  overflow: visible !important;
  height: auto !important;
}


.fc-toolbar {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  width: 80% !important;
  overflow: visible !important;
  box-sizing: border-box;
  padding: 10px;
  background-color: #eee;
}


.fc-toolbar .fc-button-group {
  flex-wrap: nowrap !important;
}

.fc-toolbar .fc-button {
  white-space: nowrap;
}

.main-content {
  flex: 1;
  padding: 20px;
}

.entraineur-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 40px 0;
}

.flip-card {
  background-color: transparent;
  width: 250px;
  height: 320px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.flip-card-front {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flip-card-front img {
  width: 80%;
  height: 80%;
  object-fit: cover;
}

.flip-card-front h3 {
  margin: 10px 0;
}

.flip-card-back {
  background-color: #333;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}





.section-column {
  flex: 1;
  min-width: 250px;
}


.section-column h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
}


.photo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.photo-block img {
  width: 180px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.photo-block h3 {
  font-size: 1em;
  margin: 0;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .sections-container {
    flex-direction: column;
    align-items: center;
  }

  .section-column {
    width: 100%;
    max-width: 500px;
  }
}

.contact-container {
  max-width: 600px;
  margin: 40px auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.contact-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #444;
}

.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #0056b3;
}

.form-container {
  background: #ffffff;
  padding: 30px;
  max-width: 500px;
  margin: 80px auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  resize: none;
}

.readonly-input {
  background-color: #e9ecef;
  color: #555;
}

button {
  width: 100%;
  padding: 14px;
  background-color: #007BFF;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

.gymnases-double {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.gymnases-double .gymnase {
  flex: 1 1 45%;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gymnases-double h2 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #222;
}

.gymnases-double p {
  margin-bottom: 10px;
  color: #444;
}

.gymnases-double .gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.gymnases-double .gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
  .gymnases-double {
    flex-direction: column;
  }

  .gymnases-double .gymnase {
    flex: 1 1 100%;
  }
}

.legend {
  margin-top: 100px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: Arial, sans-serif;
  font-size: 16px;
}


.legend-item-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f1f1;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.legend-item {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.event-general {
  background-color: #0087f5;
}

.match-gym-a {
  background-color: #2e9104;
}

.match-gym-b {
  background-color: #ff0000;
}

.legend-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 100px auto 20px;
  max-width: 1000px;
  padding: 0 20px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.legend-item-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f1f1;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.legend-item {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.event-general {
  background-color: #0087f5;
}

.match-gym-a {
  background-color: #2e9104;
}

.match-gym-b {
  background-color: #ff0000;
}

.ffbb-link {
  text-decoration: none;
  background-color: #0055a5;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.ffbb-link:hover {
  background-color: #003f7d;
}

.joueuse-gird,
.joueuses-gird,
.joueur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-items: center;
  margin: 30px auto;
  padding: 0 20px;
  max-width: 1200px;
}


.joueur-grid .joueur,
.joueuses-gird .joueuses,
.joueuses-gird .joueuse,
.joueuse-gird .joueuse,
.joueuses-gird .joueuses,
.joueur-grid .joueuse {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.joueur-grid .joueur img,
.joueuses-gird .joueuses img,
.joueuses-gird .joueuse img,
.joueuse-gird .joueuse img,
.joueuses-gird .joueuses img,
.joueur-grid .joueuse img {
  width: 100%;
  max-width: 150px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.joueur-grid .joueur img:hover,
.joueuses-gird .joueuses img:hover,
.joueuses-gird .joueuse img:hover,
.joueuse-gird .joueuse img:hover,
.joueuses-gird .joueuses img:hover,
.joueur-grid .joueuse img:hover {
  transform: scale(1.05);
}

.joueur-grid .joueur p,
.joueuses-gird .joueuses p,
.joueuses-gird .joueuse p,
.joueuse-gird .joueuse p,
.joueuses-gird .joueuses p,
.joueur-grid .joueuse p {
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}




.devenir-sponsor {
  background-color: #eef3f7;
  padding: 3rem 2rem;
  margin: 4rem auto;
  text-align: center;
  border-radius: 16px;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.devenir-sponsor h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.devenir-sponsor p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #444;
}

.sponsor-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #004080;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.sponsor-btn:hover {
  background-color: #0059b3;
  transform: scale(1.05);
}

.boutique-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.boutique-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.boutique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

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


.article {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  animation: fadeUp 0.6s ease forwards;
}

.article:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.article img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.click-zoom {
  cursor: zoom-in;
}

.article h3 {
  margin: 12px 0 5px;
  font-size: 1.1rem;
  color: #222;
}

.article .price {
  font-weight: bold;
  color: #c40000;
}


.gateau {
  display: none;
  margin-left: 5px;
}

.anniversaire-date {
  font-size: 0.9em;
  color: #888;
}

.actu-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
}

.actu {
  background-color: #f4f4f4;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.actu-item img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.actu h3 {
  margin-top: 10px;
  font-size: 1.4em;
  color: #002147;
}

.actu p {
  font-size: 1em;
  color: #333;
}

.contenu-cache {
  display: none;
  margin-top: 10px;
  color: #444;
}

.voir-plus {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
}

.voir-plus:hover {
  background-color: #0056b3;
}


/* Affichage par défaut : bouton caché */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Affichage mobile */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav .menu {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    z-index: 1000;
  }

  nav .menu.active {
    display: flex;
  }

  nav ul.menu li {
    padding: 1rem;
    border-bottom: 1px solid #ccc;
  }
}




@keyframes scroll {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1101;
  outline: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav .menu {
    display: none;
    flex-direction: column;
    background-color: white;
    position: fixed;

    top: 60px;

    left: 0;
    right: 0;
    bottom: 0;

    overflow-y: auto;

    z-index: 1100;
  }

  nav .menu.active {
    display: flex;
  }

  nav ul.menu li {
    padding: 1rem;
    border-bottom: 1px solid #ccc;
  }
}

header,
.header-container {
  overflow: visible;
  position: relative;
  z-index: 1110;
}



html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.hamburger {
  outline: none;
  border: none;
  background: none;
}

.hamburger:focus {
  outline: none;
  box-shadow: none;
}

/* Bouton */

/*.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
  color: white;
} */

/* Thème sombre */

/*body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #1e1e1e;
}

body.dark-mode a {
  color: #00d9ff;
}

body.dark-mode nav a.active {
  color: #fff;
  border-bottom: 2px solid #00d9ff;
} */


/*body.dark-mode .menu {
  background-color: #1e1e1e;
}

body.dark-mode .sponsors-carousel {
  background-color: #1a1a1a;
} */

.form-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

.form-container input,
.form-container textarea,
.form-container button {
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.form-container .readonly-input {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

.form-container button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.form-container button:hover {
  background-color: #007bff;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.sponsors-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  background-color: #f8f8f8;
  padding: 10px 0;
  z-index: 2;
  height: 100px;
}

.carousel-track {
  height: 80px;
  /* optionnel */
}



.carousel-track {
  display: flex;
  width: fit-content;
  animation: scroll 40s linear infinite;
}

.carousel-track img {
  height: 80px;
  margin: 0 20px;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


#actu-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.actu-item {
  width: 300px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.actu-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.actu-item h2 {
  font-size: 1.2em;
  margin: 10px;
}

.actu-item p {
  margin: 0 10px 10px;
}

.actu-item a {
  margin: 10px;
  color: #007BFF;
  text-decoration: none;
}

.actu-item a:hover {
  text-decoration: underline;
}

#contenu-actualite {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  color: #333;
}

#contenu-actualite img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#contenu-actualite h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

#contenu-actualite .date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
}

#contenu-actualite p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

nav {
  margin-left: -2px;

}

@media screen and (max-width: 768px) {
  .sponsors-carousel {
    display: none;
  }
}

.event-detail-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 2px solid #333;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  width: 300px;
  text-align: center;
}

.event-detail-box button {
  margin-top: 10px;
  padding: 5px 10px;
  cursor: pointer;
}

#actu-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 20px;
  justify-content: flex-start;
  box-sizing: border-box;
}

.actu-item {
  flex: 0 0 auto;
  width: 340px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.actu-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

#actu-container::-webkit-scrollbar {
  height: 10px;
}

#actu-container::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 5px;
}

#actu-container::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.actu-scroll-container {
  height: 380px;
}

.actu-item {
  width: 320px;
  height: 350px;
}

.sponsors-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #f8f8f8;
  padding: 20px 0;
  /* augmente l'espace en haut et en bas */
  z-index: 2;
}

.carousel-track {
  display: flex;
  animation: scroll 30s linear infinite;
}

.carousel-track img {
  height: 100px;
  /* augmente la taille des logos */
  margin: 0 30px;
  object-fit: contain;
}


/* Animation infinie vers la gauche */
@keyframes scrollSponsors {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

section.sponsors-carousel {
  min-height: 140px;
  /* pour laisser passer les logos */
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sponsor-grid a,
.sponsor-grid img {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  height: 120px;
  width: 100%;
  max-width: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-grid img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
}

.sponsor-grid a:hover,
.sponsor-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 480px) {
  .sponsor-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .sponsor-grid a,
  .sponsor-grid img {
    height: 100px;
    max-width: 140px;
  }
}

html,
body {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  /* Assure le scroll vertical */
}


/* Conteneur avec scroll horizontal */
#actu-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: #888 transparent;
}

/* Chaque actualité */
.actu-item {
  flex: 0 0 auto;
  width: 300px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  font-family: Arial, sans-serif;
  transition: transform 0.2s ease;
}

.actu-item:hover {
  transform: scale(1.03);
}

/* Image dans l'actualité */
.actu-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Titre */
.actu-item h2 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Résumé */
.actu-item p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}

/* Lien "voir plus" */
.actu-item a {
  display: inline-block;
  color: #ffffff;
  background-color: #3498db;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s;
}

.actu-item a:hover {
  background-color: #217dbb;
}

/* Scrollbar (Chrome / Edge) */
#actu-container::-webkit-scrollbar {
  height: 8px;
}

#actu-container::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

#actu-container::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* Style de base pour le menu */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Sous-menu caché par défaut */
.submenu {
  display: none;
  position: absolute;
  background-color: #333;
  padding: 10px 0;
  list-style: none;
  min-width: 150px;
  z-index: 1000;
}

.submenu li {
  display: block;
  padding: 5px 20px;
}

.submenu li a {
  color: white;
  text-decoration: none;
  display: block;
}

.submenu li a:hover {
  background-color: #444;
}

/* Affiche le sous-menu au survol */
.has-submenu {
  position: relative;
}

.has-submenu:hover .submenu {
  display: block;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  /* espace horizontal entre les éléments */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap;
  /* utile pour le responsive */
}

.logo {
  max-height: 80px;
  /* ajuste la taille si besoin */
  margin-right: 60px;
  /* espace entre le logo et le menu */
}

nav {
  flex: 1;
  /* prend tout l'espace restant */
}

/* Conteneur de bandeau défilable */
#actu-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 16px;
  padding: 20px 10px;
  background-color: #f8f9fa;
  scroll-behavior: smooth;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

/* Scrollbar visible et fine */
#actu-container::-webkit-scrollbar {
  height: 8px;
}

#actu-container::-webkit-scrollbar-track {
  background: transparent;
}

#actu-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

#actu-container::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

/* Cartes d'actualités */
.actu-item {
  flex: 0 0 auto;
  width: 230px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 12px;
  text-align: center;
}

/* Images propres et ajustées */
.actu-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
}

/* Titre et texte */
.actu-item h3 {
  font-size: 16px;
  margin: 10px 0 6px;
}

.actu-item p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

/* Bouton Voir plus – version compacte */
.actu-item a {
  display: inline-block;
  padding: 6px 10px;
  font-size: 13px;
  background-color: #007BFF;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.actu-item a:hover {
  background-color: #0056b3;
}

#actu-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 16px;
  padding: 20px 10px;
  background-color: #f8f9fa;
  scroll-behavior: smooth;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;

  /* Ajouts pour centrer */
  max-width: 1000px;
  /* Ajustable selon ta mise en page */
  margin: 0 auto;
}

.boutique-section {
  padding: 20px;
}

.boutique-section h2 {
  margin-bottom: 15px;
}

.boutique-grid {
  display: flex;
  gap: 20px;
  /* espace entre les articles */
  overflow-x: auto;
  /* permet le scroll horizontal */
  scroll-snap-type: x mandatory;
  /* optionnel: effet "snap" */
  -webkit-overflow-scrolling: touch;
  /* fluide sur mobile */
}

.article {
  flex: 0 0 auto;
  /* empêche les articles de se réduire */
  width: 250px;
  /* largeur fixe pour chaque article */
  scroll-snap-align: start;
}

.article img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.boutique-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.article {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
}

.article img {
  width: 100%;
  border-radius: 10px;
  display: block;
  cursor: pointer;
}


.lightbox1 {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
}

.lightbox1 img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}


/* ===== PÉRIODES DE COMMANDE ===== */

.periodes {
  padding: 60px 20px;
  background: #f5f6f8;
  text-align: center;
}

.periodes h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111;
}

.periode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.periode-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.periode-card .dates {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
}

/* Badge */

.badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 20px;
  background: #6a1b9a;
  color: #fff;
}

.download-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

.download-link:hover {
  color: #6a1b9a;
  text-decoration: underline;
}

.download-link::before {
  content: "⬇ ";
}

.boutique-grid {
  display: flex;
  gap: 20px;
}

.article img {
  width: 200px;
  cursor: pointer;
  transition: transform 0.3s;
}

.article img:hover {
  transform: scale(1.05);
}

/* Overlay général
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay img {
  max-width: 80%;
  max-height: 80%;
  box-shadow: 0 0 20px #fff;
}

.overlay:target {
  display: flex;
} */


.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  text-decoration: none;
}

.boutique-grid {
  display: flex;
  gap: 20px;
}

.article img {
  width: 200px;
  cursor: pointer;
  transition: transform 0, 3s;
}


.click-zoom:active {
  transform: scale(2);
  
  z-index: 10;
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  padding: 10px 0;
}

.submenu li {
  margin: 0;
}

.submenu li a {
  color: white;
  padding: 5px 15px;
  display: block;
}


.boutique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  padding: 20px;
}

.boutique-grid img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.boutique-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}


.lightbox {
  display: none;
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.boutique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  padding: 20px;
}

.ffbb-link {
  display: block;          
  text-align: center;      
  margin: 20px auto;       
  font-size: 18px;         
  color: #ffffff;         
  text-decoration: none;   
}

.ffbb-link:hover {
  text-decoration: underline; 
}

@media (max-width: 600px) {
  #actu-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px;
    scrollbar-width: none;
    scroll-padding: 5%;
  }

  #actu-container::-webkit-scrollbar {
    display: none;
  }

  
  #actu-container > * {
    flex: 0 0 auto;       
    width: 50%;          
    max-width: 50%;       
    scroll-snap-align: center;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
  }

  
  #actu-container img {
    max-height: 160px;
    width: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
    border-radius: 6px;
  }

  
  #actu-container::after {
    content: "";
    flex: 0 0 50%;  
  }
}





@media (min-width: 601px) and (max-width: 768px) {
  #actu-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px;
    padding-right: 40%; 
    scrollbar-width: none;
    scroll-padding: 10%;   
  }

  #actu-container::-webkit-scrollbar {
    display: none;
  }

  #actu-container > * {
    flex: 0 0 40%;          
    scroll-snap-align: start;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
  }

  #actu-container img {
    max-height: 200px;
    width: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
    border-radius: 6px;
  }
}

.horaires-entrainement {
  background-color: #eef2f8;
  border-left: 5px solid #004080;
  padding: 10px 20px;
  margin: 15px 0 25px 0;
  border-radius: 6px;
  font-size: 1rem;
}

.horaires-entrainement ul {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
}

.horaires-entrainement li {
  margin: 4px 0;
}


.equipe-carte {
  position: relative; 
  display: inline-block; 
}


.equipe-carte .protect-overlay {
  position: absolute;
  inset: 0;               
  z-index: 5;            
  background: transparent;
  pointer-events: auto;   
}


.equipe-carte:hover {
  cursor: pointer;
}


.equipe-carte h3 {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 6px 10px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border-radius: 6px;
  z-index: 6; 
  pointer-events: none; 
}

.highlight {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(212, 0, 255, 0.7);
  border: 3px solid rgba(212, 0, 255, 0.7);
  z-index: 2;
}

.highlight h3 {
  color: rgba(212, 0, 255, 0.7);
  text-shadow: 0 0 10px rgba(212, 0, 255, 0.7);
}


.entraineur-grid {
  display: grid;
  gap: 2rem;
  justify-items: center; 
  align-items: start;
}


.flip-card.highlight {
  grid-column: 1 / -1; 
  justify-self: center; 
}

.entraineur-grid {
  display: flex;
  flex-wrap: wrap;          
  justify-content: center;  
  gap: 24px;                
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.flip-card {
  flex: 1 1 calc(33.333% - 24px);  
  max-width: 300px;                
  min-width: 250px;                
  height: 320px;
  box-sizing: border-box;
}


@media screen and (max-width: 992px) {
  .flip-card {
    flex: 1 1 calc(50% - 20px);
    max-width: 350px;
  }
}


@media screen and (max-width: 600px) {
  .flip-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

:root {
    --violet: #620080;
    --violet-light: #9c30cc;
    --bg-card: #ffffff;
    --shadow: rgba(0, 0, 0, 0.10);
}

main {
    padding-top: 120px;
    max-width: 1000px;
    margin: auto;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.7rem;
    font-weight: bold;
    color: var(--violet);
}


.gallery-section {
    background: var(--bg-card);
    padding: 25px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: 0.3s ease;
    border-left: 6px solid var(--violet);
}

.gallery-section:hover {
    box-shadow: 0 6px 20px rgba(98, 0, 128, 0.25);
}

.gallery-section h2 {
    margin-bottom: 18px;
    font-size: 1.6rem;
    color: var(--violet);
}


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

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 2px 6px var(--shadow);
    border: 2px solid transparent;
}

.gallery img:hover {
    transform: scale(1.05);
    border-color: var(--violet);
    box-shadow: 0 6px 20px rgba(98, 0, 128, 0.35);
}


.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(50, 0, 70, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(98, 0, 128, 0.5);
    border: 3px solid var(--violet);
}


@media(max-width: 800px) {
    .gallery img {
        height: 160px;
    }
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(50, 0, 70, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.25s ease forwards;
}

.lightbox img {
    max-width: 50%;
    max-height: 50%;
    border-radius: 14px;
    border: 3px solid var(--violet);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.25s ease forwards;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}



.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
    user-select: none;
    transition: 0.2s ease;
}

.close-btn:hover {
    color: #bb54f0; 
}


.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(50, 0, 70, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 40%;
    max-height: 50%;
    display: block;
    margin: auto;
    position: relative;
    z-index: 2;  
}


/* 📌 Filigrane principal — centre */
.lightbox::after {
    content: "© Club Basket Buxynois";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    pointer-events: none;
    z-index: 3;
    white-space: nowrap;
}

/* 📌 Filigrane haut-gauche */
.lightbox::before {
    content: "© Club Basket Buxynois";
    position: absolute;
    top: 35%;       /* un peu plus centré */
    left: 50%;      /* corrigé : plus à gauche */
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    pointer-events: none;
    z-index: 3;
    white-space: nowrap;
}








/* Filigrane centré */
.gallery img::after {
    content: "Club Basket Buxynois";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    color: rgba(255, 255, 255, 0.9); /* transparence légèrement réduite */
    font-size: 3.9rem; /* taille adaptée aux petites images */
    font-weight: bold;
    pointer-events: none; /* clic fonctionne toujours */
    z-index: 10;
    white-space: nowrap;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* lisibilité */
}

/* On enveloppe chaque image automatiquement */
.gallery > * {
    position: relative;
    display: block;
}

/* Filigrane centré comme dans la lightbox */
.gallery > *::after {
    content: "© Club Basket Buxynois";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    z-index: 5;
    pointer-events: none;
}

/* Filigrane sur les images des équipes */
.equipe-carte {
    position: relative; /* nécessaire pour le pseudo-élément */
    display: inline-block;
}

.equipe-carte::after {
    content: "© Club Basket Buxynois";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 1rem; /* adapte selon la taille de l'image */
    font-weight: bold;
    color: rgba(255, 255, 255, 0.88); /* légèrement transparent */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* pour la lisibilité */
    pointer-events: none; /* permet de cliquer sur l'image */
    z-index: 5;
    white-space: nowrap;
    text-align: center;
}

/* 📌 Filigrane pour les photos individuelles */
.joueuse {
    position: relative; /* nécessaire pour le pseudo-élément */
    display: inline-block; /* pour que le pseudo-élément se positionne correctement */
}

.joueuse::after {
    content: "© Club Basket Buxynois";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg); /* même angle que la lightbox */
    font-size: 0.8rem; /* adapté à la taille des petites photos */
    font-weight: bold;
    color: rgba(255, 255, 255, 0.88); /* un peu transparent */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6); /* pour être lisible sur toutes les images */
    pointer-events: none; /* pour que le clic passe toujours sur l’image */
    z-index: 5;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 900px) {
    .lightbox img {
        max-width: 70%;
        max-height: 70%;
    }

    .lightbox::after,
    .lightbox::before {
        font-size: 2.2rem; /* un peu plus petit */
    }
}

@media (max-width: 600px) {
    .lightbox img {
        max-width: 90%;
        max-height: 85%;
    }

    /* Filigrane centre + haut-gauche réduits */
    .lightbox::after,
    .lightbox::before {
        font-size: 1.4rem;  /* taille réduite */
        opacity: 0.85;      /* un peu plus doux */
    }
}

@media (max-width: 768px) {
  .equipe-grid {
    grid-template-columns: 1fr; /* une seule colonne */
  }
  
  .equipe-carte {
    text-align: center; /* centre texte et image */
  }
}

@media (max-width: 768px) {
  .joueur-grid {
    grid-template-columns: 1fr; /* une seule colonne */
  }
}

.image-principale {
    max-width: 85vw;
    max-height: 85vh;

    border-radius: 18px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(168, 85, 247, 0.35);

    border: 10px solid rgba(255, 255, 255, 0.15);

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Effet léger au survol */
.image-principale:hover {
    transform: scale(1.015);
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.55),
        0 0 55px rgba(168, 85, 247, 0.55);
}

.image-principale {
    display: block;

    width: 60%;
    max-width: 900px;
    height: auto;

    margin: 60px auto;        /* BLANC EN HAUT ET EN BAS */
                               /* + centrage horizontal */

    background: white;
    padding: 40px;            /* BLANC AUTOUR DE LA PHOTO */

    border-radius: 22px;

    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(168, 85, 247, 0.35);
}


@media screen and (max-width: 992px) {
  .flip-card {
    flex: 1 1 calc(50% - 20px);
    max-width: 350px;
  }
}


@media screen and (max-width: 600px) {
  .flip-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

:root {
    --violet: #620080;
    --violet-light: #9c30cc;
    --bg-card: #ffffff;
    --shadow: rgba(0, 0, 0, 0.10);
}

main {
    padding-top: 120px;
    max-width: 1000px;
    margin: auto;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.7rem;
    font-weight: bold;
    color: var(--violet);
}


.gallery-section {
    background: var(--bg-card);
    padding: 25px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: 0.3s ease;
    border-left: 6px solid var(--violet);
}

.gallery-section:hover {
    box-shadow: 0 6px 20px #620080;
}

.gallery-section h2 {
    margin-bottom: 18px;
    font-size: 1.6rem;
    color: var(--violet);
}


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

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 2px 6px var(--shadow);
    border: 2px solid transparent;
}

.gallery img:hover {
    transform: scale(1.05);
    border-color: var(--violet);
    box-shadow: 0 6px 20px #620080;
}




@media(max-width: 800px) {
    .gallery img {
        height: 160px;
    }
}




@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}



.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
    user-select: none;
    transition: 0.2s ease;
}

.close-btn:hover {
    color: #620080; 
}


/* Filigrane centré */
.gallery img::after {
    content: "Club Basket Buxynois";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    color: rgba(255, 255, 255, 0.9); /* transparence légèrement réduite */
    font-size: 3.9rem; /* taille adaptée aux petites images */
    font-weight: bold;
    pointer-events: none; /* clic fonctionne toujours */
    z-index: 10;
    white-space: nowrap;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* lisibilité */
}

/* On enveloppe chaque image automatiquement */
.gallery > * {
    position: relative;
    display: block;
}

/* Filigrane centré comme dans la lightbox */
.gallery > *::after {
    content: "© Club Basket Buxynois";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    z-index: 5;
    pointer-events: none;
}

/* Filigrane sur les images des équipes */
.equipe-carte {
    position: relative; /* nécessaire pour le pseudo-élément */
    display: inline-block;
}

.equipe-carte::after {
    content: "© Club Basket Buxynois";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 1rem; /* adapte selon la taille de l'image */
    font-weight: bold;
    color: rgba(255, 255, 255, 0.88); /* légèrement transparent */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* pour la lisibilité */
    pointer-events: none; /* permet de cliquer sur l'image */
    z-index: 5;
    white-space: nowrap;
    text-align: center;
}

/* 📌 Filigrane pour les photos individuelles */
.joueuse {
    position: relative; /* nécessaire pour le pseudo-élément */
    display: inline-block; /* pour que le pseudo-élément se positionne correctement */
}

.joueuse::after {
    content: "© Club Basket Buxynois";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg); /* même angle que la lightbox */
    font-size: 0.8rem; /* adapté à la taille des petites photos */
    font-weight: bold;
    color: rgba(255, 255, 255, 0.88); /* un peu transparent */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6); /* pour être lisible sur toutes les images */
    pointer-events: none; /* pour que le clic passe toujours sur l’image */
    z-index: 5;
    white-space: nowrap;
    text-align: center;
}





:root {
  --violet: #620080;
  --shadow: rgba(0,0,0,0.2);
}

* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #f5f5f5;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px var(--shadow);
  z-index: 1000;
}

.logo { height: 45px; }




nav a.active { text-decoration: underline; }

main {
  padding: 120px 20px 40px;
  max-width: 1100px;
  margin: auto;
}

.page-title {
  text-align: center;
  color: var(--violet);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-section {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  border-left: 6px solid var(--violet);
}

.gallery {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .gallery img {
      width: 150px;
      cursor: pointer;
      position: relative;
    }

    .photo-container {
      position: relative;
      display: inline-block;
    }

    .watermark {
      position: absolute;
      bottom: 5px;
      left: 5px;
      font-size: 10px;
      color: white;
      background: rgba(0, 0, 0, 0.5);
      padding: 2px 4px;
    }

    .add-btn {
      position: absolute;
      top: 5px;
      right: 5px;
      background: green;
      color: white;
      border: none;
      cursor: pointer;
      padding: 2px 6px;
      font-size: 14px;
    }

    .price {
      position: absolute;
      top: 5px;
      left: 5px;
      background: rgba(255, 255, 255, 0.9);
      padding: 2px 5px;
      font-size: 12px;
      font-weight: bold;
    }

    /* --- PANIER --- */
    #cart-icon {
      position: fixed;
      bottom: 20px;
      right: 20px;
      font-size: 24px;
      cursor: pointer;
      background: #fff;
      padding: 5px 10px;
      border-radius: 50%;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }

    #cart-panel {
      position: fixed;
      bottom: 60px;
      right: 20px;
      width: 250px;
      background: #fff;
      border: 1px solid #ccc;
      padding: 10px;
      display: none;
      z-index: 998;
    }

    #cart-panel.open {
      display: block;
    }

    #cart-panel ul {
      list-style: none;
      padding: 0;
    }

    #cart-panel li {
      display: flex;
      justify-content: space-between;
      margin-bottom: 5px;
    }

    #order-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    #order-form {
      background: #fff;
      padding: 20px;
      border-radius: 5px;
    }

:root {
  --violet: #620080;
}



/* GALERIE */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 15px;
}

@media (max-width: 1200px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 800px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

.photo {
  position: relative;
}

.photo img {
  width: 100%;
  height: 360px; /* IMAGE PLUS GRANDE */
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

/* BOUTON + (PLUS PETIT) */
.add {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--violet);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

/* PANIER FLOTTANT */
#cart-fab {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--violet);
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
}

/* NUMÉRO À CÔTÉ */
#cart-count {
  margin-left: 8px;
  font-weight: bold;
}

/* PANIER */
#cart-panel {
  position: fixed;
  right: -320px;
  top: 0;
  width: 300px;
  height: 100%;
  background: white;
  padding: 20px;
  transition: 0.3s;
  z-index: 1200;
}

#cart-panel.open {
  right: 0;
}

#cart-panel ul {
  list-style: none;
  padding: 0;
}

#cart-panel li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* FORMULAIRE */
#order-modal {
  position: fixed;
  inset: 0;
  background: rgba(98,0,128,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

#order-modal.show {
  display: flex;
}

#order-form {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 320px;
}

#order-form input,
#order-form button {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
}

#cart-fab {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #6a1b9a;
  color: white;
  padding: 14px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

#cart-count {
  margin-left: 6px;
  font-weight: bold;
}

#cart-popup {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 320px;
  background: white;
  border-radius: 16px;
  padding: 15px;
  display: none;
  z-index: 1000;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#cart-close {
  cursor: pointer;
  font-size: 1.4rem;
  color: #6a1b9a;
}

#cart-items {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  max-height: 200px;
  overflow-y: auto;
}

#cart-items li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.remove {
  cursor: pointer;
  color: #d32f2f;
  font-weight: bold;
}

.cart-footer {
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.order-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6a1b9a, #8e24aa);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.order-btn:hover {
  opacity: 0.9;
}


#checkout {
  width: 100%;
  margin-top: 12px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #6a00ff, #8b5cf6);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 8px 20px #620080;
}

#checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px #620080;
  opacity: 0.95;
}

#checkout:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px #620080;
}

#checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}


#cart-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 26px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

#cart-close:hover {
  color: #6a00ff;
  transform: rotate(90deg);
}


#cart-panel {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100%;
  background: #fff;
  padding: 20px;
  box-shadow: -6px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  z-index: 1000;
}

#cart-panel.open {
  right: 0;
}

.cgv-check {
  display: block;
  font-size: 14px;
  margin: 12px 0;
  color: #eee;
}

.cgv-check a {
  color: #620080;
  text-decoration: underline;
}

#checkout {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: #620080;
  color: white;
  cursor: not-allowed;
  opacity: 0.5;
}

#checkout.enabled {
  cursor: pointer;
  opacity: 1;
}

#cart-panel {
  position: fixed;       /* Toujours à l'écran */
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background: #1c0f2b;
  color: #fff;
  padding: 20px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.5);
  z-index: 9999;        /* Très haut pour être au-dessus du menu */
  overflow-y: auto;      /* Permet de scroller si trop de photos */
  display: none;         /* S'affiche quand on clique sur le panier */
}

#close-cart {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

#cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background: #1c0f2b;
  color: #fff;
  padding: 20px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.5);
  z-index: 9999;
  overflow-y: auto;
  display: none; /* s'affiche quand on clique sur l'icône panier */
}

#close-cart {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.cgv-container {
  margin: 15px 0;
  font-size: 14px;
  color: #f2f2f2;
}

.cgv-container a {
  color: #620080; /* violet club */
  text-decoration: underline;
}

#checkout:disabled {
  background: #555;
  cursor: not-allowed;
}

#checkout {
  background: #620080;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.cart-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 4px;
}
#cart-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
#cart-list li span {
  flex-grow: 1;
}

.photo-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

/* =========================
   IMAGE HOVER
========================= */
.photo-wrapper img {
  transition: transform 0.35s ease, filter 0.35s ease;
  cursor: pointer;
}

.photo-wrapper:hover img {
  transform: scale(1.04);
  filter: brightness(0.92);
}

/* =========================
   BOUTON +
========================= */
.photo-add {
  position: absolute;
  bottom: 12px;
  right: 12px;

  width: 38px;
  height: 38px;
  border-radius: 50%;

  background: linear-gradient(135deg, #6a1b9a, #9c27b0);
  color: #fff;
  font-size: 22px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  cursor: pointer;
  z-index: 5;

  box-shadow: 0 6px 15px #620080;
  transition: all 0.25s ease;
}

.photo-add:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 22px #620080;
}

.photo-add:active {
  transform: scale(0.95);
}

/* ============================
   MEDIA DAY — MODE MOBILE
   ============================ */
@media (max-width: 768px) {

  /* --------- GALERIE --------- */
  .media-day-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .media-day-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
  }

  .media-day-photo img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* --------- BOUTON + --------- */
  .media-day-photo .add-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #6a1bb1; /* violet club */
    color: #fff;
    font-size: 18px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }

  .media-day-photo .add-btn:active {
    transform: scale(0.9);
  }

  /* --------- PANIER ICÔNE FLOTTANTE --------- */
  #cart-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #6a1bb1;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  }

  #cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #fff;
    color: #6a1bb1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
  }

  /* --------- PANIER PLEIN ÉCRAN --------- */
  #cart-panel {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 2000;
    padding: 16px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  #cart-panel.open {
    transform: translateY(0);
  }

  #cart-panel h2 {
    margin-top: 0;
    color: #6a1bb1;
  }

  /* --------- BOUTON FERMER PANIER --------- */
  .close-cart {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 22px;
    background: none;
    border: none;
  }

  /* --------- LISTE PANIER --------- */
  #cart-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
  }

  #cart-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  #cart-list img {
    width: 60px;
    height: auto;
    border-radius: 6px;
  }

  #cart-empty {
    text-align: center;
    color: #888;
  }

  .total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
  }

  /* --------- CGV --------- */
  .cgv {
    margin-top: 15px;
    font-size: 14px;
  }

  .cgv a {
    color: #6a1bb1;
    text-decoration: underline;
  }

  /* --------- BOUTON COMMANDER --------- */
  #checkout {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    background: #6a1bb1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
  }

  #checkout:disabled {
    background: #bbb;
  }

}

.media-day-info {
  max-width: 1200px;
  margin: 20px auto 10px;
  padding: 0 12px;
  text-align: center;
}

.media-day-info h2 {
  margin-bottom: 6px;
  color: #6a1bb1; /* violet club */
  font-size: 22px;
}

.media-day-info p {
  font-size: 15px;
  color: #555;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .media-day-info p {
    font-size: 14px;
  }
}

.media-day-info h2 {
  margin-bottom: 10px;
  color: #6a1bb1;          /* violet club */
  font-size: 55px;         /* PLUS GRAND */
  font-weight: 695;        /* bien marqué */
  letter-spacing: 0.5px;   /* look plus premium */
}



img {
  user-select: none;
  -webkit-user-drag: none;
}

.photo-add {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #8a2be2; /* violet */
  color: #fff;
  font-size: 20px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-add.added::after {
  content: "✔";       /* coche */
  position: absolute;
  font-size: 18px;
  color: #fff;        /* couleur de la coche */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: popCheck 0.5s forwards;
}

@keyframes popCheck {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}


/* Animation flash pour le panier */
/* Animation pop du panier */
#cart-fab {
  transition: transform 1.5s ease;
}

#cart-fab.pop {
  transform: scale(3);
}

/* =========================
   FORMULAIRE & PANIER STYLE AMÉLIORÉ
========================= */

/* PANIER */
#cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 320px;
  background: #fff;
  box-shadow: -3px 0 15px #620080;
  padding: 25px;
  transform: translateX(100%);
  transition: transform 0.3s;
  z-index: 1000;
  font-family: 'Arial', sans-serif;
}
#cart-panel.open { transform: translateX(0); }
#cart-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
  color: #6a0dad;
  transition: color 0.3s;
}
#cart-close:hover { color: #430080; }

/* FORMULAIRE MODAL */
#order-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}
#order-modal.show { display: flex; }

#order-form {
  background: #fff;
  padding: 35px 25px;
  border-radius: 12px;
  width: 95%;
  max-width: 400px;
  box-shadow: 0 8px 25px #620080;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Arial', sans-serif;
}

/* TITRE FORMULAIRE */
#order-form h3 {
  text-align: center;
  color: #6a0dad;
  font-size: 22px;
  margin-bottom: 10px;
}

/* INPUTS */
#order-form input, #order-form select {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1.5px solid #620080;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}
#order-form input:focus, #order-form select:focus {
  border-color: #6a0dad;
  box-shadow: 0 0 8px rgba(106,13,173,0.3);
}

/* BOUTONS */
#order-form button {
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #6a0dad;
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
#order-form button:hover {
  background: #540d9a;
  transform: translateY(-2px);
}

/* BOUTON ANNULER */
#order-form button#close-form {
  background: #eee;
  color: #333;
}
#order-form button#close-form:hover {
  background: #ddd;
  transform: translateY(-2px);
}

/* CGV CHECKBOX */
.cgv-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.cgv-container a { color: #6a0dad; text-decoration: none; transition: 0.3s; }
.cgv-container a:hover { text-decoration: underline; color: #430080; }

/* TOTAL */
#cart-panel .total {
  font-weight: bold;
  margin-top: 15px;
  font-size: 18px;
}

/* FORMAT SELECT */
.format-container select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid #620080;
  font-size: 15px;
  margin-top: 8px;
  outline: none;
  transition: 0.3s;
}
.format-container select:focus {
  border-color: #6a0dad;
  box-shadow: 0 0 8px rgba(106,13,173,0.3);
}

/* PANIER EN VIOLET SOMBRE */
#cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 320px;
  background: #430080; /* violet sombre */
  color: #fff;         /* texte blanc pour contraste */
  box-shadow: -3px 0 15px rgba(0,0,0,0.3);
  padding: 25px;
  transform: translateX(100%);
  transition: transform 0.3s;
  z-index: 1000;
  font-family: 'Arial', sans-serif;
}

/* Titres et total en blanc */
#cart-panel h2,
#cart-panel .total {
  color: #fff;
}

/* Liste des photos dans le panier */
#cart-panel li span {
  color: #fff;
}

/* Bouton fermer */
#cart-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
  color: #fff; /* blanc pour contraste */
  transition: color 0.3s;
}
#cart-close:hover { color: #ccc; }

/* Boutons dans le formulaire restent violet avec texte blanc */
#order-form button {
  background: #6a0dad;
  color: #fff;
}
#order-form button:hover { background: #540d9a; }


@media (max-width: 768px) {
  .lightbox-content {
    width: 80vw;
    max-width: none;
  }

  #lightbox-img {
    max-height: 45vh;
  }
}



/* LIGHTBOX */
#lightbox {
  display: none; /* caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(81, 29, 120, 0.9); /* fond violet transparent */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox.show {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 30%;
  max-height: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg); /* centré et incliné */
  color: rgba(255, 255, 255, 0.9); /* blanc très transparent */
  font-size: 80px; /* très grand */
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 5px;
}

.cart-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-format {
  font-size: 13px;
}

.item-price {
  font-weight: bold;
}


/* MODAL */
#order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#order-modal form {
  background: #fff;
  padding: 24px 28px;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: pop 0.25s ease;
}

#order-modal h3 {
  margin-bottom: 8px;
  text-align: center;
  font-size: 20px;
}

#order-modal input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

#order-modal input:focus {
  outline: none;
  border-color: #6a5acd;
}

#order-modal button[type="submit"] {
  background: #6a5acd;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}

#order-modal button[type="button"] {
  background: transparent;
  border: none;
  color: #777;
  cursor: pointer;
}

@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


/* MODAL CACHÉ PAR DÉFAUT */
#order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none; /* 👈 IMPORTANT */
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* MODAL VISIBLE UNIQUEMENT QUAND .show EST AJOUTÉ */
#order-modal.show {
  display: flex;
}


.order-confirmation {
  display: none; /* caché par défaut */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border: 2px solid #333;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 300px;
  border-radius: 10px;
}

.order-confirmation.show {
  display: block;
}


.cart-close{
  position:absolute;
  top:8px;
  right:10px;
  font-size:16px;
  color:#7b3fe4;
  cursor:pointer;
  user-select:none;
  transition:opacity 0.2s ease;
}

.cart-close:hover{
  opacity:0.6;
}

#cart{
  position:relative;
}

/* MODAL */
#order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#order-modal form {
  background: #fff;
  padding: 24px 28px;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: pop 0.25s ease;
}

#order-modal h3 {
  margin-bottom: 8px;
  text-align: center;
  font-size: 20px;
}

#order-modal input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

#order-modal input:focus {
  outline: none;
  border-color: #6a5acd;
}

#order-modal button[type="submit"] {
  background: #6a5acd;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}

#order-modal button[type="button"] {
  background: transparent;
  border: none;
  color: #777;
  cursor: pointer;
}

@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* MODAL CACHÉ PAR DÉFAUT */
#order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* 👈 IMPORTANT */
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* MODAL VISIBLE UNIQUEMENT QUAND .show EST AJOUTÉ */
#order-modal.show {
  display: flex;
}

.order-confirmation {
  display: none; /* caché par défaut */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border: 2px solid #333;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 300px;
  border-radius: 10px;
}

.order-confirmation.show {
  display: block;
}

/* PAGE TOURNOI */

.tournoi-page {
  text-align: center;
  padding: 50px 20px;
}

.tournoi-page h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.tournoi-description {
  max-width: 800px;
  margin: auto;
  font-size: 18px;
  color: #555;
}

/* INTERVIEWS */

.interviews {
  padding: 50px 20px;
  background: #f5f5f5;
}

.interviews h2 {
  text-align: center;
  margin-bottom: 40px;
}

.interview-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.interview-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.interview-card h3 {
  color: #620080;
  margin-bottom: 20px;
}

.qa {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.question {
  font-weight: bold;
  color: #222;
}

.reponse {
  margin-top: 5px;
  color: #555;
}

/* GALERIE */

.galerie-page {
  padding: 50px 20px;
}

.galerie-page h2 {
  text-align: center;
  margin-bottom: 40px;
}

.event-images {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.photo {
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.photo img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.photo img:hover {
  transform: scale(1.03);
}

/* BOUTON TELECHARGER */

.download-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #620080;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: 0.3s;
}

.download-btn:hover {
  background: #620080;
}

/* LIGHTBOX */

#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
}

#close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* RESPONSIVE */

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

  .event-images {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .event-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .tournoi-page h1 {
    font-size: 24px;
  }
}

/* HEADER */

/* HEADER */

.header-container {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  max-width: 1400px;
  margin: auto;
}

/* LOGO */

.logo {
  height: 55px;
  margin-right: 30px;
}

/* NAV */

nav {
  flex: 1;
}

/* MENU */

.menu {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px; /* espace entre boutons */
}

/* BOUTONS */

.menu li {
  margin: 0;
}

.menu a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  padding: 8px 10px;
  transition: 0.3s;
  white-space: nowrap;
}

.menu a:hover {
  color: #620080;
}

/* MENU */

nav {
  flex: 1;
}

.interview-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  justify-content: center;
}

/* si une seule interview */

.interview-container:has(.interview-card:only-child) {
  grid-template-columns: 400px;
  justify-content: center;
}
.menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* BOUTONS MENU */

.menu li {
  margin: 0 5px;
}

.menu a {
  text-decoration: none;
  color: #620080;
  font-weight: 500;
  padding: 10px 12px;
  transition: 0.3s;
}

.menu a:hover {
  color: #620080;
}

#myLightbox {
  display: none; /* masqué */
  position: fixed;
  inset: 0; /* top/right/bottom/left: 0 */
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

/* Quand .active est ajouté par le JS */
#myLightbox.active {
  display: flex;
}

/* --- Fond semi-transparent --- */
#lightboxOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: lbFadeIn 0.25s ease;
}

/* --- Zone centrale (image + boutons) --- */
#lightboxContent {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 70px;
  box-sizing: border-box;
  animation: lbZoomIn 0.25s ease;
}

/* --- Image --- */
#lightboxImgWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  flex: 1;
}

#lightboxImg {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  transition: opacity 0.18s ease;
  display: block;
}

/* --- Bouton Fermer (×) --- */
#closeLightbox {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
  z-index: 2;
}

#closeLightbox:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.1) rotate(90deg);
}

/* --- Boutons flèches (précédent / suivant) --- */
#prevLightbox,
#nextLightbox {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
  z-index: 2;
  flex-shrink: 0;
}

#prevLightbox {
  left: 12px;
}
#nextLightbox {
  right: 12px;
}

#prevLightbox svg,
#nextLightbox svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

#prevLightbox:hover,
#nextLightbox:hover {
  background: rgba(255, 255, 255, 0.28);
}

#prevLightbox:hover {
  transform: translateY(-50%) scale(1.1);
}
#nextLightbox:hover {
  transform: translateY(-50%) scale(1.1);
}

/* --- Compteur (ex : "3 / 35") --- */
#lightboxCounter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  pointer-events: none;
  white-space: nowrap;
}

/* --- Animations d'entrée --- */
@keyframes lbFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lbZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Responsive mobile --- */
@media (max-width: 600px) {
  #lightboxContent {
    padding: 56px 48px;
  }

  #prevLightbox {
    left: 4px;
    width: 40px;
    height: 40px;
  }
  #nextLightbox {
    right: 4px;
    width: 40px;
    height: 40px;
  }

  #prevLightbox svg,
  #nextLightbox svg {
    width: 18px;
    height: 18px;
  }
}


.tournoi-interview-teaser {
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tournoi-interview-teaser p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: inherit;
}

.btn-interview {
    display: inline-block;
    padding: 0.65rem 1.8rem;
    background: #620080; 
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.btn-interview:hover {
    background: #620080;
    transform: translateY(-2px);
}

/* ================= MOBILE ================= */

@media screen and (max-width: 768px) {

    main {
        padding: 10px;
        text-align: center;
    }

    .tournoi-page {
        text-align: center;
        padding: 10px;
    }

    .tournoi-description {
        text-align: center;
        margin: auto;
        max-width: 95%;
    }

    .tournoi-interview-teaser {
        text-align: center;
        padding: 15px;
    }

    .galerie-page {
        text-align: center;
    }

    .event-images {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .photo {
        width: 95%;
        max-width: 400px;
        margin: auto;
    }

    .photo img {
        width: 100%;
        height: auto;
        display: block;
        margin: auto;
    }

    .download-btn {
        display: block;
        margin: 10px auto;
        text-align: center;
    }

    .interviews {
        text-align: center;
        padding: 10px;
    }

    .interview-container {
        display: flex;
        justify-content: center;
    }

    .interview-card {
        width: 95%;
        max-width: 500px;
        margin: auto;
        text-align: left;
    }

    .sponsors-carousel {
        overflow: hidden;
        text-align: center;
    }

    footer {
        text-align: center;
        padding: 15px;
    }
    
    
}