/* CARTES QUI REDIRIGENT VERS LES AUTRES PAGES DU SITE */
.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    justify-items: center;
    width: 60%;
    margin: 0 auto;
    gap: 20px; 
}

.card {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s ease;
    position: relative;
    margin-top: 1rem;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    opacity: 0.55;
    transition: opacity 0.2s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.card .overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.card .info {
    color: white;
    text-align: center;
    font-size: 20px;
    z-index: 3;
    font-family: Arial, Helvetica, sans-serif;
}

.card a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.2s ease;
    z-index: 3;
}

.card a:hover {
    color: #ff6f61;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* LOGOS ECOLES */
.school-container {
    display: flex;
}

.carousel-image {
    width: 150px;
    height: 150px;
    margin-top: 2rem;
    margin-right: 1.5rem;
}

.carousel-item {
    text-align: center; 
    margin-right: 1rem; 
    display: inline-block;
    text-decoration: none;
}

.carousel-item:last-child {
    margin-right: 0; 
}

.carousel-label {
    display: block;
    margin-top: 0.5rem; 
    color: black; 
    text-decoration: none; 
}

/* MAP */
#map {
    height: 700px;
    width: 65%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* MOBILE VERSION */
@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: 1fr;
        grid-gap: 10px;
        width: 90%;
    }

    #map {
        height: 400px;
        width: 80%;
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
        grid-gap: 10px;
        width: 90%;
    }

    #map {
        height: 400px;
        width: 80%;
    }
}

@media (max-width: 640px) {
    .cards-container {
        grid-template-columns: 1fr;
        grid-gap: 10px;
        width: 90%;
    }

    .carousel-label {
        font-size: 1.2rem;
    }

    .card {
        width: 100%;
    }

    #map {
        height: 400px;
        width: 80%;
    }
}

@media (max-width: 480px) {
    .cards-container {
        grid-template-columns: 1fr;
        grid-gap: 10px;
        width: 90%;
    }

    #map {
        height: 400px;
        width: 80%;
    }
}
