.ad-container {
    display: none;
    text-decoration: none;
    width: 35%;
    max-width: 181%;
    height: 170px;
    /* Ta contrainte de hauteur */
    margin: 10px auto;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    position: fixed;
    z-index: 999;
    left: 818px;
    margin-top: 1px;
}
.ad-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1;
    /* Animation de zoom continu */
    animation: smoothZoom 12s infinite alternate ease-in-out;
}

/* Overlay pour garantir la lisibilité du titre en haut à gauche */
.ad-overlay {
    position: absolute;
    inset: 0;
   
    z-index: 2;
}

.ad-content {
    position: relative;
    z-index: 3;
    padding: 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Aligne le contenu en haut */
}

.ad-title {
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 70%;
}

/* Animation Keyframes */
@keyframes smoothZoom {
    from {
        transform: scale(5);
    }

    to {
        transform: scale(1.12);
    }
}
/* Effet au survol (uniquement si c'est un lien) */
.ad-container:hover .ad-bg {
    filter: brightness(1.1);
}


/* Affiche la carte uniquement sur les écrans larges (PC) */
@media (min-width: 768px) {
    .ad-container {
        display: block;
    }
}