* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    flex: 1 1 calc(33.333% - 40px);
    max-width: 300px;
}

.horraire {
    display: grid;
    grid-template-columns: auto auto auto;
    text-align: left;
    gap: 5px;
    margin-top: 10px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 120px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.round-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 100px;
    text-align: center;
    background-color: #467CD6;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    overflow-wrap: break-word;
}

.round-button:hover {
    background-color: #2980b9;
}

.square-button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
}

.square-button {
    flex: 1 1 calc(20% - 20px);
    max-width: 350px;
    max-height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: black;
    transition: background-color 0.3s ease;
    flex-direction: column;
    padding: 10px;
}

.square-button.pink-highlight {
    background-color: pink;
}

.square-button img {
    width: 40px;
    margin-bottom: 10px;
}

.square-button:hover {
    background-color: #d0d0d0;
}

@media (max-width: 1024px) {
    .round-button {
        width: 150px;
        height: 75px;
        font-size: 12px;
    }

    .card {
        flex: 1 1 calc(50% - 20px);
    }

    .square-button {
        flex: 1 1 calc(45% - 20px);
    }
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
    }

    .square-button {
        flex: 1 1 100%;
    }
}
