/* Conteneur principal */
.utm-offer {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

/* Design de la carte */
.utm-offer__content {
    position: fixed;
    width: 320px; /* Largeur fixe pour une carte */
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0; /* Reset padding */
    pointer-events: auto;
    animation: slideIn 0.5s ease-out;
    overflow: hidden; /* Pour l'image en pleine largeur */
}

/* Image de l'offre */
.utm-offer__image {
    width: 100%;
    height: 180px; /* Hauteur fixe pour l'image */
    overflow: hidden;
}

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

/* Conteneur du texte */
.utm-offer__text-container {
    padding: 20px;
}

/* Texte de l'offre */
.utm-offer__text {
    font-size: 16px;
    line-height: 1.5;
    color: #374151;
    margin-bottom: 20px;
}

/* Bouton Call-to-Action */
.utm-offer__cta {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background: #2563EB; /* Bleu moderne */
    color: white;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.utm-offer__cta:hover {
    background: #1D4ED8;
}

/* Bouton de fermeture */
.utm-offer__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.2s;
    z-index: 2;
}

.utm-offer__close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Positionnement */
.utm-offer__content.bottom-right {
    bottom: 30px;
    right: 30px;
}

.utm-offer__content.bottom-left {
    bottom: 30px;
    left: 30px;
}

.utm-offer__content.top-right {
    top: 30px;
    right: 30px;
}

.utm-offer__content.top-left {
    top: 30px;
    left: 30px;
}

/* Animation d'entrée */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .utm-offer__content {
        width: calc(100% - 40px);
        margin: 0 20px;
    }
}