﻿.blog-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    transition: all 0.3s ease;
    margin-bottom: 75px;
    box-shadow: 0 4px 0 var(--orange),
                0 0 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}
 
.blog-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
 
/* Image de la carte */
.blog-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
 
/* Contenu de la carte */
.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
 
/* Meta (date, auteur, vues) â€” overlay au bas de l'image, dÃ©gradÃ© fondu noir derriÃ¨re */
.blog-card-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 40px 12px 12px;
    font-size: 0.75rem;
    color: var(--white);
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}
 
.blog-card-date,
.blog-card-views {
    display: flex;
    align-items: center;
    gap: 6px;
}
 
.blog-card-date svg,
.blog-card-views svg,
.blog-card-author svg {
    opacity: 0.85;
}
 
/* Wrapper du titre : hauteur fixe = 2 lignes, centre verticalement le titre court
   â†’ garantit que l'extrait commence toujours au mÃªme Y, peu importe que le titre fasse 1 ou 2 lignes */
.blog-card-title-wrap {
    height: calc(2.5rem * 0.85 * 2); /* font-size Ã— line-height Ã— 2 lignes */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px;
}

/* Titre de la carte â€” mÃªme typographie que .product-name */
.blog-card-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 0.85;
    margin: 0;
    color: var(--purple);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

/* Extrait */
.blog-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--purple);
}
 
/* Footer de la carte */
.blog-card-footer {
    display: flex;
    justify-content: center;
    padding-top: 12px;
    margin-top: auto;
    border-top: none;
}
 
.blog-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}
 
.blog-card-cta {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translate(-50%, 50%);

    width: auto;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    clip-path: inset(1px round 50px);

    background: #fff;
    color: var(--orange);
    border: 4px solid var(--orange);
    padding: 0 45px 4px 45px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-size: 2.75rem;
    line-height: 0.75;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 0 var(--orange),
                0 12px 24px rgba(0, 0, 0, 0.3);
}

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

.blog-card:hover .blog-card-cta {
    background: var(--orange);
    color: #fff;
    text-decoration: none;
}

.blog-card-cta-icon {
    position: absolute;
    left: -7px;
    top: calc(50% - 3px);
    transform: translateY(-50%);
    z-index: 10;
    fill: currentColor;
    pointer-events: none;
}