/* Styles page Actualités (hero + grille)
   Extrait du bloc <style> inline de index.php (consolidation CSS, 23/08/2026).
   Chargé conditionnellement via inc/enqueue.php. */

/* La zone réservée à l'en-tête flottant reprend le fond de la section. */
.boxed_wrapper:has(.actu-list-section) {
    background: #f6f8fb;
}

body.blog .hero-layout-wrapper {
    display: block !important;
}

.hero-layout-wrapper {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    user-select: none;
    font-family: 'DM Sans', sans-serif;
}

/* Background image slide */
.hero-bg-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    opacity: 0;
    transform: scale(1.03);
}
.hero-bg-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Overlays */
.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0a0a0a 0%, rgba(10, 10, 10, 0.65) 50%, rgba(10, 10, 10, 0.3) 100%);
    z-index: 2;
}
.hero-overlay-color {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* Main Container to match theme's layout but overlay style */
.hero-content-container {
    position: absolute;
    left: 0;  /* « inset-x » n'existe pas en CSS : le bloc n'était pas centré sur grand écran */
    right: 0;
    bottom: 0;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

/* Left Column: Article Card */
.hero-article-card {
    cursor: pointer;
    max-width: 600px;
    flex: 1;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    z-index: 3;
    transition: all 0.3s ease;
    text-align: left;
}
.hero-article-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Category Badge */
.hero-badge {
    background: #0a4c95;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    padding: 5px 12px;
    margin-bottom: 20px;
    display: inline-block;
    border-radius: 3px;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none !important;
}
.hero-badge:hover {
    background: #ffffff;
    color: #111111;
}

/* Title */
.hero-title {
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 800;
    font-size: 32px;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 15px 0;
    transition: color 0.3s ease;
}
.hero-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}
.hero-title a:hover {
    color: #ffd700 !important;
}

/* Excerpt/Subtitle */
.hero-excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stamp Info */
.hero-stamp {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}
.hero-stamp-author {
    color: #ffffff;
    font-weight: 500;
}
.hero-stamp-readtime {
    color: #ffd700;
}

/* Right Column: Previews & Indicators (positioned relative to full screen wrapper) */
.hero-right-panel {
    position: absolute;
    right: 30px; /* 30px from the far right edge of the screen */
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align preview cards to the bottom */
    padding-bottom: 40px; /* Offset from bottom */
    gap: 20px;
    z-index: 10;
    padding-right: 50px; /* Space for timeline dots */
}

/* Side Previews Container */
.hero-side-previews {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
}

/* Side Preview Card */
.hero-side-card {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}
.hero-side-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}
.hero-side-card-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.hero-side-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}
.hero-side-card-cat {
    font-size: 9px;
    text-transform: uppercase;
    color: #ffd700;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 3px;
}
.hero-side-card-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #e5e5e5;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-side-card-read {
    font-size: 9px;
    color: #ffd700;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Indicators on the far right of the panel */
.hero-indicators-timeline {
    position: absolute;
    right: 0; /* Align with right edge of the right panel */
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 20;
}
.hero-num-buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 5;
}
.hero-num-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}
.hero-num-btn:hover {
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
}
.hero-num-btn.active {
    background: #0a0a0a;
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}
.hero-timeline-line {
    position: absolute;
    top: calc(50% + 120px); /* 104px (half-height of 5 buttons with gaps) + 16px margin */
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* Entre 992 et 1100 px, la carte (600 px) passait sous les vignettes de droite. */
@media (min-width: 992px) and (max-width: 1100px) {
    .hero-article-card {
        max-width: calc(100% - 420px);
    }
}

/* Tablette et mobile : l'image en haut, la carte de l'article dessous, puis les numéros et le bouton
   Pause sur une ligne. Les vignettes sont masquées : elles remontaient en haut du hero, cachées sous
   l'en-tête, et la liste juste en dessous montre déjà ces articles. */
@media (max-width: 991px) {
    .hero-layout-wrapper {
        height: auto;
        min-height: 0;
        padding: clamp(220px, 42vw, 380px) 0 24px;
    }
    .hero-content-container {
        position: relative;
        left: auto;
        right: auto;
        max-width: 760px;
        padding: 0 20px;
    }
    .hero-article-card {
        max-width: none;
        padding: 28px;
    }
    .hero-right-panel {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        max-width: 760px;
        margin: 16px auto 0;
        padding: 0 20px;
    }
    .hero-side-previews {
        display: none;
    }
    .hero-indicators-timeline {
        position: static;
        width: auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .hero-num-buttons {
        position: static;
        transform: none;
        flex-direction: row;
        gap: 10px;
    }
    .hero-timeline-line {
        display: none;
    }
    .hero-indicators-timeline .hero-pause-btn { /* plus précis que la règle de base, placée en fin de fichier */
        position: static;
        transform: none;
        order: 2;
    }
    .hero-stamp {
        flex-wrap: wrap;
        gap: 6px 10px;
    }
}
@media (max-width: 575px) {
    .hero-content-container,
    .hero-right-panel {
        padding: 0 15px;
    }
    .hero-article-card {
        padding: 20px;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-excerpt {
        font-size: 13px;
    }
    /* Les « | » finissaient seuls en bout de ligne quand la ligne se coupe */
    .hero-stamp > span:not([class]):not(:has(span)) {
        display: none;
    }
}

/* Liste éditoriale des publications et filtre catégories */
.actu-list-section {
    padding: clamp(22px, 3.5vw, 40px) 0 80px;
    background: #f6f8fb;
    font-family: 'DM Sans', sans-serif;
}

.actu-filter-bar {
    margin-bottom: clamp(22px, 3vw, 32px);
    padding: 15px 18px 17px;
    border: 1px solid #d4deec;
    border-radius: 12px;
    background: #ffffff;
}

.actu-filter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid #edf2f8;
}

.actu-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0a1a30;
    font-size: 0.875rem;
    font-weight: 700;
}

.actu-filter-label i {
    color: #0a4c95;
}

.actu-filter-total {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.actu-filter-total i {
    color: #c8912f;
}

.actu-filter-toggle {
    display: none;
}

.actu-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actu-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid #d4deec;
    border-radius: 8px;
    background: #f8fafd;
    color: #1c2c42 !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.actu-filter-pill:hover {
    border-color: #0a4c95;
    background: #eef4fc;
    color: #0a4c95 !important;
    transform: translateY(-1px);
}

.actu-filter-pill.is-active {
    border-color: #0a4c95;
    background: #0a4c95;
    color: #ffffff !important;
}

.actu-filter-toggle:focus-visible,
.actu-filter-pill:focus-visible,
.actu-pagination a.page-numbers:focus-visible {
    outline: 3px solid #e0b45c;
    outline-offset: 2px;
}

.actu-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    background: #edf2f8;
    color: #364963;
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.actu-filter-pill:hover .actu-filter-count {
    background: #dbe8f8;
    color: #0a4c95;
}

.actu-filter-pill.is-active .actu-filter-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

#actuFeed.is-loading .actu-list,
#actuFeed.is-loading .actu-pagination {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.actu-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: clamp(32px, 4vw, 48px);
}

.actu-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d4deec;
    border-radius: 6px;
    background: #ffffff;
    color: #1c2c42 !important;
    font-size: 0.9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.actu-pagination a.page-numbers:hover {
    border-color: #0a4c95;
    background: #eef4fc;
    color: #0a4c95 !important;
}

.actu-pagination .page-numbers.current {
    border-color: #0a4c95;
    background: #0a4c95;
    color: #ffffff !important;
}

.actu-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: #5f6f84 !important;
    pointer-events: none;
}

.actu-empty {
    padding: clamp(36px, 5vw, 60px) 24px;
    border: 1px solid #e0e6ee;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
}

.actu-empty i {
    font-size: 2rem;
    color: #0a4c95;
}

.actu-empty h2 {
    margin: 14px 0 8px;
    color: #0a1a30;
    font-size: 1.35rem;
    font-weight: 700;
}

.actu-empty p {
    margin: 0 auto 20px;
    max-width: 48ch;
    color: #526075;
    font-size: 0.95rem;
}

.actu-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border-radius: 8px;
    background: #0a4c95;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.actu-empty__btn:hover {
    background: #07387a;
}

.actu-list {
    display: grid;
    gap: 22px;
}

.actu-item {
    display: grid;
    grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
    min-width: 0;
    min-height: 255px;
    overflow: hidden;
    border: 1px solid #e0e6ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px -30px rgba(8, 27, 50, .65);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.actu-item:hover {
    transform: translateY(-3px);
    border-color: #cbd7e5;
    box-shadow: 0 22px 42px -30px rgba(8, 27, 50, .72);
}

.actu-thumb {
    position: relative;
    display: block;
    min-height: 255px;
    overflow: hidden;
    background: #dce4ee;
}

.actu-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 255px;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.actu-item:hover .actu-thumb img {
    transform: scale(1.035);
}

.actu-date {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    min-width: 70px;
    overflow: hidden;
    border-radius: 9px;
    background: #fff;
    color: #0a4c95;
    text-align: center;
    box-shadow: 0 8px 24px rgba(8, 27, 50, .2);
}

.actu-date b {
    padding: 8px 9px 3px;
    font-size: 1.45rem;
    line-height: 1;
}

.actu-date span {
    padding: 4px 9px 7px;
    color: #6b7788;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .07em;
}

.actu-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 3.5vw, 42px);
}

.actu-cat {
    align-self: flex-start;
    margin-bottom: 12px;
    color: #0a4c95 !important;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.actu-title {
    margin: 0;
    color: #0a1a30;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1.22;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.actu-title a {
    color: inherit !important;
}

.actu-title a:hover {
    color: #0a4c95 !important;
}

.actu-excerpt {
    display: -webkit-box;
    margin: 14px 0 18px;
    overflow: hidden;
    color: #647286;
    font-size: .94rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.actu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: auto;
    color: #5f6f84;
    font-size: .8rem;
}

.actu-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.actu-meta i {
    color: #c8912f;
}

.actu-meta a {
    color: inherit !important;
}

@media (max-width: 767px) {
    .actu-list-section {
        padding: 18px 0 56px;
    }

    .actu-filter-bar {
        margin-bottom: 18px;
        padding: 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .actu-filter-top {
        display: none;
    }

    .actu-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 54px;
        padding: 10px 14px;
        border: 0;
        background: transparent;
        color: #0a1a30;
        font-family: 'DM Sans', sans-serif !important;
        text-align: left;
        cursor: pointer;
    }

    .actu-filter-bar.is-open .actu-filter-toggle {
        border-bottom: 1px solid #edf2f8;
        background: #fafcff;
    }

    .actu-filter-toggle__main {
        display: flex;
        align-items: center;
        gap: 11px;
        min-width: 0;
        flex: 1;
    }

    .actu-filter-toggle__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: #eef4fc;
        color: #0a4c95;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .actu-filter-toggle__meta {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .actu-filter-toggle__label {
        color: #526075;
        font-size: 0.7rem;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .actu-filter-toggle__current {
        overflow: hidden;
        color: #0a1a30;
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .actu-filter-toggle__right {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .actu-filter-toggle__count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 26px;
        height: 24px;
        padding: 0 7px;
        border-radius: 6px;
        background: #edf2f8;
        color: #1c2c42;
        font-size: 0.78rem;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

    .actu-filter-toggle__chev {
        color: #526075;
        font-size: 0.85rem;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .actu-filter-bar.is-open .actu-filter-toggle__chev {
        transform: rotate(180deg);
        color: #0a4c95;
    }

    #actuFeed.actu-js .actu-filter-bar:not(.is-open) .actu-filter-pills {
        display: none;
    }

    .actu-filter-pills {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 10px;
        max-height: 55vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .actu-filter-pill {
        width: 100%;
        justify-content: space-between;
        min-height: 44px;
        padding: 9px 12px;
        border-radius: 8px;
        font-size: 0.9rem;
    }

    .actu-filter-pill:hover {
        transform: none;
    }

    .actu-item {
        grid-template-columns: 1fr;
    }

    .actu-thumb,
    .actu-thumb img {
        min-height: 210px;
        height: 210px;
    }

    .actu-body {
        padding: 22px 18px 24px;
    }

    .actu-title {
        font-size: 1.3rem;
    }

    .actu-pagination {
        gap: 6px;
        margin-top: 28px;
    }

    .actu-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .actu-item,
    .actu-thumb img,
    .actu-filter-pill,
    .actu-filter-count,
    .actu-filter-toggle__chev,
    .actu-pagination .page-numbers {
        transition: none;
    }

    .actu-item:hover,
    .actu-item:hover .actu-thumb img,
    .actu-filter-pill:hover {
        transform: none;
    }
}

/* Accessibilité : bouton Pause/Lecture du défilement (au-dessus des numéros) + focus clavier sur fond sombre */
.hero-pause-btn {
    position: absolute;
    top: calc(50% - 152px);
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 6;
    transition: border-color 0.3s ease;
}
.hero-pause-btn:hover { border-color: #ffffff; }
.hero-layout-wrapper a:focus-visible,
.hero-layout-wrapper button:focus-visible,
.hero-side-card:focus-visible {
    outline: 3px solid #e0b45c !important;
    outline-offset: 3px !important;
}
