/* ====================================================
   FAFECA Archive & Single Page Styles
   ==================================================== */

/* ====================================================
   TESTIMONIALS CAROUSEL
   ==================================================== */
.testi-carousel {
    position: relative;
    user-select: none;
}
.testi-carousel__track-wrap {
    overflow: hidden;
}
.testi-carousel__track {
    display: flex;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.testi-carousel__slide {
    flex-shrink: 0;
    padding: 0 .75rem;
    box-sizing: border-box;
}
.testi-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #E5E7EB;
    height: 100%;
    min-height: 240px;
    transition: box-shadow .3s ease, border-color .3s ease;
}
.testi-card:hover {
    box-shadow: 0 12px 32px rgba(0,46,109,.12) !important;
    border-color: transparent;
}
.testi-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2.25rem;
}
.testi-carousel__btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #002E6D;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, color .25s ease, transform .2s ease;
    flex-shrink: 0;
    line-height: 1;
}
.testi-carousel__btn:hover {
    background: #002E6D;
    border-color: #002E6D;
    color: #fff;
    transform: scale(1.08);
}
.testi-carousel__dots {
    display: flex;
    gap: .5rem;
    align-items: center;
}
.testi-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .3s ease, width .3s cubic-bezier(.4,0,.2,1);
}
.testi-carousel__dot.active {
    background: #002E6D;
    width: 28px;
}
@media (max-width: 767px) {
    .testi-carousel__slide { padding: 0 .4rem; }
    .testi-carousel__controls { gap: .75rem; }
    .testi-carousel__btn { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* Archive layout with optional sidebar */
.archive-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}
.archive-layout--sidebar {
    grid-template-columns: 1fr 320px;
}

/* Archive grids */
.archive-grid {
    display: grid;
    gap: 1.75rem;
}
.blog-archive-grid,
.action-archive-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Filter bar */
.archive-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2rem;
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: .4rem 1rem;
    background: var(--color-light);
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    font-size: .85rem;
    font-weight: 500;
    color: var(--color-dark);
    cursor: pointer;
    transition: all .25s ease;
}
.filter-pill:hover,
.filter-pill.active {
    background: var(--color-primary);
    border-color: transparent;
    color: #fff;
}

/* Action archive card extras — inset image design */
.action-archive-card {
    position: relative;
    overflow: visible; /* allow image wrapper to have its own radius */
}
.action-card-img-link {
    display: block;
    position: relative;
    margin: 14px 14px 0;
    border-radius: 12px;
    overflow: hidden;   /* clips zoom + rounded image corners */
}
.action-card-img-link .card-img {
    aspect-ratio: 3/2;
    width: 100%;
    display: block;
    transition: transform .4s ease;
}
.action-card-img-link:hover .card-img {
    transform: scale(1.04);
}
.action-archive-card .card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.action-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    padding: .25rem .75rem;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.action-badge--green { background: var(--color-green); color: #fff; }
.action-badge--blue  { background: var(--color-primary); color: #fff; }
.action-badge--gray  { background: #6B7280; color: #fff; }

.action-type-tag {
    display: inline-block;
    background: rgba(215,25,32,.1);
    color: var(--color-red);
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .6rem;
}

.action-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .82rem;
    color: var(--color-gray);
    margin: .6rem 0 1rem;
}
.action-meta i { color: var(--color-red); }

.action-excerpt {
    font-size: .9rem;
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.action-archive-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 .6rem;
}
.action-archive-card .card-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color .2s ease;
}
.action-archive-card .card-title a:hover {
    color: var(--color-red);
}
.action-archive-card .card-body {
    display: flex;
    flex-direction: column;
}

/* Jobs grid — 2 colonnes */
.jobs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.job-list-card {
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}
.job-list-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    flex: 1;
}
.job-list-card__main {
    flex: 1;
}
.job-list-card__tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}
.job-tag {
    padding: .2rem .7rem;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.job-tag--type   { background: rgba(0,46,109,.08); color: var(--color-primary); }
.job-tag--closed { background: #FEF2F2; color: #991B1B; }
.job-list-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: .35rem;
}
.job-list-card__title a:hover { color: var(--color-red); }
.job-list-card__excerpt {
    font-size: .88rem;
    color: var(--color-gray);
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.job-list-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .8rem;
    color: var(--color-gray);
}
.job-list-card__meta i { color: var(--color-primary); }

/* Action single hero */
.action-hero {
    background-color: var(--color-primary);
}

/* Action info bar */
.action-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-light);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}
.action-info-item {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.action-info-item i {
    font-size: 1.4rem;
    color: var(--color-red);
    flex-shrink: 0;
}
.action-info-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-gray);
}
.action-info-value {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* Richtext output (pub_pc intro sections) */
.rte-output { color: #4B5563; line-height: 1.85; }
.rte-output p { margin: 0 0 .85em; }
.rte-output strong { font-weight: 700; color: inherit; }
.rte-output em { font-style: italic; }
.rte-output h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-primary,#002E6D); margin: 1.25rem 0 .5rem; }
.rte-output ul { margin: .5rem 0 .85em 1.2rem; list-style: disc; }
.rte-output ul li { margin-bottom: .35rem; }

/* Action entry content */
.action-entry-content {
    line-height: 1.8;
    color: var(--color-dark);
}
.action-entry-content h2,
.action-entry-content h3 {
    color: var(--color-primary);
    margin: 1.75rem 0 .75rem;
}
.action-entry-content p {
    margin-bottom: 1.25rem;
}

/* Action right aside */
.action-aside {
    position: sticky;
    top: calc(var(--header-height, 80px) + 1.5rem);
}

/* Share strip */
.single-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-light);
    border-radius: var(--radius-lg);
    margin-top: 2.5rem;
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid var(--color-border);
}

/* Archive empty state */
.archive-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--color-gray);
}
.archive-empty i { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: .4; }

/* Archive sidebar */
.sidebar-widget {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-widget__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--color-red);
}
.sidebar-widget ul { list-style: disc; padding-left: 1.25rem; }
.sidebar-widget ul li { margin-bottom: .4rem; font-size: .9rem; }
.sidebar-widget ul li a:hover { color: var(--color-red); }

/* ====================================================
   CARD IMPROVEMENTS — Border + Smooth hover
   ==================================================== */
.card {
    border: 1px solid var(--color-border);
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .3s ease;
}
.card:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 46, 109, .13);
}

/* ====================================================
   MOBILE CAROUSEL for card grids
   ==================================================== */
@media (max-width: 1024px) {
    .cards-mobile-carousel {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cards-mobile-carousel::-webkit-scrollbar { display: none; }
    .cards-mobile-carousel > * {
        flex: 0 0 80vw;
        max-width: 320px;
        min-width: 260px;
        scroll-snap-align: start;
    }
    .action-archive-grid.cards-mobile-carousel > *,
    .blog-archive-grid.cards-mobile-carousel > * {
        flex: 0 0 78vw;
        max-width: 300px;
    }
}

/* ====================================================
   SMOOTH ANIMATIONS — refined
   ==================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger animation delay for grid children */
.archive-grid > *:nth-child(2) { transition-delay: .06s; }
.archive-grid > *:nth-child(3) { transition-delay: .12s; }
.archive-grid > *:nth-child(4) { transition-delay: .18s; }
.archive-grid > *:nth-child(5) { transition-delay: .24s; }
.archive-grid > *:nth-child(6) { transition-delay: .30s; }

/* ====================================================
   RESPONSIVE: archive grids
   ==================================================== */
@media (max-width: 1024px) {
    .archive-layout--sidebar { grid-template-columns: 1fr; }
    .archive-sidebar { display: none; }
    .blog-archive-grid { grid-template-columns: repeat(2, 1fr); }
    .action-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .blog-archive-grid:not(.cards-mobile-carousel),
    .action-archive-grid:not(.cards-mobile-carousel) { grid-template-columns: 1fr; }
    .jobs-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   ACTION DETAIL PAGE
   ═══════════════════════════════════════════════════════════════ */

/* Two-column grid */
.action-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}
.action-detail-sidebar {
    position: sticky;
    top: calc(var(--header-height, 80px) + 1.5rem);
}
@media (max-width: 900px) {
    .action-detail-grid {
        grid-template-columns: 1fr;
    }
    .action-detail-sidebar {
        position: static;
        margin-top: 2.5rem;
    }
}

/* Section headings */
.action-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ── Impacts carousel ───────────────────────────── */
.impacts-carousel-wrap {
    overflow: hidden;
}
.impacts-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.impact-card {
    flex: 0 0 calc(50% - .5rem);
    margin: 0 .25rem;
    padding: 1.75rem 1.25rem;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    text-align: center;
    box-sizing: border-box;
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
}
.impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,46,109,.11);
}
.impact-card__icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(215,25,32,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.impact-card__icon i {
    color: var(--color-red);
    font-size: 1.55rem;
}
.impact-card__title {
    color: var(--color-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .45rem;
    line-height: 1.3;
}
.impact-card__text {
    color: #6B7280;
    font-size: .87rem;
    line-height: 1.65;
    margin: 0;
}
@media (max-width: 600px) {
    .impact-card {
        flex: 0 0 calc(90% - .5rem);
    }
}

/* Carousel controls */
.impacts-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.25rem;
}
.impact-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #E5E7EB;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-primary);
    opacity: 0;
    transition: opacity .25s, background .25s, border-color .25s, color .25s;
}
.impact-nav-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
/* Flèches visibles au hover du conteneur parent */
.action-impacts-section:hover .impact-nav-btn,
.action-impacts-section:focus-within .impact-nav-btn { opacity: 1; }
.impacts-dots {
    display: flex;
    gap: .4rem;
    align-items: center;
}
.impact-dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: #D1D5DB;
    cursor: pointer;
    transition: all .3s;
}
.impact-dot.active {
    background: var(--color-primary);
    width: 22px;
}

/* ── FAQ accordion ──────────────────────────────── */
.action-faq-list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.action-faq-item {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.action-faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 600;
    color: #111827;
    text-align: left;
    transition: background .2s;
}
.action-faq-btn:hover { background: #F9FAFB; }
.action-faq-btn[aria-expanded="true"] { color: var(--color-primary); }
.faq-chevron {
    flex-shrink: 0;
    color: var(--color-red);
    font-size: 1.25rem;
    transition: transform .3s;
}
.action-faq-btn[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.action-faq-body {
    padding: 0 1.25rem 1rem;
    color: #4B5563;
    font-size: .92rem;
    line-height: 1.75;
    animation: faqSlideDown .25s ease forwards;
}
@keyframes faqSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.action-faq-body__inner { padding-top: .25rem; }

/* ── Sidebar CTA cards ──────────────────────────── */
.action-cta-card {
    position: relative;
    min-height: 270px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.action-cta-card__overlay {
    position: absolute;
    inset: 0;
}
.action-cta-card__body {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
    text-align: center;
}
.action-cta-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #fff;
}
.action-cta-card__title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .55rem;
}
.action-cta-card__text {
    color: rgba(255,255,255,.85);
    font-size: .83rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.action-cta-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    color: #fff;
    border-radius: 100px;
    padding: .85rem 1.5rem;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
}
.action-cta-card__btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG DETAIL PAGE
   ═══════════════════════════════════════════════════════════════ */

/* Two-column grid */
.blog-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
.blog-detail-sidebar {
    position: sticky;
    top: calc(var(--header-height, 80px) + 1.5rem);
}
@media (max-width: 900px) {
    .blog-detail-grid { grid-template-columns: 1fr; }
    .blog-detail-sidebar { position: static; margin-top: 2.5rem; }
}

/* Post meta bar */
.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    font-size: .88rem;
    color: #6B7280;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}
.post-meta-bar i { color: var(--color-red); margin-right: .2rem; }
.post-meta-bar__cat {
    display: inline-block;
    padding: .25rem .85rem;
    background: var(--color-red);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    transition: background .2s;
}
.post-meta-bar__cat:hover { background: var(--color-primary); }

/* Cover image */
.blog-cover-img {
    margin: 0 0 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* Article body */
.blog-entry-content {
    margin-bottom: 2.5rem;
    font-size: 1.02rem;
    line-height: 1.85;
    color: #374151;
}
.blog-entry-content h2,
.blog-entry-content h3,
.blog-entry-content h4 { color: var(--color-primary); font-weight: 700; margin: 2rem 0 .75rem; line-height: 1.3; }
.blog-entry-content h2 { font-size: 1.45rem; }
.blog-entry-content h3 { font-size: 1.2rem; }
.blog-entry-content h4 { font-size: 1.05rem; }
.blog-entry-content p  { margin-bottom: 1.25rem; }
.blog-entry-content a  { color: var(--color-red); text-decoration: underline; }
.blog-entry-content a:hover { color: var(--color-primary); }
.blog-entry-content ul,
.blog-entry-content ol { padding-left: 1.75rem; margin-bottom: 1.25rem; }
.blog-entry-content li { margin-bottom: .45rem; }
.blog-entry-content blockquote {
    border-left: 4px solid var(--color-red);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #FEF2F2;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: #4B5563;
}
.blog-entry-content img { max-width: 100%; border-radius: var(--radius-md); }
.blog-entry-content pre { background: #F3F4F6; border-radius: var(--radius-sm); padding: 1rem 1.25rem; overflow-x: auto; font-size: .88rem; }
.blog-entry-content code { background: #F3F4F6; border-radius: var(--radius-sm); padding: .15em .4em; font-size: .88rem; }

/* Tags bar */
.post-tags-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}
.post-tags-bar__label { font-weight: 600; font-size: .85rem; color: #374151; }
.post-tag-pill {
    display: inline-block;
    padding: .3rem .9rem;
    background: #F3F4F6;
    border: 1px solid transparent;
    border-radius: 9999px;
    font-size: .8rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all .2s;
}
.post-tag-pill:hover { background: var(--color-red); border-color: transparent; color: #fff; }

/* Share bar */
.post-share-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.5rem;
    background: #F9FAFB;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
}
.post-share-bar__label { font-weight: 600; font-size: .88rem; color: #374151; }
.post-share-bar__links { display: flex; gap: .55rem; }
.post-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
}
.post-share-btn:hover { transform: translateY(-3px); opacity: .88; }
.post-share-btn--fb { background: #1877F2; }
.post-share-btn--li { background: #0A66C2; }
.post-share-btn--x  { background: #111; }
.post-share-btn--wa { background: #25D366; }

/* Comments wrap */
.blog-comments-wrap { margin-bottom: 2.5rem; padding-top: .5rem; }
.comments-section { margin-bottom: 2.5rem; }
.comments-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--color-border);
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.fafeca-comment { margin-bottom: 1.25rem; }
.comment-body {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}
.comment-author-row {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}
.comment-avatar__img { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.comment-author-meta { flex: 1; min-width: 0; }
.comment-author-name { display: block; font-size: .92rem; font-weight: 700; color: var(--color-primary); margin-bottom: .2rem; }
.comment-date { font-size: .78rem; color: #9CA3AF; display: flex; align-items: center; gap: .3rem; }
.comment-reply a { font-size: .8rem; font-weight: 600; color: var(--color-red); text-decoration: none; }
.comment-reply a:hover { color: var(--color-primary); }
.comment-content { font-size: .92rem; color: #4B5563; line-height: 1.7; }
.comment-content p { margin: 0; }
.comment-awaiting-moderation { font-size: .82rem; color: #9CA3AF; font-style: italic; margin-bottom: .5rem; }
.children { list-style: none; margin: .75rem 0 0 2.5rem; padding: 0; }

/* Comment form */
.fafeca-comment-form { margin-top: 2rem; }
.comment-reply-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.comment-form-field { margin-bottom: 1rem; }
.comment-form-field label { display: block; font-size: .88rem; font-weight: 600; color: #374151; margin-bottom: .4rem; }
.comment-form-field input,
.comment-form-field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-size: .92rem;
    color: #111;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.comment-form-field input:focus,
.comment-form-field textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,46,109,.08);
}
.comment-form-field textarea { resize: vertical; min-height: 130px; line-height: 1.65; }
.required { color: var(--color-red); }
.form-allowed-tags { display: none; }
.comment-form-cookies-consent label { font-size: .82rem; color: #6B7280; }

/* Prev / Next nav */
.post-nav-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: .5rem;
}
.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all .25s;
}
.post-nav-item:hover { border-color: var(--color-primary); box-shadow: 0 6px 20px rgba(0,46,109,.1); transform: translateY(-2px); }
.post-nav-item--next { text-align: right; }
.post-nav-item__dir { font-size: .75rem; color: #6B7280; font-weight: 600; display: flex; align-items: center; gap: .3rem; }
.post-nav-item--next .post-nav-item__dir { justify-content: flex-end; }
.post-nav-item__thumb { width: 100%; height: 80px; object-fit: cover; border-radius: calc(var(--radius-lg) - 4px); }
.post-nav-item__title { font-weight: 700; font-size: .87rem; color: var(--color-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .post-nav-block { grid-template-columns: 1fr; } }

/* ── Blog Sidebar ─────────────────────────────────────────────── */
.blog-sidebar-widget {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.blog-sidebar-widget:last-child { margin-bottom: 0; }
.blog-sidebar-widget__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    font-weight: 700;
    color: var(--color-primary);
    background: #fff;
    padding: .9rem 1.25rem;
    margin: 0;
    border-bottom: 2px solid var(--color-border);
}
.blog-sidebar-widget__title i { color: var(--color-red); }

/* Categories */
.blog-sidebar-cat-list { list-style: none; margin: 0; padding: .4rem 0; }
.blog-sidebar-cat-list__item { border-bottom: 1px solid #F3F4F6; }
.blog-sidebar-cat-list__item:last-child { border-bottom: none; }
.blog-sidebar-cat-list__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 1.25rem;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    color: #4B5563;
    transition: all .2s;
}
.blog-sidebar-cat-list__link:hover,
.blog-sidebar-cat-list__link.active { color: var(--color-red); background: #FEF2F2; }
.blog-sidebar-cat-list__count { background: #F3F4F6; color: #6B7280; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 9999px; transition: all .2s; }
.blog-sidebar-cat-list__link.active .blog-sidebar-cat-list__count { background: var(--color-red); color: #fff; }

/* Recent posts */
.blog-sidebar-recent { padding: .4rem 0; }
.blog-sidebar-recent__item {
    display: flex;
    gap: .75rem;
    padding: .7rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid #F3F4F6;
    transition: background .2s;
    align-items: center;
}
.blog-sidebar-recent__item:last-child { border-bottom: none; }
.blog-sidebar-recent__item:hover { background: #F9FAFB; }
.blog-sidebar-recent__thumb { width: 60px; height: 52px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.blog-sidebar-recent__thumb--placeholder { display: flex; align-items: center; justify-content: center; background: #F3F4F6; color: #D1D5DB; font-size: 1.3rem; }
.blog-sidebar-recent__body { min-width: 0; }
.blog-sidebar-recent__title { font-size: .84rem; font-weight: 600; color: #111827; line-height: 1.4; margin: 0 0 .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.blog-sidebar-recent__item:hover .blog-sidebar-recent__title { color: var(--color-red); }
.blog-sidebar-recent__date { font-size: .75rem; color: #9CA3AF; display: flex; align-items: center; gap: .3rem; }

/* Tag cloud */
.blog-sidebar-tagcloud { display: flex; flex-wrap: wrap; gap: .4rem; padding: 1rem 1.25rem; }
.blog-sidebar-tag {
    display: inline-block;
    padding: .28rem .8rem;
    background: #F3F4F6;
    border: 1px solid transparent;
    border-radius: 9999px;
    font-size: .78rem;
    font-weight: 500;
    color: #4B5563;
    text-decoration: none;
    transition: all .2s;
}
.blog-sidebar-tag:hover,
.blog-sidebar-tag.active { background: var(--color-primary); border-color: transparent; color: #fff; }

/* ====================================================
   GLOBAL IMAGE HOVER — soft light effect
   Applies to all content images except section backgrounds
   and partner logos (those stay in full colour always).
   ==================================================== */
.post-card img,
.event-card img,
.press-card__img,
.card-img,
.blog-sidebar-recent__thumb,
.post-nav-item__thumb,
.about-img-col img,
.team-member-img,
.doc-related-item__icon img,
.vals-img-col img,
.blog-cover-img img,
.ev-speakers__img,
.ev-speakers__photo,
.doc-thumb img,
figure img,
article img:not([class*="bg"]):not(.part-logo-box img) {
    transition: filter .35s ease, transform .35s ease;
}
.post-card:hover img,
.event-card:hover img,
.press-card__img-link:hover .press-card__img,
.card-img-link:hover .card-img,
.action-card-img-link:hover .card-img,
.blog-sidebar-recent__item:hover .blog-sidebar-recent__thumb,
.post-nav-item:hover .post-nav-item__thumb,
.team-member:hover .team-member-img,
.doc-related-item:hover .doc-related-item__icon img,
figure:hover img {
    filter: brightness(1.08) saturate(1.05);
}

/* ====================================================
   PARTNER LOGO CARDS — improved design
   ==================================================== */
.part-logo-box {
    background: #ffffff;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 1.5rem;
    min-height: 90px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.part-logo-box:hover {
    border-color: #002E6D;
    box-shadow: 0 6px 24px rgba(0,46,109,.12);
    transform: translateY(-2px);
}
.part-logo-box img {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* ══════════════════════════════════════════════════════════════
   FAFECA CAROUSEL (in-article image slider)
   ══════════════════════════════════════════════════════════════ */
.fafeca-carousel {
    position: relative; width: 100%; overflow: hidden;
    border-radius: 16px; margin: 2rem 0;
    background: #f3f4f6;
    /* prevent double margin with adjacent paragraphs */
    line-height: 0;
}
.fafeca-carousel__track {
    display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.fafeca-carousel__slide {
    min-width: 100%; position: relative; padding: 0; box-sizing: border-box;
}
.fafeca-carousel__slide img {
    width: 100%; height: 440px; object-fit: cover;
    display: block; border-radius: 0;
}
/* Override .entry-content img and .blog-entry-content img margins/radius (same specificity, later cascade) */
.fafeca-carousel .fafeca-carousel__slide img {
    margin: 0;
    border-radius: 0;
}
@media (max-width: 640px) {
    .fafeca-carousel__slide img { height: 260px; }
    .fafeca-carousel .fafeca-carousel__slide img { margin: 0; }
}
/* Arrows */
.fafeca-carousel__btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.85); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; font-size: 1.2rem; color: #002E6D;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    transition: background .15s, opacity .15s;
    opacity: 0; pointer-events: none;
}
.fafeca-carousel:hover .fafeca-carousel__btn { opacity: 1; pointer-events: auto; }
.fafeca-carousel__btn--prev { left: 12px; }
.fafeca-carousel__btn--next { right: 12px; }
.fafeca-carousel__btn:hover { background: #fff; }
/* Dots — cachés */
.fafeca-carousel__dots { display: none !important; }
/* Single image: no chrome needed */
.fafeca-carousel[data-single] .fafeca-carousel__btn { display: none; }

/* ====================================================
   RESPONSIVE ADDITIONS — patches mobile/tablette
   ==================================================== */

/* ── Action info bar : colonne sur mobile ── */
@media (max-width: 600px) {
    .action-info-bar {
        flex-direction: column;
        gap: .75rem;
        padding: 1.25rem;
    }
    .action-info-item {
        width: 100%;
        padding-bottom: .75rem;
        border-bottom: 1px solid var(--color-border);
    }
    .action-info-item:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
}

/* ── Offres emploi : bouton pleine largeur mobile ── */
@media (max-width: 640px) {
    .job-card__action {
        width: 100%;
    }
    .job-card__action .btn,
    .job-card__action .job-apply-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Barres de partage et pills : très petit écran ── */
@media (max-width: 480px) {
    .single-share {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }
    .post-share-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
        padding: 1rem;
    }
    /* Filter pills : scroll horizontal pour ne pas trop rétrécir */
    .archive-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .35rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .archive-filter-bar::-webkit-scrollbar { display: none; }
    /* Sidebar widgets compacts */
    .sidebar-widget {
        padding: 1.1rem;
    }
    /* Grille blog/actions : forcer 1 colonne même sans .cards-mobile-carousel */
    .blog-archive-grid,
    .action-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Tablet (768-1024px): grille 2 colonnes au lieu du carousel étroit ── */
@media (min-width: 768px) and (max-width: 1024px) {
    .blog-archive-grid.cards-mobile-carousel,
    .action-archive-grid.cards-mobile-carousel,
    .cards-grid.cards-mobile-carousel {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        overflow-x: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }
    .blog-archive-grid.cards-mobile-carousel > *,
    .action-archive-grid.cards-mobile-carousel > *,
    .cards-grid.cards-mobile-carousel > * {
        flex: none;
        max-width: none;
        min-width: 0;
        scroll-snap-align: none;
    }
}
