/* ═══════════════════════════════════════════════════════════════════
   O'Swiss — Responsive V2 — Mobile-first (320px → ultra-wide)
═══════════════════════════════════════════════════════════════════ */


/* ────────────────────────────────────────────────────────────
   TABLETTE : ≤ 1024px
──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

    /* Hero */
    .hs__inner {
        max-width: 100%;
        text-align: center;
        padding-block: 3rem;
    }
    .hs__left { align-items: center; }
    .hs__desc { margin-inline: auto; }
    .hs__features { align-items: flex-start; text-align: left; max-width: 420px; margin-inline: auto; }
    .hs__ctas { justify-content: center; }
    .hs__right { position: relative; width: 100%; height: 320px; bottom: auto; }
    .hs__img-overlay {
        background: linear-gradient(to bottom,
            var(--bg-primary, #050505) 0%,
            rgba(5,5,5,0.5) 30%,
            rgba(5,5,5,0.5) 70%,
            var(--bg-primary, #050505) 100%);
    }

    /* Trust band */
    .tb__pillars { grid-template-columns: repeat(2, 1fr); }

    /* Promos */
    .promos__grid { grid-template-columns: repeat(2, 1fr); }

    /* Delivery strip */
    .dstrip__inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .dstrip__mode:hover { transform: none; }

    /* Footer */
    .footer__grid { gap: var(--sp-5); }

    /* Nav — liens + CTA toujours visibles (auto-adaptation gérée dans premium.css) */
}


/* ────────────────────────────────────────────────────────────
   MOBILE LARGE : ≤ 768px
──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    :root { --nav-height: 60px; }

    /* Hero */
    .hs { min-height: 100svh; }
    .hs__title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hs__right { height: 260px; }
    .hs__badge { display: none; }
    .hs__ctas { flex-direction: column; align-items: center; }
    .hs__ctas .btn-v2 { width: 100%; max-width: 320px; justify-content: center; }

    /* Trust band */
    .tb__pillars { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .tb__pillar { padding: 1.75rem 1rem; }

    /* Spécialités */
    .sp-v2__card { flex: 0 0 min(260px, 75vw); }

    /* Promos */
    .promos__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .promo-card { min-height: 220px; }
    .promo-card--family,
    .promo-card--geante { min-height: 260px; }

    /* Footer — stack les 3 colonnes en 1 */
    .footer__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
    .back-to-top { bottom: 5.5rem; right: 1rem; }

    /* Mobile CTA bar */
    .mobile-cta { display: flex; }

    /* Pad content above mobile CTA */
    .cta-final-v2 { padding-bottom: 7rem; }
    .footer { padding-bottom: 5.5rem; }
    .trust-section { padding-bottom: 5rem; }

    /* Reviews */
    .reviews-v2__header { flex-direction: column; align-items: flex-start; }
}


/* ────────────────────────────────────────────────────────────
   MOBILE PETIT : ≤ 480px
──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {

    /* Hero */
    .hs__inner { padding-block: 2rem 3rem; gap: 2rem; }
    .hs__title { font-size: clamp(2rem, 11vw, 3rem); }
    .hs__features { gap: 0.65rem; }
    .hs__feature { gap: 0.75rem; }
    .hs__feature-icon { width: 36px; height: 36px; }
    .hs__feature strong { font-size: 0.82rem; }
    .hs__right { height: 220px; }

    /* Trust band */
    .tb { padding-block: 3.5rem; }
    .tb__pillars { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .tb__pillar { padding: 1.25rem 0.75rem; }
    .tb__pillar-icon { width: 44px; height: 44px; }

    /* Spécialités */
    .sp-v2 { padding-block: 4rem; }
    .sp-v2__card { flex: 0 0 min(220px, 80vw); height: clamp(300px, 50vh, 360px); }

    /* Promos */
    .promos { padding-block: 4rem; }
    .promos__grid { grid-template-columns: 1fr; }
    .promo-card { min-height: 200px; }
    .promo-card--family,
    .promo-card--geante { min-height: 240px; }

    /* Delivery strip */
    .dstrip { padding-block: 4rem; }
    .dstrip__mode { padding: 1rem 1.25rem; font-size: 1rem; }

    /* CTA final */
    .cta-final-v2 { padding-block: 4rem 7rem; }
    .cta-final-v2__actions { flex-direction: column; align-items: center; }
    .cta-final-v2__actions .btn-v2 { width: 100%; max-width: 320px; justify-content: center; }

    /* Footer */
    .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
    .footer__bottom-links { gap: 1rem; }
}


/* ────────────────────────────────────────────────────────────
   TRÈS PETIT : ≤ 360px
──────────────────────────────────────────────────────────── */
@media (max-width: 360px) {

    .hs__title { font-size: 2rem; }
    .hs__img-wrap { width: 200px; }
    .hs__live { font-size: 0.7rem; }

    .tb__pillars { grid-template-columns: repeat(2, 1fr); }

    .sp-v2__card { flex: 0 0 85vw; }

    .promos__grid { grid-template-columns: 1fr; }

    /* Trust section — 1 colonne, padding réduit */
    .trust-section { padding: 3rem 0; }
    .trust-card { padding: 1.5rem 1.25rem; }
    .trust-section__title { font-size: 1.5rem; }

    /* Footer — assurer le no-overflow */
    .footer__grid { gap: var(--sp-4); }
    .footer__bottom-links { flex-direction: column; gap: 0.65rem; }

    /* Mobile CTA bar — texte compact */
    .mobile-cta__text { font-size: 0.72rem; }
    .mobile-cta__sub  { font-size: 0.58rem; }
    .mobile-cta__btn  { padding: 0.6rem 0.35rem !important; }

    /* Delivery strip — mode */
    .dstrip__mode { padding: 0.9rem 1rem; font-size: 0.95rem; }

    /* (Nav : auto-adaptation gérée dans premium.css) */
}


/* ────────────────────────────────────────────────────────────
   MICRO : ≤ 320px  (Galaxy S5, iPhone 4)
──────────────────────────────────────────────────────────── */
@media (max-width: 320px) {

    /* Empêcher tout overflow horizontal */
    body { overflow-x: hidden; }

    .hs__title    { font-size: 1.75rem; }
    .hs__desc     { font-size: 0.9rem; }
    .hs__feature  { gap: 0.5rem; }

    .btn-v2 { font-size: 0.88rem; padding: 0.75rem 1.1rem; }

    .sp-v2__card { flex: 0 0 90vw; }

    .trust-card { padding: 1.25rem 1rem; }
    .trust-card__text { font-size: 0.82rem; }

    .mobile-cta__btn { padding: 0.55rem 0.25rem !important; gap: 0.4rem !important; }
    .mobile-cta__text { font-size: 0.68rem; }
    .mobile-cta__sub  { display: none; }
}

/* ────────────────────────────────────────────────────────────
   ULTRA-WIDE : ≥ 1440px
──────────────────────────────────────────────────────────── */
@media (min-width: 1440px) {
    :root { --max-width: 1400px; }

    .hs__title { font-size: 7rem; }
    .tb__pillars { gap: 2.5rem; }
    .promos__grid { gap: 1.75rem; }
    .sp-v2__card { flex: 0 0 360px; height: 440px; }
}


/* ────────────────────────────────────────────────────────────
   ACCESSIBILITÉ — Réduction de mouvement
──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hs__left { animation: none; }
    .hs__right { animation: none; }
    .hs__badge { animation: none; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
