* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --ink: #070707;
    --muted-ink: rgba(7, 7, 7, .58);
    --glass: rgba(255, 255, 255, .36);
    --motion: cubic-bezier(.22, 1, .36, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #c0c0c0 100%);
    min-height: 100svh;
    overflow-x: hidden;
    position: relative;
    overflow: hidden;
    transition: all 1s ease-in-out;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* === LAYOUT === */
.container {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 20px;
}

.logo {
    width: clamp(38px, 3.2vw, 48px);
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* === MAIN CONTENT === */
.main-content {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(78px, 9svh, 112px) 20px clamp(112px, 14svh, 150px);
    margin: 0;
    width: 100%;
    height: 100svh;
}

/* === PRODUCT INFO === */
.product-info {
    position: fixed;
    left: 40px;
    top: 140px;
    transform: translateY(-50%);
    max-width: 300px;
    opacity: 0;
    transition: all .5s cubic-bezier(.4, 0, .2, 1);
    z-index: 50;
}

.product-info.active {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.product-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--ink);
    font-weight: 700;
}

.product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted-ink);
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    font-size: .9rem;
    color: var(--ink);
}

.product-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
}

/* === COLOR SWATCHES === */
.color-swatches {
    position: fixed;
    bottom: max(38px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 200;
    opacity: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
    transition: opacity .35s var(--motion), transform .35s var(--motion);
    pointer-events: none;
}

.color-swatches.visible {
    opacity: 1;
    pointer-events: auto;
}

.color-swatch {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(12, 12, 12, .72);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .18);
    transition: transform .22s var(--motion), box-shadow .22s var(--motion), border-color .22s var(--motion);
    position: relative;
}

.color-swatch:hover {
    transform: translateY(-2px) scale(1.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.color-swatch.active {
    border-color: var(--ink);
    transform: scale(1.1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* === SLIDER === */
.slider-container {
    width: 100%;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    cursor: grab;
    touch-action: pan-y;
}

.slider-container:active {
    cursor: grabbing
}

.slider-track {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 280px;
    height: 350px;
    transition: transform .65s var(--motion), opacity .55s var(--motion), filter .55s var(--motion);
    cursor: pointer;
    opacity: .5;
    filter: blur(1px);
    transform-style: preserve-3d;
    perspective: 1000px;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity, filter;
    contain: layout paint;
}

.slide.dragging {
    transition: none !important;
}

.slide.center {
    width: min(58vw, 820px);
    height: min(78svh, 880px);
    opacity: 1;
    filter: blur(0);
    z-index: 10;
    transform-style: preserve-3d;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    backface-visibility: hidden;
    transition: transform .28s var(--motion), opacity .25s ease;
    -webkit-user-drag: none;
}

@media (hover: hover) and (pointer: fine) {
    .slide.center:hover img {
        transform: rotateY(5deg) rotateX(5deg);
    }
}

/* Animation de rotation pour changement de couleur */
@keyframes rotateImage {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }

    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

.slide.rotating img {
    animation: rotateImage 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation de retournement de la vue produit */
@keyframes flipImage {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }

    49.9% {
        transform: perspective(1000px) rotateY(90deg) scale(0.96);
    }

    50% {
        transform: perspective(1000px) rotateY(-90deg) scale(0.96);
    }

    100% {
        transform: perspective(1000px) rotateY(0deg);
    }
}

.slide.flipping img {
    animation: flipImage 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === NAVIGATION === */
.slider-nav {
    position: absolute;
    bottom: -280px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 50;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .3);
    cursor: pointer;
    transition: all .3s ease;
}

.nav-dot.active {
    background: #020000;
    width: 30px;
    border-radius: 2px;
}

/* === PRICE === */
.price-tag {
    position: fixed;
    bottom: max(36px, env(safe-area-inset-bottom));
    left: 40px;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: bold;
    color: var(--ink);
    z-index: 50;
    line-height: .9;
    letter-spacing: 0;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: top;
}

/* === SOCIAL MEDIA === */
.social-media {
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 20px;
    z-index: 50;
    display: none;
    position: fixed;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #020000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: all .3s ease;
    font-size: 1.2rem;
}

.product-info {
    display: none;
}

.Degrader0 {
    background: #FFFFFF;
    background: linear-gradient(150deg, rgba(255, 255, 255, 1) 40%, rgb(29, 29, 29) 100%);
}

.Degrader1 {
    background: #FFFFFF;
    background: linear-gradient(150deg, rgba(255, 255, 255, 1) 40%, rgba(211, 49, 32, 1) 100%);
}

.Degrader2 {
    background: #FFFFFF;
    background: linear-gradient(150deg, rgba(255, 255, 255, 1) 40%, rgba(0, 55, 255, 1) 100%);

}

.Degrader3 {
    background: #FFFFFF;
    background: linear-gradient(150deg, rgba(255, 255, 255, 1) 40%, rgba(39, 219, 54, 1) 100%);

}

.Degrader4 {
    background: #FFFFFF;
    background: linear-gradient(150deg, rgba(255, 255, 255, 1) 40%, rgba(252, 126, 0, 1) 100%);

}

.Degrader5 {
    background: #FFFFFF;
    background: linear-gradient(150deg, rgba(255, 255, 255, 1) 40%, rgba(114, 19, 242, 1) 100%);

}

.Degrader6 {
    background: #FFFFFF;
    background: linear-gradient(150deg, rgba(255, 255, 255, 1) 40%, rgba(48, 135, 255, 1) 100%);

}

.t-shirt1,
.t-shirt2,
.t-shirt3,
.t-shirt4,
.t-shirt5,
.t-shirt6,
.t-shirt7 {
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: bottom right;
    transition: all 0.5s ease-in-out;
    background-position: bottom -300% right -130%;
}

.t-shirt2 {
    background-image: url(../res/background/Colection_2_Ag.webp);

}

.t-shirt3 {
    background-image: url(../res/background/Colection_2_Ra.webp);
}

.t-shirt4 {
    background-image: url(../res/background/Colection_2_El.webp);
}

.t-shirt5 {
    background-image: url(../res/background/Colection_2_Le.webp);
}

.t-shirt6 {
    background-image: url(../res/background/Colection_2_Ch.webp);
}

.t-shirt7 {
    background-image: url(../res/background/Colection_2_Md.webp);
}

.t-shirt2-active {
    background-image: url(../res/background/Colection_2_Ag.webp);
    background-position: bottom -150px right -150px;
    background-color: linear-gradient(150deg, rgba(255, 255, 255, 1) 40%, rgba(25, 117, 247, 1) 100%);

}

.t-shirt3-active {
    background-image: url(../res/background/Colection_2_Ra.webp);
    background-position: bottom -150px right -150px;
}

.t-shirt4-active {
    background-image: url(../res/background/Colection_2_El.webp);
    background-position: bottom -150px right -150px;
}

.t-shirt5-active {
    background-image: url(../res/background/Colection_2_Le.webp);
    background-position: bottom -150px right -150px;
}

.t-shirt6-active {
    background-image: url(../res/background/Colection_2_Ch.webp);
    background-position: bottom -150px right -150px;
}

.t-shirt7-active {
    background-image: url(../res/background/Colection_2_Md.webp);
    background-position: bottom -150px right -150px;
}

@media (max-width:1500px) {
    .slide.center {
        width: min(54vw, 680px);
        height: min(74svh, 760px);
    }
}

/* === RESPONSIVE === */
@media (max-width:1024px) {

    .t-shirt1,
    .t-shirt2,
    .t-shirt3,
    .t-shirt4,
    .t-shirt5,
    .t-shirt6,
    .t-shirt7 {
        background-size: 65%;
    }

    .product-info {
        left: 20px;
        max-width: 250px;
    }

    .slider-container {
        height: 100%;
    }

    .slide {
        width: 220px;
        height: 285px;
    }

    .slide.center {
        width: min(62vw, 520px);
        height: min(68svh, 620px);
    }

    .color-swatches {
        gap: 10px;
        bottom: max(30px, env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
    }

    .color-swatch {
        width: 30px;
        height: 30px;
    }
}

@media (max-width:768px) {

    .t-shirt1,
    .t-shirt2,
    .t-shirt3,
    .t-shirt4,
    .t-shirt5,
    .t-shirt6,
    .t-shirt7 {
        background-image: none;
    }

    .slider-nav {
        display: none;
    }

    .header {
        padding: 18px;
    }

    .logo {
        width: 48px;
    }

    .product-info {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        padding: 20px;
        text-align: center;
        order: 1;
    }

    .main-content {
        flex-direction: column;
        padding: 86px 14px 142px;
    }

    .slider-container {
        height: 100%;
        order: 2;
        margin-top: 0;
    }

    .slide {
        width: 150px;
        height: 200px;
    }

    .slide.center {
        width: min(88vw, 360px);
        height: min(56svh, 430px);
    }

    .price-tag {
        left: 22px;
        bottom: max(22px, env(safe-area-inset-bottom));
        font-size: clamp(1.65rem, 7.5vw, 2.05rem);
    }

    .price-currency {
        font-size: .58em;
    }

    .social-media {
        right: 20px;
        bottom: 100px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .color-swatches {
        display: flex;
        bottom: max(92px, calc(env(safe-area-inset-bottom) + 84px));
        left: 50%;
        transform: translateX(-50%);
        gap: 8px;
        padding: 9px 11px;
    }

    .color-swatch {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }

    .color-swatch.active {
        border-width: 3px;
    }
}

@media (max-width:480px) {
    .slider-container {
        height: 100%;
    }

    .slide {
        width: 132px;
        height: 176px;
    }

    .slide.center {
        width: min(88vw, 330px);
        height: min(52svh, 390px);
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .color-swatches {
        bottom: max(88px, calc(env(safe-area-inset-bottom) + 80px));
        left: 50%;
        transform: translateX(-50%);
        gap: 7px;
    }

    .color-swatch {
        width: 30px;
        height: 30px;
    }

    .color-swatch.active::after {
        font-size: 11px;
    }
}

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