/* ============================================================
   an_parachronocategories v1.3 — Parachrono Palette
   Primary:    #0891B2  (Cyan Profond)
   Secondary:  #06B6D4  (Cyan Clair)
   Dark:       #0A192F  (Marine)
   Heading:    #1A202C  (Noir doux)
   Body:       #4A5568  (Gris moyen)
   Light BG:   #F7FAFC
   Border:     #E2E8F0
   Promo:      #E53E3E
   ============================================================ */

/* ── REASSURANCE BAR ── */

.anpc-reassurance {
    background: #F7FAFC;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    padding: 0;
    margin: 0 0 4rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.anpc-reassurance__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
}

.anpc-reassurance__item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px;
    text-decoration: none;
    color: #1A202C;
    transition: background 0.2s;
    position: relative;
}

.anpc-reassurance__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #E2E8F0;
}

.anpc-reassurance__item:hover {
    background: rgba(8, 145, 178, 0.04);
}

.anpc-reassurance__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(8, 145, 178, 0.08);
    color: #0891B2;
    flex-shrink: 0;
}

.anpc-reassurance__icon svg {
    width: 20px;
    height: 20px;
}

.anpc-reassurance__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 13px;
    line-height: 1.3;
}

.anpc-reassurance__text strong {
    font-size: 14px;
    font-weight: 700;
    color: #1A202C;
}

.anpc-reassurance__text span {
    color: #4A5568;
    font-weight: 400;
}

/* ── SECTION ── */

.anpc-section {
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 16px;
}

/* ── SECTION HEADER — flush, integrated ── */

.anpc-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 14px;
    border-bottom: 1px solid #E2E8F0;
    gap: 16px;
}

.anpc-section__header-left {
    flex: 1;
    min-width: 0;
}

.anpc-section__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.anpc-section__title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1A202C;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
    padding-bottom: 8px;
}

.anpc-section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: #0891B2;
    border-radius: 3px;
}

.anpc-section__subtitle {
    font-size: 14px;
    color: #718096;
    margin: 4px 0 0;
    line-height: 1.5;
    max-width: 600px;
}

.anpc-section__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.anpc-section__badge svg {
    flex-shrink: 0;
}

.anpc-section__badge--promo {
    background: #FED7D7;
    color: #C53030;
}

.anpc-section__badge--new {
    background: #C6F6D5;
    color: #276749;
}

.anpc-section__badge--best {
    background: #FEFCBF;
    color: #975A16;
}

.anpc-section__link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #0891B2;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
    padding-bottom: 2px;
}

.anpc-section__link:hover {
    color: #06B6D4;
}

.anpc-section__link:hover svg {
    transform: translateX(3px);
}

.anpc-section__link svg {
    transition: transform 0.2s;
}

/* ── SEO TEXT — full on desktop, tronqué mobile ── */

.anpc-section__seo {
    margin-top: 1.25rem;
    padding: 18px 24px;
    background: #F7FAFC;
    border-radius: 12px;
    border: 1px solid #EDF2F7;
    font-size: 13.5px;
    line-height: 1.7;
    color: #4A5568;
    position: relative;
}

.anpc-section__seo p {
    margin: 0 0 0.6em;
}

.anpc-section__seo p:last-child {
    margin-bottom: 0;
}

.anpc-section__seo a {
    color: #0891B2;
    text-decoration: underline;
    text-decoration-color: rgba(8, 145, 178, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.anpc-section__seo a:hover {
    text-decoration-color: #0891B2;
}

.anpc-section__seo strong {
    color: #1A202C;
    font-weight: 600;
}

.anpc-section__seo h3,
.anpc-section__seo h4 {
    color: #1A202C;
    font-weight: 700;
    margin: 0.8em 0 0.3em;
    font-size: 15px;
}

/* ── SCROLL CONTAINER + ARROWS ── */

.anpc-section__scroll {
    position: relative;
}

.anpc-section__arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E2E8F0;
    color: #1A202C;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.anpc-section__arrow:hover {
    border-color: #0891B2;
    color: #0891B2;
    box-shadow: 0 4px 12px rgba(8,145,178,0.15);
}

.anpc-section__arrow--left {
    left: -12px;
}

.anpc-section__arrow--right {
    right: -12px;
}

.anpc-section__scroll.has-overflow .anpc-section__arrow {
    display: flex;
}

/* ── PRODUCT GRID ── */

.anpc-section__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* ── PRODUCT CARD ── */

.anpc-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.anpc-card:hover {
    border-color: #0891B2;
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.1);
    transform: translateY(-3px);
}

/* Image */
.anpc-card__img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 12px;
}

.anpc-card__img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.anpc-card:hover .anpc-card__img-wrap img {
    transform: scale(1.05);
}

.anpc-card__discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E53E3E;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

/* Info */
.anpc-card__info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    border-top: 1px solid #F1F5F9;
}

.anpc-card__brand {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0891B2;
}

.anpc-card__name {
    font-size: 13px;
    font-weight: 500;
    color: #1A202C;
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.anpc-card__name:hover {
    color: #0891B2;
}

.anpc-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.anpc-card__price {
    font-size: 17px;
    font-weight: 800;
    color: #0891B2;
}

.anpc-card__old-price {
    font-size: 13px;
    font-weight: 400;
    color: #A0AEC0;
    text-decoration: line-through;
}

/* Button */
.anpc-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 12px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    background: #0891B2;
    color: #fff;
}

.anpc-card__btn:hover {
    background: #06B6D4;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}

.anpc-card__btn:active {
    transform: scale(0.97);
}

.anpc-card__btn--disabled {
    background: #E2E8F0;
    color: #A0AEC0;
    cursor: not-allowed;
}

.anpc-card__btn--disabled:hover {
    background: #E2E8F0;
    box-shadow: none;
}

.anpc-card__btn--added {
    background: #38A169;
}

/* ── RESPONSIVE ── */

@media (max-width: 1200px) {
    .anpc-section__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .anpc-section__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .anpc-reassurance__inner {
        flex-wrap: wrap;
    }

    .anpc-reassurance__item {
        flex: 1 1 50%;
        min-width: 200px;
    }

    .anpc-reassurance__item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .anpc-section__grid {
        display: flex;
        overflow: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 8px;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .anpc-section__grid::-webkit-scrollbar {
        display: none;
    }

    .anpc-card {
        flex: 0 0 calc(50% - 6px);
        min-width: 0;
        max-width: none;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    /* Arrows: visible on mobile */
    .anpc-section__arrow {
        display: flex !important;
        width: 34px;
        height: 34px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid #E2E8F0;
        color: #1A202C;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
        padding: 0;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .anpc-section__arrow:active {
        transform: translateY(-50%) scale(0.92);
    }

    .anpc-section__arrow--left {
        left: -6px;
    }

    .anpc-section__arrow--right {
        right: -6px;
    }

    .anpc-section__scroll {
        position: relative;
    }

    .anpc-reassurance__inner {
        flex-direction: column;
        gap: 0;
    }

    .anpc-reassurance__item {
        flex: 1 1 100%;
        justify-content: flex-start;
        padding: 12px 20px;
        border-bottom: 1px solid #E2E8F0;
    }

    .anpc-reassurance__item:last-child {
        border-bottom: none;
    }

    .anpc-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-bottom: 12px;
    }

    .anpc-section__title {
        font-size: 1.15rem;
    }

    .anpc-section__subtitle {
        display: none;
    }

    .anpc-section__link {
        font-size: 13px;
    }

    /* SEO: tronqué mobile avec fondu */
    .anpc-section__seo {
        padding: 14px 16px;
        font-size: 13px;
        max-height: 70px;
        overflow: hidden;
    }

    .anpc-section__seo::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 36px;
        background: linear-gradient(to bottom, rgba(247, 250, 252, 0) 0%, #F7FAFC 100%);
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .anpc-card__info {
        padding: 10px 10px 12px;
    }

    .anpc-card__price {
        font-size: 15px;
    }

    .anpc-card__btn {
        padding: 8px 8px;
        font-size: 12px;
    }
}
