/* ===================================
   MOBILE CONVERSION OPTIMIZATION
   L'Atelier de l'ongle by Marlène
   =================================== */

/* ── Hero text link CTA ── */
.btn-hero-text {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    border: none !important;
    padding: 0.5rem 0;
    transition: color 0.2s;
    letter-spacing: 0.3px;
}
.btn-hero-text:hover {
    color: var(--primary-dark);
    text-decoration: none !important;
}
.btn-hero-text:visited,
.btn-hero-text:active {
    color: var(--primary-color);
    text-decoration: none !important;
}

/* ── Sticky header on scroll ── */
.header.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    backdrop-filter: blur(10px);
}

/* ── WhatsApp floating button ── */
.floating-whatsapp {
    background: #25D366 !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45) !important;
}
.floating-whatsapp:hover {
    background: #20bd5a !important;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.55) !important;
}

/* ── Footer mobile CTA ── */
.footer-cta-mobile {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 1.5rem;
}
.footer-cta-mobile p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.btn-footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-footer-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* ===================================
   MOBILE-SPECIFIC OVERRIDES
   =================================== */
@media (max-width: 768px) {

    /* ── Reduce all section padding ── */
    section {
        padding: 2.5rem 0 !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* ── Smaller section titles ── */
    .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.5;
    }

    /* ── Hero: more compact ── */
    .hero-section {
        min-height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 2rem !important;
    }

    .logo-floating img {
        height: 150px !important;
        width: 150px !important;
    }

    .hero-badge {
        display: none;
    }

    .hero-title {
        font-size: clamp(1.4rem, 5.5vw, 1.8rem) !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5;
    }

    .hero-cta {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-bottom: 0 !important;
    }

    .btn-hero-primary {
        width: auto !important;
        max-width: 280px;
        text-align: center;
        padding: 0.9rem 2.5rem !important;
        font-size: 1rem !important;
        border-radius: 50px !important;
    }

    .btn-hero-text {
        font-size: 0.9rem;
        text-decoration: none !important;
    }

    /* Hide carousel indicators on mobile */
    .hero-carousel-indicators {
        display: none !important;
    }

    .btn-hero-secondary {
        display: none !important;
    }

    /* ── About section: stack and compact ── */
    .about-grid {
        gap: 1.5rem !important;
    }

    .about-image img {
        max-height: 250px;
        object-fit: contain;
    }

    .about-content h3 {
        font-size: 1.2rem !important;
    }

    .about-content p {
        font-size: 0.9rem !important;
        line-height: 1.6;
    }

    .about-quote {
        font-size: 0.95rem !important;
        padding: 1rem !important;
    }

    /* ── Formation cards: tighter ── */
    .formations-header {
        margin-bottom: 1.5rem !important;
    }

    .formations-title-single {
        font-size: 1.5rem !important;
    }

    .card-image-wrapper {
        height: 180px !important;
    }

    .formation-title {
        font-size: 1.15rem !important;
    }

    .formation-slogan {
        font-size: 0.85rem !important;
    }

    .price-amount {
        font-size: 1.7rem !important;
    }

    .card-benefits {
        padding: 1rem 1.25rem 0.5rem !important;
    }

    .card-benefits li {
        font-size: 0.85rem !important;
        padding: 0.2rem 0 !important;
    }

    .card-footer {
        padding: 0 1.25rem 1.25rem !important;
    }

    /* Single CTA per card */
    .card-actions {
        gap: 0.5rem !important;
    }

    .btn-secondary-outline {
        font-size: 0.85rem !important;
        padding: 0.75rem 1rem !important;
    }

    /* ── CTA section: more compact ── */
    .formations-cta {
        margin-top: 2rem !important;
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    .formations-cta .cta-content h3 {
        font-size: 1.1rem !important;
    }

    .formations-cta .cta-content p {
        font-size: 0.85rem !important;
    }

    /* ── Contact section: prominent ── */
    .poses-contact {
        margin-top: 2rem !important;
        border-radius: 16px !important;
    }

    .poses-contact-inner {
        padding: 1.75rem 1.25rem !important;
    }

    .poses-contact-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 1rem !important;
    }

    .poses-contact-icon svg {
        width: 32px;
        height: 32px;
    }

    .poses-contact h3 {
        font-size: 1.3rem !important;
    }

    .poses-contact-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1.25rem !important;
    }

    .btn-poses-contact {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    /* WhatsApp button bigger */
    .btn-poses-whatsapp {
        order: -1;
        font-size: 1rem !important;
        padding: 1rem 1.5rem !important;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }

    /* ── Prestations: tighter cards ── */
    .poses-prestige .section-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* ── Floating CTA position adjusted for cookie icon ── */
    .floating-cta {
        bottom: 20px !important;
        right: 20px !important;
    }

    /* ── Footer mobile ── */
    .footer {
        padding: 2rem 0 1rem !important;
    }

    .footer-content {
        gap: 1.5rem !important;
    }

    .footer-col h4 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .footer-col p,
    .footer-col li,
    .footer-col a {
        font-size: 0.85rem !important;
    }

    /* ── Remove hover transforms (useless on touch) ── */
    .formation-card:hover,
    .prestation-card-premium:hover,
    .avantage-card:hover,
    .why-item:hover {
        transform: none !important;
    }

    /* ── Skeleton loading: match new sizes ── */
    .skeleton-card .skeleton-image {
        height: 180px !important;
    }
}

/* ── Extra small (iPhone SE etc) ── */
@media (max-width: 380px) {
    .hero-section {
        padding-top: 80px !important;
    }

    .logo-floating img {
        height: 120px !important;
        width: 120px !important;
    }

    .hero-title {
        font-size: 1.25rem !important;
    }

    .trust-item-m {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    .btn-hero-primary {
        font-size: 0.95rem !important;
        padding: 0.875rem 1.5rem !important;
    }

    .section-title {
        font-size: 1.4rem !important;
    }
}

/* ── Desktop adjustments ── */
@media (min-width: 769px) {

    .footer-cta-mobile {
        display: none;
    }
}
