/* Collections éditoriales (parcours) — complète collections.css, mêmes couleurs et typographie. */

.collection-ed-list {
    padding-bottom: 8px;
}

.collection-ed-list__head {
    margin: 18px 0 18px;
}

.collection-ed-list__head h2,
.collection-ed__heading {
    margin: 0 0 6px;
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    color: #061222;
}

.collection-ed-list__head p {
    margin: 0;
    color: #4b5565;
}

.collection-ed-list + .collections-content {
    padding-top: 24px;
}

/* Aperçu privé */
.collection-ed__preview {
    background: #bd7e18;
    color: #fff;
    padding: 10px 0;
    font-size: .9rem;
}

.collection-ed__preview .container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

/* En-tête */
.collection-ed__hero {
    padding: 18px 0 8px;
}

.collection-ed__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 32px;
    align-items: center;
    padding: 28px;
    border: 1px solid #e2ded6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(7, 17, 31, .06);
}

.collection-ed__hero-grid--text {
    grid-template-columns: minmax(0, 1fr);
}

.collection-ed__kicker {
    display: block;
    margin-bottom: 8px;
    color: #b97716;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.collection-ed__hero h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    line-height: 1.05;
    font-weight: 700;
    color: #061222;
}

.collection-ed__subtitle {
    margin: 10px 0 0;
    color: #8a5a0a;
    font-size: 1.1rem;
    font-weight: 600;
}

.collection-ed__lead {
    margin: 16px 0 0;
    color: #2b3442;
    font-size: 1.05rem;
    line-height: 1.65;
}

.collection-ed__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 18px 0 0;
    color: #5d6570;
    font-size: .85rem;
    font-weight: 700;
}

.collection-ed__meta i {
    margin-right: 6px;
    color: #a66b12;
}

.collection-ed__cover {
    margin: 0;
}

.collection-ed__cover img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    filter: sepia(.18) saturate(.9);
}

.collection-ed__cover figcaption {
    margin-top: 8px;
    color: #5d6570;
    font-size: .78rem;
    line-height: 1.4;
}

.collection-ed__cover figcaption span {
    display: block;
    font-style: italic;
}

/* Corps */
.collection-ed__body {
    padding-bottom: 48px;
}

.collection-ed__intro {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 32px;
    margin: 24px 0 8px;
}

.collection-ed__question {
    margin: 0;
    padding: 22px 24px;
    border-left: 4px solid #bd7e18;
    border-radius: 0 8px 8px 0;
    background: #fff;
}

.collection-ed__question span {
    display: block;
    margin-bottom: 8px;
    color: #b97716;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.collection-ed__question p {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 1.3rem;
    line-height: 1.35;
    color: #061222;
}

.collection-ed__introduction {
    color: #2b3442;
    line-height: 1.75;
}

.collection-ed__block {
    margin-top: 40px;
}

.collection-ed__heading {
    margin-bottom: 18px;
}

.collection-ed__featured {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.collection-ed__section + .collection-ed__section {
    margin-top: 32px;
}

.collection-ed__section-title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #061222;
}

.collection-ed__section-intro {
    max-width: 760px;
    margin: 0 0 16px;
    color: #4b5565;
}

.collection-ed__path {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.collection-ed__step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.collection-ed__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #061222;
    color: #fff;
    font-weight: 700;
}

/* Carte d'un contenu */
.collection-ed-card {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e2ded6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(7, 17, 31, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.collection-ed-card:not(.collection-ed-card--soon):hover,
.collection-ed-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(7, 17, 31, .1);
}

.collection-ed-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 130px;
    object-fit: cover;
}

.collection-ed-card__body {
    padding: 16px 18px;
}

.collection-ed-card__type {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    color: #a66b12;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.collection-ed-card__title {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.collection-ed-card__title a {
    color: #061222;
    text-decoration: none;
}

/* Toute la carte est cliquable via le lien du titre. */
.collection-ed-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.collection-ed-card__title a:focus {
    outline: none;
}

.collection-ed-card__excerpt {
    margin: 0 0 8px;
    color: #4b5565;
    font-size: .88rem;
    line-height: 1.5;
}

.collection-ed-card__more {
    color: #8a5a0a;
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
}

.collection-ed-card--featured {
    grid-template-columns: minmax(0, 1fr);
}

.collection-ed-card--featured .collection-ed-card__media img {
    aspect-ratio: 16 / 10;
    height: auto;
}

.collection-ed-card--soon {
    grid-template-columns: minmax(0, 1fr);
    border-style: dashed;
    background: #fbfaf7;
}

.collection-ed-card--soon .collection-ed-card__title {
    color: #4b5565;
}

.collection-ed-card__soon {
    padding: 3px 8px;
    border-radius: 4px;
    background: #061222;
    color: #fff;
    letter-spacing: .04em;
}

@media (max-width: 991px) {
    .collection-ed__hero-grid,
    .collection-ed__intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .collection-ed__featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .collection-ed__hero-grid {
        padding: 20px 16px;
        gap: 20px;
    }

    .collection-ed__featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .collection-ed__step {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
    }

    .collection-ed__step-number {
        width: 32px;
        height: 32px;
        font-size: .85rem;
    }

    .collection-ed-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .collection-ed-card__media img {
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .collection-ed-card {
        transition: none;
    }
}

/* Page Collections : recherche sur toute la largeur, sans filtres par contenu */
.collections-toolbar--search-only .collections-toolbar__search {
    width: 100%;
}

.collections-toolbar--search-only .collections-search {
    width: 100%;
}

.collections-layout.is-loading {
    opacity: .6;
    transition: opacity .2s ease;
}

/* Page Collections, étape 1 : les 7 types étalés en grille */
.collections-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.collections-types.is-loading,
.collections-layout.is-loading {
    opacity: .6;
}

.collection-type-tile {
    min-height: 300px;
}

.collection-type-tile .collection-tile__body p {
    min-height: 0;
}

/* Étape 2 : collections d'un type — titre du type bien visible */
.collections-type-view__head {
    margin: 22px 0 20px;
    padding: 22px 26px;
    border: 1px solid #e2ded6;
    border-left: 4px solid #bd7e18;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(7, 17, 31, .06);
}

.collections-type-view__kicker {
    display: block;
    margin-bottom: 6px;
    color: #b97716;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.collections-type-view__head h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    line-height: 1.1;
    font-weight: 700;
    color: #061222;
}

.collections-type-view__head p {
    margin: 8px 0 0;
    color: #4b5565;
    font-size: 1rem;
}

@media (max-width: 1199px) {
    .collections-types {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .collections-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .collections-types {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Écran d'un type : sujets de collection, ouvrant chacun un dossier éditorial. */
.collections-subjects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.collections-subject {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e0d7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(7, 17, 31, .06);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.collections-subject:hover,
.collections-subject:focus-within {
    transform: translateY(-4px);
    border-color: rgba(189, 126, 24, .55);
    box-shadow: 0 18px 38px rgba(7, 17, 31, .12);
}

.collections-subject:focus-within {
    border-color: #e5e0d7;
}

.collections-subject__cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 8.5;
    background: linear-gradient(135deg, #14263c, #70501e);
}

.collections-subject__cover::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(3, 10, 20, .72));
    content: "";
}

.collections-subject__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.collections-subject:hover .collections-subject__cover img {
    transform: scale(1.045);
}

.collections-subject__cover-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255, 255, 255, .82);
    font-size: 3rem;
    background:
        radial-gradient(circle at 80% 15%, rgba(207, 161, 92, .38), transparent 32%),
        linear-gradient(135deg, #102139, #34445a 55%, #775522);
}

.collections-subject__count {
    position: absolute;
    z-index: 1;
    right: 14px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

.collections-subject__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px 22px;
}

.collections-subject__kicker {
    margin-bottom: 8px;
    color: #9b6819;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.collections-subject__body h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    font-weight: 700;
    line-height: 1.22;
}

.collections-subject__body h2 a {
    color: #061222;
    text-decoration: none;
}

.collections-subject__body h2 a::after {
    position: absolute;
    inset: 0;
    content: "";
}

.collections-subject__body h2 a:focus {
    outline: none;
}

.collections-subject__body h2 a:hover,
.collections-subject__body h2 a:focus {
    color: #8a5a0a;
}

.collections-subject__body p {
    display: -webkit-box;
    margin: 10px 0 22px;
    overflow: hidden;
    color: #5d6570;
    font-size: .9rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.collections-subject__link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: center;
    margin-top: auto;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: color .2s ease, opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.collections-subject:hover .collections-subject__link,
.collections-subject:focus-within .collections-subject__link {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.collections-subject__link:hover,
.collections-subject__link:focus {
    color: #c99a43;
}

@media (hover: none) {
    .collections-subject__link {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .collections-subject,
    .collections-subject__cover img,
    .collections-subject__link {
        transition: none;
    }
}

@media (max-width: 991px) {
    .collections-subjects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.collections-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 8px;
}

.collections-pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d5cd;
    border-radius: 6px;
    background: #fff;
    color: #07111f;
    font-weight: 700;
}

.collections-pagination button:hover:not(:disabled),
.collections-pagination button.is-active {
    border-color: #bd7e18;
    background: #bd7e18;
    color: #fff;
}

.collections-pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 575px) {
    .collections-subjects {
        grid-template-columns: minmax(0, 1fr);
    }

    .collections-subject {
        border-radius: 10px;
    }

    .collections-subject__body {
        padding: 18px;
    }
}

.collection-ed__hero-text > :first-child {
    margin-top: 0;
}

/* Le titre d'une collection garde la même échelle que le titre d'À propos. */
.collection-ed-page-title {
    font-size: 2rem;
}

.internal-page-description {
    max-width: 780px;
    margin: 10px auto 0;
    color: #4b5565;
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
}

/* Fond des pages Collections (liste, type, détail) : identique à la page Personnages. */
.collections-page {
    background: #f6f7fa;
}

/* « Autres collections » en slide : pas de fond ni de marges propres au bloc d'accueil. */
.collection-ed .home-collections.collection-ed__slider {
    padding: 0;
    background: transparent;
}

/* Aucun lien en gras sur les pages Collections. */
.collections-page a,
.collections-page a * {
    font-weight: 400 !important;
}
