/* ============================================
   HERO SECTION - Homepage Nutragile
   ============================================ */

/* Forcer le fullscreen en cassant le container parent */
#banner,
.banner,
#ps_banner,
.ps_banner,
[id*="banner"] {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nutragile-hero {
    display: flex;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 666.4px;
    overflow: hidden;
    padding: 0 230px 0 200px;
    background: var(--nutragile-cream);
}

/* --- Bloc texte gauche --- */
.nutragile-hero__content {
    flex: 1;
    max-width: none;
    background: var(--nutragile-cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px 48px 64px;
}

.nutragile-hero__subtitle {
    font-family: var(--nutragile-font-link);
    font-size: 16px;
    font-weight: 300;
    color: var(--nutragile-link-dark);
    margin: 0 0 14.4px 0;
}

.nutragile-hero__title {
    font-family: var(--nutragile-font);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--nutragile-link-dark);
    margin: 0 0 25.6px 0;
    max-width: 640px;
}

/* --- Boutons CTA --- */
.nutragile-hero__ctas {
    display: flex;
    gap: 9.6px;
    flex-wrap: wrap;
}

.nutragile-hero__btn {
    font-family: var(--nutragile-font);
    display: inline-flex;
    align-items: center;
    gap: 6.4px;
    padding: 8.8px 17.6px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.nutragile-btn-light {
    background-color: var(--nutragile-white);
    color: var(--nutragile-btn-green-dark);
    border: 2px solid var(--nutragile-btn-green-dark);
    text-decoration: none;
}

.nutragile-btn-light:hover {
    background-color: var(--nutragile-btn-green-dark);
    color: var(--nutragile-white);
    border: 2px solid var(--nutragile-btn-green-dark);
}

.nutragile-btn-medium {
    background-color: var(--nutragile-btn-green-light);
    color: var(--nutragile-white);
    text-decoration: none;
    border: 2px solid var(--nutragile-btn-green-light);
}

.nutragile-btn-medium:hover {
    background-color: transparent;
    color: var(--nutragile-btn-green-light);
    border: 2px solid var(--nutragile-btn-green-light);
}

.nutragile-btn-dark {
    background-color: var(--nutragile-btn-green-dark);
    color: var(--nutragile-white);
    text-decoration: none;
    border: 2px solid var(--nutragile-btn-green-dark);
}

.nutragile-btn-dark:hover {
    background-color: transparent;
    color: var(--nutragile-btn-green-dark);
    border: 2px solid var(--nutragile-btn-green-dark);
}

.nutragile-hero__btn-libellule-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    mask: url("../img/libellule.svg") no-repeat center / contain;
    -webkit-mask: url('../img/libellule.svg') no-repeat center / contain;
}

.nutragile-hero__btn-patte-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    mask: url('../img/patte.svg') no-repeat center / contain;
    -webkit-mask: url('../img/patte.svg') no-repeat center / contain;
}

/* --- Bloc images droite --- */
.nutragile-hero__images {
    flex: none;
    display: flex;
    gap: 3.2px;
    height: 666.4px;
    font-size: 0;
    line-height: 0;
}

.nutragile-hero__img {
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    height: 100%;
}

.nutragile-hero__img img {
    height: 100%;
    width: auto;
    display: block;
}

.nutragile-hero__img a {
    display: block;
    height: 100%;
    font-size: 0;
    line-height: 0;
}

.nutragile-hero__img--horse {
    flex: none;
}

.nutragile-hero__img--pet {
    flex: none;
}


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

/* Grand écran tablette */
@media (max-width: 1200px) {
    .nutragile-hero {
        height: 480px;
    }

    .nutragile-hero__images {
        height: 480px;
    }

    .nutragile-hero__content {
        padding: 32px 28.8px 32px 40px;
    }

    .nutragile-hero__title {
        font-size: 29px;
    }

    .nutragile-hero__subtitle {
        font-size: 13px;
    }
}

/* Tablette */
@media (max-width: 1024px) {
    .nutragile-hero {
        height: 400px;
    }

    .nutragile-hero__images {
        height: 400px;
    }

    .nutragile-hero__content {
        padding: 25.6px 24px 25.6px 28.8px;
    }

    .nutragile-hero__title {
        font-size: 22px;
        margin-bottom: 19.2px;
    }

    .nutragile-hero__subtitle {
        font-size: 11px;
    }

    .nutragile-hero__btn {
        font-size: 11px;
        padding: 8px 14.4px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nutragile-hero {
        flex-direction: column;
        height: auto;
        width: 100%;
        margin-left: 0;
        padding: 0 !important;
    }

    .nutragile-hero__content {
        flex: none;
        max-width: 100%;
        padding: 25.6px 16px 22.4px;
        order: 1;
        align-items: center;
        text-align: center;
    }

    .nutragile-hero__subtitle {
        font-size: 11px;
        margin-bottom: 9.6px;
    }

    .nutragile-hero__title {
        font-size: 19px;
        margin-bottom: 19.2px;
        max-width: none;
    }

    .nutragile-hero__ctas {
        gap: 8px;
        justify-content: center;
    }

    .nutragile-hero__btn {
        padding: 8px 14.4px;
        font-size: 11px;
    }

    /* Images en dessous, pleine largeur */
    .nutragile-hero__images {
        order: 2;
        width: 100%;
        height: 50vw;
        gap: 2.4px;
    }

    .nutragile-hero__img {
        flex: 1;
        height: 100%;
    }

    .nutragile-hero__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .nutragile-hero__img a {
        width: 100%;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .nutragile-hero__content {
        padding: 22.4px 12.8px 19.2px;
    }

    .nutragile-hero__title {
        font-size: 16px;
    }

    .nutragile-hero__subtitle {
        font-size: 10px;
    }

    .nutragile-hero__ctas {
        flex-direction: column;
        gap: 8px;
    }

    .nutragile-hero__btn {
        justify-content: center;
        width: 100%;
    }

    .nutragile-hero__images {
        height: 55vw;
    }
}


/* ============================================
   STICKY CART - Homepage only
   ============================================ */

.nutragile-sticky-cart {
    position: fixed;
    bottom: 19.2px;
    right: 19.2px;
    z-index: 999;
    width: 41.6px;
    height: 41.6px;
    border-radius: 50%;
    background-color: var(--nutragile-green-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.nutragile-sticky-cart:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.nutragile-sticky-cart__icon {
    width: 19.2px;
    height: 19.2px;
    stroke: #fff;
}

.nutragile-sticky-cart__count {
    position: absolute;
    top: -3.2px;
    right: -3.2px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    font-family: var(--nutragile-font);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 3.2px;
}
