/* Monga Jazz — témoignages / layout éditorial type blog */

:root {
    --mj-ink: #14241c;
    --mj-muted: #5a6b62;
    --mj-green: #00953e;
    --mj-green-deep: #0a3a22;
    --mj-lime: #86c71f;
    --mj-paper: #f3f7f4;
    --mj-line: rgba(20, 36, 28, 0.1);
}

.mj-page {
    color: var(--mj-ink);
    background-color: var(--alliance-section-bg);
}

/* Hero parcours : même largeur que .ul-container (texte + ovale côte à côte) */
.parcours-page .hub-hero > .ul-container,
.mj-page .hub-hero > .ul-container {
    --container-space-x: 30px;
    max-width: calc(clamp(1200px, 74.09vw, 1410px) + var(--container-space-x));
    padding-left: calc(var(--container-space-x) / 2);
    padding-right: calc(var(--container-space-x) / 2);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.mj-hero-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
}

.mj-hero-note i {
    color: var(--mj-lime);
}

/* Intro éditoriale */
.mj-intro {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.mj-intro__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mj-green);
}

.mj-intro__title {
    max-width: 22ch;
    margin: 0 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.85rem, 3.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--mj-ink);
}

.mj-intro__text {
    max-width: 38rem;
    margin: 0;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.65;
    color: var(--mj-muted);
}

/* Featured story */
.mj-featured {
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.mj-featured__card {
    display: grid;
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #00953e !important;
    color: #fff;
    box-shadow: 0 16px 36px rgba(10, 58, 34, 0.14);
    animation: mj-rise 0.7s ease both;
    max-width: 920px;
    margin-inline: auto;
    align-items: stretch;
}

.mj-featured__media {
    position: relative;
    min-height: 220px;
    max-height: 280px;
    height: 100%;
}

.mj-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mj-featured__media::after {
    display: none;
}

.mj-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.15rem 1.35rem 1.25rem;
    background: #00953e !important;
    color: #fff;
    min-width: 0;
}

.mj-featured__title {
    margin: 0 0 0.6rem;
    font-family: var(--font-quicksand, "Quicksand", sans-serif);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
}

.mj-featured__excerpt {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mj-featured__quote {
    display: none;
}

.mj-featured__more {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #d4f5a0;
}

.mj-featured__card:hover .mj-featured__more {
    color: #fff;
}

.mj-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.mj-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(134, 199, 31, 0.25);
    color: #86c71f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mj-tag--hot {
    background: rgba(234, 0, 41, 0.25);
    color: #ff8a9a;
}

.mj-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
}

.mj-author__avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00953e;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.mj-author__name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: inherit;
}

.mj-author__meta {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: inherit;
    opacity: 0.8;
}

.mj-featured .mj-author__name { color: #fff; }
.mj-featured .mj-author__meta { color: rgba(255, 255, 255, 0.75); }

/* Stories feed */
.mj-feed {
    padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}

.mj-feed__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--mj-line);
}

.mj-feed__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mj-feed__sub {
    margin: 0.35rem 0 0;
    color: var(--mj-muted);
    font-size: 0.95rem;
}

.mj-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mj-theme {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--mj-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--mj-ink);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mj-theme:hover {
    border-color: var(--mj-green);
    background: #fff;
    color: var(--mj-green);
    transform: translateY(-1px);
}

.mj-theme__count {
    color: var(--mj-muted);
    font-weight: 500;
}

.mj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.85rem, 1.5vw, 1.15rem);
}

.mj-story {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #00953e !important;
    color: #fff !important;
    border-radius: 1.35rem;
    overflow: hidden;
    border: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: mj-rise 0.65s ease both;
}

.mj-story:nth-child(1) { animation-delay: 0.05s; }
.mj-story:nth-child(2) { animation-delay: 0.12s; }
.mj-story:nth-child(3) { animation-delay: 0.19s; }
.mj-story:nth-child(4) { animation-delay: 0.26s; }
.mj-story:nth-child(5) { animation-delay: 0.33s; }
.mj-story:nth-child(6) { animation-delay: 0.4s; }

.mj-story:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(10, 58, 34, 0.18);
}

a.mj-story,
a.mj-featured__card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.mj-story:focus-visible,
a.mj-featured__card:focus-visible {
    outline: 2px solid #86c71f;
    outline-offset: 3px;
}

.mj-story__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.mj-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.mj-story:hover .mj-story__media img {
    transform: scale(1.05);
}

.mj-story__cat {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 1;
    margin-bottom: 0 !important;
}

/* hub-badge dans les blocs témoignages (meta, thèmes, catégories) */
.mj-meta .hub-badge,
.mj-themes .hub-badge {
    margin-bottom: 0;
    font-size: 0.75rem;
    padding: 5px 12px;
}

.mj-story__media .hub-badge {
    margin-bottom: 0;
    font-size: 0.65rem;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0a3a22 !important;
}

.mj-story__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.05rem 1.1rem 1.15rem;
    color: inherit;
}

.mj-story__title {
    margin: 0 0 0.45rem;
    font-family: var(--font-quicksand, "Quicksand", sans-serif);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mj-story__excerpt {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
    line-height: 1.5;
    color: inherit;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mj-story__outcome {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    line-height: 1.4;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mj-story__outcome strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.85;
}

.mj-story__footer {
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.mj-story .mj-author__avatar {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
}

.mj-story .mj-author__name {
    font-size: 0.82rem;
    color: inherit;
    font-weight: 800;
}

.mj-story .mj-author__meta {
    font-size: 0.72rem;
    color: inherit;
    opacity: 0.85;
}

.mj-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    padding-top: 0.25rem;
}

.mj-pagination__list {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mj-pagination__btn,
.mj-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--mj-line);
    background: #fff;
    color: var(--mj-ink);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mj-pagination__btn:hover,
.mj-pagination__page:hover {
    border-color: var(--mj-green);
    color: var(--mj-green);
    transform: translateY(-1px);
}

.mj-pagination__page.is-active {
    background: #00953e;
    border-color: #00953e;
    color: #fff;
}

.mj-pagination__btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

@keyframes mj-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mj-featured__card,
    .mj-story,
    .mj-story__media img {
        animation: none;
        transition: none;
    }

    .mj-story:hover {
        transform: none;
    }

    .mj-story:hover .mj-story__media img {
        transform: none;
    }
}

@media screen and (max-width: 991px) {
    .mj-featured__card {
        grid-template-columns: 1fr;
        max-width: 36rem;
    }

    .mj-featured__media {
        min-height: 180px;
        max-height: 220px;
    }

    .mj-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 575px) {
    .mj-grid {
        grid-template-columns: 1fr;
    }

    .mj-feed__head {
        align-items: start;
    }
}
