/* === ARTICLES AVEC SYSTÈME FRAMER === */
.framer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.framer-article {
    position: relative;
}

.framer-post-card {
    height: 450px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.framer-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top,
            rgba(24, 24, 31, 0.95) 0%,
            rgba(24, 24, 31, 0.8) 60%,
            transparent 100%);
    border-radius: inherit;
    z-index: 5;
}

.framer-post-content .post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.framer-post-content .post-date {
    color: #72F1FE;
    font-weight: 500;
}

.framer-post-content .post-category {
    color: #B4B4B8;
    padding: 0.25rem 0.75rem;
    background: rgba(114, 241, 254, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
}

.framer-post-title {
    color: #F7F7FE;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.framer-post-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.framer-post-title a:hover {
    background: linear-gradient(135deg, #72F1FE, #E6E5EC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.framer-post-excerpt {
    color: #B4B4B8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.framer-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.framer-read-more {
    color: #72F1FE;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(114, 241, 254, 0.1);
    border: 1px solid rgba(114, 241, 254, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.framer-read-more:hover {
    background: rgba(114, 241, 254, 0.2);
    border-color: rgba(114, 241, 254, 0.4);
    transform: translateX(5px);
}

.framer-read-more svg {
    width: 14px;
    height: 14px;
    transition: all 0.3s ease;
}

.framer-read-more:hover svg {
    transform: translateX(3px);
}

.reading-time {
    color: #B4B4B8;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reading-time::before {
    content: '📖';
    font-size: 0.8rem;
}

/* Effets hover spéciaux pour les articles Framer */
.framer-post-card:hover .framer-post-content {
    background: linear-gradient(to top,
            rgba(24, 24, 31, 0.98) 0%,
            rgba(24, 24, 31, 0.9) 70%,
            rgba(114, 241, 254, 0.1) 100%);
}

/* Responsive pour les articles Framer */
@media (max-width: 768px) {
    .framer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .framer-post-card {
        height: 400px;
    }

    .framer-post-content {
        padding: 1.5rem;
    }

    .framer-post-title {
        font-size: 1.2rem;
    }

    .framer-post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* === LISTE HORIZONTALE DES ARTICLES (OVERRIDE) === */

/* Conteneur principal de la liste */
.posts-grid.framer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Carte article individuelle */
.posts-grid .framer-post-card {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 280px;
    overflow: hidden;
}

/* Wrapper de l'image (gauche) */
.posts-grid .framer-post-card .framer-background-image-wrapper {
    position: relative;
    width: 35%;
    flex-shrink: 0;
    height: auto;
    min-height: 100%;
}

/* Image elle-même */
.posts-grid .framer-post-card .framer-image {
    height: 100%;
    object-fit: cover;
}

/* Wrapper du contenu (droite) */
.posts-grid .framer-post-card .framer-content {
    position: relative;
    width: 65%;
    flex-grow: 1;
    top: auto;
    left: auto;
    transform: none;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Contenu interne */
.posts-grid .framer-post-card .framer-post-content {
    position: relative;
    background: none;
    padding: 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ajustements typographiques et espacements pour le mode horizontal */
.posts-grid .framer-post-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.posts-grid .framer-post-excerpt {
    -webkit-line-clamp: 4;
    line-clamp: 4;
    margin-bottom: 2rem;
}

/* Masquer l'overlay global car on sépare image et contenu */
.posts-grid .framer-post-card .framer-overlay {
    display: none;
}

/* Désactiver l'effet hover de background qui ne fait plus sens */
.posts-grid .framer-post-card:hover .framer-post-content {
    background: none;
}

/* Responsive: retour en colonne sur mobile */
@media (max-width: 768px) {
    .posts-grid .framer-post-card {
        flex-direction: column !important;
        height: auto;
    }

    .posts-grid .framer-post-card .framer-background-image-wrapper {
        width: 100%;
        height: 250px;
        position: relative;
    }

    .posts-grid .framer-post-card .framer-content {
        width: 100% !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        padding: 0 !important;
    }

    .posts-grid .framer-post-card .framer-post-content {
        padding: 1.5rem !important;
        position: relative !important;
    }

    /* Forcer la direction en colonne pour tous les articles, même les pairs */
    .posts-grid .framer-article:nth-of-type(even) .framer-post-card {
        flex-direction: column !important;
    }
}

/* Alternance gauche/droite pour les images */
.posts-grid .framer-article:nth-of-type(even) .framer-post-card {
    flex-direction: row-reverse;
}