/* =============================================
   DESIGN PRO - CARTES D'OFFRES
   ============================================= */

:root {
    --primary-color: #336699;
    --secondary-color: #c0392b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

/* =============================================
   CONTENEUR OFFERS GRID
   ============================================= */
.offers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .offers-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* =============================================
   CARTES D'OFFRES - STYLE PRO
   ============================================= */
.offer-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.offer-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(51, 102, 153, 0.15);
    transform: translateY(-6px);
}

/* =============================================
   IMAGE CONTAINER
   ============================================= */
.offer-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.offer-card:hover .offer-image-wrapper img {
    transform: scale(1.08);
}

.offer-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.offer-card:hover .offer-image-wrapper::before {
    opacity: 1;
}

.offer-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    padding: 2rem;
    font-size: 14px;
}

/* =============================================
   BADGES & LABELS
   ============================================= */
.offer-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-featured {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e74c3c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.badge-featured::before {
    content: '★';
}

.badge-urgent {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f97316 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.badge-urgent::before {
    content: '⚡';
}

/* =============================================
   CONTENU DE LA CARTE
   ============================================= */
.offer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

/* Header du contenu */
.offer-header {
    margin-bottom: 1rem;
}

.offer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.offer-date {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.offer-date::before {
    content: '📅';
}

.offer-deadline {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse 2s infinite;
}

.offer-deadline::before {
    content: '⏰';
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Titre */
.offer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.offer-title a {
    color: inherit;
    text-decoration: none;
}

.offer-title a:hover {
    color: var(--primary-color);
}

/* Description */
.offer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   BOUTON CTA
   ============================================= */
.offer-footer {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.offer-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.offer-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5aa0 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(51, 102, 153, 0.3);
}

.offer-btn-primary:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f5a 100%);
    box-shadow: 0 6px 20px rgba(51, 102, 153, 0.4);
    transform: translateY(-2px);
}

.offer-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.offer-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.offer-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.offer-btn:hover::after {
    transform: translateX(4px);
}

/* =============================================
   ÉTATS SPÉCIAUX
   ============================================= */
.offer-card.featured {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, white 0%, #fff5f5 100%);
}

.offer-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, #e74c3c 100%);
}

/* =============================================
   CONTENEUR VIDE
   ============================================= */
.offers-empty {
    grid-column: 1 / -1;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--light-bg);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.offers-empty h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.offers-empty p {
    font-size: 16px;
    color: var(--text-muted);
}

/* =============================================
   PAGINATION PRO
   ============================================= */
.offers-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    background: white;
}

.pagination li a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
}

.pagination li.active span {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5aa0 100%);
    color: white;
    border-color: var(--primary-color);
}

/* =============================================
   RESPONSIF
   ============================================= */
@media (max-width: 576px) {
    .offer-image-wrapper {
        height: 200px;
    }

    .offer-title {
        font-size: 16px;
    }

    .offer-content {
        padding: 1.25rem;
    }

    .offers-container {
        gap: 1rem;
    }

    .offer-footer {
        flex-direction: column;
    }

    .offer-btn {
        width: 100%;
    }
}

/* =============================================
   ANIMATIONS DE CHARGEMENT
   ============================================= */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.offer-card.loading {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}
