:root{
    /* les couleurs du site */
    --ecru: #fff8dc;
    --jaune: #e4a600;
    --bleu: #1550c6;
    --bRoi: #4169E1;

    font-size: 12px;
    /* font-family: 'Philosopher', 'Lora', Tahoma, sans-serif; */
    /* font-family: 'Roboto','Philosopher'; */
}

@font-face {
    font-family: 'coolveticaRegular';
    src: url('/fonts/coolvetica rg.otf');
    font-weight: normal; /* Définit le poids (normal, bold, etc.) */
    font-style: normal;  /* Définit le style (normal, italic, etc.) */
}

@font-face {
    font-family: 'sansationRegular';
    src: url('/fonts/Sansation_Regular.ttf');
    font-weight: normal; /* Définit le poids (normal, bold, etc.) */
    font-style: normal;  /* Définit le style (normal, italic, etc.) */
}

body{
    font-family: 'sansationRegular', sans-serif;
}

h1 {
    text-align: center;
    text-decoration: underline;
    margin: 20px 0;
}

h2 {
    margin-left: 15px;
    padding-bottom: 10px;
}

section{
    display: flex; /* Active Flexbox */
    flex-direction: column; /* Place les éléments verticalement */
    align-items: center; /* Centre horizontalement */
    margin: 20px 0; /* Espacement vertical entre les sections */
}

.img-equipe {
    width: 300px;
    height: 300px;
}

.img-poule {
    width: 300px;
    height: 300px;
}

.equipeJeune, .equipeAdulte{
    margin: 20px;
}

#lienEquipeAdulte {
    display: flex; /* Active Flexbox */
    flex-wrap: wrap; /* Permet le retour à la ligne si nécessaire */
    justify-content: center; /* Centre les boutons horizontalement */
    gap: 15px; /* Espacement entre les boutons */
    margin-top: 10px; /* Espacement entre le titre et les boutons */
}

#lienEquipeJeune{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 15px;
}

#lienEquipeJeune a {
    flex: 1 1 40%; /* Chaque bouton prend environ 40% de la ligne */
    max-width: 200px; /* Empêche un bouton seul de s'étendre */
    text-align: center;
    border: solid 5px var(--jaune);
    background-color: var(--jaune);
    /* background-color: #F2BE22; */
    border-radius: 5px;
    color: black;
    text-decoration: none;
    margin: 10px;
    padding: 6px 30px;
}

/* Empêche le dernier bouton de s'étirer seul sur toute la ligne */
#lienEquipeJeune a:nth-child(odd):last-child {
    flex-basis: 40%;
    margin-right: auto;
    margin-left: auto;
}

#lienEquipeAdulte a{
    display: inline-block;
    border: solid 5px var(--jaune);
    background-color: var(--jaune);
    /* background-color: #F2BE22; */
    border-radius: 5px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    margin: 20px;
    padding: 6px 30px;
    transition: background-color 0.3s ease; /* Animation sur hover */
}

/* Effet au survol */
#lienEquipeJeune a:hover, #lienEquipeAdulte a:hover {
    background-color: #0056b3; /* Change la couleur au survol */
}

.videoEquipeForm{
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 15px; 
    margin-top: 10px;
}

.videoContainer{
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: center;
}

.videoContainer video {
    margin-bottom: 10px; 
}

#videoMatch{
    width: 100%;
    height: auto;
}
/* Fin de la vue portable */
/* Pour revenir en une seule colonne sur très petit écran */
@media screen and (max-width: 400px) {
    #lienEquipeJeune a {
        flex: 1 1 100%;
    }
}
/* Vue tablette */
@media screen and (min-width:601px){
    :root {
        font-size: 14px;
    }

    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
        padding: 10px;
    }

    #videoMatch{
        width: 500px;
        height: 240px;
    }
}

/* Ecran d'au moins 1024px de largeur */
@media screen and (min-width:1024px) {
    :root {
        font-size: 20px;
    }
    
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.8rem;
        padding: 10px;
    }

    #videoMatch{
        width: 500px;
        height: 240px;
    }

    #lienEquipeJeune{
        display: flex; /* Active Flexbox */
        flex-wrap: wrap; /* Permet le retour à la ligne si nécessaire */
        justify-content: center; /* Centre les boutons horizontalement */
        gap: 15px; /* Espacement entre les boutons */
        margin-top: 10px; /* Espacement entre le titre et les boutons */
    }

    #lienEquipeJeune a{
        display: inline-block;
        border: solid 5px var(--jaune);
        background-color: var(--jaune);
        /* background-color: #F2BE22; */
        border-radius: 5px;
        color: black;
        text-decoration: none;
        font-weight: bold;
        margin: 20px;
        padding: 6px 30px;
        transition: background-color 0.3s ease; /* Animation sur hover */
    }
}
/* fin de la vue ordinateur */