/**
 * Actualités de recherche — Styles v2 (mars 2026)
 * Univ-Droit
 *
 * Chargé dans: templates/simplesimon/positions/actu_recherche/content/mainbody.php
 */

/* =============================================
   HERO SECTION
   ============================================= */
.compo-hero {
    position: relative;
    overflow: hidden;
    min-height: var(--hero-min, 260px);
    background: none;
    isolation: isolate;
    --hero-max: 360px;
    --hero-sat: 0.8;
    --hero-blur: 5px;
    --hero-bright: 0.45;
    border-radius: 8px;
}

/* Calque image (derrière) */
.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);
}

/* Calque gradient (devant l'image) */
.compo-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(0, 0, 0, 0.52) 0%,
        rgba(0, 0, 0, 0.28) 45%,
        rgba(0, 0, 0, 0.12) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Contenu au-dessus */
.compo-hero__content {
    position: relative;
    z-index: 1;
    padding: 28px 32px 24px;
}

.jl-bold { font-weight: 600; }

/* --- Hero: logos organisateurs (dans le hero) --- */
.compo-hero__logos {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.compo-hero__logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 48px;
    background: #ffffff;
    border-radius: 4px;
    padding: 4px 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    transition: transform 0.15s;
}
.compo-hero__logo-item:hover { transform: scale(1.05); }

.compo-hero__logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Hero: titre grille --- */
.compo-hero__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: end;
}

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

.compo-hero__subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.88);
    font-weight: 400;
    line-height: 1.5;
    max-width: 600px;
}

/* --- Hero: date limite (type 48) --- */
.compo-hero__deadline {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(200, 16, 46, 0.9);
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
}

/* --- Hero: badges --- */
.compo-hero__badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.manif-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.manif-badge--live {
    background: #c8102e;
    color: #fff;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(200,16,46,0); }
}

.manif-badge--online {
    background: rgba(252, 202, 70, 0.9);
    color: #232323;
}

/* =============================================
   EVENT DATE DISPLAY — BEM
   ============================================= */
.event-date {
    display: flex;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.event-date__panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
}

.event-date__panel--primary   { background: #fcca46; }
.event-date__panel--secondary { background: #619b8a; color: #fff; }
.event-date__panel--time      { background: #4a8c6f; color: #fff; }

.event-date__day {
    text-transform: uppercase;
    font-size: 0.78em;
    letter-spacing: 1.5px;
    color: #232323;
    font-weight: 500;
}

.event-date__number {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1;
    color: #232323;
}

.event-date__month {
    font-size: 1.05em;
    font-weight: 600;
    color: #232323;
    margin-top: 2px;
}

.event-date__year {
    font-size: 1.3em;
    color: #232323;
    margin-top: 1px;
    font-weight: 400;
}

.event-date__time {
    font-size: 1.1em;
    color: #232323;
    margin-top: 6px;
    font-weight: 600;
    background: rgba(0,0,0,0.06);
    padding: 2px 10px;
    border-radius: 3px;
}

.event-date__panel--secondary .event-date__day,
.event-date__panel--secondary .event-date__number,
.event-date__panel--secondary .event-date__month,
.event-date__panel--secondary .event-date__year { color: #fff; }
.event-date__panel--secondary .event-date__time { color: #fff; background: rgba(255,255,255,0.15); }
.event-date__panel--time .event-date__time { color: #fff; background: rgba(255,255,255,0.15); }

.event-date__separator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    background: #333;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Past */
.event-date--past .event-date__panel--primary   { background: #e8e8e8; }
.event-date--past .event-date__panel--secondary  { background: #d9d9d9; }
.event-date--past .event-date__day,
.event-date--past .event-date__month,
.event-date--past .event-date__year,
.event-date--past .event-date__number { color: #888; }
.event-date--past .event-date__panel--primary .event-date__time { color: #777; background: rgba(0,0,0,0.08); }
.event-date--past .event-date__panel--secondary .event-date__time,
.event-date--past .event-date__panel--time .event-date__time { color: #fff; background: rgba(255,255,255,0.15); }
.event-date--past .event-date__separator { background: #aaa; color: #fff; }

/* =============================================
   META BAR
   ============================================= */
.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--status-futur { background: #e8f5e9; color: #2e7d32; }
.manif-chip--status-now   { background: #fef2f2; color: #c8102e; }
.manif-chip--status-past  { background: #f5f5f5; color: #999; }

.manif-chip--location {
    background: transparent;
    border: 1px solid #e5e5e5;
    color: #555;
}
.manif-chip--location i { color: #c8102e; }

.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; }

/* =============================================
   MAIN LAYOUT — 2 columns
   ============================================= */
.manif-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    padding: 28px 0 40px;
}

/* --- Main content --- */
.manif-main { min-width: 0; }

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

.manif-main h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c8102e;
    margin: 24px 0 10px;
    padding-left: 12px;
    border-left: 3px solid #c8102e;
}

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

/* Résumé callout */
.manif-resume {
    margin-top: 24px;
    padding: 16px 20px;
    background: #f0efed;
    border-left: 4px solid #c8102e;
    border-radius: 0 5px 5px 0;
    font-style: italic;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* Parution liée */
.manif-book-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.manif-book-card__cover {
    width: 80px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}
.manif-book-card__cover img { width: 100%; height: 100%; object-fit: cover; }

.manif-book-card__info { flex: 1; min-width: 0; }
.manif-book-card__title { font-size: 0.88rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.manif-book-card__meta { font-size: 0.78rem; color: #888; }

/* Participant link */
.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; }

/* Contributions RHFD */
.manif-contributions {
    margin-top: 28px;
    padding: 20px;
    background: #fdfcf9;
    border: 1px solid #ede9e0;
    border-radius: 8px;
}

.manif-contributions__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.manif-contributions__item {
    padding: 8px 0;
    border-bottom: 1px solid #ede9e0;
    font-size: 0.85rem;
    line-height: 1.5;
}
.manif-contributions__item:last-child { border-bottom: none; }

/* =============================================
   SIDEBAR
   ============================================= */
.manif-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
}

.manif-side-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.manif-side-card__header {
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    border-bottom: 1px solid #f0efed;
    background: #fafaf9;
}

.manif-side-card__body { padding: 14px; }

/* Illustration thumbnail */
.manif-illus {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: opacity 0.15s;
}
.manif-illus:hover { opacity: 0.9; }

/* Agenda QR */
.manif-agenda-qr { text-align: center; }
.manif-agenda-qr img {
    max-width: 160px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #f0efed;
}
.manif-agenda-qr__label { font-size: 0.72rem; color: #888; margin-top: 6px; }

.manif-ics-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 91%;
    padding: 6px 10px;
    margin: 10px auto 0;
    background: #f8f8f7;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}
.manif-ics-btn:hover { border-color: #c8102e; color: #c8102e; }

/* Documents */
.manif-doc-list { list-style: none; margin: 0; padding: 0; }

.manif-doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f0efed;
}
.manif-doc-item:last-child { border-bottom: none; }

.manif-doc-item a {
    font-size: 0.84rem;
    font-weight: 500;
    color: #555;
    transition: color 0.15s;
}
.manif-doc-item a:hover { color: #c8102e; }

.manif-doc-item i {
    width: 18px;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

/* Formations associées */
.manif-formation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0efed;
}
.manif-formation-item:last-child { border-bottom: none; }

.manif-formation-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.manif-formation-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.manif-formation-name { font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.manif-formation-univ { font-size: 0.72rem; color: #888; }

/* RHFD sidebar */
.manif-rhfd-list { list-style: none; margin: 0; padding: 0; }
.manif-rhfd-list li { padding: 6px 0; border-bottom: 1px solid #f0efed; }
.manif-rhfd-list li:last-child { border-bottom: none; }
.manif-rhfd-list a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #555;
}
.manif-rhfd-list a:hover { color: #c8102e; }
.manif-rhfd-list i { font-size: 0.7rem; color: #c8102e; width: 14px; text-align: center; }

/* =============================================
   TAGS (conservé)
   ============================================= */
.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; }

/* =============================================
   ORGANISATEURS / PARTENAIRES (hero + footer)
   ============================================= */
.actu-org img,
.actu-part img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.intitule-org {
    text-align: center;
    font-weight: 500;
    font-size: 0.9em;
    margin-bottom: 5px;
}

/* Partenaires footer */
.manif-partners-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    margin-bottom: 32px;
}

.manif-partners-card__header {
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #f0efed;
    background: #fafaf9;
}

.manif-partners-card__body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
}

.manif-partner-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
    filter: grayscale(0.3);
}
.manif-partner-logo:hover { opacity: 1; filter: none; }

/* =============================================
   GEO / MAP
   ============================================= */
.manif-geo-card {
    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;
}

.manif-geo-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0efed;
}

.manif-geo-card__title {
    font-size: 0.9rem;
    font-weight: 700;
}

.manif-geo-card__address {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.manif-geo-card__address-label {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: #555;
    padding: 8px 12px;
    background: #fafaf9;
    border-bottom: 1px solid #f0efed;
}

/* =============================================
   QR CODE / AGENDA (conservé)
   ============================================= */
.ics-maif { text-align: center; }
.qrcode-rdv { max-width: 200px; height: auto; }

/* =============================================
   MOBILE OPTIMIZATIONS
   ============================================= */
@media (max-width: 959px) {
    .compo-hero {
        --hero-min: 200px;
        --hero-max: 100%;
        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; }
    .compo-hero__title { font-size: 1.5rem; }

    .compo-hero__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .event-date { max-width: 280px; }
    .event-date__number { font-size: 2.4em; }
    .event-date__year { font-size: 1.2em; }

    .manif-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .manif-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

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

    .manif-geo-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 639px) {
    .compo-hero { --hero-min: 180px; }
    .compo-hero__title { font-size: 1.3rem; }
    .compo-hero__subtitle { font-size: 0.85rem; }

    .compo-hero__logos { gap: 8px; }
    .compo-hero__logo-item { width: 70px; height: 38px; }

    body { overflow-x: hidden !important; }

    .event-date { max-width: 100%; }
    .event-date__number { font-size: 2em; }
    .event-date__year { font-size: 1.1em; }
    .event-date__time { font-size: 0.9em; }
    .event-date__separator { width: 26px; height: 26px; font-size: 0.9em; }

    .manif-sidebar { grid-template-columns: 1fr; }
    .manif-meta-bar { gap: 5px; }
    .manif-chip { font-size: 0.7rem; padding: 3px 8px; }

    .actu-org img,
    .actu-part img { max-height: 60px; }

    .qrcode-rdv { max-width: 150px; }
}
