html, body {
  overflow-x: hidden;
  
}

*, *::before, *::after {
  box-sizing: border-box;
}


body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-image: url("../image/gantBoxe.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: black; /* texte global */
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* Bloc principal blanc */
.bloc-histoire {
  max-width: 1000px;
  margin: 130px auto 60px auto;
  background-color: rgba(255, 255, 255, 0.95);
  color: black;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
@media (max-width: 1100px) {
    .bloc-histoire{
        margin-top:20vh;
    }
    
    
}


.bloc-histoire h1 {
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #c62828;
}

.bloc-histoire .intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
  font-style: italic;
}


.section-texte {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.section-texte.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-texte h2 {
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  color: #c62828;
}

.section-texte p {
  font-size: 1rem;
  line-height: 1.6;
}

.section-texte ul {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.section-texte ul li {
  margin: 6px 0;
  font-size: 1rem;
}

/* Cartes des entraîneurs */
.cartes-entraineurs {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.carte-entraineur {
  position: relative;
  overflow: hidden;
  background-color: white;
  color: #111;
  border-radius: 12px;
  padding: 20px;
  max-width: 300px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 1;
}

/* Animation rouge qui monte au survol */
.carte-entraineur::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #c62828;
  transform: translateY(100%) translateX(-100%) rotate(45deg); /* hors champ diagonale */
  transform-origin: bottom left;
  transition: transform 0.8s ease;
  z-index: 0;
  border-radius: 12px;
}



.carte-entraineur:hover::before {
  transform: translateY(0) translateX(0) rotate(45deg);
}


.carte-entraineur:hover {
  transform: scale(1.03);
}

.carte-entraineur * {
  position: relative;
  z-index: 1;
}

.carte-entraineur img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 15px;
}

.carte-entraineur h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #c62828;
  font-weight: bold;
  font-family: 'Anton', sans-serif;
}

.carte-entraineur p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Footer */
.baspage {
    background-color: #363734;
    width: 100%;
    padding: 40px 20px;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0; /* empêcher de rétrecir */
}

* {
  box-sizing: border-box;
}
