/**
 * CSS pour la section Promotions Longue Durée
 * @package LocationSurMesure
 * @since 1.0.0
 */

/* ==========================================
   SECTION PRINCIPALE - VERSION COMPACTE
   ========================================== */

.duration-promo-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.duration-promo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #0abde3);
}

/* ==========================================
   HEADER DE LA SECTION - COMPACT
   ========================================== */

.section-header-promo {
    text-align: center;
    margin-bottom: 35px;
}

.promo-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 12px rgba(255, 107, 107, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fire-icon {
    font-size: 14px;
    animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.section-title-promo {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 15px 0 8px;
    line-height: 1.2;
}

.subtitle-promo {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #e74c3c;
    margin-top: 5px;
}

.section-description-promo {
    font-size: 15px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==========================================
   GRILLE DE VÉHICULES - COMPACT
   ========================================== */

.promo-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ==========================================
   CARTE VÉHICULE - COMPACT
   ========================================== */

.promo-vehicle-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.promo-vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Badge Corner - Compact */
.promo-badge-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 3px 12px rgba(255, 107, 107, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-percent {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.badge-text {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
    opacity: 0.9;
}

/* Image - Compact */
.promo-vehicle-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.promo-vehicle-image .vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.promo-vehicle-card:hover .vehicle-img {
    transform: scale(1.1);
}

.vehicle-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 60px;
}

/* Contenu - Compact */
.promo-vehicle-content {
    padding: 18px;
}

.promo-vehicle-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vehicle-year {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: #3498db;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Specs - Compact */
.promo-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
}

.spec-icon {
    font-size: 14px;
}

/* Prix normal - Compact */
.promo-price-normal {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 5px;
}

.promo-price-normal strong {
    color: #856404;
}

/* Grille de prix promotionnels - Compact */
.promo-prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.promo-price-item {
    background: linear-gradient(135deg, #e8f8f5 0%, #d5f5e3 100%);
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.promo-price-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
}

.promo-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.duration-icon {
    font-size: 14px;
}

.promo-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.price-promo {
    font-size: 17px;
    font-weight: 700;
    color: #27ae60;
    line-height: 1;
}

.price-promo small {
    font-size: 11px;
    font-weight: 500;
}

.savings-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.promo-total {
    font-size: 12px;
    color: #6c757d;
}

.promo-total strong {
    color: #2c3e50;
}

/* Bouton CTA - Compact */
.btn-promo-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

.btn-promo-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-arrow {
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.btn-promo-details:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==========================================
   FOOTER DE LA SECTION - COMPACT
   ========================================== */

.promo-section-footer {
    text-align: center;
    padding: 25px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.promo-footer-text {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.promo-footer-text strong {
    color: #2c3e50;
}

.btn-contact-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #0abde3 0%, #48dbfb 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(10, 189, 227, 0.3);
}

.btn-contact-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 189, 227, 0.4);
    color: #fff;
}

.btn-icon {
    font-size: 16px;
}

/* ==========================================
   RESPONSIVE - VERSION COMPACTE
   ========================================== */

/* Tablettes */
@media (max-width: 1024px) {
    .section-title-promo {
        font-size: 28px;
    }
    
    .promo-vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .duration-promo-section {
        padding: 35px 0;
    }
    
    .section-header-promo {
        margin-bottom: 25px;
    }
    
    .section-title-promo {
        font-size: 24px;
    }
    
    .subtitle-promo {
        font-size: 14px;
    }
    
    .section-description-promo {
        font-size: 14px;
    }
    
    .promo-vehicles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .promo-vehicle-image {
        height: 160px;
    }
    
    .promo-vehicle-content {
        padding: 15px;
    }
    
    .promo-prices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .promo-price-item {
        padding: 8px;
    }
    
    .price-promo {
        font-size: 15px;
    }
    
    .btn-promo-details {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .promo-section-footer {
        padding: 20px 15px;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .duration-promo-section {
        padding: 30px 0;
    }
    
    .section-title-promo {
        font-size: 22px;
    }
    
    .promo-vehicle-title {
        font-size: 16px;
    }
    
    .promo-vehicle-image {
        height: 150px;
    }
    
    .promo-prices-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .promo-badge-corner {
        top: 8px;
        right: 8px;
        padding: 5px 10px;
    }
    
    .badge-percent {
        font-size: 16px;
    }
    
    .badge-text {
        font-size: 8px;
    }
}

