/* ================= PAGE D'ACCUEIL ET STYLE GENERAL =======================*/

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}
header {
    text-align: center;
    background: linear-gradient(to right, #6fcf97, #56b8d6);
    color: white;
    padding: 1em 0;
}
header .logo {
    max-width: 150px;
    margin-bottom: 10px;
}
nav {
    background-color: rgba(47, 79, 79, 0.8); /* Fond semi-transparent vert foncé */
    backdrop-filter: blur(5px); /* Effet de flou pour le style transparent */
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}
nav ul li {
    flex-grow: 1;
    text-align: center;
}
nav ul li a {
    display: inline-block;
    width: 100%;
    padding: 15px 0;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}
nav ul li a:hover {
    background-color: rgba(144, 238, 144, 0.8); /* Vert clair transparent */
    color: #2f4f4f; /* Texte vert foncé */
    border-radius: 5px;
}
.hero {
    text-align: center;
    padding: 3em;
    background: url('Football player.webp') no-repeat center center / cover;
    color: white;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}
.hero h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em 0;
}
main section {
    width: 80%;
    padding: 2em;
    background-color: white;
    margin: 1em 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
footer {
    text-align: center;
    padding: 1em 0;
    background-color: #333;
    color: white;
    margin-top: 1em;
}
.center {
    text-align: center;
}
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1em;
}
.video-container img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.video-container img:hover {
    transform: scale(1.05);
}
/* Animation pour le titre principal */
header h1 {
    animation: slideIn 1s ease-out forwards;
    opacity: 0; /* Initialement caché pour l'animation */
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation pour la nav bar au survol */
nav ul li a {
    position: relative;
    transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover {
    color: #28a745;
    transform: scale(1.1);
}

/* Animation pour les sections */
main section {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

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

/* Animation pour les images dans la section vidéo */
.video-container img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}





/* ================= PAGE HISTORIQUE ==============*/

/* Styles généraux de la timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}
    /* Ligne centrale */
    .timeline::after {
        content: '';
        position: absolute;
        width: 6px;
        background-color: #28a745;
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%); /* Centrage précis */
    }
    /* Chaque événement */
    .timeline-item {
        position: relative;
        width: 50%;
        padding: 10px 20px;
        box-sizing: border-box;
    }

    /* Événements à gauche */
    .timeline-item.left {
        left: 0;
        text-align: right;
    }
    /* Événements à droite */
    .timeline-item.right {
        left: 50%;
        text-align: left;
    }
    /* Points de la timeline */
    .timeline-item::before {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: #28a745;
        top: 20px;
        border: 4px solid white;
        z-index: 1;
    }

    /* Position des points pour chaque côté */
    .timeline-item.left::before {
        right: -10px; /* Aligné sur la ligne */
    }
    .timeline-item.right::before {
        left: -10px; /* Aligné sur la ligne */
    }

    /* Contenu des événements */
    .timeline-item-content {
        background-color: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .timeline-item-content h3 {
        margin: 0;
        font-size: 1.2em;
        color: #28a745;
    }

    .timeline-item-content p {
        margin: 10px 0 0;
        font-size: 1em;
        color: #555;
    }



    /* Responsivité */
    @media (max-width: 768px) {
        .timeline {
            padding: 20px;
        }

        /* Déplacer tout à gauche */
        .timeline::after {
            left: 20px; /* Ligne décalée pour mobile */
            transform: none;
        }

        .timeline-item {
            width: 100%;
            padding-left: 40px;
            padding-right: 20px;
        }

        .timeline-item.left,
        .timeline-item.right {
            left: 0;
            text-align: left;
        }

/* Points alignés à gauche */
.timeline-item::before {
    left: 10px;
    }
}
/* Responsivité Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li a {
        text-align: center;
        font-size: 1.2em;
        padding: 10px 0;
    }
}
.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1em;
}
.video-container img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.video-container img:hover {
    transform: scale(1.05);
}
/* Animation pour les éléments à gauche */
.timeline-item.left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Animation pour les éléments à droite */
.timeline-item.right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease-out forwards;
}

/* Déclenchement décalé des animations */
.timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}
.timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}
.timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}
.timeline-item:nth-child(4) {
    animation-delay: 0.8s;
}
.timeline-item:nth-child(5) {
    animation-delay: 1s;
}
.timeline-item:nth-child(6) {
    animation-delay: 1.2s;
}
.timeline-item:nth-child(7) {
    animation-delay: 1.4s;
}
.timeline-item:nth-child(8) {
    animation-delay: 1.6s;
}
.timeline-item:nth-child(9) {
    animation-delay: 1.8s;
}
.timeline-item:nth-child(10) {
    animation-delay: 2s;
}

/* Définition des animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}






/* =============== PAGE REGLE ===============*/
section {
    background-color: #f9f9f9;
    padding: 20px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    font-family: "Arial", sans-serif;
    line-height: 1.6;
}
/* Titre principal */
section h2 {
    text-align: center;
    color: #28a745;
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
/* Paragraphe principal */
section p {
    color: #333;
    font-size: 1.2em;
    text-align: justify;
}
/* Style des règles listées */
.rules {
    margin-top: 20px;
    list-style: none;
    padding: 0;
}
.rules li {
    background: #ffffff;
    margin: 10px 0;
    padding: 15px;
    border-left: 5px solid #28a745;
    border-radius: 8px;
    font-size: 1.1em;
    color: #555;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}
/* Numérotation ou icônes */
.rules li::before {
    content: "⚽";
    color: #28a745;
    font-size: 1.5em;
    margin-right: 10px;
}
/* Responsivité */
@media (max-width: 600px) {
    section {
        padding: 15px;
    }

    section h2 {
        font-size: 1.8em;
    }

    .rules li {
        font-size: 1em;
    }
}
/* Animation pour l'apparition des règles */
.rules li {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInFromLeft 0.5s ease-out forwards;
}

/* Déclenchement décalé des animations */
.rules li:nth-child(1) {
    animation-delay: 0.2s;
}
.rules li:nth-child(2) {
    animation-delay: 0.4s;
}
.rules li:nth-child(3) {
    animation-delay: 0.6s;
}
.rules li:nth-child(4) {
    animation-delay: 0.8s;
}
.rules li:nth-child(5) {
    animation-delay: 1s;
}
.rules li:nth-child(6) {
    animation-delay: 1.2s;
}
.rules li:nth-child(7) {
    animation-delay: 1.4s;
}
.rules li:nth-child(8) {
    animation-delay: 1.6s;
}

/* Définition de l'animation */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}






/* ================ PAGE ENTRAINEUR ================ */


.coach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
}
/* Carte entraîneur */
.coach-card {
    background-color: #ffffff;
    border: 2px solid #28a745;
    border-radius: 12px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* Effet au survol */
.coach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* Image de profil */
.coach-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #28a745;
}
/* Nom de l'entraîneur */
.coach-card h3 {
    font-size: 1.2em;
    color: #28a745;
    margin: 10px 0 5px;
}
/* Style */
.coach-card p {
    font-size: 1em;
    color: #555;
}
/* Responsivité */
@media (max-width: 600px) {
    .coach-card {
        padding: 15px;
    }

    .coach-card img {
        width: 80px;
        height: 80px;
    }

    .coach-card h3 {
        font-size: 1.1em;
    }
}




/* ============= PAGE CATEGORIES ============ */
.categories {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    padding: 20px;
    max-width: 900px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.category-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}
/* Effet au survol */
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* Image de la catégorie */
.category-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #28a745;
}
/* Détails de la catégorie */
.category-details {
    flex: 1;
}
/* Titre de la catégorie */
.category-details h3 {
    margin: 0;
    font-size: 1.5em;
    color: #28a745;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
/* Description de la catégorie */
.category-details p {
    margin: 10px 0 0;
    font-size: 1.1em;
    color: #555;
    line-height: 1.5;
}
/* Responsivité */
@media (max-width: 600px) {
    .category-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .category-card img {
        width: 60px;
        height: 60px;
    }

    .category-details h3 {
        font-size: 1.3em;
    }

    .category-details p {
        font-size: 1em;
    }
}




/* ============= PAGE LIEUX D'ENTRAINEMENT ============= */
.training-locations {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    padding: 20px;
    max-width: 900px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Lieu d'entraînement */
.location {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s ease-in-out;
    width: 100%;
}
/* Effet au survol */
.location:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* Image */
.location img {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #28a745;
}
/* Contenu texte */
.location-content {
    flex: 1;
    text-align: left;
}
/* Titre du lieu */
.location-content h3 {
    margin: 0;
    font-size: 1.5em;
    color: #28a745;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
/* Description */
.location-content p {
    margin: 10px 0 0;
    font-size: 1.1em;
    color: #555;
    line-height: 1.5;
}
/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Responsivité */
@media (max-width: 600px) {
    .location {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .location img {
        width: 100%;
        height: auto;
    }
}
/* Conteneur de la carte */
.map-container {
    margin-top: 20px;
    width: 100%;
    height: 400px;
    border: 2px solid #28a745;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}

/* Animation pour la carte */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivité pour la carte */
@media (max-width: 600px) {
    .map-container {
        height: 300px;
    }
}






/*=============== PAGE ENTRAINEMENT =============*/
.training-schedule {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}
/* En-têtes */
.training-schedule thead {
    background-color: #28a745;
    color: white;
    text-align: center;
    font-size: 1.2em;
}
.training-schedule th,
.training-schedule td {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
}
/* Lignes alternées */
.training-schedule tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.training-schedule tbody tr:nth-child(odd) {
    background-color: #ffffff;
}
/* Survol des lignes */
.training-schedule tbody tr:hover {
    background-color: #dfffd6;
    transform: scale(1.01);
    transition: all 0.2s ease-in-out;
}
/* Responsivité */
@media (max-width: 600px) {
    .training-schedule th,
    .training-schedule td {
        font-size: 0.9em;
        padding: 10px;
    }
}
/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Centrer le texte dans les cellules */
.training-schedule td {
    text-align: center;
    vertical-align: middle;
}
/* Ajouter des couleurs pour les matchs du dimanche */
.match-day {
    background-color: #ffeeba;
    font-weight: bold;
    animation: pulse 1s infinite alternate;
}
/* Animation légère pour les matchs */
@keyframes pulse {
    from {
        background-color: #ffeeba;
    }
    to {
        background-color: #fff3cd;
    }
}





/*============= PAGE CALENDRIER ============*/
.calendar {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
    margin: 20px auto;
    padding: 20px;
    max-width: 900px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Navigation du calendrier */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
}
.calendar-header button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}
.calendar-header button:hover {
    background-color: #218838;
}
/* Grille des jours */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
}
/* Style des jours */
.calendar-day {
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
}
.calendar-day:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Matchs */
.calendar-day.match {
    background-color: #ffeeba;
    font-weight: bold;
    position: relative;
}
.calendar-day.match::after {
    content: '⚽';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.2em;
    color: #28a745;
    animation: bounce 1s infinite alternate;
}
/* Animation des matchs */
@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-5px);
    }
}
/* Responsivité */
@media (max-width: 600px) {
    .calendar-header button {
        font-size: 0.9em;
        padding: 8px 12px;
    }

    .calendar-day {
        font-size: 0.9em;
    }
}

/* Bouton pour les dimanches */
.calendar-day.match a {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    padding: 8px 4px;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease-in-out;
    text-align: center;
}
.calendar-day.match a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Transition entre les mois */
.calendar-grid {
    position: relative;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.calendar-grid.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.calendar-grid.fade-in {
    opacity: 1;
    transform: translateY(0);
}






/*=========== PAGE MATCH-DETAIL ==========*/
.match-details {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}
/* Titres */
.match-details h2,
.match-details h3 {
    text-align: center;
    color: #28a745;
}
/* Liste des matchs */
.match-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.match-list li {
    margin: 10px 0;
    padding: 10px 15px;
    border: 2px solid #28a745;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-in-out;
}
/* Table des joueurs */
.player-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.player-table th,
.player-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}
.player-table th {
    background-color: #28a745;
    color: white;
}
/* Animation pour les éléments */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


