:root {
    --base-accent: #A04E33;
    --base-cream: #FAF7F2;
    --base-font: 'Open Sauce Sans', var(--font-family-base), sans-serif;
    --base-title: #3B2416;
}

div.global-theme {
    background-color: #F5F6F2 !important;
}

header.global-theme .extra-nav, header.global-theme .header-nav {
    background: #F5F6F2 !important;
}

ul .sub-menu {
    background-color: #F5F6F2 !important;
}

footer.global-theme {
    background-color: #F5F6F2 !important;
}

/* ---------- Header ---------- */

.site-header .nav > li > a,
.site-header .sub-menu a,
.site-header .header-right .nav-link {
    font-family: var(--base-font);
}

@media only screen and (min-width: 992px) {
    .main-bar > .container-fluid > .logo-header {
        border-right: 1px solid var(--base-title);
        padding-right: 1.5rem;
    }
}

.has-transparent-header .sticky-header:not(.is-fixed) .main-bar,
.has-transparent-header .sticky-header:not(.is-fixed) div.global-theme,
.has-transparent-header .sticky-header:not(.is-fixed) .extra-nav,
.has-transparent-header .mobile-actions-bar {
    background: transparent !important;
    border-bottom: 0;
}

.has-transparent-header .sticky-header:not(.is-fixed) .main-bar {
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, .3) !important;
}

@media only screen and (min-width: 992px) {
    .has-transparent-header .sticky-header:not(.is-fixed) .header-nav {
        background: transparent !important;
    }
}

/* ---------- Hero vidéo ---------- */

.has-transparent-header #hero-video-section.hero-video {
    aspect-ratio: auto;
    background: #D9D4CB;
    container-type: size;
    height: 80svh;
    margin-top: 0;
}

.has-transparent-header .hero-video picture {
    inset: 0;
    position: absolute;
}

.has-transparent-header .hero-video .hero-video-player {
    height: max(100cqh, 56.25cqw);
    inset: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max(100cqw, 177.78cqh);
}

@media only screen and (min-width: 577px) {
    .has-transparent-header #hero-video-section.hero-video {
        aspect-ratio: 16 / 9;
        height: auto;
        margin-top: 0;
        max-height: 100svh;
    }
}

/* ---------- Sections de la home ---------- */

.base-home {
    background: #FFFFFF;
    color: var(--base-title);
    font-family: var(--base-font);
}

.base-home-section {
    padding: 2rem 0 1rem;
}

.base-home-section-head {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.base-home-title {
    color: var(--base-title);
    min-width: 0;
    font-family: var(--base-font);
    font-size: 1.15rem;
    font-weight: 400;
    margin: 0;
}

.base-home-title img {
    display: block;
    height: calc(.95rem * var(--title-scale, 1));
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    width: auto;
}

.base-home-section-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: .5rem;
}

.base-home-see-all {
    color: var(--base-accent);
    font-size: .95rem;
    margin-right: .5rem;
    white-space: nowrap;
}

.base-home-see-all:hover {
    color: var(--base-title);
}

.base-home-slider-arrow {
    align-items: center;
    background: transparent;
    border: 1px solid var(--base-accent);
    border-radius: 50%;
    color: var(--base-accent);
    display: none;
    height: 2.25rem;
    justify-content: center;
    padding: 0;
    transition: background-color .2s ease, color .2s ease;
    width: 2.25rem;
}

.base-home-slider-arrow:hover:not(:disabled) {
    background: var(--base-accent);
    color: #FFFFFF;
}

.base-home-slider-arrow:disabled {
    cursor: default;
    opacity: .3;
}

.base-home-section--locked .base-home-slider-arrow {
    display: none;
}

.base-home-products {
    margin: 0;
}

.base-home-product {
    color: var(--base-title);
    display: block;
    text-align: left;
}

.base-home-product img {
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    display: block;
    margin-bottom: .75rem;
    object-fit: cover;
    transition: opacity .3s ease;
    width: 100%;
}

.base-home-product:hover {
    color: var(--base-title);
}

.base-home-product:hover img {
    opacity: .85;
}

.base-home-product-collection {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.3;
    text-transform: uppercase;
}

.base-home-product-name {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #8C8580;
    display: -webkit-box;
    font-size: .95rem;
    line-clamp: 2;
    line-height: 1.35;
    margin-bottom: .25rem;
    overflow: hidden;
}

.base-home-product-price {
    color: var(--base-accent);
    display: block;
    font-size: .95rem;
}

.base-home-product-price del {
    color: #8C8580;
    margin-right: .35rem;
}

@media only screen and (min-width: 992px) {
    .base-home-section {
        padding: 3rem 0 1.5rem;
    }

    .base-home-title {
        font-size: 1.35rem;
    }

    .base-home-title img {
        height: calc(1.3rem * var(--title-scale, 1));
    }

    .base-home-product-collection {
        font-size: 1.1rem;
    }

    .base-home-product-name {
        font-size: 1rem;
    }
}

/* ---------- Réassurance ---------- */

.base-home-reassurance {
    padding: 2rem 0;
}

.base-home-reassurance-list {
    border-bottom: 1px solid var(--base-accent);
    border-top: 1px solid var(--base-accent);
    display: grid;
    gap: 2rem;
    margin: 0;
    padding: 2rem 0;
    text-align: center;
}

.base-home-reassurance-list img {
    display: block;
    height: 4rem;
    margin: 0 auto 1.25rem;
    object-fit: contain;
    width: auto;
}

.base-home-reassurance-list h3 {
    color: var(--base-title);
    font-family: var(--base-font);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: .75rem;
}

.base-home-reassurance-list p {
    color: var(--base-title);
    font-size: .9rem;
    margin: 0 auto;
    max-width: 18rem;
}

.base-home-reassurance-list a {
    color: inherit;
    text-decoration: underline;
}

@media only screen and (min-width: 768px) {
    .base-home-slider-arrow {
        display: inline-flex;
    }
}

@media only screen and (min-width: 768px) {
    .base-home-reassurance-list {
        grid-template-columns: repeat(3, 1fr);
        padding: 2.5rem 2rem;
    }
}

/* ---------- Nos produits chez vous ---------- */

.base-home-instagram-share {
    align-items: center;
    color: #8C7F75;
    display: inline-flex;
    gap: .5rem;
    margin: 1rem 0 1.5rem;
}

.base-home-instagram-share span {
    background: var(--base-cream);
    border-radius: 2rem;
    font-size: .9rem;
    padding: .4rem 1.25rem;
}

.base-home-instagram-share:hover {
    color: var(--base-title);
}

.base-home-instagram-grid {
    display: grid;
    gap: 1rem;
    grid-auto-columns: 70%;
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x mandatory;
}

.base-home-instagram-item {
    aspect-ratio: 9 / 16;
    background: var(--base-cream);
    container-type: size;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
}

.base-home-instagram-item img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.base-home-instagram-item iframe {
    border: 0;
    height: max(100cqh, 177.78cqw);
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .4s ease;
    width: max(100cqw, 56.25cqh);
}

.base-home-instagram-item iframe.is-playing {
    opacity: 1;
}

.base-home-instagram-sound {
    align-items: center;
    background: rgba(0, 0, 0, .45);
    border: 0;
    border-radius: 50%;
    bottom: 10px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    font-size: 1.1rem;
    height: 40px;
    justify-content: center;
    opacity: 0;
    padding: 0;
    position: absolute;
    right: 10px;
    transition: opacity .4s ease, background .2s ease;
    visibility: hidden;
    width: 40px;
    z-index: 2;
}

.base-home-instagram-sound.is-visible {
    opacity: 1;
    visibility: visible;
}

.base-home-instagram-sound:hover,
.base-home-instagram-sound:focus-visible {
    background: rgba(0, 0, 0, .7);
}

@media only screen and (min-width: 768px) {
    .base-home-instagram-grid {
        gap: 2rem;
        grid-auto-flow: row;
        grid-template-columns: 1fr 1.2fr 1fr;
        overflow: visible;
    }

    .base-home-instagram-item:nth-child(2) {
        aspect-ratio: auto;
        container-type: normal;
    }
}

/* ---------- Pied de page ---------- */

.site-footer.global-theme {
    background-color: var(--base-cream) !important;
    border-radius: 2rem 2rem 0 0;
    font-family: var(--base-font);
    margin-top: 2rem;
    overflow: hidden;
}

.site-footer .footer-title {
    color: var(--base-title);
    font-family: var(--base-font);
    font-weight: 400;
}

.site-footer .accordion-item,
.site-footer .accordion-button {
    background-color: transparent;
}
