/* =========================================================================
   Les Mondes renversés — styles front du plugin lige-lmr
   (s'appuie sur les variables CSS du thème : --lmr-accent, --lmr-bg, etc.)
   ========================================================================= */

/* ---------- Hero accueil ---------- */
.lmr-hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.lmr-hero__inner { max-width: 720px; margin: 0 auto; }
.lmr-hero__logo { height: 170px; width: auto; margin: 0 auto 1.6rem; display: block; }
.lmr-hero__baseline { font-family: var(--lmr-serif); font-size: 1.3rem; line-height: 1.5; color: var(--lmr-black); margin: 0 auto 1.8rem; max-width: 600px; }
.lmr-hero .lmr-btn { margin-bottom: 1rem; }

.lmr-section-head { text-align: center; margin: 1rem 0 2.5rem; }
.lmr-section-title { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.lmr-section-subtitle { color: var(--lmr-muted, #888); margin-top: -.4rem; }
.lmr-empty { text-align: center; color: var(--lmr-muted, #888); padding: 2rem 0; }

/* ---------- Grille de livres + cartes ---------- */
.lmr-livres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.lmr-card {
    background: var(--lmr-paper, #fff);
    border: 1px solid var(--lmr-line, #e6e0d6);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.lmr-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.10); }
.lmr-card__cover {
    display: flex; align-items: center; justify-content: center;
    padding: 1.8rem 1.8rem 0;
    min-height: 260px;
}
.lmr-card__cover img { max-height: 300px; width: auto; box-shadow: 0 6px 22px rgba(0,0,0,.18); }
.lmr-card__nocover { color: var(--lmr-muted, #999); font-style: italic; text-align: center; }
.lmr-card__body { padding: 1.4rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.lmr-card__collection {
    display: inline-block; align-self: flex-start;
    font-family: var(--lmr-sans);
    font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--lmr-accent); margin-bottom: .5rem;
}
.lmr-card__title { font-size: 1.3rem; margin: 0 0 .4rem; line-height: 1.25; }
.lmr-card__title a { color: var(--lmr-black); }
.lmr-card__title a:hover { color: var(--lmr-accent); }
.lmr-card__sub { font-size: .95rem; font-style: italic; color: var(--lmr-ink); }
.lmr-card__author { color: var(--lmr-accent); font-weight: 500; margin: 0 0 .7rem; }
.lmr-card__author a { color: inherit; }
.lmr-card__author a:hover { text-decoration: underline; }
.lmr-card__excerpt { font-size: .92rem; color: #5b5b5b; margin: 0 0 1rem; }
.lmr-card__date { font-size: .82rem; color: var(--lmr-muted, #999); margin: auto 0 0; padding-top: .8rem; border-top: 1px solid var(--lmr-bg-alt, #f0ebe3); }

/* ---------- Page livre ---------- */
.lmr-livre-single { padding: 3rem 0 1rem; }
.lmr-livre-single__grid {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
}
.lmr-livre-single__cover { position: sticky; top: 100px; }
.lmr-livre-single__cover img { width: 100%; box-shadow: 0 14px 44px rgba(0,0,0,.22); border-radius: 2px; }
.lmr-livre-single__collection {
    font-family: var(--lmr-sans); font-size: .78rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--lmr-accent);
}
.lmr-livre-single__title { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: .4rem 0 .2rem; }
.lmr-livre-single__sub { font-style: italic; font-size: 1.2rem; color: var(--lmr-ink); margin: 0 0 .6rem; }
.lmr-livre-single__author { font-size: 1.15rem; color: var(--lmr-accent); font-weight: 500; }
.lmr-livre-single__author a { color: inherit; }
.lmr-livre-single__author a:hover { text-decoration: underline; }
.lmr-livre-single__trad { color: #5b5b5b; margin-top: -.4rem; }
.lmr-livre-single__pitch { margin: 1.6rem 0; text-align: justify; }
.lmr-livre-single__meta {
    list-style: none; margin: 1.8rem 0; padding: 1.4rem 0;
    border-top: 1px solid var(--lmr-line, #e6e0d6);
    border-bottom: 1px solid var(--lmr-line, #e6e0d6);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 1rem;
}
.lmr-livre-single__meta li { display: flex; flex-direction: column; }
.lmr-livre-single__meta strong {
    font-family: var(--lmr-sans); font-size: .72rem; text-transform: uppercase;
    letter-spacing: .06em; color: var(--lmr-muted, #999); font-weight: 500;
}
.lmr-livre-single__meta span { font-size: 1.05rem; color: var(--lmr-black); }
.lmr-livre-single__buy h2,
.lmr-livre-single__events h2,
.lmr-livre-single__presse h2 { font-size: 1.4rem; margin: 1.8rem 0 .9rem; }
.lmr-buy-links { display: flex; flex-wrap: wrap; gap: .8rem; }
.lmr-buy-note { font-size: .85rem; color: var(--lmr-muted, #999); margin-top: .8rem; }
.lmr-livre-single__events ul,
.lmr-livre-single__presse ul { padding-left: 1.1em; }
.lmr-livre-single__events li,
.lmr-livre-single__presse li { margin-bottom: .4em; }
.lmr-back { margin-top: 2.5rem; font-family: var(--lmr-sans); }

/* ---------- Collections ---------- */
.lmr-collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.6rem; max-width: 900px; margin: 0 auto; }
.lmr-collection-card {
    display: block; padding: 2rem 1.8rem; background: var(--lmr-paper,#fff);
    border: 1px solid var(--lmr-line,#e6e0d6); border-radius: 8px; color: var(--lmr-black);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lmr-collection-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); border-color: var(--lmr-accent); color: var(--lmr-black); }
.lmr-collection-card h3 { margin: 0 0 .4rem; }
.lmr-collection-card p { font-size: .92rem; color: #5b5b5b; margin: 0 0 .8rem; }
.lmr-collection-count { font-family: var(--lmr-sans); font-size: .78rem; color: var(--lmr-accent); text-transform: uppercase; letter-spacing: .05em; }

.lmr-collection-filters { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: center; margin: 0 0 2.5rem; font-family: var(--lmr-sans); }
.lmr-collection-filters a { color: var(--lmr-ink); font-weight: 500; }
.lmr-collection-filters a:hover, .lmr-collection-filters a.is-active { color: var(--lmr-accent); }

/* ---------- Auteurs ---------- */
.lmr-auteurs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 2rem; }
.lmr-auteur-card { text-align: center; color: var(--lmr-black); }
.lmr-auteur-card__photo { display: flex; align-items: center; justify-content: center; width: 130px; height: 130px; margin: 0 auto .9rem; border-radius: 50%; overflow: hidden; background: var(--lmr-bg-alt,#f0ebe3); }
.lmr-auteur-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.lmr-auteur-card__init { font-family: var(--lmr-serif); font-size: 2.6rem; color: var(--lmr-accent); }
.lmr-auteur-card__name { display: block; font-family: var(--lmr-serif); font-size: 1.15rem; }
.lmr-auteur-card:hover .lmr-auteur-card__name { color: var(--lmr-accent); }
.lmr-auteur-card__role { display: block; font-size: .82rem; color: var(--lmr-muted,#999); }

.lmr-auteur-single { padding: 3rem 0; }
.lmr-auteur-single__grid { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 3rem; align-items: start; }
.lmr-auteur-single__aside img { width: 100%; border-radius: 8px; }
.lmr-auteur-single__role { color: var(--lmr-accent); font-weight: 500; margin-top: -.6rem; }
.lmr-auteur-single__livres { margin-top: 2.5rem; }
.lmr-auteur-single__livres h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }

/* ---------- Manifeste ---------- */
.lmr-manifeste { max-width: 760px; margin: 0 auto; text-align: justify; }
.lmr-manifeste__intro { text-align: center; font-family: var(--lmr-serif); font-size: 1.3rem; line-height: 1.5; color: var(--lmr-black); margin-bottom: 2rem; }
.lmr-manifeste h3 { text-align: center; margin: 2rem 0 .8rem; }
.lmr-manifeste ul { padding-left: 1.2em; }

/* ---------- Événements ---------- */
.lmr-events { max-width: 820px; margin: 0 auto; }
.lmr-event { display: grid; grid-template-columns: 160px 1fr; gap: 1.6rem; padding: 1.6rem 0; border-bottom: 1px solid var(--lmr-line,#e6e0d6); }
.lmr-event__date { font-family: var(--lmr-serif); color: var(--lmr-accent); font-size: 1.1rem; }
.lmr-event__title { font-size: 1.4rem; margin: 0 0 .3rem; }
.lmr-event__place { color: #5b5b5b; margin: 0 0 .6rem; }

/* ---------- Contact ---------- */
.lmr-contact { max-width: 680px; margin: 0 auto; }
.lmr-contact h3 { margin-top: 1.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .lmr-livre-single__grid { grid-template-columns: 1fr; gap: 2rem; }
    .lmr-livre-single__cover { position: static; max-width: 300px; margin: 0 auto; }
    .lmr-auteur-single__grid { grid-template-columns: 1fr; }
    .lmr-auteur-single__aside { max-width: 200px; }
    .lmr-event { grid-template-columns: 1fr; gap: .4rem; }
}
