/* Recits des Evenements de la page d'accueil (templates/mainpage.html, article.story) :
   style editorial, image de taille constante, texte aligne a gauche */

.story {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);   /* image reduite, place au texte */
    gap: 40px;
    align-items: center;
    max-width: 1080px;
    margin: 72px auto;
    text-align: left;
}

.story--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
}

.story--reverse .story__media {
    order: 2;
}

.story__media img {
    display: block;
    width: 100%;
    height: auto;   /* sinon l'attribut height de la balise l'emporte sur le format */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

/* Image tres saturee (Holi) : couleurs adoucies pour rester dans le ton de la page */
.story__media--soft img {
    filter: saturate(0.6) brightness(1.06) contrast(0.92);
}

.story__body {
    max-width: 36em;
    color: #4a4a4a;
    font-size: 17px;
    line-height: 1.65;
}

.story__body p {
    margin: 0 0 12px;
}

.story__eyebrow {
    color: #ba9066;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.story__title {
    margin: 0 0 16px;
    color: #3a3a3a;
    font-size: 30px;
    line-height: 1.2;
}

.story__label {
    margin-top: 18px !important;
    margin-bottom: 4px !important;
    color: #ba9066;
    font-size: 15px;
    font-weight: bold;
}

.story__places {
    display: flex;
    flex-direction: row;   /* navbar.css met toutes les listes en colonne */
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 20px;
    padding: 0;
    list-style: none;
}

.story__places li {
    padding: 3px 12px;
    border: 1px solid #e3d3bb;
    border-radius: 999px;
    background: #faf6ee;
    font-size: 14px;
}

.story__link {
    color: #9c7448;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.story__link:hover {
    color: #7a5730;
}

@media (max-width: 820px) {
    .story,
    .story--reverse {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 44px auto;
    }

    .story--reverse .story__media {
        order: 0;
    }

    .story__title {
        font-size: 25px;
    }

    /* Telephone : bandeau d'image moins haut */
    .story__media img {
        aspect-ratio: 16 / 9;
    }

    .story__body {
        font-size: 16px;
    }
}
