/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.lhc-blog-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px; /* Plus de padding pour éviter le crop */
    overflow: visible; /* Changé de hidden à visible */
    position: relative;
}

/* Gradients sur les côtés */
.lhc-blog-container::before,
.lhc-blog-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lhc-blog-container::before {
    left: 0;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
}

.lhc-blog-container::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* ============================================
   RANGÉES AVEC DÉFILEMENT HORIZONTAL
   ============================================ */
.lhc-scroll-row {
    display: flex;
    width: 100%;
    gap: 20px;
    padding: 15px 0; /* Plus de padding vertical */
    overflow-x: auto;
    overflow-y: visible; /* Permet aux éléments de dépasser */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    will-change: scroll-position;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    scrollbar-width: none;
}

/* Masquer scrollbar */
.lhc-scroll-row::-webkit-scrollbar {
    display: none;
}

/* Animations de défilement automatique - PLUS RAPIDES */
.lhc-scroll-row {
    animation-duration: 35s; /* Réduit de 60s à 35s */
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-25%); }
    100% { transform: translateX(0); }
}

/* Appliquer animations */
.lhc-scroll-row:nth-child(odd) {
    animation-name: scrollLeft;
}

.lhc-scroll-row:nth-child(even) {
    animation-name: scrollRight;
}

/* Pause au hover */
.lhc-scroll-row:hover {
    animation-play-state: paused !important;
}

/* Curseurs pour drag */
@media (min-width: 1025px) {
    .lhc-scroll-row {
        cursor: grab;
    }
    
    .lhc-scroll-row.lhc-grabbing {
        cursor: grabbing !important;
    }
}

/* ============================================
   CARTES BLOG
   ============================================ */
.lhc-blog-card {
    flex: 0 0 300px;
    aspect-ratio: 3/4;
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Permet aux badges de dépasser */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    scroll-snap-align: center;
}

.lhc-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Carte cliquable */
.lhc-blog-card.lhc-clickable {
    cursor: pointer;
}

/* Container de l'image - pour contenir l'overflow */
.lhc-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
}

.lhc-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.lhc-blog-card:hover .lhc-image-container img {
    transform: scale(1.05);
}

/* ============================================
   OVERLAY AVEC EFFET LIQUID GLASS
   ============================================ */
.lhc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(231, 32, 35, 0.35);
    
    /* Support multi-navigateurs pour backdrop-filter */
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 8px 32px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.35s ease, background 0.35s ease;
    overflow: hidden;
    border-radius: 8px;
}

.lhc-blog-card:hover .lhc-overlay {
    opacity: 1;
    background: rgba(231, 32, 35, 0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 10px 38px rgba(0,0,0,0.28);
}

/* Bulles liquides animées */
.lhc-overlay::before,
.lhc-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    -webkit-filter: blur(20px);
    opacity: 0.5;
    transition: transform 0.6s ease, opacity 0.4s ease;
    pointer-events: none;
}

.lhc-overlay::before {
    width: 140px;
    height: 140px;
    background: radial-gradient(closest-side, rgba(255,255,255,0.9), rgba(255,255,255,0.1));
    top: -30px; 
    left: -30px;
    animation: lhcLiquidDrift 9s ease-in-out infinite;
}

.lhc-overlay::after {
    width: 220px;
    height: 220px;
    background: radial-gradient(closest-side, rgba(255,255,255,0.6), rgba(255,255,255,0.05));
    bottom: -50px; 
    right: -60px;
    animation: lhcLiquidDrift2 12s ease-in-out infinite;
}

.lhc-blog-card:hover .lhc-overlay::before,
.lhc-blog-card:hover .lhc-overlay::after {
    opacity: 0.7;
}

@keyframes lhcLiquidDrift {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(20px, 10px) scale(1.1); }
}

@keyframes lhcLiquidDrift2 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-30px, 15px) scale(0.95); }
}

/* ============================================
   CONTENU DE L'OVERLAY
   ============================================ */
.lhc-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 3;
    position: relative;
}

/* ============================================
   CATÉGORIE ET DATE - TOUJOURS VISIBLES
   ============================================ */

/* Catégorie principale avec sous-catégorie - POSITIONNÉE SUR LA CARTE */
.lhc-category {
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 4; /* Au-dessus de l'overlay */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 1; /* Toujours visible */
    transition: all 0.3s ease;
}

.lhc-blog-card:hover .lhc-category {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Sous-catégorie */
.lhc-subcategory {
    margin-left: 6px;
    padding-left: 8px;
    position: relative;
    font-size: 10px;
    opacity: 0.95;
}

.lhc-subcategory::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 0.9em;
    background: rgba(255, 255, 255, 0.7);
}

/* Date de publication - POSITIONNÉE SUR LA CARTE */
.lhc-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    z-index: 4; /* Au-dessus de l'overlay */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    opacity: 1; /* Toujours visible */
    transition: all 0.3s ease;
}

.lhc-blog-card:hover .lhc-date {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* ============================================
   CHEVRON MODERNE ET ANIMÉ
   ============================================ */
.lhc-chevron {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    z-index: 3;
    opacity: 1;
    transform: scale(1);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

/* Cercles concentriques du chevron */
.lhc-chevron::before,
.lhc-chevron::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.35s ease;
}

.lhc-chevron::before {
    width: 100%;
    height: 100%;
}

.lhc-chevron::after {
    width: 75%;
    height: 75%;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Icône flèche du chevron */
.lhc-chevron-icon {
    position: relative;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lhc-chevron-icon::before {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg);
    transition: all 0.3s ease;
}

/* Animation au hover du chevron */
.lhc-chevron:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.15);
}

.lhc-chevron:hover::before {
    width: 120%;
    height: 120%;
    border-color: rgba(255, 255, 255, 0.6);
}

.lhc-chevron:hover::after {
    width: 90%;
    height: 90%;
    border-color: rgba(255, 255, 255, 0.8);
}

.lhc-chevron:hover .lhc-chevron-icon::before {
    transform: rotate(-45deg) translate(3px, 3px);
    border-color: #fff;
}

/* ============================================
   BOUTON CHARGER PLUS
   ============================================ */
.lhc-load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px auto 40px;
    padding: 0 20px;
    width: 100%;
    text-align: center; /* Centrage du bouton */
}

.lhc-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #e72023 0%, #ff1f4b 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(231, 32, 35, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.lhc-load-more::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.lhc-load-more:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(231, 32, 35, 0.5);
    background: linear-gradient(135deg, #ff1f4b 0%, #e72023 100%);
}

.lhc-load-more:hover::before {
    width: 400px;
    height: 400px;
}

.lhc-load-more::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 22px;
    font-weight: 300;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lhc-load-more:hover::after {
    transform: rotate(180deg) scale(1.1);
}

.lhc-load-more.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.lhc-load-more.loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lhcButtonSpin 0.8s linear infinite;
}

@keyframes lhcButtonSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE - TABLETTES
   ============================================ */
@media (max-width: 1024px) {
    /* Désactiver animations sur tablette */
    .lhc-scroll-row {
        animation: none !important;
    }
    
    .lhc-blog-container {
        padding: 15px 20px;
        overflow: visible;
    }
    
    .lhc-scroll-row {
        gap: 15px;
        padding: 15px 0;
        cursor: default;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    .lhc-blog-card {
        flex: 0 0 70vw;
        max-width: 380px;
    }
    
    /* Chevron identique au desktop */
    .lhc-chevron {
        opacity: 1;
        transform: scale(1);
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 18px;
        background: transparent;
    }
    
    .lhc-chevron::before,
    .lhc-chevron::after {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .lhc-chevron::after {
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .lhc-chevron-icon {
        width: 22px;
        height: 22px;
    }
    
    .lhc-chevron-icon::before {
        width: 10px;
        height: 10px;
        border-width: 3px;
    }
}

/* ============================================
   RESPONSIVE - MOBILES
   ============================================ */
@media (max-width: 768px) {
    .lhc-blog-container {
        padding: 10px 15px;
        margin: 0;
        overflow: visible; /* Critique pour le scroll */
    }
    
    .lhc-scroll-row {
        gap: 12px;
        padding: 15px 0;
        overflow-x: auto !important; /* Force le scroll */
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory;
    }
    
    .lhc-blog-card {
        flex: 0 0 78vw;
        max-width: 340px;
        overflow: visible; /* Pour les badges */
    }
    
    .lhc-category {
        font-size: 10px;
        padding: 5px 10px;
        top: 12px;
        left: 12px;
    }
    
    .lhc-subcategory {
        font-size: 9px;
    }
    
    .lhc-date {
        font-size: 10px;
        padding: 4px 8px;
        top: 12px;
        right: 12px;
    }
    
    .lhc-title {
        font-size: 0.95rem;
    }
    
    /* Chevron IDENTIQUE au desktop */
    .lhc-chevron {
        width: 52px !important;
        height: 52px !important;
        bottom: 18px !important;
        right: 18px !important;
        opacity: 1 !important;
        transform: scale(1) !important;
        background: transparent !important;
    }
    
    .lhc-chevron::before,
    .lhc-chevron::after {
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    .lhc-chevron::after {
        border-color: rgba(255, 255, 255, 0.5) !important;
    }
    
    .lhc-chevron-icon {
        width: 22px !important;
        height: 22px !important;
    }
    
    .lhc-chevron-icon::before {
        width: 10px !important;
        height: 10px !important;
        border-width: 3px !important;
    }
    
    /* Bouton centré */
    .lhc-load-more-container {
        text-align: center;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .lhc-load-more {
        padding: 14px 28px;
        font-size: 13px;
    }
    
    /* Masquer gradients sur mobile */
    .lhc-blog-container::before,
    .lhc-blog-container::after {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - PETITS MOBILES
   ============================================ */
@media (max-width: 640px) {
    .lhc-blog-container {
        padding: 10px;
    }
    
    .lhc-blog-card {
        flex: 0 0 85vw;
        max-width: 300px;
    }
    
    .lhc-scroll-row {
        gap: 10px;
        padding: 12px 0;
    }
    
    .lhc-overlay {
        padding: 1.5rem;
    }
    
    .lhc-title {
        font-size: 0.85rem;
    }
    
    /* Chevron toujours identique */
    .lhc-chevron {
        width: 52px !important;
        height: 52px !important;
    }
}

/* ============================================
   SUPPORT SAFARI SPÉCIFIQUE
   ============================================ */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .lhc-overlay {
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        backdrop-filter: blur(14px) saturate(140%);
    }
    
    .lhc-category,
    .lhc-date {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* Fallback si backdrop-filter non supporté */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    .lhc-overlay {
        background: rgba(231, 32, 35, 0.85);
    }
    
    .lhc-category {
        background: rgba(255, 255, 255, 0.4);
    }
    
    .lhc-date {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* ============================================
   OPTIMISATIONS PERFORMANCES
   ============================================ */
.lhc-scroll-row,
.lhc-blog-card,
.lhc-overlay {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}