.articles-product-day {
    background: linear-gradient(to bottom right, #5c7fae, #152236);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 330px; /* Rétabli à 330px */
    min-height: 330px;
    max-height: 330px;
    width: 100%;
    box-sizing: border-box;
    padding: 0.2rem; /* Réduit de 0.3rem */
    animation: articleProductFadeIn 0.6s ease-out forwards;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.articles-product-day::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background-image: linear-gradient(45deg, #5b7fae, #5b7fae 10%, transparent 30%, transparent 70%, #5b7fae 90%, #5b7fae);
    background-size: 100% 100%;
    animation: product-day-line-flow 20s cubic-bezier(0.64, 0.04, 0.35, 1) infinite;
    z-index: 1;
    border-radius: inherit;
    mix-blend-mode: lighten;
    pointer-events: none;
    filter: blur(1.5px);
}

@keyframes product-day-line-flow {
    0%, 70%, 100%{
        background-position: 0% 0%;
        opacity: 0;
    }
     15%{
         background-position: 0% 100%;
         opacity: 0.5;
    }
    33.33%, 50%{
          background-position: 0% 100%;
         opacity: 0.1;

      }

}

.articles-product-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 0.5rem;
}

.articles-product-day:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(239, 68, 176, 0.2);
}

.articles-product-image-wrapper {
    position: relative;
    width: 100%;
    height: 160px; /* Réduit de 180px à 140px */
    min-height: 140px;
    max-height: 160px;
    overflow: hidden;
    border-radius: 8px 8px 20px 20px;
    margin-top: 0; /* Force l'image en haut */
    flex: 0 0 auto; /* Change to auto */
    border: 2px solid rgba(255,255,255,0.2);
}

.articles-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background:#fff;
}

.articles-product-image:hover {
    transform: scale(1.05);
}

.articles-product-info {
    position: relative; /* Ajouté */
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0.5rem; /* Ajusté les paddings */
    justify-content: flex-start; /* Évite la coupe horizontale */
}

.articles-product-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.articles-product-info h3 {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Force sur 2 lignes max */
    -webkit-box-orient: vertical;
    max-height: 2.4em; /* 2 lignes */
    margin: 0; /* Reset margin */
    color: #fff;
    text-overflow: ellipsis;
    margin-bottom: 1rem; /* Ajusté */
}

.articles-product-info p {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 3 lignes max */
    -webkit-box-orient: vertical;
    overflow: hidden; /* Clamp uniquement pour le texte */
    text-overflow: ellipsis;
    max-height: 4.2em; /* ~3 lignes */
    margin: 0; /* Reset margin */
    line-height: 1.4;
}

.articles-product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto; /* Force en bas */
    padding: 0.5rem 0;
    width: 100%; /* Assure la pleine largeur */
    flex-shrink: 0; /* Empêche la compression */
}

.articles-product-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 0.5rem 0;
}

.articles-btn-product {
    background-color: #5b7fae;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

.articles-btn-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(68, 172, 238, 0.3);
}

/* .articles-desire-meter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    gap: 0.5rem;
}

.articles-desire-icon {
    font-size: 1.2rem;
    color: #5b7fae;
}

.articles-score {
    color: white;
    font-weight: bold;
}
*/


.articles-desire-meter {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    }
    
    .articles-desire-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--secondary-color);
    border: 1px solid rgba(91, 127, 173, 0.22);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    }
    .articles-score {
    position: absolute;
    top: -10px;
    right: -5px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 12px;
    font-weight: bold;
    }


/* Nouvelle animation spécifique pour le product-day */
@keyframes articleProductFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .articles-product-day {
        flex-direction: column;
        height: auto;
        min-height: 400px;
        padding: 1rem;
    }

    .articles-product-image-wrapper {
        width: 100%;
        height: 180px; /* Hauteur fixe en mobile */
        margin-bottom: 1rem;

        margin-top: 0;
    }

    .articles-product-info {
        padding: 0;
    }
}



.articles-product-info {
    padding: 10px;
}
