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

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Karla", sans-serif;
    font-weight: 400;
    font-size: 16px;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.main-content {
    width: 75%;
    height: auto;
    box-shadow: 8px 8px 42px -12px rgba(66, 68, 90, 1);
}

.top-content {
    width: 100%;
    padding: 40px;
    background-color: white;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
}

h2 {
    margin: 0;
    color: hsl(179, 62%, 43%);
    margin-bottom: 25px;
}

.top-content p:nth-of-type(1) {
    color: hsl(71, 73%, 54%);
    font-weight: 700;
    font-size: 18px;
}

.top-content p:nth-of-type(2) {
    color: hsl(218, 22%, 67%);
    line-height: 1.5;
    margin-right: 40px;
}
.price span{
    font-weight: 400;
}
.bottom-content {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.sub-bottom-content {
    width: 50%;
    padding: 40px;


    /* Suppression du border-radius en haut */
}

.sub-bottom-content h1{
    color: #fff;
}
.sub-bottom-content:nth-child(1) {
    background-color: hsl(179, 62%, 43%);
    border-bottom-left-radius: 8px;
}

.sub-bottom-content:nth-child(2) {
    background-color: hsla(179, 62%, 43%, 0.8);
    border-bottom-right-radius: 8px;
}

.sub-bottom-content:nth-child(1) h2 {
    color: white; /* Texte en blanc pour Monthly Subscription */
}

h3 {
    margin: 0;
    color: hsl(204, 43%, 93%);
}

.price {
    width: 150px;
    font-size: 33px;
    color: white;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: hsl(218, 22%, 67%);
}

.sub-bottom-content p {
    color: hsl(204, 43%, 93%);
    margin-top: 10px;
}

button {
    width: 100%;
    height: 50px;
    background-color: hsl(71, 73%, 54%);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    margin-top: 15px;
    box-shadow: 0px 0px 22px -10px rgba(66, 68, 90, 1);
}

button:hover {
    cursor: pointer;
    background-color: hsl(71, 73%, 54%);
    transition: .3s ease;
}

@media (max-width: 700px) {
    main {
        height: auto;
        margin: 40px;
    }
    .main-content {
        height: auto;
    }
    .top-content {
        padding: 20px;
    }
    .top-content p:nth-of-type(2) {
        margin-right: 0;
    }
    .bottom-content {
        flex-direction: column;
    }
    .sub-bottom-content {
        width: 100%;
        padding: 20px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .sub-bottom-content:last-child {
        border-bottom-right-radius: 8px;
    }
}
