/* ============================================
   AGRI BLOCKS - PrettyBlocks Homepage Styles
   Module: divioseo_prettyblocks
   Reproduction fidèle du design agrifournitures.fr
   ============================================ */

/* --- Variables --- */
:root {
    --agri-green: #107C10;
    --agri-green-light: #52b800;
    --agri-green-dark: #0C5A0C;
    --agri-green-bg: #CFE5CF;
    --agri-dark: #15140F;
    --agri-red: #CC3114;
    --agri-orange: #FFD280;
    --agri-grey-border: #D2D5D2;
    --agri-grey-muted: #A1A2A1;
    --agri-grey-bg: #f5f5f5;
    --agri-font: "Open Sans", Arial, Helvetica, sans-serif;
}

.btn-agri{
    display: inline-block;
    background: var(--agri-green);
    color: #fff;
    font-family: var(--agri-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0.5px;
    padding: 15px 20px;
    border-radius: 0;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    transition: background 0.2s;
}

.btn-agri:hover {
    background: var(--agri-green-dark);
    color: #fff;
}

.btn-outline-agri{
    display: inline-block;
    border: 2px var(--agri-green) solid;
    padding: 13px 20px;
    background: #fff;
    color: #107C10;
    font-family: var(--agri-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0.5px;
    border-radius: 0;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s;
}

.btn-outline-agri:hover {
    background: var(--agri-green);
    color: #fff;
}

/* ============================================
   0. FLASH INFO BANNER
   ============================================ */
.agri-flash-info {
    width: 100%;
    min-height: 25px;
    font-family: var(--agri-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.agri-flash-info p {
    margin: 0;
    padding: 0px;
}

.agri-flash-info__link {
    text-decoration: none;
    display: block;
}

.agri-flash-info__link:hover {
    text-decoration: underline;
}

/* ============================================
   1. HERO SLIDER
   ============================================ */

.agri-hero-slider{
    padding: 0px;
    margin-top: 10px;
}
.agri-hero-slider .agri-hero-slider-content{
    position: relative;
    width: 100%;
    overflow: hidden;
}

.agri-hero-slider__track {
    position: relative;
    width: 100%;
    height: 400px;
}

.agri-hero-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 0;
}

.agri-hero-slider__slide.active {
    opacity: 1;
    z-index: 1;
}

.agri-hero-slider__link {
    display: block;
    width: 100%;
    height: 100%;
}

.agri-hero-slider__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agri-hero-slider-actions{
    position: absolute;
    top: 0;
    right: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 1px;
    z-index: 10;
    flex-direction: column;
    align-items: end;
    justify-content: center;
}

/* Arrows */
.agri-hero-slider__arrow {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    flex: 1;
    width: 52px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
}

.agri-hero-slider__arrow svg{
    width: 20px;
    height: 20px;
}

.agri-hero-slider__arrow svg path{
    fill: #fff;
}

.agri-hero-slider__arrow:hover svg path{
    fill: var(--agri-green);
}

/* Counter (1/x) */
.agri-hero-slider__counter {
    background: rgba(0, 0, 0, 0.7);
    color: #a1a2a1;
    width: 52px;
    text-align: center;
    font-family: var(--agri-font);
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.agri-hero-slider__counter-current{
    color: #FFF;
    line-height: 1.2;
    font-size: 18px;
}

.agri-hero-slider__counter-total{
    line-height: 1.2;
    font-size: 14px;
    color: #a1a2a1;
}

/* Responsive slider */
@media (max-width: 767px) {
    .agri-hero-slider__track {
        height: 200px;
    }
    .agri-hero-slider__arrow {
        width: 36px;
        height: 80px;
    }
}

/* ============================================
   2. PUSH GRID (Category Banners)
   Production: .nq-c-PushList
   260x269 cards, image top + black title bar bottom
   ============================================ */
.agri-push-grid {
    margin-top: 30px;
}

.agri-push-grid__container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.agri-push-grid__item {
    display: block;
    text-decoration: none;
    overflow: hidden;
    color: #fff;
}

.agri-push-grid__img-wrap {
    display: block;
    height: 194px;
    overflow: hidden;
}

.agri-push-grid__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.agri-push-grid__item:hover .agri-push-grid__img {
    object-fit: cover;
}

.agri-push-grid__title {
    display: flex;
    width: 100%;
    align-items: stretch;
    background: var(--agri-dark);
    color: #fff;
}

.agri-push-grid__title-text {
    vertical-align: middle;
    padding: 10px 12px;
    font-family: var(--agri-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
    flex: 1;    
    display: flex;
    align-items: center;
    overflow: hidden;
    height:75px;
    line-height: 1.4em;
}

.agri-push-grid__title-text-inner{
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* nombre de lignes */
    overflow: hidden;
}

.agri-push-grid__title-arrow {
    display: flex;
    width: 50px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: var(--agri-green);
}

.agri-push-grid__title-arrow svg{
    width: 20px;
    height: 20px;
}

/* Responsive push grid */
@media (max-width: 1199px) {
    .agri-push-grid__item,
    .agri-push-grid__img-wrap,
    .agri-push-grid__title {
        width: calc(25% - 10px);
    }
    .agri-push-grid__img-wrap {
        height: 150px;
    }
}

@media (max-width: 991px) {
    .agri-push-grid__item,
    .agri-push-grid__img-wrap,
    .agri-push-grid__title {
        width: calc(33.333% - 10px);
    }
}

@media (max-width: 575px) {
    .agri-push-grid__item,
    .agri-push-grid__img-wrap,
    .agri-push-grid__title {
        width: calc(50% - 10px);
    }
    .agri-push-grid__img-wrap {
        height: 120px;
    }
    .agri-push-grid__title-text {
        font-size: 12px;
        padding: 8px 8px;
    }
    .agri-push-grid__title-arrow {
        width: 35px;
    }
}

/* ============================================
   3. REASSURANCE BAR
   Production: .nq-c-Reassurance
   6 items, centered, icons + text
   ============================================ */
.agri-reassurance {
    padding: 50px 0 30px;
}

.agri-reassurance__container {
    display: block;
    text-align: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

.agri-reassurance__item {
    display: inline-block;
    vertical-align: top;
    width: 220px;
    text-align: center;
    padding: 40px 20px 20px;
}

.agri-reassurance__link {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.agri-reassurance__link:hover {
    text-decoration: none;
}

.agri-reassurance__icon {
    display: block;
    min-height: 30px;
    margin: 0 auto 10px;
}

.agri-reassurance__icon img {
    height: auto;
    width: 35px;
    margin: 0 auto;
    display: block;
}

.agri-reassurance__text {
    display: block;
}

.agri-reassurance__title {
    display: block;
    font-family: var(--agri-font);
    font-size: 12px;
    font-weight: 400;
    color: var(--agri-dark);
    line-height: 1.6;
}

.agri-reassurance__subtitle {
    display: block;
    font-family: var(--agri-font);
    font-size: 12px;
    font-weight: 400;
    color: var(--agri-dark);
    line-height: 1.6;
}

@media (max-width: 767px) {
    .agri-reassurance__container{
        display: flex;    
        flex-wrap: wrap;
        justify-content: center;
    }
    .agri-reassurance__item {
        width: 160px;
        padding: 20px 10px 10px;
    }
    .agri-reassurance__title,
    .agri-reassurance__subtitle {
        font-size: 11px;
    }
}

@media (max-width: 575px) {
    .agri-reassurance__item {
        width: 50%;
    }
}


/* ============================================
   4. BRAND SLIDER
   Production: .nq-c-BrandSlider
   Infinite auto-scroll, logos 140px wide
   ============================================ */
.agri-brand-slider {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    padding-left: 36px;
    padding-right: 36px;
    margin: 10px auto 50px auto;
    max-width: 1120px !important;
}

.agri-brand-slider__track {
    overflow: hidden;
    flex: 1;
}

.agri-brand-slider__inner {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 10px 0;
    transition: transform 0.4s ease;
}

.agri-brand-slider__item {
    flex: 0 0 calc((100% - 150px) / 6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agri-brand-slider__logo {
    max-width: 140px;
    height: 43px;
    object-fit: contain;
    display: block;
}

.agri-brand-slider__arrow {
    background: none;
    border: none;
    color: #999;
    width: 30px;
    height: 40px;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: color 0.2s;
}

.agri-brand-slider__arrow:hover {
    color: var(--agri-green, #107C10);
}

.agri-brand-slider__arrow--prev {
    margin-right: 10px;
}

.agri-brand-slider__arrow--next {
    margin-left: 10px;
}

@media (max-width: 767.98px) {
    .agri-brand-slider__item {
        flex: 0 0 calc((100% - 30px) / 2);
    }

    .agri-brand-slider__arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ============================================
   5. PRODUCT SECTION
   Production: .nq-c-ProductListBlock
   Title 45px, inline-block cards, 453x214 horizontal
   ============================================ */
.agri-product-section {
    margin-bottom: 60px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.agri-product-section__header {
    text-align: center;
    margin-bottom: 5px;
}

.agri-product-section__title {
    font-family: var(--agri-font);
    font-size: 45px;
    font-weight: 400;
    color: var(--agri-dark);
    margin: 0;
    text-align: center;
}

.agri-product-section__desc {
    font-family: var(--agri-font);
    font-size: 14px;
    color: var(--agri-dark);
    margin: 0;
    padding: 5px 20px 30px;
    text-align: center;
}

.agri-product-section__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.agri-product-section__card {
    display: inline-block;
    width: calc(100% / 3 - 13.5px);
    min-height: 214px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--agri-grey-border);
    border-radius: 0;
    vertical-align: top;
    transition: box-shadow 0.2s;
}

.agri-product-section__card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.agri-product-section__card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* Left column: image + brand logo */
.agri-product-section__card-left {
    flex-shrink: 0;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agri-product-section__card-img-wrap {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agri-product-section__card-img-wrap > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Brand logo under image */
.agri-product-section__card-brand {
    margin-top: 8px;
}

.agri-product-section__card-brand img {
    height: auto;
    width: 100%;
    object-fit: contain;
}

/* Right column: tags, title, prices */
.agri-product-section__card-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tags (Nouveauté, Prix dégressifs) */
.agri-product-section__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.agri-product-section__tag {
    display: inline-block;
    font-family: var(--agri-font);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    line-height: 1.3;
}

.agri-product-section__tag--new {
    color: #FFFFFF;
    font-size: .75rem;
    text-transform: uppercase;
    margin: 0 5px 0 0;
    padding: 5px;
    border: 1px solid #15140F;
    background: #15140F;
}

.agri-product-section__tag--degressive {
    color: #FFFFFF;
    font-size: .75rem;
    text-transform: uppercase;
    margin: 0 5px 0 0;
    padding: 5px;
    border: 1px solid #CC3114;
    background: #CC3114;
}

.agri-product-section__card-name {
    font-family: var(--agri-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--agri-dark);
    margin: 0 0 10px;
    line-height: 1.4;
}

.agri-product-section__card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agri-product-section__price {
    font-family: var(--agri-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--agri-green);
}

.agri-product-section__price-ttc {
    font-size: 1rem;
    font-weight: bold;
    color: #15140F;
}

.agri-product-section__price-old {
    font-family: var(--agri-font);
    font-size: 14px;
    color: var(--agri-grey-muted);
    text-decoration: line-through;
}

.agri-product-section__empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
    width: 100%;
}

.agri-product-section__footer {
    text-align: center;
    margin-top: 25px;
}

.agri-product-section__btn {
    display: inline-block;
    background: var(--agri-green);
    color: #fff;
    font-family: var(--agri-font);
    font-size: 14px;
    font-weight: 400;
    padding: 15px 20px;
    border-radius: 0;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    transition: background 0.2s;
}

.agri-product-section__btn:hover {
    background: var(--agri-green-light);
    color: #fff;
}

/* Responsive product section */
@media (max-width: 991px) {
    .agri-product-section__card {
        width: calc(50% - 20px);
    }
    .agri-product-section__title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .agri-product-section__card {
        width: 100%;
        margin-right: 0;
    }
    .agri-product-section__title {
        font-size: 24px;
    }
}

/* ============================================
   6. SEO TEXT + KEY FIGURES
   Production: .nq-c-customText
   Left text (1080px) + Right key figures (320px)
   ============================================ */
.agri-seo-text {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

.agri-seo-text__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.agri-seo-text__title_content h1{
    font-size: 1.875rem;
    font-weight: normal;
    max-width: 680px;
    line-height: normal;
}

.agri-seo-text__content {
    flex: 1 1 700px;
    font-family: var(--agri-font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--agri-dark);
    padding-bottom: 20px;
    margin-top: 20px;
}

.agri-seo-text__content p {
    margin: 0 0 12px;
}


.agri-seo-text__content .agri-btn,
.agri-seo-text__content a.agri-btn {
    display: inline-block;
    background: var(--agri-green);
    color: #fff;
    padding: 15px 20px;
    border-radius: 0;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    margin-top: 10px;
    transition: background 0.2s;
}

.agri-seo-text__content .agri-btn:hover {
    background: var(--agri-green-light);
}

/* Key figures sidebar */
.agri-seo-figures {
    flex: 0 0 320px;
    border-left: 1px #D2D5D2 solid;
}

.agri-seo-figures__list {
    list-style: none;
    padding: 0 0 0 60px;
    margin: 0;
}

.agri-seo-figures__item {
    margin-bottom: 20px;
    font-family: var(--agri-font);
    font-size: 14px;
    font-weight: 700;
    min-height: 30px;
    margin-right: 10px;
    color: var(--agri-dark);
    line-height: 20px;
}

.agri-seo-figures__item  img{
    margin-right: 5px;
    max-height: 30px;
}

.agri-seo-figures__badge {
    display: inline-block;
    background: var(--agri-green);
    color: #fff;
    font-family: var(--agri-font);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 0;
    margin-top: 15px;
    margin-left: 60px;
}

@media (max-width: 991px) {
    .agri-seo-text__row {
        flex-direction: column;
    }
    .agri-seo-text__content{
        flex: 1 1 auto;
    }
    .agri-seo-figures {
        flex: 1 1 100%;
        padding-top: 0;
        border: none;
    }
    .agri-seo-figures__list {
        padding-left: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px 30px;
    }
    .agri-seo-figures__badge {
        margin-left: 0;
    }
}

@media (max-width: 575px) {
    .agri-seo-text__content{
        flex: 1 1 auto;
    }
    .agri-seo-text__content h1 {
        font-size: 22px;
    }
    .agri-seo-figures__list {
        gap: 5px 15px;
    }
    .agri-seo-figures__item {
        font-size: 12px;
        width: 100%;
    }
}
