/**
 * PRO-LANDING.CSS
 * Styles des sections Stats sociales et KiloTrackR Pro
 * À inclure dans home-landing.php via $extraCss
 */

/* ========================================
   CAROUSEL SCREENSHOTS
   ======================================== */

.screenshots-section {
    padding: 72px 0 64px;
    background: var(--bg-primary, #fff);
}

.screenshots-header {
    text-align: center;
    margin-bottom: 40px;
}

.screenshots-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin: 0 0 10px;
}

/* Wrapper global */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

/* Zone de clip */
.carousel-track-container {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* Track — les slides s'empilent en absolute */
.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: 16px 16px 0 0;
}

/* Caption sous l'image */
.carousel-caption {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card, #fff);
    border-top: 1px solid var(--border-color, #e2e8f0);
    border-radius: 0 0 16px 16px;
}

.carousel-caption-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.carousel-caption div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.carousel-caption strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.carousel-caption span {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    line-height: 1.4;
}

/* Flèches */
.carousel-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-card, #fff);
    color: var(--text-secondary, #334155);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.carousel-arrow:hover {
    background: var(--primary, var(--primary));
    color: #fff;
    border-color: var(--primary, var(--primary));
    transform: scale(1.08);
}

/* Points */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-color, #e2e8f0);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}

.carousel-dot.active {
    background: var(--primary, var(--primary));
    width: 24px;
    border-radius: 4px;
}

/* ========================================
   RESPONSIVE CAROUSEL
   ======================================== */

@media (max-width: 768px) {
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .screenshots-header h2 {
        font-size: 22px;
    }

    .carousel-caption {
        padding: 10px 14px;
    }

    .carousel-caption strong {
        font-size: 13px;
    }

    .carousel-caption span {
        display: none;
    }
}

@media (max-width: 480px) {
    .carousel-arrow {
        display: none;
    }

    .carousel-wrapper {
        gap: 0;
    }
}

/* ========================================
   STATS SOCIALES
   ======================================== */

.social-proof-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
    padding: 48px 0;
}

.social-proof-label {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 32px;
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.social-proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.social-proof-item:last-child {
    border-right: none;
}

.social-proof-value {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}

.social-proof-unit {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    text-align: center;
}

/* ========================================
   SECTION PRO
   ======================================== */

.pro-section {
    background: var(--bg-secondary, #f8fafc);
    padding: 80px 0;
    border-top: 1px solid var(--border-color, #e2e8f0);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

/* Header Pro */
.pro-header {
    text-align: center;
    margin-bottom: 48px;
}

.pro-badge-label {
    display: inline-block;
    background: linear-gradient(90deg, rgba(var(--primary-rgb),0.12), rgba(139,92,246,0.12));
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    margin-bottom: 14px;
}

.pro-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin: 0 0 12px;
    line-height: 1.2;
}

.pro-badge-inline {
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Grille Pro : features + CTA box */
.pro-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Features Pro */
.pro-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.pro-feature-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.pro-feature-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pro-feature-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0 0 6px;
}

.pro-feature-text p {
    font-size: 14px;
    color: var(--text-muted, #64748b);
    margin: 0;
    line-height: 1.6;
}

/* CTA Box Pro */
.pro-cta-box {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.1);
    position: sticky;
    top: 80px;
}

.pro-cta-top {
    text-align: center;
    margin-bottom: 24px;
}

.pro-cta-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.pro-cta-top h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0 0 8px;
}

.pro-cta-top p {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin: 0;
    line-height: 1.5;
}

.pro-cta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-color, #e2e8f0);
    padding-top: 20px;
}

.pro-cta-list li {
    font-size: 14px;
    color: var(--text-secondary, #334155);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pro-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
}

.btn-pro-cta:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.45);
}

.pro-cta-note {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    text-align: center;
    margin: 12px 0 0;
}

/* ========================================
   BADGE PRO sur "Pour qui ?"
   ======================================== */

.audience-card-pro {
    position: relative;
    border-color: rgba(var(--accent-rgb), 0.3) !important;
    background: linear-gradient(135deg, rgba(var(--primary-rgb),0.04), rgba(139,92,246,0.04)) !important;
}

.audience-pro-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 999px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .pro-grid {
        grid-template-columns: 1fr;
    }

    .pro-cta-box {
        position: static;
    }

    .social-proof-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
    }

    .social-proof-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 20px 16px;
    }

    .social-proof-item:nth-child(3n) {
        border-right: none;
    }

    .social-proof-item:nth-child(3n+1),
    .social-proof-item:nth-child(3n+2) {
        border-right: 1px solid rgba(255,255,255,0.1);
    }
}

@media (max-width: 640px) {
    .social-proof-value {
        font-size: 32px;
    }

    .pro-header h2 {
        font-size: 28px;
    }

    .pro-section {
        padding: 56px 0;
    }

    .pro-cta-box {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .social-proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-proof-item:nth-child(3n+1),
    .social-proof-item:nth-child(3n+2) {
        border-right: none;
    }

    .social-proof-item:nth-child(odd) {
        border-right: 1px solid rgba(255,255,255,0.1);
    }

    .social-proof-value {
        font-size: 28px;
    }
}