
/* =========================================================
🔥 BASE / VARIABLES
========================================================= */
:root {
    --header-height: 90px;
}

/* =========================================================
🔥 TYPOGRAPHIE (FONTS CUSTOM)
========================================================= */
@font-face {
    font-family: 'TwCenMTStdSemiBold';
    src: url('assets/fonts/TwCenMTStdSemiBold.otf') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Didot-Title';
    src: url('assets/fonts/Didot-Title.otf') format('woff2');
    font-display: swap;
}

/* =========================================================
🔥 GLOBAL LAYOUT (HEADER + BODY OFFSET)
========================================================= */

/* Header fixe */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

/* Compensation header fixe */
body {
    margin: 0;
    padding-top: var(--header-height);
}

/* =========================================================
🔥 WOOCOMMERCE GLOBAL RESET
========================================================= */

.woocommerce-products-header {
    display: none !important;
}

.woocommerce-page .site-main {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* =========================================================
🔥 HERO COLLECTION
========================================================= */

.collection-hero {
    position: relative;
    width: 100%;
    margin-left: calc(-50vw + 50%);
    height: clamp(250px, 45vh, 600px);
    overflow: hidden;
}

/* Background image hero */
.collection-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Overlay hero */
.collection-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Content hero */
.collection-hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    transform: translateY(5px);
}

/* Hero centré si image */
.collection-hero.has-image .collection-hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
}

/* Hero title */
.collection-hero__content h1 {
    font-family: 'TwCenMTStdSemiBold', sans-serif;
    font-size: clamp(26px, 5vw, 42px);
    letter-spacing: 2px;
    color: #4B4B47;
    margin: 0;
}

/* Hero subtitle */
.collection-hero__content p {
    font-family: 'Didot-Title', serif;
    font-size: clamp(16px, 2.2vw, 24px);
    color: #4B4B47;
    margin: 0;
}

/* =========================================================
🔥 HERO SANS IMAGE (MODE SIMPLE PAGE)
========================================================= */

.collection-hero.no-image {
    height: auto;
    padding: 40px 20px 0;
}

.collection-hero.no-image .collection-hero__content {
    position: relative;
    transform: none;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.collection-hero.no-image h1 {
    font-size: 28px;
    letter-spacing: 1px;
}

/* petit ajustement spacing */
.collection-hero.no-image + .woocommerce {
    margin-top: 20px;
}

/* =========================================================
🔥 GRID PRODUITS WOOCOMMERCE
========================================================= */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    padding: 0 80px;
    margin: 80px 0;
}

/* reset item produit */
.woocommerce ul.products li.product {
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

/* =========================================================
🔥 LAYOUT PRODUITS (PHP LOGIC)
========================================================= */

/* petit produit */
.product-small {
    grid-column: span 2;
}

/* grand produit */
.product-big {
    grid-column: span 4;
    grid-row: span 2;
}

/* image produit */
.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* =========================================================
🔥 TYPO PRODUITS
========================================================= */

.woocommerce-loop-product__title {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 10px 0 0;
}

.price {
    font-size: 13px;
    color: #666;
}

/* =========================================================
🔥 UI CLEAN (BOUTONS + WISHLIST)
========================================================= */

.woocommerce ul.products li.product .button,
.tinv-wraper {
    display: none !important;
}

/* trigger infinite scroll */
.load-trigger {
    width: 100%;
    height: 1px;
    margin: 0;
}

/* =========================================================
🔥 RESPONSIVE
========================================================= */

@media (max-width: 1024px) {

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }

    .woocommerce ul.products li.product {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

@media (max-width: 640px) {

    .woocommerce ul.products {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

/* =========================================================
🔥 STICKY FOOTER (SAFE VERSION)
========================================================= */

html, body {
    height: 100%;
    margin: 0;
}

/* wrapper WP */
#page,
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* zone contenu */
.site-main {
    flex: 1;
}

/* footer toujours en bas */
footer {
    margin-top: auto;
    flex-shrink: 0;
}