/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--spacing-xxl) 0;
    background: transparent; /* base gradient/background handled by overlays */
    position: relative;
    background-color: transparent; /* allow backdrop */
    /* remove background-image override to allow global bg */
    overflow: auto; /* prevent top margin collapse */
}

/* Ensure headings inside about don't create collapsed margins that show the body bg */
.about .section-header { 
    margin-top: 0;
    padding-top: var(--spacing-md);
}
.about .section-title { 
    margin-top: 0;
}

/* Top transition overlay: increases opacity at the start of the about section */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px; /* transition height - can be adjusted */
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.8) 40%,
        rgba(255, 255, 255, 0.0) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Ensure content sits above the overlay */
.about .container {
    position: relative;
    z-index: 1;
}

/* Section-scoped background image behind content */
.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../graphique/screens/illustration-background-home.webp');
    background-repeat: no-repeat;
    background-position: center 20%;
    background-size: 110% auto; /* widen slightly to avoid edge gaps */
    opacity: 0.16;
    z-index: -1; /* sit behind the gradient overlay (::before has z-index:0) */
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.about .container {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    background: linear-gradient(135deg, rgba(178, 177, 217, 0.1), rgba(157, 208, 203, 0.1));
    padding: var(--spacing-xxl);
    border-radius: var(--radius-xl);
}

.showcase-content h3 {
    font-size: 1.8rem;
    color: var(--violet-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.showcase-content p {
    color: var(--gray-medium);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.showcase-features {
    list-style: none;
}

.showcase-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    color: var(--violet-dark);
}

.showcase-features img {
    width: var(--icon-md);
    height: var(--icon-md);
    flex-shrink: 0;
}

.showcase-screens {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.showcase-screens .screen-img {
    width: 150px;
    height: auto;
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.showcase-screens .screen-img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .app-showcase {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .showcase-screens {
        order: -1;
    }
    
    .showcase-screens .screen-img {
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .app-showcase {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .showcase-screens .screen-img {
        max-width: 100px;
    }
}
