/* ==========================================================
   PROMO-POPUP.CSS - Popup promotion sur la page d'accueil
   ========================================================== */

/* ---------------------------------------------------------
   Container du popup
   --------------------------------------------------------- */
.promo-popup-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    margin-right: -220px;
    padding-top: 355px;
}

/* ---------------------------------------------------------
   Lien cliquable (si popup cliquable)
   --------------------------------------------------------- */
.promo-popup-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.promo-popup-link:hover {
    text-decoration: none;
}

/* ---------------------------------------------------------
   Popup principal
   --------------------------------------------------------- */
.promo-popup {
    position: relative;
    /* Couleur de fond par défaut (marron) - peut être surchargée par style inline */
    background: linear-gradient(135deg, #8B5A2B 0%, #A67C52 100%);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-right: 0;
    /* État initial : invisible et décalé */
    opacity: 0;
    transform: translateX(50px) translateY(20px);
    /* Animation déclenchée automatiquement au chargement */
    animation: popupSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transition: all 0.3s ease;
}

/* ---------------------------------------------------------
   Popup cliquable (effet hover)
   --------------------------------------------------------- */
.promo-popup-clickable {
    cursor: pointer;
}

.promo-popup-clickable:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

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


/* ---------------------------------------------------------
   Contenu du popup
   --------------------------------------------------------- */
.promo-popup-content {
    color: white;
}

.promo-popup-image {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.promo-popup-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.promo-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.promo-popup-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.promo-popup-text p {
    margin-bottom: 0.75rem;
}

.promo-popup-text p:last-child {
    margin-bottom: 0;
}

.promo-popup-text a {
    color: #D4D7A5;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.promo-popup-text a:hover {
    color: white;
}

/* ---------------------------------------------------------
   État masqué
   --------------------------------------------------------- */
.promo-popup.hidden {
    display: none;
}

/* ---------------------------------------------------------
   Responsive - Mobile
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
    .promo-popup-container {
        margin-top: 2rem;
        width: 100%;
        margin-right: 0;
        align-items: center;
    }
    
    .promo-popup {
        max-width: 100%;
        margin: 0 auto;
    }
}

