/* ================================================================
   MARKETIFY HOMEPAGE v2 — Dark Theme (Maquette 2026)
   ================================================================ */

.marketify-home {
    --mh-bg: #0B0E14;
    --mh-bg-card: #151922;
    --mh-bg-card-hover: #1a2030;
    --mh-border: rgba(255, 255, 255, 0.08);
    --mh-text: #ffffff;
    --mh-text-muted: #94a3b8;
    --mh-accent: var(--marketify-primary, #FF8000);
    --mh-accent-light: var(--marketify-primary-light, #ff944d);
    --mh-radius: 16px;
    --mh-radius-sm: 12px;
    --mh-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --mh-header-height: 6rem;

    background: var(--mh-bg);
    color: var(--mh-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .marketify-home {
        --mh-header-height: 6.5rem;
    }
}

.mh-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    width: 100%;
    box-sizing: border-box;
}

.mh-text-accent {
    color: var(--mh-accent);
}

/* ================================================================
   HERO
   ================================================================ */

.mh-hero {
    padding: calc(var(--mh-header-height) + 1rem) 0 1.25rem;
    position: relative;
    overflow: hidden;
    scroll-margin-top: var(--mh-header-height);
}

.mh-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .mh-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        min-height: 320px;
    }
}

.mh-hero__title {
    font-size: clamp(1.875rem, 3.6vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.875rem;
    color: var(--mh-text);
}

.mh-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--mh-text-muted);
    line-height: 1.7;
    margin: 0 0 1.25rem;
    max-width: 520px;
}

.mh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
}

.mh-btn:hover {
    transform: translateY(-2px);
}

.mh-btn--primary {
    background: var(--mh-accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 128, 0, 0.35);
}

.mh-btn--primary:hover {
    background: var(--mh-accent-light);
    box-shadow: 0 6px 28px rgba(255, 128, 0, 0.45);
}

.mh-btn--outline {
    background: transparent;
    color: var(--mh-text);
    border-color: rgba(255, 255, 255, 0.3);
}

.mh-btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.mh-btn--white {
    background: #fff;
    color: #1a1a2e;
}

.mh-btn--dark {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mh-btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.mh-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
}

.mh-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--mh-text-muted);
}

.mh-hero__trust-item i {
    color: var(--mh-accent);
    font-size: 1rem;
}

/* Hero Visual */
.mh-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.mh-hero__visual-ring {
    position: absolute;
    width: min(380px, 80vw);
    height: min(380px, 80vw);
    border-radius: 50%;
    border: 2px solid rgba(255, 128, 0, 0.15);
    background: radial-gradient(circle, rgba(255, 128, 0, 0.08) 0%, transparent 70%);
}

.mh-hero__visual-glow {
    position: absolute;
    width: min(300px, 70vw);
    height: min(300px, 70vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 128, 0, 0.12) 0%, transparent 65%);
    filter: blur(20px);
}

.mh-hero__visual-img {
    position: relative;
    z-index: 2;
    max-width: min(400px, 85vw);
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.mh-hero__promo-badge {
    position: absolute;
    top: 10%;
    right: 0;
    z-index: 3;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mh-accent), #ff5500);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 24px rgba(255, 128, 0, 0.4);
    animation: mh-float 3s ease-in-out infinite;
}

.mh-hero__promo-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.mh-hero__promo-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.mh-hero__promo-sub {
    font-size: 0.6rem;
    opacity: 0.85;
    max-width: 80px;
    line-height: 1.2;
}

@keyframes mh-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ================================================================
   CATEGORIES
   ================================================================ */

.mh-categories {
    padding: 0.5rem 0 1rem;
}

.mh-categories .mh-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mh-categories__scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    flex: 1;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mh-categories__scroll::-webkit-scrollbar {
    display: none;
}

.mh-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--mh-text-muted);
    flex: 0 0 auto;
    min-width: 80px;
    transition: color 0.2s;
}

.mh-category-item:hover {
    color: var(--mh-text);
}

.mh-category-item__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--mh-text);
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
}

.mh-category-item:hover .mh-category-item__icon {
    border-color: var(--mh-accent);
    background: var(--mh-bg-card-hover);
}

.mh-category-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-category-item__label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    max-width: 80px;
    line-height: 1.3;
}

.mh-categories__more {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--mh-accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.mh-categories__more:hover {
    opacity: 0.85;
}

/* ================================================================
   SECTION HEADERS & TABS
   ================================================================ */

.mh-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
    gap: 1rem;
}

.mh-section-title {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 700;
    margin: 0;
    color: var(--mh-text);
}

.mh-section-link {
    color: var(--mh-accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.mh-section-link:hover {
    opacity: 0.85;
}

.mh-products {
    padding: 1rem 0;
}

.mh-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.mh-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--mh-border);
    background: var(--mh-bg-card);
    color: var(--mh-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mh-tab:hover {
    color: var(--mh-text);
    border-color: rgba(255, 255, 255, 0.15);
}

.mh-tab--active {
    background: var(--mh-accent);
    color: #fff;
    border-color: var(--mh-accent);
}

/* ================================================================
   PRODUCT GRID & CARDS
   ================================================================ */

.mh-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .mh-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .mh-product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.mh-product-grid--scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.25rem;
    padding-bottom: 0.75rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.mh-product-grid--scroll .mh-product-card {
    flex: 0 0 220px;
    min-width: 220px;
    max-width: 220px;
}

.mh-product-card {
    position: relative;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.mh-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 128, 0, 0.25);
    box-shadow: var(--mh-shadow);
}

.mh-product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mh-product-card__image-wrap {
    position: relative;
    background: #0f1219;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.mh-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mh-product-card:hover .mh-product-card__image {
    transform: scale(1.05);
}

.mh-product-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.mh-product-card__badge--new {
    background: #ec4899;
    color: #fff;
}

.mh-product-card__badge--sale {
    background: var(--mh-accent);
    color: #fff;
}

.mh-product-card__body {
    padding: 1rem;
}

.mh-product-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
    color: var(--mh-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.mh-product-card__desc {
    font-size: 0.75rem;
    color: var(--mh-text-muted);
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.mh-product-card__footer {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mh-product-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.mh-product-card__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mh-accent);
}

.mh-product-card__old-price {
    font-size: 0.8125rem;
    color: var(--mh-text-muted);
    text-decoration: line-through;
}

.mh-product-card__rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--mh-text-muted);
}

.mh-product-card__rating i {
    color: #fbbf24;
    font-size: 0.75rem;
}

.mh-product-card__reviews {
    opacity: 0.7;
}

.mh-product-card__cart-form {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 3;
}

.mh-product-card__cart-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mh-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.35);
    transition: transform 0.2s, background 0.2s;
}

.mh-product-card__cart-btn:hover {
    transform: scale(1.1);
    background: var(--mh-accent-light);
}

/* ================================================================
   PROMO BANNERS
   ================================================================ */

.mh-promo-banners {
    padding: 1.5rem 0;
}

.mh-promo-banners__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .mh-promo-banners__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.mh-promo-banner {
    border-radius: var(--mh-radius);
    overflow: hidden;
    min-height: 220px;
}

.mh-promo-banner__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 220px;
    padding: 2rem;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mh-promo-banner--phones .mh-promo-banner__link {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
}

.mh-promo-banner--flash .mh-promo-banner__link {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
}

.mh-promo-banner__content {
    position: relative;
    z-index: 2;
    max-width: 55%;
}

.mh-promo-banner__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.mh-promo-banner__tag--flash i {
    margin-right: 0.25rem;
}

.mh-promo-banner__title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.mh-promo-banner__img {
    position: absolute;
    right: 0;
    bottom: 0;
    max-height: 90%;
    max-width: 45%;
    object-fit: contain;
    z-index: 1;
}

.mh-promo-banner__placeholder,
.mh-promo-banner__flash-visual {
    position: absolute;
    right: 2rem;
    bottom: 1rem;
    font-size: 5rem;
    opacity: 0.3;
    z-index: 1;
}

.mh-countdown {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.mh-countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.375rem 0.625rem;
    min-width: 48px;
}

.mh-countdown__value {
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1;
}

.mh-countdown__label {
    font-size: 0.625rem;
    opacity: 0.8;
    text-transform: uppercase;
    margin-top: 0.125rem;
}

/* ================================================================
   FLASH SECTION
   ================================================================ */

.mh-flash-section {
    padding: 0.75rem 0 1.5rem;
}

/* ================================================================
   SELLERS
   ================================================================ */

.mh-sellers {
    padding: 1.5rem 0;
}

.mh-sellers__scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.mh-seller-card {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    text-decoration: none;
    color: var(--mh-text);
    transition: transform 0.2s, border-color 0.2s;
}

.mh-seller-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 128, 0, 0.25);
}

.mh-seller-card__avatar {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mh-accent), #ff5500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.875rem;
    overflow: hidden;
}

.mh-seller-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-seller-card__verified {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mh-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: #fff;
    border: 2px solid var(--mh-bg-card);
}

.mh-seller-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
    line-height: 1.3;
}

.mh-seller-card__rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--mh-text-muted);
}

.mh-seller-card__rating i {
    color: #fbbf24;
}

/* ================================================================
   TRUST BAR
   ================================================================ */

.mh-trust-bar {
    padding: 1.75rem 0 1rem;
    border-top: 1px solid var(--mh-border);
    margin-top: 0.5rem;
}

.mh-trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .mh-trust-bar__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mh-trust-bar__item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.mh-trust-bar__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 128, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--mh-accent);
    font-size: 1.125rem;
}

.mh-trust-bar__item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mh-text);
    margin-bottom: 0.125rem;
}

.mh-trust-bar__item p {
    font-size: 0.75rem;
    color: var(--mh-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ================================================================
   UTILITIES & RESPONSIVE
   ================================================================ */

[x-cloak] {
    display: none !important;
}

@media (max-width: 640px) {
    .mh-hero {
        padding: calc(var(--mh-header-height) + 0.5rem) 0 1rem;
    }

    .mh-hero__grid {
        gap: 1.25rem;
    }

    .mh-hero__title {
        margin-bottom: 0.625rem;
    }

    .mh-hero__subtitle {
        margin-bottom: 1rem;
    }

    .mh-hero__actions {
        margin-bottom: 0.875rem;
    }

    .mh-hero__visual {
        min-height: 200px;
    }

    .mh-hero__visual-img {
        max-height: 220px;
    }

    .mh-hero__visual-ring {
        width: min(240px, 70vw);
        height: min(240px, 70vw);
    }

    .mh-hero__visual-glow {
        width: min(200px, 60vw);
        height: min(200px, 60vw);
    }

    .mh-categories {
        padding: 0.375rem 0 0.75rem;
    }

    .mh-products {
        padding: 0.75rem 0;
    }

    .mh-hero__promo-badge {
        width: 90px;
        height: 90px;
        right: 5%;
    }

    .mh-hero__promo-value {
        font-size: 1.25rem;
    }

    .mh-categories .mh-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .mh-categories__more {
        align-self: flex-end;
    }

    .mh-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    .mh-product-card__body {
        padding: 0.75rem;
    }

    .mh-product-card__title {
        font-size: 0.8125rem;
    }

    .mh-product-card__price {
        font-size: 1rem;
    }

    .mh-promo-banner__content {
        max-width: 100%;
    }

    .mh-promo-banner__img,
    .mh-promo-banner__placeholder,
    .mh-promo-banner__flash-visual {
        opacity: 0.2;
    }

    .mh-trust-bar__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Scrollbar styling for product scroll */
.mh-product-grid--scroll::-webkit-scrollbar,
.mh-sellers__scroll::-webkit-scrollbar {
    height: 4px;
}

.mh-product-grid--scroll::-webkit-scrollbar-track,
.mh-sellers__scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.mh-product-grid--scroll::-webkit-scrollbar-thumb,
.mh-sellers__scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 128, 0, 0.4);
    border-radius: 999px;
}

/* ================================================================
   COMPACTAGE DU LAYOUT SUR LA HOME
   Le hero gere lui-meme le decalage sous la navbar sticky via
   --mh-header-height. On supprime le padding superflu du wrapper
   layout pour eviter un double espacement.
   Portee : uniquement les pages contenant .marketify-home.
   ================================================================ */

main:has(.marketify-home) {
    padding-top: 0 !important;
}

main:has(.marketify-home) > div,
main:has(.marketify-home) .page-content,
main:has(.marketify-home) .mobile-content-grid {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

main:has(.marketify-home) + footer {
    margin-top: 2rem !important;
}

/* Ecrans peu hauts (portables 768p / 1080p) : on resserre encore
   pour garantir les cartes produits au-dessus de la ligne de flottaison */
@media (min-width: 1024px) and (max-height: 1000px) {
    .mh-hero {
        padding: calc(var(--mh-header-height) + 0.5rem) 0 0.875rem;
    }

    .mh-hero__grid {
        min-height: 260px;
        gap: 2rem;
    }

    .mh-hero__title {
        font-size: clamp(1.625rem, 2.9vw, 2.25rem);
        margin-bottom: 0.625rem;
    }

    .mh-hero__subtitle {
        font-size: 0.9375rem;
        line-height: 1.55;
        max-width: 460px;
    }

    .mh-btn {
        padding: 0.6875rem 1.375rem;
        font-size: 0.875rem;
    }

    .mh-hero__trust {
        gap: 0.5rem 1.5rem;
        font-size: 0.8125rem;
    }

    .mh-section-title {
        font-size: 1.375rem;
    }

    .mh-tab {
        padding: 0.4375rem 1.0625rem;
        font-size: 0.8125rem;
    }

    .mh-category-item {
        gap: 0.5rem;
    }

    .mh-hero__visual {
        min-height: 220px;
    }

    .mh-hero__visual-img {
        max-height: 260px;
    }

    .mh-hero__visual-ring {
        width: min(300px, 80vw);
        height: min(300px, 80vw);
    }

    .mh-hero__visual-glow {
        width: min(240px, 70vw);
        height: min(240px, 70vw);
    }

    .mh-hero__subtitle {
        margin-bottom: 1rem;
    }

    .mh-hero__actions {
        margin-bottom: 1rem;
    }

    .mh-categories {
        padding: 0.375rem 0 0.75rem;
    }

    .mh-category-item__icon {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }

    .mh-products {
        padding: 0.75rem 0;
    }

    .mh-section-header {
        margin-bottom: 0.625rem;
    }

    .mh-tabs {
        margin-bottom: 0.625rem;
    }
}

/* Viewports tres courts (<= 700px de haut : portables 1366x768 avec
   barres du navigateur, fenetres reduites). On sacrifie la rangee de
   reassurance du hero, qui est de toute facon repetee dans .mh-trust-bar. */
@media (min-width: 1024px) and (max-height: 700px) {
    .mh-hero {
        padding: calc(var(--mh-header-height) + 0.375rem) 0 0.75rem;
    }

    .mh-hero__grid {
        min-height: 200px;
        gap: 1.5rem;
    }

    .mh-hero__title {
        font-size: clamp(1.5rem, 2.6vw, 1.875rem);
        margin-bottom: 0.5rem;
    }

    .mh-hero__subtitle {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: 0.875rem;
    }

    .mh-hero__actions {
        margin-bottom: 0;
    }

    .mh-hero__trust {
        display: none;
    }

    .mh-hero__visual {
        min-height: 180px;
    }

    .mh-hero__visual-img {
        max-height: 200px;
    }

    .mh-hero__visual-ring {
        width: min(230px, 80vw);
        height: min(230px, 80vw);
    }

    .mh-hero__visual-glow {
        width: min(190px, 70vw);
        height: min(190px, 70vw);
    }

    .mh-hero__promo-badge {
        width: 92px;
        height: 92px;
    }

    .mh-categories {
        padding: 0.25rem 0 0.625rem;
    }

    .mh-category-item__icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .mh-category-item__label {
        font-size: 0.6875rem;
    }

    .mh-products {
        padding: 0.5rem 0;
    }

    .mh-section-title {
        font-size: 1.25rem;
    }

    .mh-section-header,
    .mh-tabs {
        margin-bottom: 0.5rem;
    }
}
