/**
 * ========================================
 * DEALS.CSS - Système de Deals Jumpo
 * ========================================
 *
 * CSS complet pour le système de deals
 * - Partie Jumpro (gestion deals)
 * - Partie Jumpo (affichage public)
 * - Responsive
 * - Animations
 *
 * NOTE: Classes utility (flex, margin, txt-*, w*, etc.)
 * sont déjà dans library/css/stylecommun.css
 */

/* ========================================
   VARIABLES GLOBALES
   ======================================== */
:root {
    --deal-primary: #667eea;
    --deal-primary-dark: #5568d3;
    --deal-secondary: #764ba2;
    --deal-success: #48bb78;
    --deal-warning: #ed8936;
    --deal-danger: #f56565;
    --deal-info: #4299e1;

    --deal-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --deal-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --deal-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);

    --deal-radius: 12px;
    --deal-radius-small: 8px;

    --deal-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   JUMPRO - LISTE DES DEALS
   ======================================== */

/* Header avec quota */
.dealsHeader {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: var(--deal-radius);
    color: white;
}

.quotaInfo {
    background: white;
    padding: 20px;
    border-radius: var(--deal-radius);
}

.quotaInfo h3 {
    margin-bottom: 15px;
    color: #2d3748;
    font-size: 1.2rem;
}

.quotaBar {
    flex: 1;
    margin-right: 15px;
}

.progress {
    background: #e2e8f0;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-bar.is-success {
    background: var(--deal-success);
}

.progress-bar.is-warning {
    background: var(--deal-warning);
}

.progress-bar.is-danger {
    background: var(--deal-danger);
}

.quotaNumbers {
    white-space: nowrap;
}

.quota-restant {
    font-size: 1.5rem;
    color: var(--deal-primary);
}

/* Explication */
.dealsExplication {
    background: #edf2f7;
    border-left: 4px solid var(--deal-info);
    padding: 15px;
}

/* Grille deals Jumpro */
.dealsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Card deal Jumpro */
.dealCard {
    background: white;
    border-radius: var(--deal-radius);
    overflow: hidden;
    transition: var(--deal-transition);
    box-shadow: var(--deal-shadow);
}

.dealCard:hover {
    transform: translateY(-5px);
    box-shadow: var(--deal-shadow-hover);
}

.dealCard.statut-brouillon {
    border-left: 4px solid #cbd5e0;
}

.dealCard.statut-publié {
    border-left: 4px solid var(--deal-success);
}

.dealCard.statut-expiré {
    border-left: 4px solid var(--deal-warning);
    opacity: 0.7;
}

.dealCard.statut-archivé {
    border-left: 4px solid #a0aec0;
    opacity: 0.5;
}

.dealCardHeader {
    padding: 10px 15px;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dealStatut {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-brouillon {
    background: #cbd5e0;
    color: #2d3748;
}

.badge-publié {
    background: var(--deal-success);
    color: white;
}

.badge-expiré {
    background: var(--deal-warning);
    color: white;
}

.badge-archivé {
    background: #a0aec0;
    color: white;
}

.dealTheme {
    font-size: 0.9rem;
    color: #718096;
}

.dealCardImage {
    height: 200px;
    overflow: hidden;
}

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

.dealCard:hover .dealCardImage img {
    transform: scale(1.05);
}

.dealCardBody {
    padding: 15px;
}

.dealCardBody h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2d3748;
}

.dealPrices {
    margin: 10px 0;
}

.prixInitial {
    text-decoration: line-through;
    color: #a0aec0;
    margin-right: 10px;
}

.prixDeal {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--deal-primary);
    margin-right: 10px;
}

.badgeReduction {
    background: var(--deal-danger);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
}

.dealPeriode {
    font-size: 0.9rem;
    color: #718096;
    margin: 5px 0;
}

.dealStats {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #718096;
}

.dealCardActions {
    padding: 10px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

/* Empty state */
.emptyState {
    padding: 60px 20px;
}

.emptyState h3 {
    margin: 20px 0 10px;
    color: #2d3748;
}

.emptyState p {
    color: #718096;
    margin-bottom: 20px;
}

/* ========================================
   JUMPRO - FORMULAIRE DEAL (MODAL)
   ======================================== */

.dealFormModal .modal-card {
    max-width: 700px;
}

.productInfo {
    background: #edf2f7;
    padding: 15px;
    border-left: 4px solid var(--deal-info);
}

.productInfo h4 {
    margin-bottom: 10px;
    color: #2d3748;
}

#dealForm .field {
    margin-bottom: 20px;
}

#dealForm .label {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 5px;
}

#dealForm .help {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 5px;
}

#dealForm input[readonly] {
    background: #f7fafc;
    cursor: not-allowed;
}

#reductionDisplay {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--deal-danger);
}

/* ========================================
   JUMPRO - STATISTIQUES DEAL
   ======================================== */

.dealStatsContainer {
    padding: 20px;
}

.dealStatsHeader {
    padding: 20px;
}

.dealStatsImage img {
    border: 2px solid #e2e8f0;
}

.dealStatsInfo h2 {
    margin-bottom: 10px;
}

.dealStatsKPIs .kpi-box {
    padding: 30px 20px;
    transition: var(--deal-transition);
}

.dealStatsKPIs .kpi-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--deal-shadow-hover);
}

.kpi-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.kpi-vues .kpi-icon {
    color: var(--deal-info);
}

.kpi-clics .kpi-icon {
    color: var(--deal-primary);
}

.kpi-favoris .kpi-icon {
    color: var(--deal-danger);
}

.kpi-taux .kpi-icon {
    color: var(--deal-success);
}

.kpi-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 5px;
}

.kpi-label {
    font-size: 0.9rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   JUMPRO - GESTION THÈMES
   ======================================== */

.themesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.themeCard {
    border-radius: var(--deal-radius);
    overflow: hidden;
    transition: var(--deal-transition);
    box-shadow: var(--deal-shadow);
}

.themeCard:hover {
    transform: translateY(-5px);
    box-shadow: var(--deal-shadow-hover);
}

.themeCard.theme-inactif {
    opacity: 0.5;
}

.themeCard.theme-featured {
    border: 2px solid var(--deal-warning);
}

.themePreview {
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.themePreview i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.themePreview h3 {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
}

.themeCardBody {
    padding: 15px;
    background: white;
}

.themeCardActions {
    padding: 10px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

/* ========================================
   JUMPRO - GESTION QUOTAS
   ======================================== */

.quotasTable table {
    margin: 0;
}

.quotasTable th {
    background: #f7fafc;
    color: #2d3748;
    font-weight: 600;
}

.quotasTable td {
    vertical-align: middle;
}

.quotaSearch {
    padding: 15px;
}

/* ========================================
   JUMPO PUBLIC - PAGE DEALS
   ======================================== */

.page-deals {
    min-height: 100vh;
    padding: 20px 0;
}

.deals-page-header {
    padding: 40px 20px;
}

.deals-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--deal-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.deals-subtitle {
    font-size: 1.2rem;
    color: #718096;
}

/* ========================================
   JUMPO - TABS TYPE DE THÈME
   ======================================== */

.theme-type-tabs {
    position: relative;
}

.tabs-container {
    display: inline-flex;
    gap: 1rem;
    background: #f5f5f5;
    padding: 0.5rem;
    border-radius: var(--deal-radius);
}

.theme-tab {
    padding: 0.75rem 1.5rem;
    border-radius: var(--deal-radius);
    background: transparent;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: var(--deal-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--deal-primary);
}

.theme-tab.tab-active {
    background: var(--deal-gradient);
    color: #ffffff;
    box-shadow: var(--deal-shadow);
}

.theme-tab i {
    font-size: 1.1rem;
}

/* ========================================
   JUMPO - SECTION THÈMES (CARDS)
   ======================================== */

.themes-section {
    padding: 20px 0;
}

.section-subtitle {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 20px;
}

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

.theme-card {
    position: relative;
    height: 180px;
    border-radius: var(--deal-radius);
    overflow: hidden;
    transition: var(--deal-transition);
    box-shadow: var(--deal-shadow);
    cursor: pointer;
    text-decoration: none;
}

.theme-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--deal-shadow-hover);
}

.theme-card.theme-active {
    border: 3px solid var(--deal-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.theme-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.theme-card-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.theme-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

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

.theme-title {
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 5px;
}

.theme-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.theme-all .theme-card-inner {
    background: var(--deal-gradient);
}

/* ========================================
   JUMPO - FILTRES
   ======================================== */

.deals-filters {
    background: white;
    padding: 15px;
    border-radius: var(--deal-radius);
}

.filters-left {
    flex-wrap: wrap;
    gap: 10px;
}

#searchDeals {
    min-width: 250px;
}

/* ========================================
   JUMPO - GRILLE DEALS PUBLIQUE
   ======================================== */

.section-title {
    font-size: 1.8rem;
    color: #2d3748;
    font-weight: bold;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Card deal publique */
.deal-card {
    position: relative;
    background: white;
    border-radius: var(--deal-radius);
    overflow: hidden;
    transition: var(--deal-transition);
    box-shadow: var(--deal-shadow);
    cursor: pointer;
}

.deal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--deal-shadow-hover);
}

.deal-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.badge-reduction {
    background: var(--deal-danger);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(245, 101, 101, 0.4);
}

.deal-badge-stock {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.badge-stock {
    background: var(--deal-warning);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: shake 1s infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-3px);
    }
    75% {
        transform: translateX(3px);
    }
}

.deal-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.deal-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.deal-card:hover .deal-image img {
    transform: scale(1.1);
}

.deal-body {
    padding: 15px;
}

.deal-theme-tag {
    display: inline-block;
    background: var(--deal-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.deal-title {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: bold;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-society,
.deal-location {
    font-size: 0.9rem;
    color: #718096;
    margin: 5px 0;
}

.deal-society i,
.deal-location i {
    margin-right: 5px;
    color: var(--deal-primary);
}

.deal-prices {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.deal-prices .prix-initial {
    text-decoration: line-through;
    color: #a0aec0;
    margin-right: 10px;
    font-size: 1rem;
}

.deal-prices .prix-deal {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--deal-primary);
}

.deal-expiration {
    font-size: 0.85rem;
    color: #718096;
    margin: 10px 0;
}

.deal-expiration i {
    margin-right: 5px;
}

.deal-actions {
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.btn-favorite {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--deal-transition);
    font-size: 1.2rem;
    color: #a0aec0;
}

.btn-favorite:hover {
    border-color: var(--deal-danger);
    color: var(--deal-danger);
    transform: scale(1.1);
}

.btn-favorite.is-favorite {
    background: var(--deal-danger);
    color: white;
    border-color: var(--deal-danger);
}

.btn-favorite.is-favorite i {
    animation: heartBeat 0.5s;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
}

.deal-cta {
    flex: 1;
    margin-left: 10px;
}

/* ========================================
   JUMPO - MODAL DÉTAILS DEAL
   ======================================== */

.deal-modal-card {
    max-width: 900px;
}

.deal-modal-badge {
    background: var(--deal-danger);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
}

.deal-modal-gallery .main-image {
    width: 100%;
    border-radius: var(--deal-radius);
    margin-bottom: 10px;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--deal-radius-small);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--deal-transition);
}

.thumbnail:hover {
    border-color: var(--deal-primary);
}

.deal-theme-tag-large {
    display: inline-block;
    background: var(--deal-gradient);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.deal-society-info h4 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.deal-modal-prices {
    background: #f7fafc;
    padding: 15px;
    border-radius: var(--deal-radius-small);
}

.prix-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 1.1rem;
}

.prix-row .label {
    color: #718096;
}

.prix-initial-large {
    text-decoration: line-through;
    color: #a0aec0;
}

.prix-deal-large {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--deal-primary);
}

.economie {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--deal-success);
}

.deal-validity,
.deal-stock {
    padding: 10px;
    background: #f7fafc;
    border-radius: var(--deal-radius-small);
}

.deal-code {
    padding: 15px;
}

.code-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.code-promo {
    flex: 1;
    background: white;
    border: 2px dashed var(--deal-primary);
    padding: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--deal-primary);
    text-align: center;
    border-radius: var(--deal-radius-small);
    letter-spacing: 2px;
}

.deal-modal-actions-left,
.deal-modal-actions-right {
    display: flex;
    gap: 10px;
}

/* ========================================
   WIDGET DEALS SIDEBAR
   ======================================== */

.deals-widget {
    padding: 15px;
}

.widget-title {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: bold;
}

.deals-widget-list {
    margin-bottom: 15px;
}

.deal-widget-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.deal-widget-item:last-child {
    border-bottom: none;
}

.deal-widget-image {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 10px;
}

.deal-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--deal-radius-small);
}

.mini-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--deal-danger);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.deal-widget-info {
    flex: 1;
}

.deal-widget-title {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-widget-price {
    font-size: 0.9rem;
}

.deal-widget-price .old {
    text-decoration: line-through;
    color: #a0aec0;
    margin-right: 5px;
}

.deal-widget-price .new {
    font-weight: bold;
    color: var(--deal-primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .themes-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .dealsGrid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .deals-title {
        font-size: 2rem;
    }

    .themes-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .theme-card {
        height: 140px;
    }

    .theme-icon {
        font-size: 2rem;
    }

    .theme-title {
        font-size: 1rem;
    }

    .deals-grid,
    .dealsGrid {
        grid-template-columns: 1fr;
    }

    .deal-modal-card {
        max-width: 100%;
        margin: 20px;
    }

    .filters-left {
        flex-direction: column;
        width: 100%;
    }

    #searchDeals {
        width: 100%;
    }

    .deal-modal-actions-left,
    .deal-modal-actions-right {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .deals-page-header {
        padding: 20px 10px;
    }

    .deals-title {
        font-size: 1.5rem;
    }

    .deals-subtitle {
        font-size: 1rem;
    }

    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quotaInfo {
        padding: 15px;
    }

    .quotaBar {
        margin-right: 10px;
    }

    .quota-restant {
        font-size: 1.2rem;
    }

    .dealCardActions {
        flex-direction: column;
        gap: 5px;
    }

    .dealCardActions button {
        width: 100%;
    }
}

/* ========================================
   ANIMATIONS & LOADING STATES
   ======================================== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   NOUVEAUX FILTRES JUMPO (VILLE + TYPES SWITCH)
   ======================================== */

.deals-header {
    padding: 30px 20px;
}

.filter-ville {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.filter-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.filter-types {
    display: flex;
    justify-content: center;
}

.types-switch {
    display: inline-flex;
    gap: 10px;
    background: #f7fafc;
    padding: 8px;
    border-radius: var(--deal-radius);
    box-shadow: var(--deal-shadow);
}

.type-btn {
    padding: 12px 20px;
    border: none;
    background: white;
    color: #2d3748;
    border-radius: var(--deal-radius-small);
    font-weight: 600;
    cursor: pointer;
    transition: var(--deal-transition);
}

.type-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--deal-primary);
}

.type-btn.active {
    background: var(--deal-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* ========================================
   SLIDER DEALS FEATURED (2 par 2)
   ======================================== */

.deals-featured {
    padding: 20px 0;
}

.featured-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e2e8f0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--deal-primary);
    cursor: pointer;
    z-index: 10;
    transition: var(--deal-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: var(--deal-primary);
    color: white;
    box-shadow: var(--deal-shadow-hover);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.featured-slider {
    overflow: hidden;
    position: relative;
}

.featured-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.featured-slide.active {
    display: grid;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.featured-card {
    position: relative;
    height: 350px;
    border-radius: var(--deal-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: var(--deal-shadow);
    transition: var(--deal-transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--deal-shadow-hover);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--deal-danger);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.5);
}

.featured-content {
    color: white;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.featured-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-featured {
    display: inline-block;
    background: white;
    color: var(--deal-primary);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--deal-transition);
}

.btn-featured:hover {
    background: var(--deal-primary);
    color: white;
    transform: translateX(5px);
}

/* ========================================
   GRILLE TYPES VIE (6 cases verticales)
   ======================================== */

.themes-vie-section {
    padding: 20px 0;
}

.themes-vie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.theme-vie-card {
    position: relative;
    background: white;
    border-radius: var(--deal-radius);
    overflow: hidden;
    box-shadow: var(--deal-shadow);
    transition: var(--deal-transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.theme-vie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--deal-shadow-hover);
}

.theme-vie-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.theme-vie-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    padding: 20px 15px;
}

.theme-vie-title-overlay h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
}

.theme-vie-description {
    padding: 15px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-vie-description p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

/* ========================================
   RESPONSIVE NOUVEAUX ÉLÉMENTS
   ======================================== */

@media (max-width: 1024px) {
    .themes-vie-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-slide {
        grid-template-columns: 1fr;
    }

    .featured-card {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .types-switch {
        flex-direction: column;
        width: 100%;
    }

    .type-btn {
        width: 100%;
    }

    .themes-vie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-slider-container {
        padding: 0 40px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .featured-card {
        height: 280px;
    }

    .featured-title {
        font-size: 1.4rem;
    }

    .featured-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .filter-ville {
        flex-direction: column;
    }

    .themes-vie-grid {
        grid-template-columns: 1fr;
    }

    .featured-slider-container {
        padding: 0 30px;
    }

    .featured-card {
        height: 250px;
    }

    .featured-title {
        font-size: 1.2rem;
    }

    .featured-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .featured-badge {
        font-size: 1.1rem;
        padding: 8px 12px;
    }

    .theme-vie-image {
        height: 200px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .deals-filters,
    .deal-actions,
    .dealCardActions,
    .btn-favorite,
    .modal-card-foot,
    .slider-nav,
    .types-switch {
        display: none;
    }

    .deal-card,
    .dealCard {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .featured-slide {
        display: grid !important;
    }
}
