/* ═══════════════════════════════════════════════
   FORMA 3D — components.css
   ═══════════════════════════════════════════════ */

/* ── Header ── */
.forma-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 64px;
}
.header-logo a,
.site-logo-text {
    font-size: 15px;
    letter-spacing: .22em;
    font-weight: 400;
    color: var(--text);
    text-transform: uppercase;
}
.header-logo img { max-height: 36px; width: auto; }

.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-list a {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--trans);
}
.nav-list a:hover { color: var(--gold); }
.nav-list .current-menu-item a { color: var(--text); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-search-btn,
.header-cart,
.header-account {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--trans);
    position: relative;
}
.header-search-btn:hover,
.header-cart:hover,
.header-account:hover { color: var(--text); }

.forma-cart-count {
    background: var(--gold);
    color: var(--bg);
    font-size: 10px;
    font-weight: 500;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -6px;
    right: -8px;
    line-height: 1;
}
.forma-cart-count.empty { display: none; }

/* Mobile toggle */
.header-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}
.header-mobile-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-muted);
    transition: all var(--trans);
}
.header-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.header-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.header-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
}
.mobile-nav-list {
    list-style: none;
    padding: 8px 0;
}
.mobile-nav-list li a {
    display: block;
    padding: 12px 24px;
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

/* ── Sections ── */
.section { padding: 72px 0; }
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 48px;
}
.section-header.centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.section-header h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.section-link {
    font-size: 12px;
    letter-spacing: .1em;
    color: var(--gold);
    text-transform: uppercase;
}

/* ── Hero Scroll 3D ── */
.hero-scroll {
    position: relative;
}
.hero-spacer {
    height: 400vh; /* 4 sections × 100vh */
}
.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--bg-surface);
    overflow: hidden;
}
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    cursor: grab;
}
#hero-canvas:active { cursor: grabbing; }

/* Texte superposé — côté gauche */
.hero-text-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 48%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 56px;
    pointer-events: none;
}
.hero-step {
    position: absolute;
    left: 56px;
    right: 0;
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
}
.hero-step.active {
    opacity: 1;
    pointer-events: auto;
}
.hero-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 300;
    line-height: 1.12;
    color: var(--text);
    margin: 12px 0 16px;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 380px;
    margin-bottom: 0;
}
.hero-cta { margin-top: 28px; pointer-events: auto; }

/* Stats (step 0) */
.hero-stats {
    position: absolute;
    bottom: 48px;
    left: 56px;
    display: flex;
    gap: 36px;
    transition: opacity .4s;
}
.hero-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
}
.hero-stat .stat-label {
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: .08em;
    margin-top: 4px;
    display: block;
}

/* Dots */
.hero-dots {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all .3s;
}
.hero-dot.active {
    background: var(--gold);
    transform: scale(1.5);
}

/* Badge Studio */
.hero-badge {
    position: absolute;
    top: 20px;
    right: 56px;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hint scroll */
.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    right: 50%;
    transform: translateX(50%);
    font-size: 10px;
    letter-spacing: .18em;
    color: rgba(255,255,255,0.2);
    transition: opacity .5s;
    animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge {
    0%,100% { transform: translateX(50%) translateY(0); }
    50%      { transform: translateX(50%) translateY(5px); }
}

/* ── Mobile hero scroll ── */
@media (max-width: 768px) {
    .hero-spacer { height: 350vh; }

    /* Canvas occupe les 58% supérieurs de la zone sticky */
    #hero-canvas {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 58vh !important; /* vh plutôt que % pour que offsetHeight soit lisible */
    }

    /* Texte dans la moitié basse — steps superposés */
    .hero-text-panel {
        position: absolute;
        width: 100%;
        left: 0;
        top: 58%;
        height: 42%;
        padding: 12px 24px 0;
        align-items: flex-start;
        overflow: hidden;
    }
    .hero-step {
        position: absolute;
        left: 24px;
        right: 24px;
        top: 12px;
    }
    .hero-title { font-size: clamp(1.3rem, 5.5vw, 1.8rem); margin: 6px 0 8px; }
    .hero-desc  { font-size: 12px; line-height: 1.5; }
    .hero-cta   { margin-top: 12px; padding: 10px 20px; font-size: 11px; }

    /* Stats sous le texte */
    .hero-stats {
        left: 24px;
        bottom: 16px;
        gap: 16px;
    }
    .hero-stats .stat-number { font-size: 1.1rem; }
    .hero-stats .stat-label  { font-size: 10px; }

    .hero-badge { right: 12px; top: 10px; font-size: 9px; padding: 3px 8px; }
    .hero-dots  { right: 10px; top: 25%; }
    .hero-scroll-hint { display: none; }
}
.hero-3d .config3d-wrap {
    width: 100% !important;
    height: 100% !important;
    min-height: 480px;
    border-radius: 0 !important;
}
.hero-3d-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: .6;
}
.hero-3d-hint {
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
    max-width: 240px;
    line-height: 1.6;
}

/* ── Products grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin: 0 48px;
}
.home-grid { }
.shop-grid { margin: 0; }

.product-card {
    background: var(--bg);
    transition: background var(--trans);
}
.product-card:hover { background: var(--bg-surface); }
.product-card-link { display: block; }

.product-thumb {
    position: relative;
    height: 300px;
    background: var(--bg-surface);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.03); }
.product-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: .4;
}

.badge-3d {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    border-radius: 2px;
    padding: 3px 8px;
    font-size: 9px;
    letter-spacing: .12em;
    color: var(--gold);
    text-transform: uppercase;
}
.badge-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(200,60,60,0.15);
    border: 1px solid rgba(200,60,60,0.35);
    border-radius: 2px;
    padding: 3px 8px;
    font-size: 9px;
    letter-spacing: .1em;
    color: #e06060;
    text-transform: uppercase;
}

.product-info {
    padding: 16px 20px 22px;
    border-top: 1px solid var(--border);
}
.product-cat {
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--text-faint);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}
.product-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-price { font-size: 13px; color: var(--gold); }
.product-price .woocommerce-Price-amount { color: var(--gold); }
.product-price del .woocommerce-Price-amount { color: var(--text-faint); font-size: 11px; }
.product-swatches { display: flex; gap: 5px; align-items: center; }
.product-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.1);
}
.product-swatch-more {
    font-size: 10px;
    color: var(--text-faint);
}

/* ── Shop toolbar ── */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.shop-count { font-size: 12px; color: var(--text-faint); }
.shop-ordering select {
    background: transparent;
    border: 1px solid var(--border-mid);
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius);
    cursor: pointer;
}

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin: 0 48px;
}
.feature-card {
    background: var(--bg);
    padding: 40px 36px;
}
.feature-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--text);
}
.feature-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Banner CTA ── */
.banner-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 80px 48px;
    text-align: center;
}
.banner-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
}
.banner-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ── PDP ── */
.pdp-wrap {
    display: grid;
    grid-template-columns: 1fr 420px;
    border-bottom: 1px solid var(--border);
    min-height: 600px;
}
.pdp-visual {
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    position: relative;
}
.pdp-3d-wrap {
    width: 100%;
    height: 100%;
    min-height: 600px;
}
.pdp-3d-wrap .config3d-wrap {
    width: 100% !important;
    height: 100% !important;
    min-height: 600px;
    border-radius: 0 !important;
    border: none !important;
}
.pdp-gallery { padding: 24px; }

.pdp-info {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.pdp-breadcrumb { margin-bottom: 20px; }
.wc-breadcrumb {
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: .06em;
}
.wc-breadcrumb a { color: var(--text-faint); }
.wc-breadcrumb a:hover { color: var(--gold); }

.pdp-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 300;
    margin-bottom: 8px;
    line-height: 1.2;
}
.pdp-price {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 16px;
}
.pdp-price .woocommerce-Price-amount { color: var(--gold); }
.pdp-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 4px;
}
.pdp-3d-notice {
    font-size: 12px;
    color: var(--text-faint);
    padding: 10px 14px;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius);
    margin-top: 8px;
    line-height: 1.5;
}
.pdp-meta { margin-top: 4px; }
.pdp-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}
.pdp-meta-row span:first-child { color: var(--text-faint); }

.pdp-description { margin-top: 16px; }
.pdp-full-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 720px;
    margin-top: 16px;
}
.pdp-related { background: var(--bg-surface); padding: 72px 0; }

/* WooCommerce add to cart overrides */
.forma-pdp .cart { display: flex; flex-direction: column; gap: 12px; }
.forma-pdp .quantity input {
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    color: var(--text);
    padding: 10px 16px;
    border-radius: var(--radius);
    font-family: var(--font);
    width: 80px;
    text-align: center;
}
.forma-pdp .single_add_to_cart_button {
    background: var(--gold) !important;
    color: var(--bg) !important;
    border: none !important;
    padding: 14px 28px !important;
    font-size: 12px !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    border-radius: var(--radius) !important;
    font-family: var(--font) !important;
    cursor: pointer !important;
    transition: background var(--trans) !important;
    width: 100%;
}
.forma-pdp .single_add_to_cart_button:hover { background: #d4b47a !important; }

/* ── Footer ── */
.forma-footer {
    border-top: 1px solid var(--border);
    margin-top: 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    padding: 60px 48px;
    border-bottom: 1px solid var(--border);
}
.footer-logo {
    font-size: 14px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 14px;
}
.footer-tagline {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 260px;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 14px;
}
.footer-social a {
    color: var(--text-faint);
    transition: color var(--trans);
}
.footer-social a:hover { color: var(--gold); }
.footer-nav-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-nav-col h4 {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 16px;
    font-weight: 400;
}
.footer-nav-col ul { list-style: none; }
.footer-nav-col ul li { margin-bottom: 10px; }
.footer-nav-col ul a {
    font-size: 12.5px;
    color: var(--text-muted);
    transition: color var(--trans);
}
.footer-nav-col ul a:hover { color: var(--gold); }
.footer-widget-title {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 16px;
    font-weight: 400;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    border-top: 1px solid rgba(255,255,255,.04);
}
.footer-copy {
    font-size: 11px;
    color: var(--text-faint);
}

/* ── WooCommerce global overrides ── */
.forma-wc-wrap { padding: 0 48px; }
.woocommerce-notices-wrapper .woocommerce-message {
    background: rgba(201,169,110,.1);
    border-color: var(--gold-border);
    color: var(--text);
    border-radius: var(--radius);
}
.woocommerce-pagination ul {
    display: flex;
    gap: 6px;
    justify-content: center;
    list-style: none;
    margin-top: 48px;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-muted);
    transition: all var(--trans);
}
.woocommerce-pagination ul li a:hover { border-color: var(--gold); color: var(--gold); }
.woocommerce-pagination ul li span.current {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
}
.no-products {
    font-size: 14px;
    color: var(--text-muted);
    padding: 48px;
    text-align: center;
}

/* ── Page & blog ── */
.page-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.page-content { font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.post-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.post-thumb img { width: 100%; height: 200px; object-fit: cover; }
.post-body { padding: 20px 24px; }
.post-date { font-size: 11px; color: var(--text-faint); display: block; margin-bottom: 8px; }
.post-body h2 { font-size: 1.1rem; margin-bottom: 10px; }
.post-body h2 a:hover { color: var(--gold); }
.post-excerpt { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 1100px) {
    .pdp-wrap { grid-template-columns: 1fr 380px; }
}

@media (max-width: 900px) {
    .header-inner { padding: 0 24px; }
    .header-nav { display: none; }
    .header-mobile-toggle { display: flex; }
    .mobile-nav.open { display: block; }
    .hero-section { grid-template-columns: 1fr; min-height: auto; }
    .hero-content { border-right: none; border-bottom: 1px solid var(--border); padding: 48px 24px; }
    .hero-3d { min-height: 420px; }
    .hero-3d .config3d-wrap { min-height: 420px; }
    .products-grid, .features-grid { grid-template-columns: repeat(2, 1fr); margin: 0 24px; }
    .section-header { padding: 0 24px; }
    .pdp-wrap { grid-template-columns: 1fr; }
    .pdp-visual { border-right: none; border-bottom: 1px solid var(--border); }
    .pdp-3d-wrap, .pdp-3d-wrap .config3d-wrap { min-height: 420px; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; }
    .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 8px; text-align: center; }
    .forma-wc-wrap { padding: 0 24px; }
    .banner-section { padding: 60px 24px; }
}

@media (max-width: 600px) {
    .products-grid, .features-grid { grid-template-columns: 1fr; margin: 0; }
    .footer-nav-cols { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 24px; }
    .pdp-info { padding: 28px 20px; }
    .posts-grid { grid-template-columns: 1fr; }
    .shop-body { padding: 0; }
    .forma-wc-wrap { padding: 0; }
    .shop-toolbar { padding: 0 16px; }
    .woocommerce-pagination ul { flex-wrap: wrap; }
}

/* ── Masquer la sidebar WC dupliquée sur les fiches produit ── */
.forma-pdp .woocommerce-product-gallery,
.forma-pdp div.product > .woocommerce-product-gallery { display: none !important; }

.forma-pdp div.product > .summary,
.forma-pdp div.product > form.cart,
.forma-pdp div.product > .woocommerce-tabs,
.forma-pdp div.product > .upsells,
.forma-pdp div.product > .related,
.forma-pdp div.product > p.price,
.forma-pdp div.product > span.price,
.forma-pdp div.product > .woocommerce-product-rating,
.forma-pdp div.product > .product_meta { display: none !important; }

/* Masquer aussi le wrapper div.product si WC le génère en dehors de notre layout */
.forma-pdp > div.product { display: contents; }
.forma-pdp > div.product > *:not(.pdp-wrap):not(.pdp-description):not(.pdp-related) {
    display: none !important;
}

/* ── PDP avec configurateur pleine largeur ── */
.pdp-breadcrumb-bar {
    padding: 12px 48px;
    border-bottom: 1px solid var(--border);
}
.wc-breadcrumb, .wc-breadcrumb a {
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: .06em;
}
.wc-breadcrumb a:hover { color: var(--gold); }

/* Le configurateur occupe toute la largeur */
.pdp-configurator-wrap {
    width: 100%;
}
.pdp-configurator-wrap .config3d-wrap {
    width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
}

/* Masquer la section WC residuelle si elle apparait quand meme */
.forma-pdp div.product > .summary.entry-summary,
.forma-pdp div.product > form.cart,
.forma-pdp div.product > .woocommerce-product-rating,
.forma-pdp div.product > .product_meta,
.forma-pdp div.product > .woocommerce-tabs,
.forma-pdp div.product > .related.products,
.forma-pdp div.product > .upsells.products,
.forma-pdp div.product > .woocommerce-product-gallery { display: none !important; }

@media (max-width: 768px) {
    .pdp-breadcrumb-bar { padding: 10px 16px; }
}

/* ── Canvas 3D sur les cartes produit ── */
.product-3d-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity .6s ease;
    display: block;
}
.product-3d-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse3d 2s ease-in-out infinite;
}
@keyframes pulse3d {
    0%,100% { opacity:.4; }
    50%      { opacity:.8; }
}

/* ══════════════════════════════════════════
   TRANSITIONS DE PAGE
   ══════════════════════════════════════════ */

/* Overlay de transition */
.forma-transition-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
}
.forma-transition-overlay.active { opacity: 1; pointer-events: all; }

/* Entrée de page */
@keyframes fadeUp {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Cartes produit — pas d'opacity:0 pour eviter le blocage */
.products-grid .product-card:nth-child(1) { animation: fadeUp .4s ease .05s both; }
.products-grid .product-card:nth-child(2) { animation: fadeUp .4s ease .12s both; }
.products-grid .product-card:nth-child(3) { animation: fadeUp .4s ease .19s both; }
.products-grid .product-card:nth-child(4) { animation: fadeUp .4s ease .26s both; }
.products-grid .product-card:nth-child(5) { animation: fadeUp .4s ease .33s both; }
.products-grid .product-card:nth-child(6) { animation: fadeUp .4s ease .40s both; }

/* Features */
.features-grid .feature-card:nth-child(1) { animation: fadeUp .4s ease .10s both; }
.features-grid .feature-card:nth-child(2) { animation: fadeUp .4s ease .20s both; }
.features-grid .feature-card:nth-child(3) { animation: fadeUp .4s ease .30s both; }

/* ══════════════════════════════════════════
   PANIER
   ══════════════════════════════════════════ */
.cart-empty { text-align: center; padding: 80px 0; }
.cart-empty h1 { margin: 12px 0 16px; }
.cart-empty p  { color: var(--text-muted); font-size: 14px; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: flex-start;
    margin-top: 32px;
}
.cart-items { display: flex; flex-direction: column; gap: 0; }
.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.cart-item-img {
    width: 72px;
    height: 72px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-img-placeholder { width: 100%; height: 100%; background: var(--bg-card); }
.cart-color-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.4);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.cart-item-meta { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-size: 13px; color: var(--gold); margin-top: 6px; }
.cart-item-total { font-size: 14px; color: var(--text); min-width: 80px; text-align: right; }
.cart-remove {
    color: var(--text-faint);
    font-size: 18px;
    line-height: 1;
    transition: color var(--trans);
    text-decoration: none;
    padding: 4px;
}
.cart-remove:hover { color: #e06060; }

.cart-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius);
    overflow: hidden;
}
.cart-qty-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-surface);
    border: none;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--trans);
}
.cart-qty-btn:hover { background: var(--bg-card); }
.cart-qty-input {
    width: 40px;
    height: 32px;
    background: var(--bg-surface);
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    text-align: center;
    font-family: var(--font);
    -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.cart-actions { display: flex; align-items: center; gap: 12px; padding: 20px 0; flex-wrap: wrap; }
.cart-coupon { display: flex; gap: 8px; }
.cart-coupon-input {
    background: var(--bg-surface);
    border: 1px solid var(--border-mid);
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 12px;
    width: 160px;
}
.cart-update { padding: 9px 18px; font-size: 12px; }

.cart-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
    position: sticky;
    top: 80px;
}
.cart-totals { margin: 20px 0; }
.cart-totals table { width: 100%; border-collapse: collapse; }
.cart-totals th, .cart-totals td { padding: 8px 0; font-size: 13px; }
.cart-totals th { color: var(--text-muted); font-weight: 400; text-align: left; }
.cart-totals td { text-align: right; color: var(--text); }
.cart-totals .order-total th,
.cart-totals .order-total td { font-size: 15px; color: var(--text); padding-top: 14px; border-top: 1px solid var(--border); }
.cart-totals .order-total td { color: var(--gold); font-weight: 500; }
.cart-checkout { margin-top: 16px; }
.cart-continue {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 14px;
    transition: color var(--trans);
}
.cart-continue:hover { color: var(--gold); }

/* ══════════════════════════════════════════
   CHECKOUT
   ══════════════════════════════════════════ */
.forma-checkout { max-width: 1100px; }
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    margin-top: 32px;
    align-items: flex-start;
}
.checkout-section { margin-bottom: 32px; }
.checkout-section h3 {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
/* Inputs WC dans le checkout */
.forma-checkout .woocommerce-input-wrapper input,
.forma-checkout .woocommerce-input-wrapper select,
.forma-checkout .woocommerce-input-wrapper textarea {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-mid);
    color: var(--text);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 13px;
    margin-top: 4px;
    transition: border-color var(--trans);
}
.forma-checkout .woocommerce-input-wrapper input:focus,
.forma-checkout .woocommerce-input-wrapper select:focus {
    outline: none;
    border-color: var(--gold-border);
}
.forma-checkout .form-row { margin-bottom: 14px; }
.forma-checkout .form-row label { font-size: 12px; color: var(--text-muted); }
.forma-checkout .required { color: var(--gold); }

.checkout-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
    position: sticky;
    top: 80px;
}
.forma-checkout #order_review { margin-top: 16px; }
.forma-checkout table.shop_table { width: 100%; border-collapse: collapse; }
.forma-checkout table.shop_table th,
.forma-checkout table.shop_table td { padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.forma-checkout table.shop_table th { color: var(--text-muted); font-weight: 400; }
.forma-checkout table.shop_table .order-total td { color: var(--gold); font-size: 15px; font-weight: 500; }
.forma-checkout #payment { margin-top: 20px; }
.forma-checkout #payment .payment_methods { list-style: none; margin-bottom: 16px; }
.forma-checkout #payment .payment_methods li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.forma-checkout #payment label { cursor: pointer; color: var(--text); }
.forma-checkout #place_order {
    width: 100%;
    background: var(--gold);
    color: var(--bg);
    border: none;
    padding: 15px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font);
    transition: background var(--trans);
}
.forma-checkout #place_order:hover { background: #d4b47a; }

/* ══════════════════════════════════════════
   MON COMPTE
   ══════════════════════════════════════════ */
.forma-account .account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    margin-top: 32px;
    align-items: flex-start;
}
.account-nav {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 0;
    position: sticky;
    top: 80px;
}
.account-nav .eyebrow { padding: 0 20px; margin-bottom: 16px; display: block; }
.account-nav-item {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-muted);
    transition: all var(--trans);
    border-left: 2px solid transparent;
}
.account-nav-item:hover { color: var(--text); border-left-color: var(--border-mid); }
.account-nav-item.active { color: var(--gold); border-left-color: var(--gold); }
.account-content { min-height: 400px; }
.account-content h2 { font-size: 1.2rem; margin-bottom: 20px; }
.account-content table { width: 100%; border-collapse: collapse; font-size: 13px; }
.account-content th { text-align: left; padding: 8px 12px; color: var(--text-muted); font-weight: 400; border-bottom: 1px solid var(--border); }
.account-content td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.account-content .button { background: var(--gold); color: var(--bg); padding: 6px 14px; border-radius: var(--radius); font-size: 12px; }

/* Mobile cart/checkout */
@media (max-width: 768px) {
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
    .cart-summary, .checkout-summary { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; }
}
