@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: white;
}

.header {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.logo {
    max-width: 150px;
}

.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    max-width: 1600px;
    margin: 0 auto;
}

.card {
    position: relative;
    width: 30%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.text-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    padding: 25px;
}

.text-container h2 {
    font-size: 50px;
    line-height: 52px;
    margin-bottom: 25px;

}

.text-container p {
    font-size: 18px;
    margin-bottom: 35px;
    padding-right: 35px;

}

.button {
    display: inline-block;
    padding: 7px 10px;
    background-color: #F1881D;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
}

.button:hover {
    background-color: #e55a00;
}


/* Responsive pour les ordinateurs portables */
@media only screen and (min-width: 1024px) and (max-width: 1920px)  {
    body{
        margin: 50px;
    }
}


/* Responsive pour les tablettes */
@media screen and (max-width: 1024px)  {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        margin-bottom: 20px;
    }

    .text-container {
        padding: 20px;
        margin-right: 20px;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .text-container h2 {
        font-size: 45px;
        line-height: 45px;
    }

    .text-container p {
        font-size: 22px;
        margin-bottom: 20px;
        padding-right: 20px;
    }

    .button {
        padding: 5px 8px;
        font-size: 25px;
    }
}