
/* --- VARIABLES ET RESET --- */
:root {
    --promo-gold: #ffcc00;
    --promo-red: #e63946;
    --promo-blue-dark: #1e3c72;
    --promo-blue-light: #2a5298;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
}

/* --- L'OVERLAY (FOND SOMBRE) --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(115, 111, 111, 0.046);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}

/* --- CONTENEUR PRINCIPAL (POPUP) --- */
.tab-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: none;
    padding: 20px;
    border-radius: 10px;
    animation: zoomIn 0.5s ease-out forwards;
    height: 430px;
    width: 300px;

}

@keyframes promoZoomIn {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* --- DESIGN DE LA CARTE BLEUE --- */
.promo-container {

    padding: 24px;
    border-radius: 20px;
    color: white;
    overflow: hidden;
    position: relative;
    width: 486px;
    background-color: var(--bg-color);
}

/* --- EN-TÊTE (TITRES ET USER) --- */
.promo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.mini-titre {
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--text-color);
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.titre-principal {
    font-size: 22px;
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color)
}

.reduction-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    color: var(--text-color);
}

.duree-timer {
  
    font-size: 12px;
    margin-left: 5px;
}

/* --- INFO UTILISATEUR --- */
.promo-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.profile-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
}

.username {
    font-size: 12px;
    font-weight: bold;
    background: var(--text-color);
    padding: 2px 8px;
    border-radius: 10px;
}

/* --- ANIMATION DÉFILANTE (MARQUEE) --- */
.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
}

.product-card {
    width: 85px;
    height: 85px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- VITESSE ET SENS DES DÉFILEMENTS --- */
.track-left {
    animation: scrollLeft 25s linear infinite;
}

.track-right {
    animation: scrollRight 25s linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 6px));
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(calc(-50% - 6px));
    }

    100% {
        transform: translateX(0);
    }
}

/* PAUSE AU SURVOL */
.marquee-track:hover {
    animation-play-state: paused;
}

.product-card:hover {
    transform: scale(1.1);
}

/* --- BOUTON D'ACTION --- */
.btn-visiter {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    color: var(--promo-blue-dark);
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    border: 1px solid var(--promo-blue-dark);
}

.btn-visiter:hover {
    background: white;
    transform: translateY(-2px);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 480px) {
    .tab-container {
        padding: 8px;

    }

    .promo-container {
        padding: 16px;
        width: 329px !important;
        height: 400px;

    }

    .titre-principal {
        font-size: 18px;
    }

    .product-card {
        width: 75px;
        height: 75px;
    }
}

.promo-card {
    width: 100%;
    text-align: center;
    padding: 20px;
    margin-bottom: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.promo-card:hover {
    transform: scale(1.03);
}

.promo-photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.promo-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
}

/* --- VITESSE MODIFIÉE --- */
.track-left {
    /* Passage de 25s à 12s pour doubler la vitesse */
    animation: scrollLeft 12s linear infinite;
}

.track-right {
    /* Passage de 25s à 12s */
    animation: scrollRight 5s linear infinite;
}


/* Transition d'apparition avec zoom */
@keyframes zoomIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

