/*
Theme Name: LJ3D FINAL
Theme URI: https://lj3d.fr
Author: Lorenzo
Author URI: https://lj3d.fr
Description: Thème LJ3D 
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lj3d
Tags: custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, threaded-comments, translation-ready, light, futuristic, 3d
*/

/* ===== VARIABLES ===== */
:root {
    --lj3d-bg:            #ffffff;
    --lj3d-bg-secondary:  #f4f4f8;
    --lj3d-bg-card:       #ffffff;
    --lj3d-neon-blue:     #009bd1;
    --lj3d-neon-white:    #111118;
    --lj3d-neon-red:      #e5224d;
    --lj3d-neon-blue-dim: rgba(0, 155, 209, 0.1);
    --lj3d-neon-red-dim:  rgba(229, 34, 77, 0.1);
    --lj3d-font-primary:   'Rajdhani', 'Orbitron', sans-serif;
    --lj3d-font-secondary: 'Inter', 'Segoe UI', sans-serif;
    --lj3d-font-mono:      'JetBrains Mono', 'Courier New', monospace;
    --lj3d-space-xs:  0.5rem;
    --lj3d-space-sm:  1rem;
    --lj3d-space-md:  2rem;
    --lj3d-space-lg:  4rem;
    --lj3d-space-xl:  6rem;
    --lj3d-space-2xl: 10rem;
    --lj3d-border-radius: 8px;
    --lj3d-border:      1px solid rgba(0, 0, 0, 0.1);
    --lj3d-transition:  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --lj3d-glow-blue:   0 0 20px rgba(0, 155, 209, 0.35), 0 0 60px rgba(0, 155, 209, 0.12);
    --lj3d-glow-red:    0 0 20px rgba(229, 34, 77, 0.35),  0 0 60px rgba(229, 34, 77, 0.12);
    --lj3d-glow-white:  0 0 10px rgba(0, 0, 0, 0.1);
    --lj3d-z-header:   100;
    --lj3d-z-overlay:  200;
    --lj3d-z-modal:    300;
    --lj3d-z-progress: 9999;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    background-color: var(--lj3d-bg);
    color: var(--lj3d-neon-white);
    font-family: var(--lj3d-font-secondary);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body::before {
    content: '';
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 155, 209, 0.035) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(229, 34, 77, 0.025) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--lj3d-font-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: var(--lj3d-neon-white);
    text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p  { margin-bottom: var(--lj3d-space-sm); color: var(--lj3d-neon-white); }
a  { color: var(--lj3d-neon-blue); text-decoration: none; transition: color var(--lj3d-transition), text-shadow var(--lj3d-transition); }
a:hover { color: var(--lj3d-neon-white); text-shadow: var(--lj3d-glow-white); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== LAYOUT ===== */
.lj3d-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--lj3d-space-md); }
.lj3d-section { position: relative; padding: var(--lj3d-space-xl) 0; z-index: 1; }
.lj3d-section--alt { background-color: var(--lj3d-bg-secondary); }

/* ===== SCANLINES ===== */
.lj3d-scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.015) 2px, rgba(0,0,0,0.015) 4px);
    pointer-events: none; z-index: 1;
}

/* ===== HEADER ===== */
#lj3d-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: var(--lj3d-z-header);
    padding: 1rem 0;
    transition: background var(--lj3d-transition), padding var(--lj3d-transition), box-shadow var(--lj3d-transition);
}
#lj3d-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.6rem 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.08), 0 1px 0 rgba(0,155,209,0.15);
}
.lj3d-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--lj3d-space-md); }

/* ===== LOGO ===== */
.lj3d-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.lj3d-logo__img { height: 48px; width: auto; transition: filter var(--lj3d-transition), transform var(--lj3d-transition); }
.lj3d-logo__img:hover { filter: drop-shadow(0 0 10px var(--lj3d-neon-blue)); transform: scale(1.05); }
.lj3d-logo__emblem { height: 36px; width: auto; }
.lj3d-logo__text {
    font-family: var(--lj3d-font-primary);
    font-size: 1.6rem; font-weight: 900; letter-spacing: 0.15em;
    color: var(--lj3d-neon-white);
    text-decoration: underline; text-decoration-thickness: 2px;
    text-decoration-color: var(--lj3d-neon-white); text-underline-offset: 4px;
    text-transform: uppercase;
}
.lj3d-logo__text span.blue { color: var(--lj3d-neon-blue); }
.lj3d-logo__text span.red, .lj3d-logo__text-red { color: var(--lj3d-neon-red); }

/* ===== NAVIGATION ===== */
.lj3d-nav__list { display: flex; align-items: center; gap: var(--lj3d-space-md); }
.lj3d-nav__list a {
    font-family: var(--lj3d-font-primary); font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(17, 17, 24, 0.65);
    padding: 0.4rem 0; position: relative;
    transition: color var(--lj3d-transition);
}
.lj3d-nav__list a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--lj3d-neon-blue); box-shadow: var(--lj3d-glow-blue);
    transition: width var(--lj3d-transition);
}
.lj3d-nav__list a:hover,
.lj3d-nav__list .current-menu-item > a { color: var(--lj3d-neon-blue); }
.lj3d-nav__list a:hover::after,
.lj3d-nav__list .current-menu-item > a::after { width: 100%; }

/* ===== BURGER ===== */
.lj3d-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem; background: none; border: none; }
.lj3d-burger span { display: block; width: 28px; height: 2px; background: var(--lj3d-neon-blue); transition: transform var(--lj3d-transition), opacity var(--lj3d-transition); box-shadow: 0 0 8px var(--lj3d-neon-blue); }

/* ===== PRINT PROGRESS BAR ===== */
#lj3d-print-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 3px;
    z-index: var(--lj3d-z-progress);
    background: linear-gradient(90deg, var(--lj3d-neon-blue) 0%, var(--lj3d-neon-white) 50%, var(--lj3d-neon-red) 100%);
    box-shadow: 0 0 12px var(--lj3d-neon-blue), 0 0 30px rgba(0,155,209,0.25);
    transition: width 0.3s ease;
}
#lj3d-print-progress::after {
    content: ''; position: absolute; right: 0; top: -2px; width: 8px; height: 7px;
    background: var(--lj3d-neon-white); border-radius: 50%;
    box-shadow: 0 0 15px rgba(17,17,24,0.3), 0 0 30px rgba(0,155,209,0.3);
}
#lj3d-print-label {
    position: fixed; top: 8px; right: 12px;
    font-family: var(--lj3d-font-mono); font-size: 0.65rem;
    color: var(--lj3d-neon-blue); letter-spacing: 0.1em;
    z-index: var(--lj3d-z-progress); opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 8px rgba(0,155,209,0.4);
}
#lj3d-print-label.visible { opacity: 1; }

/* ===== HERO ===== */
#lj3d-hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 100px; }
.lj3d-hero__bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(0,155,209,0.09) 0%, transparent 55%),
                radial-gradient(ellipse at 75% 40%, rgba(229,34,77,0.06) 0%, transparent 50%);
}
.lj3d-hero__grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,155,209,0.045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,155,209,0.045) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(1000px) rotateX(30deg) scale(1.5);
    transform-origin: center bottom; opacity: 0.7;
}
.lj3d-hero__content { position: relative; z-index: 2; max-width: 700px; }
.lj3d-hero__badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(0,155,209,0.3); border-radius: 50px;
    font-family: var(--lj3d-font-mono); font-size: 0.75rem; letter-spacing: 0.15em;
    color: var(--lj3d-neon-blue); text-transform: uppercase;
    margin-bottom: var(--lj3d-space-md);
    background: rgba(0,155,209,0.04); backdrop-filter: blur(10px);
}
.lj3d-hero__badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--lj3d-neon-blue); box-shadow: 0 0 8px var(--lj3d-neon-blue);
    animation: pulse-dot 1.5s infinite;
}
.lj3d-hero__title { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 900; line-height: 1.05; margin-bottom: var(--lj3d-space-md); letter-spacing: 0.03em; }
.lj3d-hero__title .neon-blue { color: var(--lj3d-neon-blue); text-shadow: var(--lj3d-glow-blue); }
.lj3d-hero__title .neon-red  { color: var(--lj3d-neon-red);  text-shadow: var(--lj3d-glow-red); }
.lj3d-hero__subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(17,17,24,0.65); margin-bottom: var(--lj3d-space-lg); font-weight: 300; max-width: 560px; line-height: 1.8; }

/* ===== BOUTONS ===== */
.lj3d-btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 2rem;
    font-family: var(--lj3d-font-primary); font-size: 0.9rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    border-radius: var(--lj3d-border-radius); cursor: pointer;
    transition: all var(--lj3d-transition); text-decoration: none;
    position: relative; overflow: hidden;
}
.lj3d-btn--primary { background: var(--lj3d-neon-blue); color: #fff; border: none; box-shadow: 0 0 20px rgba(0,155,209,0.3); }
.lj3d-btn--primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
    transform: translateX(-100%); transition: transform 0.4s ease;
}
.lj3d-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(0,155,209,0.45), 0 10px 30px rgba(0,0,0,0.12); color: #fff; }
.lj3d-btn--primary:hover::before { transform: translateX(100%); }
.lj3d-btn--outline { background: transparent; color: var(--lj3d-neon-red); border: 1px solid var(--lj3d-neon-red); box-shadow: 0 0 10px rgba(229,34,77,0.12); }
.lj3d-btn--outline:hover { background: var(--lj3d-neon-red); color: #fff; transform: translateY(-2px); box-shadow: 0 0 35px rgba(229,34,77,0.35); }
.lj3d-hero__cta { display: flex; gap: var(--lj3d-space-sm); flex-wrap: wrap; align-items: center; }
.lj3d-btn .arrow-icon { transition: transform var(--lj3d-transition); }
.lj3d-btn:hover .arrow-icon { transform: translateX(4px); }

/* ===== SECTION HEADER ===== */
.lj3d-section__header { text-align: center; margin-bottom: var(--lj3d-space-lg); }
.lj3d-section__tag { display: inline-block; font-family: var(--lj3d-font-mono); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--lj3d-neon-blue); margin-bottom: 0.75rem; opacity: 0.8; }
.lj3d-section__title { position: relative; display: inline-block; margin-bottom: var(--lj3d-space-sm); }
.lj3d-section__title::after {
    content: ''; display: block; width: 60%; height: 2px; margin: 0.6rem auto 0;
    background: linear-gradient(90deg, var(--lj3d-neon-blue), var(--lj3d-neon-red));
    box-shadow: 0 0 10px rgba(0,155,209,0.3);
}
.lj3d-section__desc { max-width: 600px; margin: 0 auto; color: rgba(17,17,24,0.6); font-size: 1.05rem; }

/* ===== SECTION ABOUT ===== */
#lj3d-about { position: relative; }
.lj3d-about__box { padding: 3rem; border-radius: 12px; background: rgba(0,155,209,0.02); border: 1px solid rgba(0,155,209,0.08); }
.lj3d-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lj3d-space-lg); align-items: center; }
.lj3d-about__title { margin-bottom: var(--lj3d-space-md); font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
.lj3d-about__desc { margin-bottom: var(--lj3d-space-md); font-size: 1.05rem; line-height: 1.9; }
.lj3d-about__features { display: flex; flex-direction: column; gap: 0.75rem; }
.lj3d-feature-item { display: flex; align-items: center; gap: 0.75rem; font-family: var(--lj3d-font-primary); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(17,17,24,0.75); }
.lj3d-feature-item::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--lj3d-neon-blue); box-shadow: 0 0 10px rgba(0,155,209,0.5); }
.lj3d-about__image-wrap { position: relative; }
.lj3d-about__image-wrap::before {
    content: ''; position: absolute; inset: -2px;
    border-radius: calc(var(--lj3d-border-radius) + 2px);
    background: linear-gradient(135deg, var(--lj3d-neon-blue), transparent, var(--lj3d-neon-red));
    z-index: -1; opacity: 0.5;
}
.lj3d-about__image { width: 100%; border-radius: var(--lj3d-border-radius); object-fit: cover; aspect-ratio: 4 / 3; transition: transform var(--lj3d-transition); }
.lj3d-about__image-wrap:hover .lj3d-about__image { transform: scale(1.02); }

/* ===== PORTFOLIO ===== */
#lj3d-portfolio { background: var(--lj3d-bg-secondary); position: relative; overflow: hidden; }
#lj3d-portfolio::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(0,155,209,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.lj3d-portfolio__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--lj3d-space-md); }

/* ===== CARTES ===== */
.lj3d-card { background: var(--lj3d-bg-card); border: var(--lj3d-border); border-radius: var(--lj3d-border-radius); overflow: hidden; position: relative; cursor: pointer; transform-style: preserve-3d; will-change: transform; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.lj3d-card:hover { border-color: rgba(0,155,209,0.45); box-shadow: 0 10px 35px rgba(0,0,0,0.08); }
.lj3d-card__image-wrap { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.lj3d-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.lj3d-card:hover .lj3d-card__image { transform: scale(1.08); }
.lj3d-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(17,17,24,0.8) 0%, rgba(17,17,24,0.25) 50%, transparent 100%);
    opacity: 0; transition: opacity var(--lj3d-transition);
    display: flex; align-items: flex-end; padding: var(--lj3d-space-md);
}
.lj3d-card:hover .lj3d-card__overlay { opacity: 1; }
.lj3d-card__overlay-text { font-family: var(--lj3d-font-mono); font-size: 0.8rem; color: #fff; letter-spacing: 0.1em; }
.lj3d-card__shine {
    position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,155,209,0.08) 0%, transparent 70%);
    pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.lj3d-card:hover .lj3d-card__shine { opacity: 1; }
.lj3d-card__body { padding: var(--lj3d-space-md); position: relative; }
.lj3d-card__category { display: inline-block; font-family: var(--lj3d-font-mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lj3d-neon-blue); margin-bottom: 0.5rem; padding: 0.2rem 0.6rem; border: 1px solid rgba(0,155,209,0.25); border-radius: 3px; background: rgba(0,155,209,0.05); }
.lj3d-card__title { font-size: 1.15rem; font-family: var(--lj3d-font-primary); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lj3d-neon-white); margin-bottom: 0.5rem; transition: color var(--lj3d-transition); }
.lj3d-card:hover .lj3d-card__title { color: var(--lj3d-neon-blue); }
.lj3d-card__desc { font-size: 0.9rem; color: rgba(17,17,24,0.6); line-height: 1.6; margin-bottom: 0; }
.lj3d-card__footer { padding: 0.75rem var(--lj3d-space-md); border-top: 1px solid rgba(0,155,209,0.08); display: flex; align-items: center; justify-content: space-between; }
.lj3d-card__link { font-family: var(--lj3d-font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lj3d-neon-blue); display: flex; align-items: center; gap: 0.4rem; }
.lj3d-portfolio__empty { text-align: center; padding: var(--lj3d-space-xl); color: rgba(17,17,24,0.4); grid-column: 1 / -1; font-family: var(--lj3d-font-mono); font-size: 0.9rem; letter-spacing: 0.1em; }

/* ===== CONTACT BANNER ===== */
#lj3d-contact-banner { text-align: center; padding: var(--lj3d-space-xl) 0; position: relative; overflow: hidden; }
#lj3d-contact-banner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%,   rgba(0,155,209,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 100%, rgba(229,34,77,0.05)  0%, transparent 60%);
}
.lj3d-contact-banner__title { font-size: clamp(1.8rem, 4vw, 3.5rem); margin-bottom: var(--lj3d-space-sm); }
.lj3d-contact-banner__sub { margin-bottom: var(--lj3d-space-lg); font-size: 1.1rem; }

/* ===== FOOTER ===== */
#lj3d-footer { background: var(--lj3d-bg-secondary); border-top: 1px solid rgba(0,155,209,0.12); padding: var(--lj3d-space-lg) 0 var(--lj3d-space-md); position: relative; }
#lj3d-footer::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--lj3d-neon-blue), var(--lj3d-neon-red), transparent);
    box-shadow: 0 0 20px rgba(0,155,209,0.2);
}
.lj3d-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--lj3d-space-md); }
.lj3d-footer__logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.lj3d-footer__logo img { height: 36px; width: auto; opacity: 0.85; transition: opacity var(--lj3d-transition), filter var(--lj3d-transition); }
.lj3d-footer__logo img:hover { opacity: 1; filter: drop-shadow(0 0 8px var(--lj3d-neon-blue)); }
.lj3d-footer__logo-text { font-family: var(--lj3d-font-primary); font-size: 1.3rem; font-weight: 900; letter-spacing: 0.15em; color: var(--lj3d-neon-white); }
.lj3d-footer__email a { font-family: var(--lj3d-font-mono); font-size: 0.85rem; color: rgba(17,17,24,0.55); letter-spacing: 0.05em; transition: color var(--lj3d-transition), text-shadow var(--lj3d-transition); }
.lj3d-footer__email a:hover { color: var(--lj3d-neon-blue); text-shadow: 0 0 10px rgba(0,155,209,0.3); }

/* ===== RÉSEAUX SOCIAUX ===== */
.lj3d-social { display: flex; align-items: center; gap: 0.75rem; }
.lj3d-social__link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px;
    border: 1px solid rgba(0,155,209,0.2); background: rgba(0,155,209,0.04);
    color: rgba(17,17,24,0.6); font-size: 1.1rem;
    transition: all var(--lj3d-transition); text-decoration: none;
}
.lj3d-social__link:hover { border-color: var(--lj3d-neon-blue); background: rgba(0,155,209,0.1); color: var(--lj3d-neon-blue); box-shadow: var(--lj3d-glow-blue); transform: translateY(-3px); }
.lj3d-social__link svg { width: 18px; height: 18px; fill: currentColor; }

/* ===== FOOTER BAS ===== */
.lj3d-footer__bottom { margin-top: var(--lj3d-space-lg); padding-top: var(--lj3d-space-md); border-top: 1px solid rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--lj3d-space-sm); }
.lj3d-footer__copy { font-family: var(--lj3d-font-mono); font-size: 0.75rem; color: rgba(17,17,24,0.4); letter-spacing: 0.08em; }
.lj3d-footer__copy span { color: var(--lj3d-neon-red); }
.lj3d-footer__legal { display: flex; gap: var(--lj3d-space-md); }
.lj3d-footer__legal a { font-size: 0.75rem; color: rgba(17,17,24,0.35); letter-spacing: 0.05em; transition: color var(--lj3d-transition); }
.lj3d-footer__legal a:hover { color: var(--lj3d-neon-blue); }

/* ===== TRACÉ LAYER BY LAYER ===== */
.lj3d-layer-draw { position: relative; overflow: hidden; }
.lj3d-layer-draw::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--lj3d-neon-blue); border-radius: var(--lj3d-border-radius); opacity: 0; transform: scaleX(0); transform-origin: left; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease; }
.lj3d-layer-draw.is-visible::after { opacity: 0.3; transform: scaleX(1); }

/* ===== SVG DRAW ===== */
.lj3d-svg-draw path,
.lj3d-svg-draw polyline,
.lj3d-svg-draw line,
.lj3d-svg-draw rect,
.lj3d-svg-draw circle { stroke-dasharray: var(--dash-length, 2000); stroke-dashoffset: var(--dash-length, 2000); transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.lj3d-svg-draw.is-visible path,
.lj3d-svg-draw.is-visible polyline,
.lj3d-svg-draw.is-visible line,
.lj3d-svg-draw.is-visible rect,
.lj3d-svg-draw.is-visible circle { stroke-dashoffset: 0; }

/* ===== SCROLL REVEAL ===== */
.lj3d-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.lj3d-reveal.is-visible { opacity: 1; transform: translateY(0); }
.lj3d-reveal--delay-1 { transition-delay: 0.1s; }
.lj3d-reveal--delay-2 { transition-delay: 0.2s; }
.lj3d-reveal--delay-3 { transition-delay: 0.3s; }
.lj3d-reveal--delay-4 { transition-delay: 0.4s; }

/* ===== CORNER DECORATORS ===== */
.lj3d-corner { position: absolute; width: 16px; height: 16px; border-color: var(--lj3d-neon-blue); border-style: solid; opacity: 0.6; }
.lj3d-corner--tl { top: 0; left: 0;    border-width: 1px 0 0 1px; }
.lj3d-corner--tr { top: 0; right: 0;   border-width: 1px 1px 0 0; }
.lj3d-corner--bl { bottom: 0; left: 0;  border-width: 0 0 1px 1px; }
.lj3d-corner--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

/* ===== DÉCORATIF SVG BUSE ===== */
.lj3d-nozzle-svg { position: absolute; pointer-events: none; opacity: 0.2; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--lj3d-bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--lj3d-neon-blue), var(--lj3d-neon-red)); border-radius: 3px; }

/* ===== SÉLECTION ===== */
::selection { background: rgba(0,155,209,0.2); color: var(--lj3d-neon-white); }

/* ===== WORDPRESS ===== */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: rgba(17,17,24,0.5); text-align: center; padding-top: 0.4rem; }
.alignleft  { float: left;  margin: 0 var(--lj3d-space-md) var(--lj3d-space-md) 0; }
.alignright { float: right; margin: 0 0 var(--lj3d-space-md) var(--lj3d-space-md); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute; white-space: nowrap; }

/* ===== ADMIN BAR ===== */
body.admin-bar #lj3d-header { top: 32px; }
body.admin-bar #lj3d-print-progress,
body.admin-bar #lj3d-print-label { top: 32px; }

/* ===== RESPONSIVE — TABLETTE ===== */
@media (max-width: 1024px) {
    .lj3d-about__grid { grid-template-columns: 1fr; }
    .lj3d-about__image-wrap { order: -1; margin-bottom: var(--lj3d-space-md); }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
    :root { --lj3d-space-lg: 3rem; --lj3d-space-xl: 4rem; }
    #lj3d-header { padding: 0.75rem 0; }
    .lj3d-nav {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
        padding: 80px var(--lj3d-space-md) var(--lj3d-space-md);
        border-left: 1px solid rgba(0,155,209,0.15);
        box-shadow: -10px 0 40px rgba(0,0,0,0.08);
        transition: right var(--lj3d-transition);
        z-index: calc(var(--lj3d-z-header) - 1);
    }
    .lj3d-nav.is-open { right: 0; }
    .lj3d-nav__list { flex-direction: column; align-items: flex-start; gap: var(--lj3d-space-md); }
    .lj3d-nav__list a { font-size: 1rem; }
    .lj3d-burger { display: flex; }
    .lj3d-footer__inner { flex-direction: column; align-items: flex-start; }
    .lj3d-footer__bottom { flex-direction: column; align-items: center; text-align: center; }
    .lj3d-about__box { padding: 1.5rem; }
    .lj3d-portfolio__grid { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE — PETIT MOBILE ===== */
@media (max-width: 480px) {
    .lj3d-hero__title { font-size: clamp(2.2rem, 9vw, 3rem); word-break: break-word; }
    .lj3d-hero__cta { flex-direction: column; align-items: flex-start; }
    .lj3d-btn { width: 100%; justify-content: center; }
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   PAGES DÉTAIL D'ARTICLE (SINGLE POST) & COMMENTAIRES
   ============================================================ */
.lj3d-single-post { position: relative; }
.lj3d-article__content { color: var(--lj3d-color-text-body, rgba(17, 17, 24, 0.8)); }
.lj3d-article__content h2,
.lj3d-article__content h3,
.lj3d-article__content h4 {
    margin-top: var(--lj3d-space-lg);
    margin-bottom: var(--lj3d-space-sm);
    color: var(--lj3d-neon-white);
}
.lj3d-article__content p {
    margin-bottom: var(--lj3d-space-md);
    line-height: 1.85;
}
.lj3d-article__content blockquote {
    border-left: 3px solid var(--lj3d-neon-blue);
    padding: 1rem 1.5rem;
    margin: var(--lj3d-space-md) 0;
    background: rgba(0, 155, 209, 0.04);
    border-radius: 0 var(--lj3d-border-radius) var(--lj3d-border-radius) 0;
    font-style: italic;
    color: var(--lj3d-neon-white);
}
.lj3d-article__content ul,
.lj3d-article__content ol {
    margin-bottom: var(--lj3d-space-md);
    padding-left: 1.5rem;
}
.lj3d-article__content ul { list-style: disc; }
.lj3d-article__content ol { list-style: decimal; }
.lj3d-article__content li { margin-bottom: 0.5rem; }

/* Navigation Précédent / Suivant */
.lj3d-article__nav .nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--lj3d-space-md);
    flex-wrap: wrap;
    padding: var(--lj3d-space-md) 0;
    border-top: 1px solid rgba(0, 155, 209, 0.15);
    border-bottom: 1px solid rgba(0, 155, 209, 0.15);
}
.lj3d-article__nav .nav-previous,
.lj3d-article__nav .nav-next {
    flex: 1 1 280px;
    padding: 1rem;
    border-radius: var(--lj3d-border-radius);
    background: rgba(0, 155, 209, 0.03);
    border: 1px solid rgba(0, 155, 209, 0.1);
    transition: all var(--lj3d-transition);
}
.lj3d-article__nav .nav-previous:hover,
.lj3d-article__nav .nav-next:hover {
    border-color: var(--lj3d-neon-blue);
    background: rgba(0, 155, 209, 0.07);
    box-shadow: 0 4px 20px rgba(0, 155, 209, 0.15);
}

/* Commentaires */
.lj3d-comment-list .comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.lj3d-comment-list .avatar {
    border-radius: 50%;
    float: left;
    margin-right: 1rem;
    border: 1px solid var(--lj3d-neon-blue);
}
.lj3d-comment-list .comment-author {
    font-family: var(--lj3d-font-primary);
    font-weight: 700;
    font-size: 1.05rem;
}
.lj3d-comment-list .comment-metadata {
    font-family: var(--lj3d-font-mono);
    font-size: 0.75rem;
    color: rgba(17, 17, 24, 0.5);
    margin-bottom: 0.75rem;
}
.lj3d-comment-list .reply a {
    font-family: var(--lj3d-font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--lj3d-neon-blue);
    display: inline-block;
    margin-top: 0.5rem;
}
.comment-form p { margin-bottom: 1rem; }
.comment-form label {
    display: block;
    font-family: var(--lj3d-font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: var(--lj3d-neon-white);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--lj3d-bg-secondary);
    border: 1px solid rgba(0, 155, 209, 0.2);
    border-radius: var(--lj3d-border-radius);
    color: var(--lj3d-neon-white);
    font-family: var(--lj3d-font-secondary);
    font-size: 0.95rem;
    transition: border-color var(--lj3d-transition), box-shadow var(--lj3d-transition);
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--lj3d-neon-blue);
    box-shadow: 0 0 10px rgba(0, 155, 209, 0.25);
}

/* ============================================================
   STYLES WOOCOMMERCE & FICHE PRODUIT UNIQUE
   ============================================================ */
.woocommerce .woocommerce-breadcrumb {
    font-family: var(--lj3d-font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: var(--lj3d-space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.woocommerce .woocommerce-breadcrumb a {
    color: var(--lj3d-neon-blue);
}

/* Fiche Produit Unique */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lj3d-space-xl);
    margin-bottom: var(--lj3d-space-xl);
}
.woocommerce div.product::before,
.woocommerce div.product::after {
    content: none !important;
    display: none !important;
}
.woocommerce div.product div.images {
    width: 100% !important;
    float: none !important;
    margin-bottom: 0 !important;
    max-width: 100% !important;
}
.woocommerce div.product div.images .woocommerce-product-gallery {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    opacity: 1 !important;
}
.woocommerce div.product div.images .flex-viewport {
    border-radius: var(--lj3d-border-radius);
    overflow: hidden !important;
    border: 1px solid rgba(0, 155, 209, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: #0d0d14;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    padding: 0 !important;
    /* Ne pas forcer width: 100% ici car FlexSlider calcule la largeur totale du ruban horizontal */
}
.woocommerce div.product div.images img {
    border-radius: var(--lj3d-border-radius);
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain; /* contain pour ne pas couper les images produit */
}
.woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
    margin-bottom: 0 !important;
}
.woocommerce div.product .product_title {
    font-family: var(--lj3d-font-primary);
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lj3d-neon-white);
    margin-bottom: 0.5rem;
    line-height: 1.15;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-family: var(--lj3d-font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--lj3d-neon-blue);
    margin-bottom: var(--lj3d-space-md);
    display: inline-block;
}
/* Prix et Ancien Prix barré (del) */
del,
del *,
del span,
del bdi,
del .amount,
del .woocommerce-Price-amount,
.price del,
.price del *,
.price del span,
.price del bdi,
.price del .amount,
.price del .woocommerce-Price-amount,
p.price del,
span.price del {
    font-size: 1.2rem;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: line-through !important;
    opacity: 0.8 !important;
    margin-right: 0.5rem;
}
ins,
ins *,
ins span,
ins bdi,
ins .amount,
.price ins,
.price ins *,
p.price ins,
span.price ins {
    text-decoration: none !important;
    color: var(--lj3d-neon-red, #ff2d55) !important;
    -webkit-text-fill-color: var(--lj3d-neon-red, #ff2d55) !important;
    font-weight: 700 !important;
}
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: var(--lj3d-space-md);
    padding-bottom: var(--lj3d-space-md);
    border-bottom: 1px solid rgba(0, 155, 209, 0.12);
}

/* Bouton Ajouter au panier & Quantité */
.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--lj3d-space-lg);
    flex-wrap: wrap;
}
.quantity input.qty,
.quantity input,
input.qty,
input[name="quantity"],
.qty,
.woocommerce div.product form.cart .quantity input.qty,
.woocommerce .quantity input.qty,
.woocommerce-page .quantity input.qty {
    width: 70px;
    height: 48px;
    text-align: center;
    border: 1px solid rgba(0, 155, 209, 0.4) !important;
    border-radius: var(--lj3d-border-radius);
    background: #111118 !important;
    background-color: #111118 !important;
    font-family: var(--lj3d-font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.quantity input.qty:focus,
.quantity input:focus,
input.qty:focus,
input[name="quantity"]:focus,
.qty:focus,
.woocommerce div.product form.cart .quantity input.qty:focus,
.woocommerce .quantity input.qty:focus,
.woocommerce-page .quantity input.qty:focus {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #111118 !important;
    background-color: #111118 !important;
    border-color: #00c3ff !important;
    outline: none !important;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.5) !important;
}
.quantity input.qty::selection,
.quantity input::selection,
input.qty::selection,
.quantity *::selection,
.woocommerce div.product form.cart .quantity input.qty::selection,
.woocommerce .quantity input.qty::selection {
    background: #00c3ff !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.85rem 2.2rem !important;
    font-family: var(--lj3d-font-primary) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border-radius: var(--lj3d-border-radius) !important;
    cursor: pointer !important;
    transition: all var(--lj3d-transition) !important;
    background: var(--lj3d-neon-blue) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(0, 155, 209, 0.3) !important;
    height: 48px !important;
    line-height: 1 !important;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 35px rgba(0, 155, 209, 0.5), 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    color: #fff !important;
}

/* Métadonnées Produit (SKU / UGS, Catégories) */
.product_meta,
.woocommerce div.product .product_meta {
    font-family: var(--lj3d-font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: var(--lj3d-space-md);
    border-top: 1px solid rgba(0, 155, 209, 0.15);
}
.product_meta *,
.product_meta span,
.product_meta .sku_wrapper,
.product_meta .sku,
.product_meta .posted_in,
.product_meta .tagged_as,
.sku_wrapper,
.sku_wrapper *,
.sku,
.posted_in,
.posted_in *,
.tagged_as,
.tagged_as * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.product_meta a,
.posted_in a,
.tagged_as a {
    color: var(--lj3d-neon-blue, #00c3ff) !important;
    -webkit-text-fill-color: var(--lj3d-neon-blue, #00c3ff) !important;
    transition: all var(--lj3d-transition);
}
.product_meta a:hover,
.posted_in a:hover,
.tagged_as a:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.6);
}

/* Onglets WooCommerce (Description, Avis, etc.) */
.woocommerce div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: var(--lj3d-space-xl);
    border-top: 1px solid rgba(0, 155, 209, 0.15);
    padding-top: var(--lj3d-space-lg);
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid rgba(0, 155, 209, 0.15);
    padding: 0 0 0.5rem 0;
    margin: 0 0 var(--lj3d-space-md) 0;
    list-style: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: var(--lj3d-font-primary);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--lj3d-neon-blue) !important;
    border-bottom: 2px solid var(--lj3d-neon-blue);
    padding-bottom: 0.6rem;
}
.woocommerce div.product .woocommerce-tabs .panel {
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Messages d'alerte et de confirmation WooCommerce */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.5rem !important;
    border-radius: var(--lj3d-border-radius) !important;
    background: rgba(0, 155, 209, 0.05) !important;
    border: 1px solid var(--lj3d-neon-blue) !important;
    color: var(--lj3d-neon-white) !important;
    font-family: var(--lj3d-font-secondary) !important;
    margin-bottom: var(--lj3d-space-lg) !important;
    box-shadow: 0 0 15px rgba(0, 155, 209, 0.1) !important;
}
.woocommerce-error {
    border-color: var(--lj3d-neon-red) !important;
    background: rgba(229, 34, 77, 0.05) !important;
    box-shadow: 0 0 15px rgba(229, 34, 77, 0.1) !important;
}

/* Neutraliser TOTALEMENT les pseudo-éléments clearfix WooCommerce (qui créent un produit invisible en slot 1) */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
.woocommerce ul.products:before,
.woocommerce ul.products:after,
.woocommerce-page ul.products:before,
.woocommerce-page ul.products:after,
ul.products::before,
ul.products::after,
ul.products:before,
ul.products:after {
    content: none !important;
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    grid-column: 1 / 1 !important;
    grid-row: 1 / 1 !important;
}

/* Neutraliser tout élément parasite direct à l'intérieur de ul.products qui n'est pas un produit */
.woocommerce ul.products > *:not(li.product):not(li.product-category),
.woocommerce-page ul.products > *:not(li.product):not(li.product-category),
ul.products > *:not(li.product):not(li.product-category) {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Forcer le premier produit / première catégorie à démarrer impérativement en colonne 1 */
.woocommerce ul.products > li:first-of-type,
.woocommerce-page ul.products > li:first-of-type,
ul.products > li:first-of-type,
.woocommerce ul.products li.product:first-of-type,
.woocommerce-page ul.products li.product:first-of-type,
ul.products li.product:first-of-type {
    grid-column-start: 1 !important;
}

/* Grille Catalogue Boutique WooCommerce (4 colonnes par défaut) */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--lj3d-space-md) !important;
    margin: 0 0 var(--lj3d-space-xl) 0 !important;
    padding: 0 !important;
    list-style: none !important;
    clear: both !important;
}

/* Prise en charge des classes colonnes WooCommerce */
.woocommerce ul.products.columns-1,
.woocommerce-page ul.products.columns-1 {
    grid-template-columns: 1fr !important;
}
.woocommerce ul.products.columns-2,
.woocommerce-page ul.products.columns-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}
.woocommerce ul.products.columns-3,
.woocommerce-page ul.products.columns-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}
.woocommerce ul.products.columns-4,
.woocommerce-page ul.products.columns-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}
.woocommerce ul.products.columns-5,
.woocommerce-page ul.products.columns-5 {
    grid-template-columns: repeat(5, 1fr) !important;
}
.woocommerce ul.products.columns-6,
.woocommerce-page ul.products.columns-6 {
    grid-template-columns: repeat(6, 1fr) !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product,
.woocommerce ul.products li.product-category,
.woocommerce-page ul.products li.product-category {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: var(--lj3d-bg-card);
    border: var(--lj3d-border);
    border-radius: var(--lj3d-border-radius);
    padding: var(--lj3d-space-md);
    transition: all var(--lj3d-transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Neutraliser les effets de flottement des classes first et last injectées par WooCommerce */
.woocommerce ul.products li.first,
.woocommerce-page ul.products li.first,
.woocommerce ul.products li.last,
.woocommerce-page ul.products li.last,
ul.products li.first,
ul.products li.last {
    clear: none !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    border-color: rgba(0, 155, 209, 0.45);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--lj3d-font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.75rem 0 0.5rem 0;
    color: var(--lj3d-neon-white);
}
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    font-family: var(--lj3d-font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lj3d-neon-blue);
    margin-bottom: 1rem;
}

/* Breakpoints responsifs pour la grille de la boutique */
@media (max-width: 1100px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .woocommerce ul.products.columns-4,
    .woocommerce-page ul.products.columns-4,
    .woocommerce ul.products.columns-5,
    .woocommerce-page ul.products.columns-5,
    .woocommerce ul.products.columns-6,
    .woocommerce-page ul.products.columns-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 820px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .woocommerce ul.products[class*="columns-"],
    .woocommerce-page ul.products[class*="columns-"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 520px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .woocommerce ul.products[class*="columns-"],
    .woocommerce-page ul.products[class*="columns-"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===== IMAGES PRODUIT RESPONSIVES ===== */

/* --- Catalogue / Grille boutique : image encadrée avec ratio fixe --- */

/* Conteneur du lien image : indispensable pour masquer tout débordement */
.woocommerce ul.products li.product a:has(> img),
.woocommerce-page ul.products li.product a:has(> img),
ul.products li.product a:has(> img),
.woocommerce ul.products li.product-category a:has(> img),
.woocommerce-page ul.products li.product-category a:has(> img),
ul.products li.product-category a:has(> img) {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: var(--lj3d-border-radius) !important;
    margin: 0 0 0.75rem 0 !important;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
ul.products li.product a img,
.woocommerce ul.products li.product-category a img,
.woocommerce-page ul.products li.product-category a img,
ul.products li.product-category a img {
    display: block !important;
    width: 100% !important;
    height: 220px !important;          /* hauteur fixe desktop */
    max-width: 100% !important;
    object-fit: cover !important;      /* recadre sans déformer */
    object-position: center top !important;
    border-radius: var(--lj3d-border-radius) !important;
    margin: 0 !important;              /* marge gérée par le conteneur <a> */
}

/* Tablette : légèrement plus petite */
@media (max-width: 1100px) {
    .woocommerce ul.products li.product a img,
    .woocommerce-page ul.products li.product a img,
    ul.products li.product a img,
    .woocommerce ul.products li.product-category a img,
    .woocommerce-page ul.products li.product-category a img,
    ul.products li.product-category a img {
        height: 190px !important;
        max-width: 100% !important;
    }
}

/* Mobile & Téléphone : affichage identique et harmonieux comme sur ordinateur (remplissage net, centré, sans déformation ni espaces parasites) */
@media (max-width: 820px) {
    .woocommerce ul.products li.product a:has(> img),
    .woocommerce-page ul.products li.product a:has(> img),
    ul.products li.product a:has(> img),
    .woocommerce ul.products li.product-category a:has(> img),
    .woocommerce-page ul.products li.product-category a:has(> img),
    ul.products li.product-category a:has(> img) {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
        border-radius: var(--lj3d-border-radius) !important;
        margin: 0 0 0.75rem 0 !important;
    }
    .woocommerce ul.products li.product a img,
    .woocommerce-page ul.products li.product a img,
    ul.products li.product a img,
    .woocommerce ul.products li.product-category a img,
    .woocommerce-page ul.products li.product-category a img,
    ul.products li.product-category a img,
    .woocommerce ul.products li.product img,
    .woocommerce ul.products li.product-category img {
        display: block !important;
        width: 100% !important;
        height: 220px !important;
        max-width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: var(--lj3d-border-radius) !important;
        margin: 0 !important;
    }
}

@media (max-width: 520px) {
    .woocommerce ul.products li.product a:has(> img),
    .woocommerce-page ul.products li.product a:has(> img),
    ul.products li.product a:has(> img),
    .woocommerce ul.products li.product-category a:has(> img),
    .woocommerce-page ul.products li.product-category a:has(> img),
    ul.products li.product-category a:has(> img) {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
        border-radius: var(--lj3d-border-radius) !important;
        margin: 0 0 0.75rem 0 !important;
    }
    .woocommerce ul.products li.product a img,
    .woocommerce-page ul.products li.product a img,
    ul.products li.product a img,
    .woocommerce ul.products li.product-category a img,
    .woocommerce-page ul.products li.product-category a img,
    ul.products li.product-category a img,
    .woocommerce ul.products li.product img,
    .woocommerce ul.products li.product-category img {
        display: block !important;
        width: 100% !important;
        height: 220px !important;
        max-width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: var(--lj3d-border-radius) !important;
        margin: 0 !important;
    }
}

/* --- Fiche produit unique : galerie principale contrainte --- */

/* Conteneur de chaque slide FlexSlider */
.woocommerce div.product div.images .woocommerce-product-gallery__image {
    margin: 0 !important;
    padding: 0 !important;
    /* Laisser FlexSlider calculer la largeur inline de chaque slide pour le défilement */
}

.woocommerce div.product div.images img,
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 560px !important;       /* jamais gigantesque sur desktop */
    height: auto !important;
    object-fit: contain !important;    /* affiche l'image entière sans crop */
    object-position: center !important;
    border-radius: var(--lj3d-border-radius) !important;
    display: block;
}

/* Tablette */
@media (max-width: 900px) {
    .woocommerce div.product div.images img,
    .woocommerce div.product div.images .woocommerce-product-gallery__image img {
        max-height: 420px !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .woocommerce div.product div.images img,
    .woocommerce div.product div.images .woocommerce-product-gallery__image img {
        max-height: 300px !important;
        object-fit: contain !important;
    }
}

/* Vignettes galerie (thumbnails) */
.woocommerce div.product div.images .flex-control-thumbs {
    overflow: hidden !important;
    zoom: 1 !important;
    margin: 0.75rem 0 0 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    list-style: none !important;
}
.woocommerce div.product div.images .flex-control-thumbs li {
    width: calc(25% - 0.375rem) !important;
    float: none !important;
    margin: 0 !important;
    cursor: pointer !important;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
    width: 100% !important;
    height: 80px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 4px !important;
    opacity: 0.6;
    border: 1px solid rgba(0, 155, 209, 0.3) !important;
    transition: all var(--lj3d-transition);
}
.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    opacity: 1 !important;
    border-color: var(--lj3d-neon-blue) !important;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.4) !important;
}

/* ===== CORRECTIF FLEXSLIDER GALERIE WOOCOMMERCE =====
   Règles assurant la fluidité des transitions et la disparition de tout spinner bloqué */

/* Conteneur principal de la galerie */
.woocommerce div.product div.images .woocommerce-product-gallery,
.woocommerce-product-gallery {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    opacity: 1 !important;
}

/* Viewport FlexSlider */
.woocommerce div.product div.images .flexslider,
.woocommerce-product-gallery.flexslider {
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* La liste de slides */
.woocommerce div.product div.images .flexslider .slides,
.woocommerce-product-gallery .slides {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce div.product div.images .flexslider .slides > li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Empêcher l'overlay de chargement blockUI de bloquer visuellement la galerie */
.woocommerce-product-gallery .blockUI.blockOverlay {
    display: none !important;
}

/* Responsive Single Product & Cart */
@media (max-width: 900px) {
    .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: var(--lj3d-space-lg);
    }
}

/* ===== SHORTCODE BAS DE PAGE ===== */
.lj3d-bottom-shortcode {
    position: relative;
    z-index: 2;
    width: 100%;
}
.lj3d-bottom-shortcode--above {
    padding: var(--lj3d-space-md) 0;
    border-top: 1px solid rgba(0, 155, 209, 0.12);
}
.lj3d-bottom-shortcode--inside {
    padding: var(--lj3d-space-sm) 0;
}
.lj3d-bottom-shortcode--below {
    padding: var(--lj3d-space-md) 0;
    background: var(--lj3d-bg);
    border-top: 1px solid rgba(0, 155, 209, 0.12);
    text-align: center;
}

/* ===== CORRECTIFS COULEURS FOND SOMBRE ===== */

/* --- Quantité : texte blanc même quand le champ est sélectionné/actif --- */
input[name="quantity"],
input[name="quantity"]:focus,
input[name="quantity"]:active,
.quantity input,
.quantity input:focus,
.quantity input:active,
.quantity input.qty,
.quantity input.qty:focus,
.quantity input.qty:active,
.woocommerce div.product form.cart .quantity input,
.woocommerce div.product form.cart .quantity input:focus,
.woocommerce div.product form.cart .quantity input:active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #111118 !important;
    caret-color: #00c3ff !important;
}
/* Autofill navigateur (Chrome/Edge rendent le fond jaune/blanc sinon) */
input[name="quantity"]:-webkit-autofill,
input[name="quantity"]:-webkit-autofill:focus,
.quantity input:-webkit-autofill,
.quantity input.qty:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #111118 inset !important;
    box-shadow: 0 0 0 1000px #111118 inset !important;
    background-color: #111118 !important;
    color: #ffffff !important;
}

/* --- Ancien prix barré : blanc visible sur fond sombre --- */
.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
.woocommerce div.product p.price del *,
.woocommerce div.product span.price del *,
.woocommerce div.product p.price del bdi,
.woocommerce div.product span.price del bdi,
.woocommerce div.product p.price del .woocommerce-Price-amount,
.woocommerce div.product span.price del .woocommerce-Price-amount,
.woocommerce div.product p.price del .woocommerce-Price-currencySymbol,
.woocommerce div.product span.price del .woocommerce-Price-currencySymbol,
del, del *, del bdi, del span, del .amount {
    color: rgba(255, 255, 255, 0.75) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: line-through !important;
    opacity: 1 !important;
}

/* --- UGS (SKU) et Catégorie : blanc sur fond sombre --- */
.woocommerce div.product .product_meta,
.woocommerce div.product .product_meta *,
.woocommerce div.product .product_meta span,
.woocommerce div.product .product_meta .sku_wrapper,
.woocommerce div.product .product_meta .sku_wrapper *,
.woocommerce div.product .product_meta .sku,
.woocommerce div.product .product_meta .posted_in,
.woocommerce div.product .product_meta .posted_in span,
.woocommerce div.product .product_meta .tagged_as,
.woocommerce div.product .product_meta .tagged_as span,
.product_meta, .product_meta *, .product_meta span,
.sku_wrapper, .sku_wrapper *, .sku,
.posted_in, .posted_in span, .tagged_as, .tagged_as span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
/* Labels (ex : "UGS :", "Catégorie :") restent en gris clair pour contraste */
.woocommerce div.product .product_meta .sku_wrapper > span:first-child,
.woocommerce div.product .product_meta .posted_in > span:first-child,
.woocommerce div.product .product_meta .tagged_as > span:first-child {
    color: rgba(255, 255, 255, 0.6) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.6) !important;
}
/* Liens catégorie/étiquettes en bleu néon */
.woocommerce div.product .product_meta a,
.product_meta a, .posted_in a, .tagged_as a {
    color: var(--lj3d-neon-blue, #00c3ff) !important;
    -webkit-text-fill-color: var(--lj3d-neon-blue, #00c3ff) !important;
}
.woocommerce div.product .product_meta a:hover,
.product_meta a:hover, .posted_in a:hover, .tagged_as a:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
