/* Vignerons page styles */

/* Import base styles and components */
@import "base-zW0DGQa.css";
@import "components/header-FQ0_1JI.css";
@import "components/hero_long-5E7vmgI.css";
@import "components/card_service-JwZyVJz.css";
@import "components/text_content-92yg7qr.css";
@import "components/stat-rEPf0At.css";
@import "components/link_arrow-UjWqbLF.css";
@import "components/card_event-zqtuDMt.css";
@import "components/cta_section-t7KgU1f.css";
@import "components/filter_select-RRzOMyY.css";
@import "components/footer-cxZLcZV.css";

/* ============================================ */
/* VIGNERONS HERO SECTION - MOBILE */
/* ============================================ */

.vignerons-hero {
    position: relative;
    padding: 120px 16px 64px 16px;
    background: linear-gradient(180deg, rgba(99, 38, 61, 0.8) 0%, rgba(99, 38, 61, 0.95) 100%),
        url("../images/home/vignes-BtcYn3U.jpg");
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.vignerons-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(99, 38, 61, 0.8) 0%, rgba(99, 38, 61, 0.95) 100%);
    z-index: 0;
}

.vignerons-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vignerons-hero__label {
    font-family: "Grantha Sangam MN";
    font-size: 13px;
    font-weight: 500;
    line-height: 15px;
    letter-spacing: 0.52px;
    text-transform: uppercase;
    color: var(--color-red);
}

.vignerons-hero__title {
    font-family: 'Lora', serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 38px;
    color: var(--color-white);
}

.vignerons-hero__description {
    font-family: "Grantha Sangam MN";
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
    color: var(--color-white);
}

/* ============================================ */
/* VIGNERONS GRID SECTION - MOBILE */
/* ============================================ */

.vignerons-grid {
    padding: 64px 0px;
    max-width: 1550px;
    margin-left: 16px;
    margin-right: 16px;
    background-color: var(--color-white);
}

.vignerons-grid__header {
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.vignerons-grid__title-wrapper {
    /* Wrapper for text_content component */
}

.vignerons-grid__title-wrapper__title,
.vignerons-grid__title-wrapper .text-content__title {
    font-family: 'Lora', serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 38px;
    color: var(--color-bordeaux);
}

.vignerons-grid__filters {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

.vignerons-grid__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.vigneron-card {
    position: relative;
    width: 100%;
    aspect-ratio: 367 / 459;
    background-color: lightgray;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    margin-bottom: 0px;
}

.vigneron-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 46.19%, rgba(40, 0, 0, 0.60) 77.23%);
    border-radius: 24px;
    pointer-events: none;
    z-index: 1;
}

.vigneron-card__content {
    padding: 24px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.vigneron-card__label {
    color: #DDFFD9;
    font-family: "Grantha Sangam MN";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.vigneron-card__title {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: var(--color-white);
}

.vigneron-card__arrow {
    position: absolute;
    top: 31px;
    right: 13px;
    opacity: 0;
    transform: translateY(-31px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 2;
}

.vigneron-card:hover .vigneron-card__arrow {
    opacity: 1;
    transform: translateY(0);
}

.vignerons-pagination {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: -20px;
}

.vignerons-pagination__btn {
    display: flex;
    width: 70px;
    height: 52px;
    padding: 16px 24px;
    padding-top: 25px;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border-radius: 32px;
    border: 1px solid var(--color-bordeaux);
    background-color: transparent;
    color: var(--color-bordeaux);
    font-family: "Grantha Sangam MN";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.64px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
}

a.vignerons-pagination__btn:not(.vignerons-pagination__btn--active):hover {
    background-color: var(--color-bordeaux) !important;
    color: var(--color-white) !important;
    border-color: var(--color-bordeaux) !important;
}

.vignerons-pagination__btn--active {
    opacity: 0.5;
    background: #B2B2B2;
    border: none;
    color: var(--color-black);
    border-radius: 128px;
    pointer-events: none;
}

/* ============================================ */
/* VIGNERONS CTA SECTION - MOBILE */
/* ============================================ */

/* Uses cta_section component with custom overrides */
.final-cta__title {
    max-width: 1016px;
}

.final-cta {
    margin-bottom: 94px;
}

/* ============================================ */
/* VIGNERONS HERO - DESKTOP */
/* ============================================ */

@media (min-width: 1025px) {
    .vignerons-hero {
        padding: 180px 96px 120px 96px;
        min-height: 500px;
    }

    .vignerons-hero__content {
        max-width: 700px;
        gap: 32px;
    }

    .vignerons-hero__title {
        font-size: 56px;
        line-height: 64px;
    }

    .vignerons-hero__description {
        font-size: 20px;
        line-height: 26px;
    }

    .vignerons-grid {
        padding: 120px 0px;
        padding-bottom: 90px;
        margin-left: 24px;
        margin-right: 24px;
    }

    .vignerons-grid__header {
        margin-bottom: 147px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .vignerons-grid__filters {
        flex-wrap: nowrap;
        width: auto;
    }

    .vignerons-grid__items {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
        margin-bottom: 64px;
    }

    .vigneron-card {
        width: 100%;
    }

    .vignerons-pagination {
        gap: 16px;
        margin-top: 20px;
    }

    .vignerons-cta {
        padding: 120px 96px;
        gap: 48px;
    }

    .vignerons-cta__title {
        font-size: 32px;
        line-height: 40px;
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .vignerons-grid {
        margin-left: 100px;
        margin-right: 100px;
    }
}

@media (min-width: 1600px) {
    .vignerons-hero {
        padding: 180px 192px 120px 192px;
    }

    .vignerons-grid {
        padding: 120px 0px;
        padding-bottom: 90px;
        margin-left: 192px;
        margin-right: 192px;
    }

    .vignerons-cta {
        padding: 120px 192px;
    }
}

@media (min-width: 1920px) {
    .vignerons-grid {
        padding: 120px 0px;
        padding-bottom: 90px;
        min-width: 1550px;
        max-width: 1550px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================ */
/* CATALOGUE / SELECTIONS SECTION */
/* ============================================ */

/* Section: Parcourez nos sélections */
.selections {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 64px 0 0 0;
    align-items: center;
    max-width: 1550px;
    margin-left: 16px;
    margin-right: 16px;
}

.selections__catalog {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selections__catalog.with-transition {
    transition: margin-left 1000ms ease, margin-right 1000ms ease;
}

.selections__catalog__image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 24px;
    display: block;
}

/* Flipbook Styles */
.flipbook-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    overflow: hidden;
    position: relative;
}

/* Flipbook loading state */
#flipbook.flipbook--loading {
    opacity: 0;
    visibility: hidden;
}

.flipbook-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.flipbook-loader__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-beige-dark, #e0d5c7);
    border-top-color: var(--color-bordeaux);
    border-radius: 50%;
    animation: flipbook-spin 1s linear infinite;
}

@keyframes flipbook-spin {
    to {
        transform: rotate(360deg);
    }
}

#flipbook {
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(40, 0, 0, 0.15);
    max-width: 100%;
}

#flipbook.with-transition {
    transition: box-shadow 1000ms ease;
}

#flipbook.no-shadow {
    box-shadow: none;
}

#flipbook .turn-page-wrapper,
#flipbook .turn-page-wrapper > div {
    overflow: hidden !important;
}

#flipbook .turn-page {
    overflow: hidden;
    background-color: var(--color-white);
}

#flipbook .turn-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flipbook-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.flipbook-controls.with-transition {
    transition: margin-left 1000ms ease;
}

.flipbook-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 52px;
    padding: 16px 24px;
    border-radius: 32px;
    border: 1px solid var(--color-bordeaux);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flipbook-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.flipbook-btn:hover {
    background-color: var(--color-bordeaux);
}

.flipbook-btn:hover svg path {
    stroke: var(--color-white);
}

.flipbook-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-outline svg {
    margin-top: -9px;
}

.btn-outline svg path {
    transition: fill 0.3s ease;
}

.btn-outline:hover {
    background-color: transparent !important;
    color: var(--color-red) !important;
    border-color: var(--color-red) !important;
}

.btn-outline:hover svg path {
    fill: var(--color-red) !important;
}

/* Flipbook responsive - Mobile */
@media (max-width: 767px) {
    .flipbook-controls {
        gap: 16px;
    }

    .flipbook-btn {
        width: 55px;
        height: 42px;
    }
}

/* Tablet - 768px - 1023px */
@media (min-width: 768px) and (max-width: 1024px) {
    .selections {
        flex-direction: column;
        gap: 48px;
        padding: 60px 0 0 0;
        align-items: center;
    }

    .selections__catalog {
        width: fit-content;
        height: auto;
    }

    .selections__catalog__image {
        width: auto;
        max-height: 80vh;
        height: auto;
        border-radius: 24px;
    }
}

/* Desktop - 1024px+ */
@media (min-width: 1024px) {
    .selections {
        display: flex;
        flex-direction: row;
        gap: 32px;
        padding: 120px 0 0 0;
        align-items: center;
        justify-content: space-between;
        max-width: 1550px;
        margin-left: 24px;
        margin-right: 24px;
    }

    .selections__catalog {
        flex: 1 1 auto;
        max-width: calc(100% - 496px - 32px);
        height: auto;
    }

    .selections__content {
        flex: 0 0 auto;
        min-width: 496px;
        width: 496px;
    }

    .selections__catalog__image {
        width: auto;
        max-height: 80vh;
        height: auto;
        border-radius: 24px;
    }
}

/* Desktop - 1200px+ */
@media (min-width: 1200px) {
    .selections {
        margin-left: 100px;
        margin-right: 100px;
    }
}

/* Desktop - 1600px+ */
@media (min-width: 1600px) {
    .selections {
        margin-left: 192px;
        margin-right: 192px;
    }
}

/* Extra Large Desktop - 1700px+ */
@media (min-width: 1700px) {
    .selections {
        gap: 32px;
        padding: 120px 0 0 0;
    }

    .selections__catalog {
        flex: 1 1 auto;
        max-width: calc(100% - 496px - 32px);
        height: auto;
    }

    .selections__catalog__image {
        width: auto;
        max-height: 80vh;
        height: auto;
        border-radius: 24px;
    }
}

/* Extra Large Desktop - 1730px+ */
@media (min-width: 1730px) {
    .selections {
        padding: 120px 0 0 0;
    }
}

/* Extra Large Desktop - 1920px+ */
@media (min-width: 1920px) {
    .selections {
        margin-left: auto;
        margin-right: auto;
        min-width: 1550px;
        max-width: 1550px;
    }
}