/* ==========================================
   STYLES DÉDIÉS AUX CARTES DES OFFRES
   ========================================== */

.offres-card-item {
    height: 100%;
    margin-bottom: 30px;
}

.offres-card-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.offres-card-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Zone Image */
.offres-card-media {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #f8fafc;
    overflow: hidden;
}

.offres-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.offres-card-box:hover .offres-card-img {
    transform: scale(1.05);
}

/* Overlay sombre au survol de l'image uniquement */
.offres-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 5;
}

.offres-card-box:hover .offres-image-overlay {
    opacity: 1;
    visibility: visible;
}

/* Bouton pilule blanc au centre (Live Preview Style) */
.offres-btn-preview {
    background: #ffffff;
    color: #0f172a !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.offres-btn-preview:hover {
    transform: scale(1.06);
    background: #073D30;
    color: #ffffff !important;
}

/* Corps de la carte (Titre et type de produit - Sans extrait) */
.offres-card-body {
    padding: 20px 20px 16px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.offres-card-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.35 !important;
}

.offres-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.offres-card-title a:hover {
    color: #073D30;
}

.offres-card-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Pied de carte avec séparation */
.offres-card-footer {
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.offres-card-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    max-width: 60%;
}

.offres-author-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.offres-author-link:hover {
    color: #073D30;
}

.offres-card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #073D30;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.offres-badge-nego {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
    text-transform: uppercase;
}
