.ppn-story-single {
    min-height: 70vh;
    padding: clamp(34px, 6vw, 78px) 0 90px;
    color: #30251d;
    background: #fffaf0;
}

/* Catalogue dynamique /histoires/ */
.ppn-stories-catalogue {
    --red: #bd1020;
    --red2: #8f0714;
    --green: #103f31;
    --gold: #f4ca63;
    --cream: #fff8e8;
    --ink: #2e241d;
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    background: #fffaf0;
    font-family: Arial, sans-serif;
}

.ppn-stories-catalogue * {
    box-sizing: border-box;
}

.ppn-stories-catalogue button,
.ppn-stories-catalogue input,
.ppn-stories-catalogue select {
    font: inherit;
}

.ppn-stories-catalogue .h-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}

.ppn-stories-catalogue .h-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a0d08;
}

.ppn-stories-catalogue .h-hero-picture {
    position: relative;
    z-index: 0;
    width: 100%;
    display: block;
}

.ppn-stories-catalogue .h-hero-picture img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

.ppn-stories-catalogue .h-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(20, 7, 3, .80) 0%, rgba(30, 10, 4, .54) 33%, rgba(0, 0, 0, .04) 67%);
}

.ppn-stories-catalogue .h-hero-card {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(6vw, 24px);
    width: min(570px, 42%);
    margin: 0;
    padding: 42px;
    transform: translateY(-50%);
    background: rgba(255, 249, 232, .97);
    border: 2px solid #f1d48a;
    border-radius: 30px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .28);
}

.ppn-stories-catalogue .h-kicker {
    margin: 0 0 13px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ppn-stories-catalogue .h-hero h1 {
    margin: 0 0 20px;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(45px, 5vw, 76px);
    line-height: .94;
}

.ppn-stories-catalogue .h-hero p:not(.h-kicker) {
    margin: 0 0 28px;
    font-size: 19px;
    line-height: 1.55;
}

.ppn-stories-catalogue .h-btn,
.ppn-stories-catalogue #h-more {
    display: inline-flex;
    min-height: 54px;
    padding: 14px 22px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red2));
    border: 0;
    border-radius: 14px;
    box-shadow: 0 9px 22px rgba(189, 16, 32, .22);
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.ppn-stories-catalogue .h-intro {
    padding: 62px 0 28px;
    text-align: center;
}

.ppn-stories-catalogue .h-intro h2 {
    margin: 0 0 12px;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 54px);
}

.ppn-stories-catalogue .h-intro > p:last-child {
    max-width: 760px;
    margin: auto;
    font-size: 18px;
    line-height: 1.6;
}

.ppn-stories-catalogue .h-tools {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: 13px 0;
    background: rgba(255, 250, 240, .96);
    border-block: 1px solid #eddfc2;
    backdrop-filter: blur(12px);
}

.admin-bar .ppn-stories-catalogue .h-tools {
    top: 32px;
}

.ppn-stories-catalogue .h-tools-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(140px, 1fr)) auto;
    gap: 11px;
    align-items: end;
}

.ppn-stories-catalogue .h-tools label span {
    display: block;
    margin: 0 0 6px;
    color: #705337;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.ppn-stories-catalogue .h-tools input,
.ppn-stories-catalogue .h-tools select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    color: var(--green);
    background: #fff;
    border: 2px solid #dfcfac;
    border-radius: 13px;
}

.ppn-stories-catalogue #h-reset {
    min-height: 48px;
    padding: 0 16px;
    color: var(--red);
    background: #fff;
    border: 2px solid var(--red);
    border-radius: 13px;
    font-weight: 900;
    cursor: pointer;
}

.ppn-stories-catalogue .h-library {
    padding-top: 24px;
}

.ppn-stories-catalogue .h-count {
    margin: 0 0 16px;
    color: #785d3f;
    font-weight: 900;
}

.ppn-stories-catalogue .h-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ppn-stories-catalogue .h-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eadbbd;
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(69, 39, 16, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}

.ppn-stories-catalogue .h-card[hidden] {
    display: none;
}

.ppn-stories-catalogue .h-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(69, 39, 16, .14);
}

.ppn-stories-catalogue .h-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.ppn-stories-catalogue .h-art {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b4536, #3f9975);
}

.ppn-stories-catalogue .h-art img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    transition: transform .35s ease;
}

.ppn-stories-catalogue .h-card:hover .h-art img {
    transform: scale(1.035);
}

.ppn-stories-catalogue .h-art-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 76px;
}

.ppn-stories-catalogue .h-card-body {
    display: flex;
    padding: 19px;
    flex: 1;
    flex-direction: column;
}

.ppn-stories-catalogue .h-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.ppn-stories-catalogue .h-badges span {
    padding: 6px 9px;
    color: #694a2c;
    background: #f6ecd6;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.ppn-stories-catalogue .h-card h2 {
    margin: 0 0 10px;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.12;
}

.ppn-stories-catalogue .h-card p {
    margin: 0 0 17px;
    color: #6b5745;
    line-height: 1.48;
}

.ppn-stories-catalogue .h-read {
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--red);
    border-radius: 13px;
    font-weight: 900;
}

.ppn-stories-catalogue .h-more {
    padding: 32px 0 72px;
    text-align: center;
}

.ppn-stories-catalogue .h-more:has(#h-more[hidden]) {
    display: none;
}

.ppn-stories-catalogue .h-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    font-size: 19px;
}

@media (max-width: 1050px) {
    .ppn-stories-catalogue .h-tools-grid,
    .ppn-stories-catalogue .h-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .admin-bar .ppn-stories-catalogue .h-tools {
        top: 46px;
    }
}

@media (max-width: 700px) {
    .ppn-stories-catalogue .h-hero {
        display: block;
        overflow: visible;
        background: #fff8e8;
    }

    .ppn-stories-catalogue .h-hero-picture {
        width: 100%;
        display: block;
        overflow: hidden;
        background: #1a0d08;
    }

    .ppn-stories-catalogue .h-hero-picture img {
        display: block;
        width: 100%;
        height: auto;
    }

    .ppn-stories-catalogue .h-hero-shade {
        display: none;
    }

    .ppn-stories-catalogue .h-hero-card {
        position: relative;
        top: auto;
        left: auto;
        z-index: 2;
        width: calc(100% - 28px);
        margin: 16px auto 28px;
        padding: 27px 22px 24px;
        transform: none;
        text-align: center;
        border-radius: 24px;
    }

    .ppn-stories-catalogue .h-hero h1 {
        font-size: clamp(38px, 11vw, 50px);
        line-height: .98;
    }

    .ppn-stories-catalogue .h-hero p:not(.h-kicker) {
        font-size: 16px;
        line-height: 1.55;
    }

    .ppn-stories-catalogue .h-hero .h-btn {
        width: 100%;
    }

    .ppn-stories-catalogue .h-tools {
        position: relative;
        top: auto;
    }

    .ppn-stories-catalogue .h-tools-grid,
    .ppn-stories-catalogue .h-grid {
        grid-template-columns: 1fr;
    }

    .ppn-stories-catalogue .h-art {
        height: 230px;
    }

    .ppn-stories-catalogue .h-wrap {
        width: min(100% - 22px, 1180px);
    }
}

.ppn-story-shell {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
}

.ppn-story-back {
    display: inline-flex;
    margin-bottom: 24px;
    color: #8f0714;
    font-weight: 800;
    text-decoration: none;
}

.ppn-story-back:hover,
.ppn-story-back:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ppn-story-article {
    overflow: hidden;
    background: #fff;
    border: 1px solid #eadbbd;
    border-radius: 28px;
    box-shadow: 0 22px 55px rgba(69, 39, 16, .12);
}

.ppn-story-cover {
    width: 100%;
    max-height: 560px;
    margin: 0;
    overflow: hidden;
    background: #103f31;
}

.ppn-story-cover img {
    display: block;
    width: 100%;
    height: min(58vw, 560px);
    object-fit: cover;
    border-radius: 0;
}

.ppn-story-header {
    padding: clamp(34px, 7vw, 72px) clamp(24px, 8vw, 88px) 38px;
    text-align: center;
    background: linear-gradient(180deg, #fff7df, #fff);
}

.ppn-story-kicker {
    margin: 0 0 14px;
    color: #bd1020;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ppn-story-header h1 {
    margin: 0;
    color: #103f31;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
}

.ppn-story-author {
    margin: 18px 0 0;
    color: #705337;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-style: italic;
}

.ppn-story-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.ppn-story-meta span {
    padding: 7px 11px;
    color: #694a2c;
    background: #f6ecd6;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.ppn-story-content {
    padding: 10px clamp(24px, 8vw, 88px) clamp(44px, 7vw, 78px);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(19px, 2.2vw, 22px);
    line-height: 1.85;
}

.ppn-story-content > p:first-child::first-letter {
    float: left;
    margin: 9px 10px 0 0;
    color: #bd1020;
    font-size: 70px;
    line-height: .72;
}

.ppn-story-content p {
    margin: 0 0 1.35em;
}

.ppn-story-content h2,
.ppn-story-content h3 {
    color: #103f31;
}

.ppn-story-source {
    margin: 0 clamp(24px, 8vw, 88px) clamp(38px, 6vw, 65px);
    padding: 18px 20px;
    color: #66513d;
    background: #fff3cd;
    border-left: 5px solid #f4ca63;
    border-radius: 10px;
    line-height: 1.55;
}

.ppn-story-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 38px 0 20px;
    color: #bd1020;
}

.ppn-story-end p {
    margin: 0;
    color: #103f31;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
}

.ppn-story-return {
    display: flex;
    width: fit-content;
    min-height: 52px;
    margin: 0 auto;
    padding: 12px 22px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #bd1020, #8f0714);
    border-radius: 14px;
    box-shadow: 0 9px 22px rgba(189, 16, 32, .22);
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 700px) {
    .ppn-story-single {
        padding-top: 22px;
    }

    .ppn-story-shell {
        width: min(100% - 20px, 920px);
    }

    .ppn-story-article {
        border-radius: 20px;
    }

    .ppn-story-cover img {
        height: 68vw;
    }

    .ppn-story-header {
        padding-inline: 21px;
    }

    .ppn-story-content {
        padding-inline: 22px;
        font-size: 18px;
        line-height: 1.75;
    }

    .ppn-story-source {
        margin-inline: 22px;
    }
}
