/**
 * Parutions - Styles v2 (mars 2026)
 * Univ-Droit
 *
 * Charge dans: templates/simplesimon/positions/parutions/content/mainbody.php
 * Partage les patterns compo-hero / manif-meta-bar / manif-side-card avec actu-recherche.css
 */

/* =============================================
   HERO SECTION (shared compo-hero)
   ============================================= */
.compo-hero {
    position: relative;
    overflow: hidden;
    min-height: var(--hero-min, 280px);
    background: none;
    isolation: isolate;
    --hero-max: 400px;
    --hero-sat: 0.7;
    --hero-blur: 6px;
    --hero-bright: 0.38;
    border-radius: 8px;
}

.compo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero, linear-gradient(135deg, #2c3e50, #1a1a2e));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(var(--hero-sat)) blur(var(--hero-blur)) brightness(var(--hero-bright));
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: scale(1.06);
}

.compo-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.30) 50%,
        rgba(0, 0, 0, 0.10) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.compo-hero__content {
    position: relative;
    z-index: 1;
    padding: 32px;
}

/* =============================================
   PARUTION HERO — cover left, text right
   ============================================= */
.parution-hero__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    align-items: center;
}

.parution-hero__cover { width: 220px; flex-shrink: 0; }

.parution-hero__cover-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 8px 8px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
    transition: transform 0.2s;
    cursor: zoom-in;
}
.parution-hero__cover-img:hover { transform: scale(1.02); }

.parution-hero__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.parution-hero__title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.parution-hero__subtitle {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    line-height: 1.5;
    margin-top: 4px;
}

.parution-hero__authors {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-top: 8px;
    font-weight: 500;
}
.parution-hero__authors a { color: #fff; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,0.4); }
.parution-hero__authors a:hover { text-decoration-color: #fff; }

/* Meta chips dans le hero */
.parution-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.parution-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.parution-hero__chip i {
    font-size: 0.65rem;
    opacity: 0.7;
}

.parution-hero__isbn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.parution-hero__publisher-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 44px;
    background: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    margin-top: 12px;
    transition: transform 0.15s;
}
.parution-hero__publisher-logo:hover { transform: scale(1.05); }
.parution-hero__publisher-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* =============================================
   META BAR (shared pattern)
   ============================================= */
.manif-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.manif-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    font-size: 0.76rem;
    font-weight: 500;
    background: #f0efed;
    color: #555;
    border-radius: 4px;
    transition: background 0.15s;
}
.manif-chip:hover { background: #e8e7e4; }

.manif-chip--type {
    background: #c8102e;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.manif-chip--isbn {
    background: transparent;
    border: 1px solid #e5e5e5;
    color: #555;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.03em;
}
.manif-chip--isbn i { color: #888; }

.manif-meta-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}

.manif-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none !important;
}
.manif-btn:hover { border-color: #c8102e; color: #c8102e; }

.manif-btn--accent {
    background: #c8102e;
    border-color: #c8102e;
    color: #fff !important;
}
.manif-btn--accent:hover { background: #a00d24; }

/* =============================================
   CONTENU (pleine largeur)
   ============================================= */
.parution-content {
    padding: 28px 0 40px;
    max-width: 860px;
}

.parution-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f0efed;
}
.parution-content h3:first-child { margin-top: 0; }

.parution-content p {
    margin-bottom: 12px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #333;
}

.actu-participation a {
    color: #c8102e;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(200,16,46,0.3);
    transition: text-decoration-color 0.15s;
}
.actu-participation a:hover { text-decoration-color: #c8102e; }


/* =============================================
   ACTUALITE EN RAPPORT
   ============================================= */
.parution-actu-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    display: grid;
    grid-template-columns: 200px 1fr;
    margin-bottom: 24px;
}

.parution-actu-card__img { overflow: hidden; }
.parution-actu-card__img img { width: 100%; height: 100%; object-fit: cover; }

.parution-actu-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.parution-actu-card__head { font-size: 0.92rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.parution-actu-card__desc { font-size: 0.82rem; color: #555; line-height: 1.5; margin-bottom: 10px; }

.parution-actu-card__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c8102e;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Appel variant */
.parution-appel-alert {
    padding: 14px 18px;
    background: #fef2f2;
    border-left: 4px solid #c8102e;
    border-radius: 0 5px 5px 0;
    font-size: 0.85rem;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* =============================================
   RHFD REVIEWS
   ============================================= */
.parution-reviews {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    margin-bottom: 24px;
}

.parution-reviews__header {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 1px solid #f0efed;
    background: #fafaf9;
}

.parution-reviews__item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0efed;
    font-size: 0.85rem;
    line-height: 1.5;
}
.parution-reviews__item:last-child { border-bottom: none; }

/* =============================================
   SECTION TITLES
   ============================================= */
.parution-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* =============================================
   TAGS (conserve)
   ============================================= */
.tag-recherche { margin: 0 10px 8px 0; }
.jl-label-default {
    background: #f5f5f5;
    color: #333;
    padding: 3px 10px;
    border-radius: 9999px;
    transition: background 0.2s ease;
}
.jl-label-default:hover { background: #e0e0e0; color: #121212; }

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 959px) {
    .compo-hero { --hero-min: 220px; border-radius: 0; }
    .compo-hero::before {
        filter: none !important;
        will-change: auto !important;
        transform: none !important;
        background-color: rgba(0,0,0,0.45);
        background-blend-mode: darken;
    }
    .compo-hero { isolation: auto !important; }
    .compo-hero__content { padding: 20px; }

    .parution-hero__grid { grid-template-columns: 160px 1fr; gap: 20px; }
    .parution-hero__cover { width: 160px; }
    .parution-hero__title { font-size: 1.4rem; }

    .parution-actu-card { grid-template-columns: 1fr; }
    .parution-actu-card__img { height: 180px; }

    .manif-meta-actions { margin-left: 0; width: 100%; justify-content: flex-start; margin-top: 4px; }
}

@media (max-width: 639px) {
    .parution-hero__grid { grid-template-columns: 120px 1fr; gap: 14px; }
    .parution-hero__cover { width: 120px; }
    .parution-hero__title { font-size: 1.2rem; }
    .parution-hero__subtitle { font-size: 0.82rem; }
    .parution-hero__biblio { font-size: 0.75rem; }

    body { overflow-x: hidden !important; }
    .manif-chip { font-size: 0.7rem; padding: 3px 8px; }
    .parution-hero__chip { font-size: 0.68rem; padding: 2px 8px; }
}
