.story {
    text-align: center;
}

.container-story {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    width: 100%;
}

.card-story {
    text-align: center;
    flex: 1 1 300px;
}

.card-story h3 {
    margin-bottom: 0.625rem;
}

.card-story img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 30px;
}

.titres-story {
    text-align: left;
    margin-left: 8rem;
}

.titres-story h1 {
    font-size: 3rem;
}

.titres-story h2 {
    padding-left: 3rem;
}

.text {
    max-width: 850px;
    margin: 0 auto;
}

section {
    margin-top: 20px;
    margin-bottom: 20px;
}

h4 {
    text-align: center;
}

.story:first-letter {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--rouge-profond);
    margin-right: 0.1rem;
}

@media screen and (max-width: 768px) {
    .titres-story {
        text-align: left;
        margin-left: 0rem;
    }

    .titres-story h1 {
        font-size: 2rem;
    }

    .titres-story h2 {
        padding-left: 0rem;
        font-size: 1rem;
    }

    .text {
        width: 100%;
        text-align: justify;
    }

    .container-story {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .card-story {
        width: 100%;
    }

    .card-story img {
        width: 100%;
        height: auto;
    }
}

@media screen and (min-width: 1190px) {
    .container-story {
        gap: 2rem;
    }
    .card-story {
        max-width: 380px;
    }
    .card-story img {
        height: 300px;
    }
}

@media screen and (min-width: 1024px) {
    .text {
        max-width: 850px;
        margin: 0 auto;
        line-height: 1.7;
        font-size: 1.1rem;
        text-align: justify;
    }
    .story {
        margin-bottom: 2rem;
    }
}

.final-block {
    text-align: center;
}

.final-block h4,
.final-block p {
    max-width: 100%;
    margin: 0 auto;
}

.container-story {
    position: relative;
}

.container-story::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2rem;
    width: 180px;
    height: 2px;
    background-color: var(--champagne);
    border-radius: 2px;
}

.final-block::before {
    content: "";
    display: block;
    width: 180px;
    height: 2px;
    background-color: var(--champagne);
    margin: 2rem auto 0.5rem auto;
}

.final-block::after {
    content: "";
    display: block;
    width: 90px;
    height: 2px;
    background-color: var(--champagne);
    margin: 0.5rem auto 2rem auto;
}

section:last-of-type .container-story::after {
    display: none;
}

.container-story {
    position: relative;
    margin-top: 4rem;
}

.container-story::before {
    content: "❧";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -2.8rem;
    font-size: 2.5rem;
    color: var(--champagne);
}

.titres-story {
    text-align: center;
    margin: 3rem 0 2rem 0;
    position: relative;
}

.titres-story::before {
    content: "";
    width: 180px;
    height: 2px;
    background-color: var(--champagne);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -1.5rem;
}

.titres-story h1,
.titres-story {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    letter-spacing: 2px;
    color: var(--rouge-profond);
}