/**
 * LPO Offres du Moment - Frontend Styles
 * Cohérent avec le design du thème Motors / Le Parc Occasions
 */

/* ===================================================
   PAGE OFFRES DU MOMENT
   =================================================== */

.lpo-offres-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lpo-offres-count {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    color: #666;
}

.lpo-offres-count span {
    background: #f0f0f0;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
}

/* Grille de véhicules */
.lpo-offres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .lpo-offres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .lpo-offres-grid {
        grid-template-columns: 1fr;
    }
}

/* Carte véhicule */
.lpo-vehicle-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lpo-vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.lpo-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

/* Image */
.lpo-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

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

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

/* Badges */
.lpo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.lpo-badge-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #d63638;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Contenu */
.lpo-card-content {
    padding: 18px;
}

.lpo-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #232d39;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Spécifications style Motors */
.lpo-card-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0;
    margin-bottom: 14px;
}

.lpo-spec-item {
    text-align: center;
    padding: 10px 6px;
    position: relative;
}

.lpo-spec-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e0e0e0;
}

.lpo-spec-icon {
    color: #6c98e1;
    font-size: 22px;
    margin-bottom: 4px;
    line-height: 1;
}

.lpo-spec-icon i {
    font-size: 22px;
}

.lpo-spec-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    font-weight: 600;
}

.lpo-spec-value {
    font-size: 13px;
    color: #232d39;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ancien style (compatibilité) */
.lpo-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.lpo-spec {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Prix */
.lpo-card-pricing {
    border-top: 1px solid #eee;
    padding-top: 14px;
}

.lpo-price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.lpo-price-new {
    font-size: 22px;
    font-weight: 800;
    color: #232d39;
}

.lpo-price-savings {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
    margin-top: 4px;
    background: #e8f5e9;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
}

/* ===================================================
   CTA SECTION (Page d'accueil)
   =================================================== */

.lpo-cta-section {
    background: linear-gradient(135deg, #232d39 0%, #1a2332 100%);
    padding: 50px 30px;
    border-radius: 0;
    margin: 0;
    text-align: center;
}

.lpo-cta-header {
    margin-bottom: 35px;
}

.lpo-cta-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.lpo-cta-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.lpo-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 35px;
}

@media (max-width: 991px) {
    .lpo-cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .lpo-cta-grid {
        grid-template-columns: 1fr;
    }

    .lpo-cta-title {
        font-size: 24px;
    }
}

.lpo-cta-footer {
    margin-top: 10px;
}

/* Card compact (CTA) */
.lpo-card-compact {
    border-radius: 10px;
}

.lpo-card-compact .lpo-card-content {
    padding: 14px;
}

.lpo-card-compact .lpo-card-title {
    font-size: 14px;
}

.lpo-card-compact .lpo-price-new {
    font-size: 18px;
}

.lpo-card-compact .lpo-card-specs-grid {
    grid-template-columns: repeat(2, 1fr);
}

.lpo-card-compact .lpo-spec-icon {
    font-size: 16px;
}

.lpo-card-compact .lpo-spec-icon i {
    font-size: 16px;
}

.lpo-card-compact .lpo-spec-label {
    font-size: 9px;
}

.lpo-card-compact .lpo-spec-value {
    font-size: 11px;
}

/* Responsive specs grid */
@media (max-width: 575px) {
    .lpo-card-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lpo-spec-item:nth-child(2n)::after {
        display: none;
    }

    .lpo-spec-item:nth-child(n+3) {
        border-top: 1px solid #e0e0e0;
    }
}

/* ===================================================
   BOUTONS
   =================================================== */

.lpo-btn {
    display: inline-block;
    background: #e8a500;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.lpo-btn:hover {
    background: #d49500;
    transform: translateY(-2px);
    color: #fff !important;
}

.lpo-btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

/* ===================================================
   ÉTAT VIDE
   =================================================== */

.lpo-no-offres {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.lpo-no-offres-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.lpo-no-offres h3 {
    font-size: 22px;
    color: #333;
    margin: 0 0 10px;
}

.lpo-no-offres p {
    color: #666;
    margin: 0 0 25px;
}

/* ===================================================
   PAGINATION
   =================================================== */

.lpo-pagination {
    text-align: center;
    margin: 30px 0;
}

.lpo-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    text-decoration: none;
    color: #333;
    background: #f0f0f0;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.lpo-pagination .page-numbers.current,
.lpo-pagination .page-numbers:hover {
    background: #e8a500;
    color: #fff;
}

/* ===================================================
   BANNIÈRE SINGLE LISTING
   =================================================== */

.lpo-single-banner {
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 15px;
}

.lpo-single-banner-text {
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
}

.lpo-single-banner-price {
    font-size: 15px;
}

.lpo-single-banner-price s {
    opacity: 0.7;
}

.lpo-single-banner-price strong {
    font-size: 20px;
}

/* ===================================================
   BADGE SUR LES CARTES MOTORS
   =================================================== */

.lpo-motors-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.lpo-listing-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
