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

html, body {
    width: 100%;
    min-width: 768px;
    overflow-x: hidden;
}
header {
    background-image: url(images/image1.jpg);
    font-family: 'Montserrat', sans-serif;
    height: 628px;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    width: 100vw;
    color: white;
    border-bottom: solid 2px whitesmoke;
    gap: 30px;
    padding-top: 20px; 
    position: relative;
}

.logo {
    margin-top: 16px;
    width: 70px;
    height: 70px;
    aspect-ratio: 1/1;
    transition: all 0.3s ease;
}

.left-text, .right-text {
    color: white;
    margin-top: 45px; 
    font-size: 1.2em;
   /* font-weight: bold;*/
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.left-text:hover, .right-text:hover {
    transform: scale(1.05);
    color: #9d2521;
}

h1 {
    position: absolute;
    margin-top: 350px;
    font-size: 4em;
    /*font-weight: bold;*/
    color: white;
    transition: all 0.3s ease;
}

h1:hover {
    transform: scale(1.05);
}
body {
    font-family: 'Montserrat';
    background-color: #151e2d;
    width: 100vw;
}
h2 {
    margin-top: 50px;
    font-size: 2em;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.histoire{
    font-size: 3em;
}

.coupes {
    display: block;
    width: fit-content; 
    margin: 0 auto; 
    margin-top: 50px;
    min-height: 50px; 
    overflow: visible; 
    margin-bottom: 20px;
}
.coupes img{
    width: 180px;
    transition: all ease 0.3s;
}
.coupes img:hover{
    transform: scale(1.05);
}
.content {
    /*margin-top: 50px;*/
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}
.imgd {
    width: 700px;
    height: auto;
    background-color: black;
    border: solid 2px #9d2521;
    border-radius: 30px;
    align-items: center;
    margin-right: 20px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}
.text-content {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.description {
    margin-left: 30px;
    max-width: 580px;
    font-size: 1.2em;
    line-height: 1.5;
}
.text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    margin: 80px auto;
    margin-right: 250px;
    padding: 20px;
    border: 2px solid #9d2521;
    border-radius: 10px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.text h3 {
    font-size: 4em;
    font-weight: bold;
    color: white;
    margin: 0 20px;
    background-color: #9d2521;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #151e2d;
}

.text p {
    font-size: 1.2em;
    color: white;
    flex: 1;
    padding: 10px;
    text-align: center;
}

.text img {
    width: 400px;
    height: auto;
    border-radius: 28px;
    margin-right: 20px;
}
.text2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    margin: 80px auto;
    margin-left: 250px;
    padding: 20px;
    border: 2px solid #9d2521;
    border-radius: 10px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}
h3 {
    font-size: 3em;
    width: fit-content;
    font-weight: bold;
    color: white;
    margin: 0 auto; /* Centre horizontalement */
    margin-bottom: 50px;
    background-color: #9d2521;
    padding: 10px 20px;
    border-radius: 15px;
    border: 2px solid #151e2d;
}



.text2 h3 {
    font-size: 4em;
    font-weight: bold;
    color: white;
    margin: 0 20px;
    background-color: #9d2521;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #151e2d;
}

.text2 p {
    font-size: 1.2em;
    color: white;
    flex: 1;
    padding: 10px;
    text-align: center;
}

.text2 img {
    width: 400px;
    height: auto;
    border-radius: 28px;
    margin-right: 20px;
}
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
}
.box {
    border: 3px solid #9d2521;
    border-radius: 30px;
    overflow: hidden;
    background-color:  rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    padding: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    max-width: 400px;
    font-size: 18px;
    line-height: 1.5;
}
.image-box {
    border: 2px solid #9d2521;
    border-radius: 30px;
    overflow: hidden;
}
.image-box img {
    width: 400px;
    height: auto;
    display: block;
}
.centered-button {
    margin-top: 20px;
    background-color: #9d2521;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.centered-button:hover {
    background-color: #c7332b;
    transform: scale(1.05);
}
a{
    text-decoration: none;
}
.joueur-container {
    display: flex;
    justify-content: center; /* centre les images */
    flex-wrap: nowrap; /* pas de retour à la ligne */
    gap: 20px; /* espace entre les images */
    margin: 40px auto;
    overflow-x: auto; /* permet de scroller si trop large */
    padding: 10px;
    max-width: 100%;
}

.joueur {
    flex: 0 0 auto; /* empêche le redimensionnement automatique */
}

.photo {
    height: 250px; /* ou ajuste selon tes besoins */
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.joueur:hover {
    transform: scale(1.05); /* petit effet zoom au survol */
}

.footer {
    background-color: white;
    color: #151e2d;
    padding: 20px 0;
    text-align: center;
    border-top: #9d2521 3px solid;
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
}

.footercontent {
    max-width: 1000px;
    margin: 0 auto;
}

.footerlogo img {
    margin: 10px 15px;
    vertical-align: middle;
}

.footerliens {
    margin: 15px 0;
}

.footerliens a {
    color: #151e2d;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
}

.footerliens a:hover {
    text-decoration: underline;
}

.footertext {
    font-size: 0.9em;
    margin-top: 10px;
}
@media (max-width: 768px) {
  body {
    padding: 0 15px;
    font-size: 16px;
  }

  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 0;
  }

  .logo {
    width: 80px;
    height: auto;
  }

  .left-text, .right-text {
    font-size: 1em;
    margin: 5px 0;
  }

  h1 {
    font-size: 1.8em;
  }

  h2, h3 {
    text-align: center;
    font-size: 1.4em;
    margin: 20px 0;
  }

  video {
    width: 100%;
    height: auto;
  }

  .content {
    flex-direction: column;
    align-items: center;
    text-align: justify;
  }

  .content video {
    width: 100%;
    margin-bottom: 20px;
  }

  .description {
    font-size: 1em;
  }

  .text, .text2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
    margin: 30px 0;
  }

  .text img, .text2 img {
    width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 8px;
  }

  .container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
  }

  .image-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .box {
    padding: 15px;
    font-size: 1em;
    text-align: justify;
  }

  .centered-button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    font-size: 1em;
  }

  .coupes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
  }

  .coupes img {
    width: 60px;
    height: auto;
  }
}
