/* Global Styles */
@font-face {
    font-family: 'raleway';
    src: local('raleway'),
         url('fonts/raleway.woff2') format('woff2'),
         url('fonts/raleway.woff') format('woff');
  }
  @font-face {
    font-family: 'Source Sans Pro';
    src: local('Source Sans Pro'),
         url('fonts/Source Sans Pro.woff2') format('woff2'),
         url('fonts/Source Sans Pro.woff') format('woff');    
  }
  @font-face {
    font-family: 'Roboto';
    src: local('Roboto'),
         url('fonts/Roboto.woff2') format('woff2'),
         url('fonts/Roboto.woff') format('woff');
         
  }
body {
    margin: 0;
    
    font-family: 'Raleway', sans-serif;
    background-color: #f9f9f9;
}
header {
    display: flex;
    background-color: #FAF0CA;
    padding: 10px;
    justify-content: space-between;
    align-items: center;
    
}  
.logo {
    display: flex;
    justify-content: flex-end;

}

.logo :hover {
    width: 100px;
    height: 100px;
    transition: opacity 0.5s ease-in-out; 

}
a{
    text-decoration: none;
    color: black;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
  
  
  }

/* Container for Coach Cards */
.coach-container {
    display: grid;
    grid-template-columns: 1fr; /* Une seule colonne par défaut sur mobile */
    gap: 20px;
    
    background-color: #003366; /* Bleu foncé pour le fond */
}

/* Card Styles */
.card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: white; /* Fond blanc des cartes */
    text-align: center; /* Centrer le texte dans les cartes */
}

/* Uniform Image Sizes */
.card img {
    width: 100%; /* L'image remplit horizontalement la carte */
    height: 200px; /* Hauteur fixe pour toutes les images */
    object-fit: cover; /* Ajuste l'image pour remplir l'espace tout en gardant son ratio */
    border-radius: 10px 10px 0 0; /* Arrondi uniquement sur le haut */
    transition: transform 0.3s ease, filter 0.3s ease;
    
}

.card:hover img {
    transform: scale(1.05); /* Effet de zoom */
    filter: brightness(0.8); /* Rendre l'image légèrement plus sombre au survol */
}

/* Text Overlay Styles */
.text-overlay {
    padding: 10px;
    font-size: 14px;
    color: #333; /* Texte noir */
    background: white; /* Fond blanc */
}

.text-overlay h3 {
    font-size: 18px;
    margin: 0px 0 15px 0;
    color: #003366; /* Bleu pour les titres */
}

.text-overlay p {
    margin: 5px 0;
}
footer {
    background-color: #F95738;
    color: white;
    padding: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    text-align: center;
}

footer p {
    margin: 5px 0;
    color: white;
}

footer img {
    width: 22px;
    height: 22px;
    margin: 0 6px;
}
  
  
  #back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff704d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: none; /* Par défaut, le bouton est masqué */
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  #back-to-top:hover {
    transform: scale(1.1);
    opacity: 0.8;
  }
  
/* Responsive Design for Larger Screens */
@media (min-width: 768px) {
    .coach-container {
        grid-template-columns: repeat(4, 1fr); /* Quatre colonnes pour la version PC */
        gap: 30px; /* Espacement entre les cartes */
        padding: 40px; /* Plus de padding sur PC */
    }

    .card {
        width: 100%;
        max-width: 300px; /* Limiter la largeur des cartes */
        margin: auto; /* Centrer les cartes dans leur colonne */
    }
    #back-to-top {
   
        visibility: hidden;
    }
    

}
