/* Notre Cave 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/footer-cxZLcZV.css";

/* ============================================ */
/* MOBILE STYLES */
/* ============================================ */

section:not(.hero-long) {
    max-width: 1550px;
    margin-left: 16px;
    margin-right: 16px;
}


/* Section 1: Créer votre cave */
.create-cave {
    display: flex;
    flex-direction: row;
    gap: 64px;
    padding: 29px 0;
    background-color: var(--color-white);
    align-items: center;
}

.create-cave .service__description {
    font-family: 'Lora', serif;
}

.create-cave__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    justify-content: center;
}

.create-cave__steps .service {
    flex: 0 1 calc(50% - 12px);
    max-width: 400px;
    min-width: 280px;
}

.create-cave__steps .service__icon {
    display: flex;
    width: 42px;
    height: 42px;
    padding: 49px 42px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.create-cave__steps .service__icon img {
    width: 42px;
    height: 42px;
}

.text-content {
    height: fit-content;
}

.service__wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* Section 2: Parcourez nos sélections */
.selections {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 64px 0;
    background-color: var(--color-beige);
    align-items: center;
}

.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;
}

/* Section 3: Events */
.events {
    padding: 91px 0 64px 0;
    background-color: var(--color-white);
}

.events__header {
    margin-bottom: 52px;
}

.events__title {
    font-family: 'Lora', serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 38px;
    color: var(--color-bordeaux);
    margin-bottom: 16px;
}

.events__title-wrapper {
    margin-bottom: 7px;
}

.events__link {
    font-size: 16px !important;
    line-height: 22px;
    color: var(--color-bordeaux);
    text-decoration: underline;
}

.events__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.events__grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.event {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 201px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.event__image {
    width: 201px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.event__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event__text {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.event__content .btn {
    height: 28px;
    text-wrap: nowrap;
    color: var(--color-bordeaux);
    font-family: "Grantha Sangam MN";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.48px;
    text-transform: uppercase;
}

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

.event__title {
    font-family: 'Lora', serif;
    font-size: 19px;
    line-height: 26px;
    font-weight: 600;
    color: var(--color-bordeaux);
}

/* Section 4: Vignerons associés */
.vignerons {
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding: 74px 0;
    background-color: var(--color-beige);
    align-items: center;
    padding-bottom: 34px;
}

.vignerons__placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 797 / 827;
    flex-shrink: 0;
}

.vignerons__group {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.vignerons__photo {
    position: absolute;
    border-radius: 24px;
    background: lightgray 50% / cover no-repeat;
    object-fit: cover;
}

.vignerons__photo--1 {
    width: 68%;
    height: 82%;
    top: 18%;
    left: 32%;
    z-index: 1;
}

.vignerons__photo--2 {
    width: 44.5%;
    height: 55.5%;
    bottom: 44.5%;
    right: 55.5%;
    flex-shrink: 0;
    z-index: 2;
}

/* Section 4: CTA finale */
.final-cta {
    padding: 64px 0 119px 0;
    background-color: var(--color-white);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

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

@media (max-width: 1023px) {
    .create-cave {
        flex-direction: column;
    }

    .create-cave__steps {
        gap: 28px;
    }

    .create-cave__steps .service {
        max-width: none;
    }

    .service {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 18px;
    }

    .service__wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 28px;
        align-items: baseline;
        justify-content: center;
    }

    .service__icon {
        padding: 0px !important;
    }

    .service__content {
        text-align: left;
        gap: 10px;
    }
}

@media (max-width: 570px) {
    .create-cave {
        flex-direction: column;
    }

    .create-cave__steps {
        align-items: flex-start;
        flex-direction: column;
    }

    .create-cave__steps .service {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        max-width: 100%;
        width: 100%;
        flex: none;
    }

    .create-cave__steps .service__icon {
        flex-shrink: 0;
    }

    .create-cave__steps .service__content {
        flex: 1;
        text-align: left;
    }
}

@media (max-width: 394px) {
    .service {
        align-items: flex-start !important;
    }

    .create-cave__steps .service__icon img {
        margin-top: 8px;
    }
}

/* 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) {
    .create-cave {
        padding: 60px 0;
    }

    .selections {
        flex-direction: column;
        gap: 48px;
        padding: 60px 0;
        align-items: center;
    }

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

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

    .vignerons {
        padding: 60px 0;
    }
}

/* Events responsive - 680px+ */
@media (min-width: 680px) {
    .events__grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 24px;
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 0;
        margin: 0;
    }

    .event {
        width: 100%;
        min-width: 200px;
    }

    .event__image {
        width: 100%;
        height: auto;
        aspect-ratio: 201 / 120;
    }
}

/* Desktop - 1024px+ */
@media (min-width: 1024px) {

    section:not(.hero-long) {
        margin-left: 24px;
        margin-right: 24px;
    }

    .text-content {
        max-width: 396px;
    }

    .create-cave {
        display: flex;
        flex-direction: row;
        gap: 0px;
    }

    .create-cave__steps .service {
        flex: 0 0 auto;
        max-width: 208px;
        min-width: 200px;
    }

    .service__wrapper {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
        gap: max(30px, 0vw);
    }

    .create-cave__steps .service__icon {
        display: flex;
        width: 62px;
        height: 62px;
        padding: 49px 42px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .create-cave__steps .service__icon img {
        width: 62px;
        height: 62px;
    }

    .selections {
        display: flex;
        flex-direction: row;
        gap: 32px;
        padding: 120px 0;
        align-items: center;
        justify-content: space-between;
        max-width: 100%;
        margin: 0 0;
    }

    .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;
    }

    .events__header {
        margin-bottom: 64px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .vignerons {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 40px;
        padding: 120px 0;
        background-color: var(--color-beige);
        justify-content: space-between;
        padding-bottom: 95px;
    }

    .vignerons__placeholder {
        position: relative;
        width: clamp(400px, 40vw, 797px);
        max-width: 797px;
        aspect-ratio: 797 / 827;
        flex-shrink: 1;
    }

}

/* Desktop - 1200px+ */
@media (min-width: 1200px) {

    section:not(.hero-long) {
        margin-left: 100px;
        margin-right: 100px;
    }

    .text-content {
        max-width: 496px;
        min-width: 310px;
    }

    .create-cave {
        display: flex;
        flex-direction: row;
        gap: 64px;
        padding: 80px 0;
    }

    .create-cave__steps {
        gap: 32px;
        justify-content: flex-end;
    }

    .create-cave__steps .service {
        flex: 0 0 auto;
        max-width: 208px;
        min-width: 200px;
    }

    .events {
        padding: 120px 0;
    }

    .events__header {
        margin-bottom: 64px;
    }

    .events__grid {
        gap: 32px;
    }

    .vignerons__group {
        width: 100%;
        height: 100%;
    }

    .vignerons__photo--1 {
        width: 68%;
        height: 82%;
        top: 18%;
        left: 32%;
    }

    .vignerons__photo--2 {
        width: 44.5%;
        height: 55.5%;
        bottom: 44.5%;
        right: 55.5%;
    }
}

@media (min-width: 1024px) and (max-width: 1400px) {
    .create-cave__steps {
        gap: 14px;
    }

    .service {
        gap: 0px;
    }
}

@media (min-width: 1500px) {
    .create-cave__steps {
        flex-wrap: nowrap;
    }

    .create-cave {
        display: flex;
        flex-direction: row;
        gap: 64px;
        padding: 120px 0;
    }
}

@media (min-width: 1600px) {

    section:not(.hero-long) {
        margin-left: 192px;
        margin-right: 192px;
    }
}

/* Extra Large Desktop - 1700px+ */
@media (min-width: 1700px) {
    .selections {
        gap: 32px;
        padding: 120px 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) {
    .create-cave {
        padding: 120px 0;
    }

    .selections {
        padding: 120px 0;
    }

    .vignerons {
        padding: 120px 0;
    }

    .final-cta {
        padding: 120px 0;
    }
}

@media (min-width: 1920px) {

    section:not(.hero-long) {
        margin-left: auto;
        margin-right: auto;
        min-width: 1550px;
        max-width: 1550px;
    }
}