/* ================================================================
   MARKETIFY HOMEPAGE VARIANTS - Dark Theme (Maquette 2026)
   Extensions de homepage-index.css pour index_two / index_three / index_four.
   Reutilise les memes tokens --mh-* definis sur .marketify-home
   ================================================================ */

/* ================================================================
   SECTION HEADER - variante avec sous-titre
   ================================================================ */

.mh-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mh-section-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mh-accent);
    margin: 0 0 0.5rem;
}

.mh-section-head__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--mh-text);
}

.mh-section-head__subtitle {
    font-size: 0.9375rem;
    color: var(--mh-text-muted);
    margin: 0.5rem 0 0;
    max-width: 560px;
    line-height: 1.6;
}

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

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

/* ================================================================
   HERO SLIDER (index_two)
   ================================================================ */

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

.mh-hero-slider__frame {
    position: relative;
    border-radius: var(--mh-radius);
    overflow: hidden;
    border: 1px solid var(--mh-border);
    background: var(--mh-bg-card);
    min-height: 280px;
}

@media (min-width: 1024px) {
    .mh-hero-slider__frame {
        min-height: 360px;
    }
}

.mh-hero-slide {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
}

@media (min-width: 1024px) {
    .mh-hero-slide {
        min-height: 360px;
    }
}

.mh-hero-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.mh-hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(11, 14, 20, 0.96) 0%, rgba(11, 14, 20, 0.82) 45%, rgba(11, 14, 20, 0.25) 100%);
}

.mh-hero-slide__content {
    position: relative;
    z-index: 2;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    max-width: 640px;
}

.mh-hero-slide__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: rgba(255, 128, 0, 0.15);
    border: 1px solid rgba(255, 128, 0, 0.35);
    color: var(--mh-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.mh-hero-slide__title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--mh-text);
    margin: 0 0 1rem;
}

.mh-hero-slide__text {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    color: var(--mh-text-muted);
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

.mh-hero-slider__dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.mh-hero-slider__dot {
    width: 28px;
    height: 5px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
}

.mh-hero-slider__dot--active {
    background: var(--mh-accent);
    width: 40px;
}

.mh-hero-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--mh-border);
    background: rgba(21, 25, 34, 0.8);
    color: var(--mh-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.mh-hero-slider__nav:hover {
    background: var(--mh-accent);
    border-color: var(--mh-accent);
}

.mh-hero-slider__nav--prev { left: 1rem; }
.mh-hero-slider__nav--next { right: 1rem; }

/* ================================================================
   HERO MINIMAL (index_four)
   ================================================================ */

.mh-hero--minimal {
    padding: calc(var(--mh-header-height) + 1rem) 0 1.75rem;
    text-align: center;
    scroll-margin-top: var(--mh-header-height);
}

.mh-hero--minimal .mh-hero__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.mh-hero--minimal .mh-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
}

.mh-hero--minimal .mh-hero__actions,
.mh-hero--minimal .mh-hero__trust {
    justify-content: center;
}

.mh-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 128, 0, 0.12);
    border: 1px solid rgba(255, 128, 0, 0.3);
    color: var(--mh-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.875rem;
}

.mh-hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 3.5rem);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mh-border);
    width: 100%;
}

.mh-hero__stat-value {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--mh-text);
    line-height: 1.1;
}

.mh-hero__stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--mh-text-muted);
    margin-top: 0.25rem;
}

.mh-hero__strip {
    margin-top: 1.5rem;
    width: 100%;
    border-radius: var(--mh-radius);
    overflow: hidden;
    border: 1px solid var(--mh-border);
    max-height: 240px;
}

.mh-hero__strip img {
    width: 100%;
    height: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

/* ================================================================
   FEATURE CARDS
   ================================================================ */

.mh-features {
    padding: 0.75rem 0 1.25rem;
}

.mh-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.mh-feature-card {
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 1.125rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

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

.mh-feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 128, 0, 0.12);
    color: var(--mh-accent);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.mh-feature-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--mh-text);
    margin: 0 0 0.375rem;
}

.mh-feature-card__text {
    font-size: 0.875rem;
    color: var(--mh-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ================================================================
   CATEGORY TILES (grille)
   ================================================================ */

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

@media (max-width: 640px) {
    .mh-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

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

.mh-cat-tile:hover {
    transform: translateY(-4px);
    background: var(--mh-bg-card-hover);
    border-color: rgba(255, 128, 0, 0.3);
}

.mh-cat-tile__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--mh-accent);
    font-size: 1.375rem;
    overflow: hidden;
}

.mh-cat-tile__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-cat-tile__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mh-text);
    line-height: 1.3;
}

.mh-cat-tile__count {
    font-size: 0.75rem;
    color: var(--mh-text-muted);
}

/* ================================================================
   BANNIERES (tuiles generiques)
   ================================================================ */

.mh-banner-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.mh-banner-tile {
    position: relative;
    display: block;
    border-radius: var(--mh-radius);
    overflow: hidden;
    border: 1px solid var(--mh-border);
    background: var(--mh-bg-card);
    min-height: 180px;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.mh-banner-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 128, 0, 0.3);
}

.mh-banner-tile--wide {
    min-height: 240px;
}

.mh-banner-tile__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.4s, opacity 0.3s;
}

.mh-banner-tile:hover .mh-banner-tile__img {
    transform: scale(1.05);
    opacity: 0.75;
}

.mh-banner-tile__body {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(11, 14, 20, 0) 30%, rgba(11, 14, 20, 0.9) 100%);
}

.mh-banner-tile--wide .mh-banner-tile__body {
    min-height: 240px;
}

.mh-banner-tile__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mh-text);
    margin: 0 0 0.25rem;
}

.mh-banner-tile__text {
    font-size: 0.8125rem;
    color: var(--mh-text-muted);
    margin: 0 0 0.875rem;
    line-height: 1.5;
}

.mh-banner-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mh-accent);
}

/* ================================================================
   FLASH SALE - bandeau avec compte a rebours
   ================================================================ */

.mh-flash-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--mh-radius);
    background: linear-gradient(135deg, #f97316 0%, #fb923c 55%, #fbbf24 100%);
    margin-bottom: 1rem;
}

.mh-flash-bar__title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.mh-flash-bar .mh-countdown {
    margin-bottom: 0;
}

/* ================================================================
   CTA FINAL
   ================================================================ */

.mh-cta {
    padding: 1.5rem 0 0.5rem;
}

.mh-cta__box {
    border-radius: var(--mh-radius);
    border: 1px solid var(--mh-border);
    background: linear-gradient(135deg, rgba(255, 128, 0, 0.14) 0%, rgba(21, 25, 34, 0.9) 60%);
    padding: clamp(1.75rem, 4vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.mh-cta__title {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 800;
    color: var(--mh-text);
    margin: 0 0 0.5rem;
}

.mh-cta__text {
    font-size: 0.9375rem;
    color: var(--mh-text-muted);
    margin: 0;
    max-width: 520px;
    line-height: 1.6;
}

/* ================================================================
   ETAT VIDE
   ================================================================ */

.mh-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    border: 1px dashed var(--mh-border);
    border-radius: var(--mh-radius);
    color: var(--mh-text-muted);
    font-size: 0.9375rem;
}

.mh-empty i {
    display: block;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 640px) {
    .mh-hero-slider__nav { display: none; }

    .mh-flash-bar {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .mh-feature-card {
        padding: 1.125rem;
    }
}

/* ================================================================
   ECRANS PEU HAUTS - meme logique que homepage-index.css :
   on resserre pour que la premiere rangee produits passe au-dessus
   de la ligne de flottaison sur les portables 768p / 1080p.
   ================================================================ */

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

    .mh-hero-slider__frame,
    .mh-hero-slide {
        min-height: 300px;
    }

    .mh-hero--minimal {
        padding: calc(var(--mh-header-height) + 0.75rem) 0 1.25rem;
    }

    .mh-hero__stats {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .mh-hero__strip {
        margin-top: 1rem;
        max-height: 180px;
    }

    .mh-hero__strip img {
        max-height: 180px;
    }

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

    .mh-feature-card {
        padding: 1rem;
    }

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

    .mh-section--tight {
        padding: 0.5rem 0;
    }

    .mh-section-head {
        margin-bottom: 0.75rem;
    }
}

/* Le contenu du hero-slider (titre + texte + boutons + reassurance)
   depasse la hauteur mini du cadre : on le resserre pour que la
   premiere rangee produits reste haute dans la page. */
@media (min-width: 1024px) and (max-height: 1000px) {
    .mh-hero-slide__content {
        padding: clamp(1rem, 2.2vw, 1.75rem);
    }

    .mh-hero-slide__eyebrow {
        margin-bottom: 0.625rem;
        padding: 0.3125rem 0.75rem;
    }

    .mh-hero-slide__title {
        font-size: clamp(1.5rem, 2.8vw, 2.125rem);
        margin: 0 0 0.625rem;
    }

    .mh-hero-slide__text {
        font-size: 0.9375rem;
        line-height: 1.55;
        margin: 0 0 0.875rem;
        max-width: 520px;
    }

    .mh-section-head__subtitle {
        font-size: 0.875rem;
        margin-top: 0.375rem;
    }

    .mh-section-head__eyebrow {
        margin-bottom: 0.375rem;
    }

    .mh-flash-bar {
        padding: 0.875rem 1.25rem;
        margin-bottom: 0.875rem;
    }
}

@media (min-width: 1024px) and (max-height: 700px) {
    .mh-hero-slider {
        padding: calc(var(--mh-header-height) + 0.375rem) 0 0.75rem;
    }

    .mh-hero-slider__frame,
    .mh-hero-slide {
        min-height: 240px;
    }

    .mh-hero-slide__title {
        font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    }

    .mh-hero-slide .mh-hero__trust {
        display: none;
    }

    .mh-hero-slide__text {
        margin-bottom: 0.75rem;
    }

    .mh-hero__stats {
        margin-top: 0.875rem;
        padding-top: 0.875rem;
    }

    .mh-hero__strip {
        margin-top: 0.875rem;
        max-height: 150px;
    }

    .mh-hero__strip img {
        max-height: 150px;
    }

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

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

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

    .mh-section-head__subtitle {
        display: none;
    }
}

/* Les fleches de navigation ne sont rendues que s'il y a plusieurs
   slides (les puces aussi) : dans ce cas on decale le texte pour
   qu'il ne passe pas sous la fleche gauche. */
@media (min-width: 1024px) {
    .mh-hero-slider__frame:has(.mh-hero-slider__dots) .mh-hero-slide__content {
        padding-left: 4.75rem;
        padding-bottom: 2.5rem;
    }
}
