/* ================================================================
   Featured Articles Slider — slider.css  v1.4
   TOUT EN VERT CLAIR — !important pour surcharger le thème WP
   ================================================================ */

.fas-wrapper {
    --fas-accent:      #4a7c59;
    --fas-green-light: #e8f5e9;
    --fas-green-mid:   #c8e6c9;
    --fas-green-dark:  #4a7c59;
    --fas-green-deep:  #3a6347;
    --fas-text:        #1a2e1f;
    --fas-muted:       #5a7a62;
    --fas-transition:  0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --fas-slide-height: 440px;
    --fas-thumb-height: 80px;

    font-family: 'Georgia', 'Times New Roman', serif !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 2.5rem !important;
    background: #e8f5e9 !important;
    background-color: #e8f5e9 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(74,124,89,0.18) !important;
    position: relative !important;
    box-sizing: border-box !important;
    border: 1px solid #c8e6c9 !important;
}

.fas-no-posts {
    text-align: center !important;
    padding: 2rem !important;
    color: #5a7a62 !important;
    font-style: italic !important;
    background: #e8f5e9 !important;
}

/* ================================================================
   GRILLE PRINCIPALE
   ================================================================ */
.fas-main {
    display: grid !important;
    grid-template-columns: 60% 40% !important;
    height: var(--fas-slide-height) !important;
    overflow: hidden !important;
    background: #e8f5e9 !important;
    background-color: #e8f5e9 !important;
}

/* ================================================================
   COLONNE IMAGE — fond vert clair, JAMAIS noir
   ================================================================ */
.fas-slides-wrap {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #c8e6c9 !important;
    background-color: #c8e6c9 !important;
}

.fas-slide {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
    opacity: 0 !important;
    transform: scale(1.04) !important;
    transition: opacity var(--fas-transition), transform var(--fas-transition) !important;
    pointer-events: none !important;
    background: #c8e6c9 !important;
    background-color: #c8e6c9 !important;
}
.fas-slide.fas-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
    z-index: 2 !important;
}
.fas-slide-img-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: #c8e6c9 !important;
    background-color: #c8e6c9 !important;
}
.fas-slide-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    transition: transform 8s ease !important;
    background: #c8e6c9 !important;
    background-color: #c8e6c9 !important;
}
.fas-slide.fas-active .fas-slide-img { transform: scale(1.04) !important; }

/* ================================================================
   PANNEAU INFO DROIT — vert très clair
   ================================================================ */
.fas-info-panel {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #f0faf2 !important;
    background-color: #f0faf2 !important;
    border-left: 2px solid #c8e6c9 !important;
}

.fas-info-item {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
    padding: clamp(16px, 3%, 32px) clamp(14px, 3%, 28px) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: opacity var(--fas-transition), transform var(--fas-transition) !important;
    pointer-events: none !important;
    overflow: hidden !important;
    background: #f0faf2 !important;
    background-color: #f0faf2 !important;
}
.fas-info-item.fas-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    z-index: 2 !important;
}

/* Badge */
.fas-wrapper .fas-badge {
    display: inline-block !important;
    background: #4a7c59 !important;
    background-color: #4a7c59 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 3px 9px !important;
    border-radius: 2px !important;
    text-decoration: none !important;
    width: fit-content !important;
    flex-shrink: 0 !important;
    margin-bottom: 10px !important;
    transition: background 0.2s !important;
}
.fas-wrapper .fas-badge:hover {
    background: #3a6347 !important;
    background-color: #3a6347 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Titre */
.fas-wrapper .fas-title {
    font-size: clamp(0.95rem, 1.6vw, 1.45rem) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: #1a2e1f !important;
    margin: 0 0 8px 0 !important;
    font-family: 'Georgia', serif !important;
    flex-shrink: 0 !important;
}
.fas-wrapper .fas-title a { color: #1a2e1f !important; text-decoration: none !important; }
.fas-wrapper .fas-title a:hover { color: #4a7c59 !important; text-decoration: none !important; }

/* Date */
.fas-wrapper .fas-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    flex-shrink: 0 !important;
    margin-bottom: 10px !important;
    background: transparent !important;
}
.fas-wrapper .fas-date {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #5a7a62 !important;
    font-size: 12px !important;
    background: transparent !important;
}

/* Extrait */
.fas-wrapper .fas-excerpt {
    font-size: clamp(0.78rem, 1.1vw, 0.9rem) !important;
    line-height: 1.7 !important;
    color: #3a5c42 !important;
    margin: 0 0 10px 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    background: transparent !important;
}

/* Actions */
.fas-wrapper .fas-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding-top: 10px !important;
    border-top: 1px solid #c8e6c9 !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
    background: transparent !important;
}

.fas-wrapper .fas-read-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #4a7c59 !important;
    background-color: #4a7c59 !important;
    color: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 8px 16px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background 0.2s, transform 0.15s !important;
    border: none !important;
}
.fas-wrapper .fas-read-more:hover {
    background: #3a6347 !important;
    background-color: #3a6347 !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateX(2px) !important;
}

/* Réseaux sociaux */
.fas-wrapper .fas-share-right {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    background: transparent !important;
}
.fas-wrapper .fas-social {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.2s, opacity 0.2s !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
    flex-shrink: 0 !important;
}
.fas-wrapper .fas-social:hover {
    transform: scale(1.15) !important;
    opacity: 0.9 !important;
    color: #fff !important;
    text-decoration: none !important;
}
.fas-wrapper .fas-social svg { width:15px !important; height:15px !important; pointer-events:none !important; }
.fas-wrapper .fas-fb { background: #1877f2 !important; background-color: #1877f2 !important; }
.fas-wrapper .fas-tw { background: #111 !important; background-color: #111 !important; }
.fas-wrapper .fas-wa { background: #25d366 !important; background-color: #25d366 !important; }
.fas-wrapper .fas-ln { background: #0a66c2 !important; background-color: #0a66c2 !important; }

/* ================================================================
   BANDE DE MINIATURES — VERT, plus de bleu/noir
   ================================================================ */
.fas-thumbs-wrap {
    background: #2d2d2d !important;
    background-color: #2d2d2d !important;
    height: var(--fas-thumb-height) !important;
    padding: 0 44px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    border-top: 2px solid #444 !important;
}

.fas-thumbs {
    display: flex !important;
    gap: 6px !important;
    overflow: hidden !important;
    scroll-behavior: smooth !important;
    flex: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    background: transparent !important;
}

.fas-thumb {
    flex: 0 0 auto !important;
    width: 90px !important;
    height: 58px !important;
    border: 2px solid rgba(255,255,255,0.35) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    background: #c8e6c9 !important;
    background-color: #c8e6c9 !important;
    padding: 0 !important;
    transition: border-color 0.25s, transform 0.2s !important;
    position: relative !important;
}
.fas-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    filter: brightness(0.75) !important;
    transition: filter 0.25s !important;
}
.fas-thumb.fas-active,
.fas-thumb:hover {
    border-color: #fff !important;
    transform: translateY(-3px) !important;
}
.fas-thumb.fas-active img,
.fas-thumb:hover img { filter: brightness(1) !important; }

.fas-thumb-overlay {
    position: absolute !important;
    inset: 0 !important;
    top:0 !important; right:0 !important; bottom:0 !important; left:0 !important;
    background: rgba(255,255,255,0.18) !important;
    opacity: 0 !important;
    transition: opacity 0.2s !important;
    pointer-events: none !important;
}
.fas-thumb.fas-active .fas-thumb-overlay { opacity: 1 !important; }

/* Flèches nav — vertes */
.fas-wrapper .fas-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    background: #444 !important;
    background-color: #444 !important;
    border: 2px solid rgba(255,255,255,0.4) !important;
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s, color 0.2s !important;
    padding: 0 !important;
}
.fas-wrapper .fas-nav:hover {
    background: #fff !important;
    background-color: #fff !important;
    color: #2d2d2d !important;
    border-color: #fff !important;
}
.fas-wrapper .fas-nav svg { width:14px !important; height:14px !important; }
.fas-wrapper .fas-nav-prev { left: 6px !important; }
.fas-wrapper .fas-nav-next { right: 6px !important; }

/* ================================================================
   BARRE DE PROGRESSION — verte
   ================================================================ */
.fas-progress-bar {
    height: 4px !important;
    background: #c8e6c9 !important;
    background-color: #c8e6c9 !important;
    overflow: hidden !important;
    position: relative !important;
    flex-shrink: 0 !important;
}
.fas-progress-fill {
    height: 100% !important;
    width: 0% !important;
    background: #4a7c59 !important;
    background-color: #4a7c59 !important;
    animation: fas-progress linear infinite !important;
}
@keyframes fas-progress { from{width:0%} to{width:100%} }
.fas-wrapper.fas-paused .fas-progress-fill { animation-play-state: paused !important; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (min-width:1200px) {
    .fas-wrapper { --fas-slide-height:500px; --fas-thumb-height:84px; }
}
@media (max-width:1024px) {
    .fas-wrapper { --fas-slide-height:400px; }
}
@media (max-width:900px) {
    .fas-wrapper { --fas-slide-height:340px; --fas-thumb-height:70px; }
    .fas-main { grid-template-columns:55% 45% !important; }
    .fas-thumb { width:72px !important; height:46px !important; }
    .fas-thumbs-wrap { padding:0 38px !important; }
}
@media (max-width:680px) {
    .fas-wrapper { --fas-slide-height:auto; --fas-thumb-height:64px; }
    .fas-main {
        grid-template-columns: 1fr !important;
        grid-template-rows: 220px auto !important;
        height: auto !important;
    }
    .fas-slides-wrap { height: 220px !important; }
    .fas-info-panel {
        position: relative !important;
        height: auto !important;
        background: #f0faf2 !important;
        background-color: #f0faf2 !important;
        border-left: none !important;
        border-top: 2px solid #c8e6c9 !important;
    }
    .fas-info-item {
        position: relative !important;
        display: none !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 16px 14px !important;
        overflow: visible !important;
        background: #f0faf2 !important;
        background-color: #f0faf2 !important;
    }
    .fas-info-item.fas-active {
        display: flex !important;
        pointer-events: auto !important;
    }
    .fas-excerpt {
        overflow: visible !important;
        flex: none !important;
    }
    .fas-thumbs { justify-content:flex-start !important; overflow-x:auto !important; gap:5px !important; }
    .fas-thumbs-wrap { padding:0 36px !important; }
    .fas-thumb { width:62px !important; height:40px !important; }
}
@media (max-width:480px) {
    .fas-slides-wrap { height:185px !important; }
    .fas-info-item   { padding:12px 10px !important; }
    .fas-wrapper .fas-title   { font-size:0.9rem !important; }
    .fas-wrapper .fas-excerpt { font-size:0.77rem !important; }
    .fas-thumb { width:50px !important; height:32px !important; }
    .fas-wrapper .fas-actions { flex-direction:column !important; align-items:flex-start !important; }
    .fas-wrapper .fas-social  { width:30px !important; height:30px !important; }
}

/* ================================================================
   PAGE ADMIN
   ================================================================ */
.fas-admin-wrap { max-width:1100px; }
.fas-admin-wrap h1 { display:flex; align-items:center; gap:8px; font-size:1.5rem; }
.fas-admin-grid { display:grid; grid-template-columns:1fr 320px; gap:24px; margin-top:20px; }
.fas-admin-main { background:#fff; border:1px solid #e2e4e7; border-radius:4px; padding:24px; }
.fas-admin-side .fas-shortcode-box { background:#fff; border:1px solid #e2e4e7; border-left:4px solid #4a7c59; border-radius:4px; padding:20px; }
.fas-shortcode-box h3   { margin-top:0; color:#2d4a3e; }
.fas-shortcode-box code { display:block; background:#f0f0f1; padding:8px 12px; border-radius:3px; margin:8px 0; font-size:13px; word-break:break-all; }
@media (max-width:900px) { .fas-admin-grid { grid-template-columns:1fr; } }
