body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
}

#listeEquipes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.team {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.team:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.team h3 {
    margin-top: 0;
    color: #e74c3c;
    text-align: center;
    font-weight: bold;
}

.team p {
    margin: 5px 0;
}

.distance {
    font-weight: bold;
    color: #27ae60;
}

input[type="submit"],
button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 15px;
    cursor: pointer;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

p {
    text-align: center;
}

.button-container {
    text-align: center;
}

button:hover {
    background-color: #2980b9;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

input[type="submit"]:hover {
    background-color: #2980b9;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

input[type="submit"]:active {
    background-color: #1d6fa5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}

input[type="submit"]:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

#loadingSpinner {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;    /* Centre verticalement */
    position: fixed;        /* Le rend fixe pour le centrer par rapport à la fenêtre */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Optionnel : ajoute un fond semi-transparent */
    z-index: 9999; /* Assurez-vous qu'il est au-dessus des autres éléments */

}


.spinner {
    border: 8px solid #f3f3f3;    /* Augmentez l'épaisseur du bord */
    border-top: 8px solid #3498db; /* Augmentez l'épaisseur du bord supérieur */
    border-radius: 50%;
    width: 60px;                  /* Augmentez la largeur */
    height: 60px;                 /* Augmentez la hauteur */
    animation: spin 2s linear infinite;

}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    body {
        padding: 10px;
    }

    #listeEquipes {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px;
    }

    .team {
        height: 250px;
        padding: 8px;
        margin-top: 20px;
    }

    .team h3 {
        font-size: 18px;
    }

    .team p {
        font-size: 14px;
    }

    input[type="submit"] {
        padding: 10px 16px;
        font-size: 14px;
        margin: 10px;
        max-width: 80%;
        white-space: normal;
        word-break: break-word;
    }

    button {
        padding: 10px 16px;
        font-size: 14px;
        margin: 10px;
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
    }
}