/* ===========================================
   Ad Carousel - Bandeau publicitaire décalé
   Asymétrique par rapport aux sections service
   =========================================== */

.ad-carousel-section {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.ad-carousel-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: inherit;
    transform: skewY(-1.5deg);
    z-index: 0;
}

.ad-carousel-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: inherit;
    transform: skewY(-1.5deg);
    z-index: 0;
}

/* Conteneur décalé à droite pour casser la symétrie */
.ad-carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.ad-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-left: 8%;
}

.ad-carousel-header h3 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.ad-carousel-header .ad-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Track du carrousel - décalé à droite */
.ad-carousel-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-left: 8%;
    padding-right: 2rem;
    padding-bottom: 0.5rem;
}

.ad-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Cartes pub - largeurs inégales pour l'asymétrie */
.ad-card {
    flex: 0 0 auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.ad-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Tailles variées pour casser la symétrie */
.ad-card--large {
    width: 380px;
    min-height: 200px;
}

.ad-card--medium {
    width: 300px;
    min-height: 180px;
}

.ad-card--small {
    width: 240px;
    min-height: 160px;
}

.ad-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.ad-card__overlay {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

/* Carte sans image - fond dégradé coloré */
.ad-card--gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ad-card--gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.ad-card--gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.ad-card--gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.ad-card--gradient-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.ad-card__content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ad-card__tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.ad-card__title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.ad-card__desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* Navigation du carrousel */
.ad-carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-right: 5%;
}

.ad-carousel-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.ad-carousel-nav button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .ad-carousel-header {
        padding-left: 1rem;
    }

    .ad-carousel-track {
        padding-left: 1rem;
        gap: 1rem;
    }

    .ad-card--large {
        width: 300px;
        min-height: 170px;
    }

    .ad-card--medium {
        width: 250px;
        min-height: 150px;
    }

    .ad-card--small {
        width: 200px;
        min-height: 140px;
    }

    .ad-carousel-nav {
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .ad-card--large,
    .ad-card--medium,
    .ad-card--small {
        width: 260px;
        min-height: 150px;
    }
}

/* ===========================================
   Variante Sidebar - Widget dans la colonne gauche
   Cartes empilées verticalement (~300px largeur)
   =========================================== */

/* Widget conteneur - même pattern que pod-widget / evt-widget */
.ad-sidebar-widget {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Header gradient - style cohérent avec podcasts/événements */
.ad-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(to right, #f59e0b 0%, #ffffff 100%);
    color: #fff;
}

.ad-sidebar-title {
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ad-sidebar-title i {
    font-size: 0.75rem;
    opacity: 0.85;
}

.ad-sidebar-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Track vertical - cartes empilées */
.ad-sidebar-track {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.6rem;
    max-height: 370px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.ad-sidebar-track::-webkit-scrollbar {
    width: 4px;
}

.ad-sidebar-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

/* Carte pub sidebar - pleine largeur, compacte */
.ad-sidebar-card {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 110px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Image de fond */
.ad-sidebar-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Overlay pour cartes avec image */
.ad-sidebar-card__overlay {
    position: relative;
    z-index: 1;
    padding: 0.75rem;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.15) 70%, transparent 100%);
}

/* Contenu pour cartes sans image (fond gradient) */
.ad-sidebar-card__content {
    position: relative;
    z-index: 1;
    padding: 0.75rem;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ad-sidebar-card__sponsor {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
    width: fit-content;
}

.ad-sidebar-card__title {
    display: block;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.ad-sidebar-card__desc {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.7rem;
    line-height: 1.35;
}

/* Navigation haut/bas */
.ad-sidebar-nav {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem 0.5rem;
}

.ad-sidebar-nav button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.7rem;
}

.ad-sidebar-nav button:hover {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}
