@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Corps de page */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(275deg, #3d95c2, #f0f0f1);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* En-tête */
header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Titre */
h1 {
    margin: 0;
    font-size: 2.5em;
    color: #000;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Navigation */
nav {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Lien ressemblant à un bouton */
nav a {
    background-color: #333;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1.1em;
    display: inline-block; 
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

/* Effet au survol */
nav a:hover {
    background-color: #555;
}

/* Active l'effet de clic */
nav a:active {
    background-color: #222;
}

/* Main */
main {
    padding: 30px 20px;
    width: 900px;
    margin: auto;
    flex-grow: 1;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 1em;
    width: 100%;
    position: sticky;
    bottom: 0;
    margin-top: auto;
}

/* Accueil */
#accueil {
    text-align: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.8s ease-in-out;
}

/* Titre */
#accueil h1 {
    font-size: 2.5em;
    color: #3d95c2;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Paragraphe */
#accueil p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Image */
#accueil .logo {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 30px;
    max-width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Style pour le lien */
.lien-site {
    color: #3d95c2;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.lien-site:hover {
    color: #005b96;
    text-decoration: underline;
}

/* Formulaire de contact */
#contact-form {
    background-color: rgba(255, 255, 255, 0.9); /* Avant : #fff */
    padding: 30px;
    border-radius: 15px;
    width: 800px;
    margin: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px); /* Flou stylé */
    animation: fadeIn 0.8s ease-in-out;
}

#contact-form h1 {
    text-align: center;
    font-size: 2.5em;
    color: #3d95c2;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 95%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

button {
    background-color: #3d95c2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #005b96;
}

/* Section des Joueurs */
#joueurs {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    margin-top: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 800px;
    margin: auto;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}

/* Titre des Joueurs */
#joueurs h1 {
    font-size: 2.2em;
    color: #3d95c2;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Style du tableau des joueurs */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1.1em;
    color: #333;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #3d95c2;
    color: white;
    text-transform: uppercase;
}

table tr:hover {
    background-color: #f0f0f1;
}

table a {
    color: #3d95c2;
    text-decoration: none;
    font-weight: bold;
}

table a:hover {
    text-decoration: underline;
}

/* Section Détail du Joueur */
#joueur {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    margin-top: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 800px;
    margin: auto;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}

/* Titre du Détail */
#joueur h2 {
    font-size: 2.2em;
    color: #3d95c2;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.joueur-detail {
    background-color: #f9f9f9;
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.joueur-detail:hover {
    transform: scale(1.02);
    background-color: #eef6fa;
}

/* Lien de retour */
.back-link {
    font-size: 1.1em;
    color: #3d95c2; /* Couleur du lien */
    text-decoration: none; /* Enlève le soulignement par défaut */
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #3d95c2;
    border-radius: 12px;
    transition: background-color 0.3s, color 0.3s;
}

.back-link:hover {
    background-color: #3d95c2; /* Fond bleu lorsqu'on survole */
    color: white; /* Texte blanc lorsque survolé */
}
