* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --black: #0a0a0a;
    --white: #f5f5f3;
    --muted: #555;
    --border: rgba(255,255,255,0.07);
}
body { 
    background: var(--white); 
    color: var(--black); 
    font-family: 'Inter', system-ui, sans-serif; 
}
a {
    text-decoration: none;
}
.cinema-intro {
    position: relative;
    inset: 0;
    background: black;
    overflow: hidden;
}

video {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
}

/* voile cinéma */
.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.7) 100%
    );
}

/* contenu centré */
.content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* logo animation */
.logo {
    width: 180px;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}

/* bouton discret style cinéma */
#skip {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(6px);
    transition: 0.3s;
}

#skip:hover {
    background: rgba(255,255,255,0.2);
}

/* fade out global */
.fade-out {
    animation: fadeOut 0.8s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; transform: scale(1.05); }
}

@keyframes fadeOut {
    to { opacity: 0; }
}
nav {
    position: absolute;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.4rem 2.5rem;
    width: 100%;
    /* position: sticky; */
     top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(1px);
    border-bottom: 0.5px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-circle {
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background: var(--white);
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 14px;
}
.logo-circle img{
    width: 100%;
}
.logo-text { font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); }
.logo-sub { font-size: 9px; letter-spacing: 0.3em; color: var(--muted); display: block; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--muted); text-decoration: none; transition: color 0.2s; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--black); }

.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.cart-btn {
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--black); background: none; border: 0.5px solid var(--border);
    padding: 7px 16px; cursor: pointer; transition: border-color 0.2s;
}
.cart-btn:hover { border-color: rgba(255,255,255,0.3); }
.cart-count {
    background: var(--white); color: var(--black); width: 18px; height: 18px;
    border-radius: 50%; font-size: 10px; font-weight: 500;
    display: flex; align-items: center; justify-content: center;
}

.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    position: relative; overflow: hidden;
}

.hero-img {
    
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #ffffff 0%, #dad0d0 60%, #fcfcfc 100%);
}
.hero-figure {
    position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
    font-size: 18rem; opacity: 0.03; font-weight: 700; letter-spacing: -0.05em;
    color: var(--black); pointer-events: none; user-select: none;
    animation: drift 8s ease-in-out infinite;
}
@keyframes drift { 0%,100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-52%) translateX(-8px); } }

.hero-tag {
    font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1.2rem; position: relative; z-index: 1;
}
.hero-headline {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 500; line-height: 0.95;
    letter-spacing: -0.03em;
    position: relative; z-index: 1;
    color: var(--black);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.hero-headline .line2 { color: transparent; -webkit-text-stroke: 1px rgba(0, 0, 0, 0.781); }
.hero-sub {
    display: flex; align-items: center; gap: 2rem; margin-bottom: 4.5rem;
    position: relative; z-index: 1;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--black); color: var(--white);
    padding: 14px 28px; font-size: 11px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
    border: none; transition: opacity 0.2s;
    animation: slideUp 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    text-decoration: none;
}
.hero-cta:hover { opacity: 0.85; }
.hero-scroll {
    font-size: 10px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
}
.scroll-line { width: 40px; height: 0.5px; background: var(--muted); }

.marquee-wrap {
    overflow: hidden; border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border);
    padding: 1rem 0; margin-bottom: 5rem;
}
.marquee { display: flex; width: max-content; animation: marquee 45s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
    display: flex; align-items: center; gap: 1.5rem; padding: 0 2rem;
    font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
    white-space: nowrap;
}
.marquee-item > img {
    width: 100%;
    max-width: 500px;
    object-fit: contain;
    height: 500px;
}
.marquee-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.featured {
    display: flex;
    justify-content: space-around;
    align-items: start;
    flex-wrap: wrap;
    margin: 0 2.5rem 5rem;
}
.feat-card {
    background: #fafafa00; width: 300px;
    height : 400px;
    margin: 30px ;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 380px; position: relative; overflow: hidden; cursor: pointer;
}

.feat-card img {
    width: 100%;
    margin-top: 20px;

}
.feat-card:hover .feat-shape { transform: translateY(-50%) scale(1.05) rotate(2deg); }
.feat-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.feat-name { font-size: 1rem; font-weight: 500; letter-spacing: -0.02em; margin: auto 0; }
.feat-name span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.25); }
.feat-price { font-size: 14px; color: var(--muted); }
.feat-shape {
    position: absolute; right: 2rem; top: 50%; transform: translateY(-50%);
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
    opacity: 0.15;
}

.section { padding: 5rem 2.5rem; }
.section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 2.5rem;
    border-bottom: 0.5px solid var(--border); padding-bottom: 1.2rem;
}
.section-title { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.section-count { font-size: 11px; color: var(--muted); }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }

.product-card {
    background-color: #f6f6f6; cursor: pointer; position: relative; overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* .product-card:hover { transform: scale(0.98); }
.product-card:hover .product-img-bg { opacity: 1; } */
.feat-card:hover .quick-add,
.product-card:hover .quick-add { transform: translateY(0); opacity: 1; }
.product-card:hover .p-shape { transform: scale(1.04); }

.product-img {
    aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.product-img img{
    width: 100%;
    max-width: 300px;
    object-fit: contain;
}
.product-img-bg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; background: #ffffff; }
.p-shape { position: relative; z-index: 1; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }

.product-info { padding: 1.2rem 1rem 1rem; }
.product-name { font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--black); margin-bottom: 4px; }
.product-cat { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.product-price { font-size: 13px; font-weight: 500; color: var(--black); }

.quick-add {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: var(--white); color: var(--black);
    padding: 10px; text-align: center;
    font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 500;
    transform: translateY(100%); opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.3s;
    cursor: pointer; border: none;
}
.quick-add:hover { background-color: #000000; color: white }

.tag-badge {
    display: inline-block; padding: 3px 8px;
    border: 0.5px solid var(--border);
    font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--black);
}
.tag-new { border-color: rgba(255,255,255,0.2); color: var(--black); }

.form-group {
display: flex; flex-direction: column; gap: 6px;
margin-bottom: 18px;
}

.form-group.half-grid {
display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
margin-bottom: 18px;
}

.form-group.half-grid > div { display: flex; flex-direction: column; gap: 6px; }

label {
font-size: 12px; font-weight: 600;
letter-spacing: 0.06em; text-transform: uppercase;
color: var(--ink-mid);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
.ts-control> input,
select {
font-family: 'Barlow', sans-serif;
font-size: 14px; font-weight: 400;
color: var(--ink);
background: var(--bg2);
border: 1.5px solid var(--muted);
padding: 11px 14px;
outline: none;
transition: border-color 0.2s, background 0.2s;
width: 100%;
appearance: none;
-webkit-appearance: none;
}

input::placeholder { color: var(--ink-pale); }

input:focus, select:focus {
border-color: var(--blue);
background: var(--bg);
box-shadow: 0 0 0 3px var(--blue-pale);
}

.input-wrap { position: relative; }

.input-wrap input { padding-right: 42px; }

.input-toggle {
position: absolute; right: 12px; top: 50%;
transform: translateY(-50%);
background: none; border: none; cursor: pointer;
color: var(--ink-pale); padding: 4px;
transition: color 0.2s;
}

.input-toggle:hover { color: var(--ink-mid); }
.input-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }



footer {
    border-top: 0.5px solid var(--border);
    padding: 2.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-brand { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a, .footer-links button { font-size: 10px; letter-spacing: 0.15em; color: var(--muted); text-decoration: none; transition: color 0.2s; cursor: pointer; }
.footer-links a:hover { color: var(--black); }

/* ── Crosshair registration marks ── */
.cross-wrap {
    position: relative;
}
.cross {
    position: absolute;
    width: 20px; height: 20px;
    pointer-events: none; z-index: 10;
}
.cross::before, .cross::after {
    content: ''; position: absolute;
    background: rgba(0, 0, 0, 0.241);
}
.cross::before { width: 0.5px; height: 100%; left: 50%; top: 0; }
.cross::after  { width: 100%; height: 0.5px; top: 50%; left: 0; }
.cross.tl { top: -10px; left: -10px; }
.cross.tr { top: -10px; right: -10px; }
.cross.bl { bottom: -10px; left: -10px; }
.cross.br { bottom: -10px; right: -10px; }
/* mid-edge crosses */
.cross.tm { top: -10px; left: 50%; transform: translateX(-50%); }
.cross.bm { bottom: -10px; left: 50%; transform: translateX(-50%); }
.cross.ml { top: 50%; left: -10px; transform: translateY(-50%); }
.cross.mr { top: 50%; right: -10px; transform: translateY(-50%); }

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .featured { grid-template-columns: 1fr; margin: 0 1rem 3rem; }
    /* nav { padding: 1rem 1.2rem; } */
    .nav-links { display: none; }
    .section { padding: 3rem 1.2rem; }
    /* .hero { padding: 0 1.2rem 3rem; } */
    footer { flex-direction: column; gap: 1.5rem; text-align: center; }
}

 .product-view{
        min-height : 100vh;
        padding: 100px 50px;
        display : flex;
        justify-content : space-between;
        align-items : center;
        flex-wrap : wrap
    }

    .product-description {
        width: 100%;
        max-width : 400px
    }

    .product-carousel {    
        width: 100%;
        max-width : 500px;
    }

    .product-size {
        position: relative;
        width: 100%;
        max-width : 400px;
    }

    .size-options {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin : 20px 0;
    }

    .size-btn {
        border: 1px solid #ccc;
        padding: 8px 12px;
        background: white;
        cursor: pointer;
        transition: 0.2s;
        width: 50px;
        border-radius : 25px;
    }

    .size-btn:hover {
        background-color : #b3b3b3;
        color: white;
    }

    .size-btn.selected {
        border-color: black;
        background: black;
        color: white;
    }

    .size-btn.out {
        opacity: 0.3;
        pointer-events: none;
    }

    .qty-control {
        display: flex;
        align-items: center;
        gap: 5px;
        margin : 20px 0;
    }

    .qty-control button {
        width: 30px;
        height: 30px;
        border : none;
        border-radius : 25px;
    }

    .qty-control button:hover {
        background-color : black;
        color  : white;
        text-align : center;
    }

    #qty {
        width : 50px;
        border-radius : 15px;
        border : none;
         text-align : center;
    }

    .q-add {
        opacity : 1; 
        position: initial; 
        width : 100% ; 
        transform: translateY(10px);
        background-color : #b3b3b3;
        border-radius : 15px;
    }

#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    pointer-events: none;
    z-index: 9999;
}

.slice {
    background: #ffffff;
    opacity: 1;
    transform: scaleY(1);
    transition: all 0.6s ease;
}

/* ÉTAT NORMAL (visible au chargement) */
body.preload .slice {
    opacity: 1;
    transform: scaleY(1);
}

/* ANIMATION DE SORTIE (révéler la page) */
body.loaded .slice {
    opacity: 0;
    transform: scaleY(0);
}

/* délai pour effet découpé */
.slice:nth-child(1) { transition-delay: 0s; }
.slice:nth-child(2) { transition-delay: 0.05s; }
.slice:nth-child(3) { transition-delay: 0.1s; }
.slice:nth-child(4) { transition-delay: 0.15s; }
.slice:nth-child(5) { transition-delay: 0.2s; }
.slice:nth-child(6) { transition-delay: 0.25s; }
.slice:nth-child(7) { transition-delay: 0.3s; }
.slice:nth-child(8) { transition-delay: 0.35s; }
#transition-overlay.active .slice {
    opacity: 1;
    transform: scaleY(1);
}
#page-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded #page-content {
    opacity: 1;
}