main {
    flex: 1 0 auto;
}

a {
    text-decoration: none;
}

#container_cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 30px;
}

.card {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 405px;
    height: 220px;
    padding: 60px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, background-size 0.5s ease;
    background-size: 100% 100%;
    margin: 15px;
}

.card:hover {
    background-size: 120% 120%;
}

.card.hidden {
    opacity: 0;
    pointer-events: none; /* Empêche les interactions sur les cartes masquées */
}

.card:not(.hidden) {
    opacity: 1;
}

.from-left {
    transform: translateX(-30%);
}

.from-right {
    transform: translateX(30%);
}

.card:not(.hidden).from-left {
    transform: translateX(0);
}

.card:not(.hidden).from-right {
    transform: translateX(0);
}


#card1 {
    margin-bottom: 15px;
    margin-left: 30px;
}

#card1 {
    margin-bottom: 15px;
    margin-left: 30px;
    background-image: url(../images/circuit.jpg);
}

#card2 {
    margin-bottom: 15px;
    margin-left: 30px;
    background-image: url(../images/exclusive.jpg);
}

#card3 {
    margin-bottom: 15px;
    margin-left: 30px;
    background-image: url(../images/transport.png);
}

#card4 {
    margin-bottom: 15px;
    margin-left: 30px;
    background-image: url(../images/exclusives.png);
}

#card5 {
    margin-bottom: 15px;
    margin-left: 30px;
    background-image: url(../images/incentives.jpg);
}


.title_card {
    margin: 0;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #FF4500;
    border-radius: 10px;
    color: black;
    font-size: 18pt;
    transition: 0.5s;
}

.arrow:hover {
    transform: rotateZ(-90deg);
}

.information {
    color: white;
}

.information p {
    width: 25vh;
}

@media screen and (max-width: 1660px) {
    .container_cards {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 580px) {
    .card {
        display: flex;
        padding: 30px;
        width: 290px;
        height: 200px;
        margin-bottom: 10px;
    }

    .title_card {
        font-size: 18pt;
    }
}

@media screen and (max-width: 415px) {
    .arrow {
        display: none;
    }
      .card {
        padding: 30px;
        width: 180px;
        height: 170px;
    }
    .information p{
        width: 100%;
    }
}