/* Slider de bannières publicitaires */
.ax-adspaces-slider {
    position: relative;
    width: 100%;
}

.ax-adspaces-container {
    position: relative;
    width: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Bannière publicitaire - Design optimisé */
.ax-ad-space {
    display: block !important;
    width: 100%;
    min-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Lien de la bannière */
.ax-ad-banner {
    display: block;
    width: 100%;
    text-decoration: none;
}

/* Images responsive */
.ax-ad-banner img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    outline: none;
    transition: filter 0.3s ease;
}

/* Effet noir et blanc au survol */
.ax-ad-space:hover .ax-ad-banner img {
    filter: grayscale(100%);
}

/* Support du tag picture pour images mobile/desktop */
.ax-ad-banner picture {
    display: block;
    width: 100%;
}

/* Dimensions optimisées - Pas de crop automatique */
@media (max-width: 767px) {
    /* Mobile: format plus carré/vertical (600x400 recommandé) */
    .ax-ad-space {
        margin: 1rem 0;
    }
    
    .ax-ad-banner img {
        /* Pas de ratio forcé - l'image garde ses proportions naturelles */
        max-height: 300px; /* Limite la hauteur sur mobile */
        object-fit: contain; /* Affiche l'image complète sans crop */
    }
}

@media (min-width: 768px) {
    /* Desktop: format bannière horizontale (1200x300 recommandé) */
    .ax-ad-banner img {
        /* Pas de ratio forcé - l'image garde ses proportions naturelles */
        max-height: 300px; /* Limite la hauteur sur desktop */
        object-fit: contain; /* Affiche l'image complète sans crop */
    }
}

/* Points de navigation du slider */
.ax-adspaces-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 0 1rem;
}

.ax-adspaces-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ax-adspaces-dot:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.ax-adspaces-dot.active {
    background-color: #222222;
    transform: scale(1.2);
}

/* Responsive pour les points */
@media (max-width: 767px) {
    .ax-adspaces-dots {
        margin-top: 0.75rem;
        gap: 6px;
    }
    
    .ax-adspaces-dot {
        width: 10px;
        height: 10px;
    }
}
