/* ============================================
   RESPONSIVE AUDIT FIXES — Avril 2026
   Corrections complètes : mobile, tablette, article-nav,
   prix blocks, hero-trio, footer email, FABs
   ============================================ */

/* ── 1. ARTICLE READER — margin-top trop grand sur mobile ─────────────── */
@media (max-width: 768px) {
    .article-reader {
        margin-top: 100px !important;
        padding: 0 16px !important;
    }

    /* Titres des articles */
    .lux-title-lg {
        font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
        line-height: 1.3 !important;
    }

    /* Image hero d'article */
    .article-reader img[style*="height:400px"],
    .article-reader img[style*="height: 400px"] {
        height: 220px !important;
        border-radius: 8px !important;
    }

    /* Corps de l'article */
    .article-body h2 {
        font-size: clamp(1.2rem, 4vw, 1.8rem) !important;
    }
}

/* ── 2. NAVIGATION ARTICLE (art-nav) — mobile ─────────────────────────── */
@media (max-width: 600px) {
    .art-nav {
        grid-template-columns: 1fr !important;
        padding: 0 16px 40px !important;
        gap: 12px !important;
    }
    .art-nav-card.next {
        flex-direction: row !important;
        text-align: left !important;
    }
    .art-nav-card.next .art-nav-dir {
        justify-content: flex-start !important;
    }
    .art-nav-thumb {
        width: 56px !important;
        height: 56px !important;
    }
}

/* ── 3. PRIX BLOCKS (epilations/onglerie/soins) — tablette ───────────── */
@media (max-width: 860px) {
    .price-block {
        flex-direction: column !important;
        gap: 0 !important;
        margin-bottom: 30px !important;
    }
    /* Annuler l'alternance sur tablette/mobile */
    .price-block:nth-child(even) {
        flex-direction: column !important;
    }
    .price-block:nth-child(even) .price-img,
    .price-block:nth-child(even) .price-content-wrapper {
        order: 0 !important;
    }
    .price-img {
        min-height: 200px !important;
        max-height: 240px !important;
    }
    .price-img img {
        height: 220px !important;
        border-radius: 0 !important;
    }
    .price-content-wrapper {
        padding: 24px 20px !important;
    }
    .price-list {
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* ── 4. HERO TRIO (blog) — tablette ─────────────────────────────────── */
@media (max-width: 860px) {
    .hero-trio {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        min-height: auto !important;
        gap: 6px !important;
        padding: 0 16px !important;
    }
    .hero-card:first-child {
        grid-row: auto !important;
        border-radius: 16px !important;
    }
    .hero-card:nth-child(2),
    .hero-card:nth-child(3),
    .hero-card:nth-child(4) {
        border-radius: 16px !important;
    }
    .hero-card-img,
    .hero-card:first-child .hero-card-img {
        min-height: 220px !important;
        height: 220px !important;
    }
    .hero-card-title {
        font-size: clamp(1rem, 3.5vw, 1.3rem) !important;
    }
}

/* ── 5. BLOG FILTER BAR — mobile ────────────────────────────────────── */
@media (max-width: 600px) {
    .blog-filter-inner {
        gap: 6px !important;
        padding: 0 12px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start !important;
    }
    .blog-filter-inner::-webkit-scrollbar { display: none; }
    .filter-btn {
        font-size: 0.7rem !important;
        padding: 7px 10px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .filter-label { display: none !important; }
}

/* ── 6. BLOG ARTICLE GRID — tablette ────────────────────────────────── */
@media (max-width: 860px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 0 16px !important;
    }
}
@media (max-width: 500px) {
    .article-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── 7. FOOTER EMAIL — word-break pour éviter débordement ───────────── */
.footer-col a,
.footer-col p,
.protected-email {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* ── 8. FOOTER CONTENT — responsive ─────────────────────────────────── */
@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 28px !important;
    }
    .footer-col h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .social-links-footer {
        justify-content: center !important;
    }
}

/* ── 9. FABs — ne pas couvrir le menu mobile ouvert ─────────────────── */
.fab-whatsapp,
.fab-booking {
    z-index: 900 !important; /* sous le menu mobile (z-index: 1000+) */
}
@media (max-width: 768px) {
    .fab-whatsapp {
        bottom: 90px !important; /* au-dessus du chatbot toggler */
        right: 16px !important;
    }
    .chatbot-toggler {
        bottom: 20px !important;
        right: 16px !important;
    }
    .fab-booking {
        bottom: 160px !important;
        right: 16px !important;
    }
}

/* ── 10. BON CADEAU — formulaire responsive ──────────────────────────── */
@media (max-width: 768px) {
    .gift-layout,
    .gift-grid {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
    }
    .gift-preview {
        order: -1 !important;
    }
}

/* ── 11. PAGE RÉSERVATION — sidebar responsive ───────────────────────── */
@media (max-width: 768px) {
    .booking-layout {
        grid-template-columns: 1fr !important;
        padding: 30px 16px !important;
    }
    .booking-info {
        position: static !important;
    }
}

/* ── 12. MENTIONS LÉGALES — responsive ──────────────────────────────── */
@media (max-width: 768px) {
    .legal-content {
        margin-top: 100px !important;
        padding: 16px !important;
    }
}

/* ── 13. NAVIGATION article-ongles (nav tronquée) — tablette ────────── */
@media (max-width: 900px) {
    .main-nav ul {
        gap: 10px !important;
    }
    .main-nav a {
        font-size: 0.75rem !important;
        padding: 4px 6px !important;
    }
}

/* ── 14. IMAGES ARTICLES — height fixe en px → responsive ───────────── */
@media (max-width: 768px) {
    img[style*="height:400px"],
    img[style*="height: 400px"],
    img[style*="height:300px"],
    img[style*="height: 300px"] {
        height: auto !important;
        max-height: 260px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
}

/* ── 15. FORMES DE PRIX — cat-section padding mobile ────────────────── */
@media (max-width: 600px) {
    .cat-section {
        padding: 40px 16px !important;
    }
    .cat-section-head {
        padding-bottom: 20px !important;
    }
    .cat-section-title {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
    }
}

/* ── 16. TAPSIZE — toutes les zones cliquables min 44px ─────────────── */
@media (max-width: 768px) {
    .filter-btn,
    .btn-primary,
    .btn-secondary,
    .art-nav-card,
    .wa-alt,
    .phone-alt,
    .btn-setup,
    .nav-book-link,
    .nav-gift-link {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}

/* ── 17. BLOG HERO — hauteur adaptative sur mobile ──────────────────── */
@media (max-width: 600px) {
    .blog-hero {
        height: auto !important;
        padding: 40px 16px 32px !important;
    }
    .blog-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        margin-bottom: 10px !important;
    }
    .blog-hero-stats {
        gap: 20px !important;
        margin-top: 16px !important;
    }
    .blog-stat-num {
        font-size: 1.5rem !important;
    }
    .blog-hero-tag {
        font-size: 0.6rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 16px !important;
    }
}

/* ── 18. PRICE ROW — lisibilité mobile (tarifs qui se touchent) ─────── */
@media (max-width: 600px) {
    .price-row {
        flex-wrap: wrap !important;
        gap: 4px 0 !important;
        padding: 10px 0 !important;
    }
    .service-name {
        flex: 1 1 70% !important;
        font-size: 0.88rem !important;
    }
    .service-price {
        flex: 0 0 auto !important;
        font-size: 0.9rem !important;
        text-align: right !important;
    }
}

/* ── 19. ANIMATED HEADER (soins/epilation/onglerie) — mobile ─────────── */
@media (max-width: 600px) {
    .animated-header {
        height: 260px !important;
    }
    .header-content h2 {
        font-size: clamp(1.4rem, 6vw, 2rem) !important;
    }
    .header-content p {
        font-size: 0.85rem !important;
    }
}

/* ── 20. PRICE CATEGORY TITLE — taille raisonnable mobile ───────────── */
@media (max-width: 600px) {
    .price-category {
        font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
    }
}
