/**
 * Style Infini Digital - Instagram Pro
 * Version 2.1 - Responsive Columns
 */

.ps-instapro-section {
    margin: 60px 0;
    padding: 20px 0;
}

/* Header */
.ps-instapro-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 15px;
}

.ps-instapro-title-wrapper h2 {
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.5rem;
}

.ps-instapro-subtitle {
    color: #7a7a7a;
    font-size: 0.9rem;
    margin: 0;
}

.ps-instapro-btn-follow {
    background: linear-gradient(45deg, var(--ip-btn-grad-1), var(--ip-btn-grad-2));
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ps-instapro-btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

/* Carousel Container */
.ps-instapro-carousel-container {
    position: relative;
    padding: 0;
}

.ps-instapro-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ps-instapro-wrapper::-webkit-scrollbar {
    display: none;
}

/* Item Style */
.ps-instapro-item {
    flex: 0 0 auto;
    /* Width et Gap gérés par le TPL */
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ps-instapro-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.ps-instapro-img-box {
    position: relative;
    width: 100%;
    height: 100%;
}

.ps-instapro-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Overlay */
.ps-instapro-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    text-decoration: none;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.overlay-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.ps-instapro-item:hover .ps-instapro-overlay {
    opacity: 1;
}

.ps-instapro-item:hover img {
    transform: scale(1.05);
}

/* Navigation Buttons */
.ps-instapro-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #333;
    user-select: none;
}

.ps-instapro-nav:hover {
    background: #232323;
    color: white;
    border-color: #232323;
}

.ps-instapro-nav.prev { left: -20px; }
.ps-instapro-nav.next { right: -20px; }

/* Responsive Header */
@media (max-width: 768px) {
    .ps-instapro-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ps-instapro-nav {
        display: none;
    }
}