/**
 * Page Télécharger l'App - UMOA Market
 * Design jovial, accueillant, boutons visibles dès l'arrivée
 */

.download-app-page {
    min-height: 60vh;
    padding-bottom: 3rem;
}

.download-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ========== HERO : tout visible sans défiler (titre + sous-titre + boutons) ========== */
.download-hero {
    position: relative;
    padding: 2rem 0 2.5rem;
    min-height: 0;
    overflow: hidden;
}

.download-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #9D4EDD 0%, #7B2CBF 35%, #6A1B9A 70%, #4A148C 100%);
    opacity: 1;
}

.download-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 80% at 50% -20%, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Formes décoratives légères pour un côté jovial */
.download-hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.download-hero-shapes::before,
.download-hero-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.download-hero-shapes::before {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
}

.download-hero-shapes::after {
    width: 180px;
    height: 180px;
    bottom: -40px;
    left: -40px;
}

.download-hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.download-badge-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.download-badge-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.download-title {
    font-size: clamp(1.6rem, 4.5vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.download-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.25rem;
    line-height: 1.45;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA et boutons stores DANS le hero, visibles tout de suite */
.download-cta-inline {
    margin-top: 0.5rem;
}

.download-cta-inline .download-cta-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.download-cta-inline .store-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.5rem;
}

.download-cta-inline .store-badge {
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.download-cta-inline .store-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.download-cta-inline .store-badge:focus {
    outline: 2px solid rgba(255,255,255,0.9);
    outline-offset: 3px;
}

.download-cta-inline .store-badge img {
    display: block;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    vertical-align: middle;
}

.download-cta-inline .store-badge-google img {
    max-height: 52px;
    object-fit: contain;
}

.download-cta-inline .store-badge-apple img {
    max-height: 44px;
    object-fit: contain;
}

.download-cta-inline .download-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* ========== SECTION AVANTAGES (en dessous) ========== */
.download-benefits {
    padding: 2.5rem 0 3rem;
    background: linear-gradient(180deg, #faf8fc 0%, #fff 100%);
}

.benefits-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #374151;
    text-align: center;
    margin: 0 0 1.5rem;
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(123, 44, 191, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.12);
}

.benefit-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9D4EDD 0%, #7B2CBF 100%);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.35);
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.benefit-text strong {
    font-size: 1.08rem;
    color: #1f2937;
}

.benefit-text span {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.45;
}

/* Responsive : garder boutons bien visibles sur mobile */
@media (max-width: 768px) {
    .download-hero {
        padding: 1.75rem 0 2rem;
    }

    .download-badge-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }

    .download-title {
        font-size: 1.5rem;
    }

    .download-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .download-cta-inline .store-badges {
        gap: 0.6rem 1rem;
    }

    .download-cta-inline .store-badge-google img {
        max-height: 48px;
    }

    .download-cta-inline .store-badge-apple img {
        max-height: 42px;
    }

    .benefit-item {
        padding: 1rem;
        gap: 0.875rem;
    }

    .benefit-icon {
        width: 44px;
        height: 44px;
    }

    .benefit-icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .download-hero {
        padding: 1.5rem 0 1.75rem;
    }

    .download-cta-inline .store-badges {
        flex-direction: row;
        justify-content: center;
    }

    .download-cta-inline .store-badge img {
        max-width: 140px;
    }
}
