body {
    margin: 0;
    padding: 0;
    background-color: #0b1d35;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scene-container {
    position: relative;
    height: 100vh;
    aspect-ratio: 1920/1080;
}

.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lamps-container {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 4;
    pointer-events: none;
}

.lamps-container img {
    height: 100%;
    width: auto;
    position: absolute;
    bottom: 0;
    left: 0;
}

.tree-container {
    position: absolute;
    bottom: 16%;
    right: 1%;
    width: 18%;
    height: auto;
    z-index: 2;
}

.tree-container img {
    width: 100%;
    height: auto;
    display: block;
}

.snow-globe-wrapper {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 46%;
    aspect-ratio: 872 / 1022;
    z-index: 3;
    cursor: pointer;
}

.globe-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.snow-container {
    position: absolute;
    top: 4.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.snowflake {
    position: absolute;
    top: -10px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

.globe-glint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    pointer-events: none;
    background-image: url('../img/reflet_boule.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    z-index: 3;
    transform: scale(0.98);
}

@keyframes sparkle-anim {
    0% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    15% { opacity: 1; transform: scale(2.5) rotate(45deg); }
    40% { opacity: 1; transform: scale(1.5) rotate(180deg); }
    100% { opacity: 0; transform: scale(0) rotate(360deg); }
}

@keyframes tree-sparkle {
    0% { opacity: 0; transform: scale(0); }
    10% { opacity: 1; transform: scale(1.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0); }
}

.light-glow {
    position: absolute;
    background-image: url('../img/etincelles.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: screen;
    animation: sparkle-anim 3s infinite ease-in-out;
}

.lamp-1 {
    width: 6%;
    padding-bottom: 6%;
    height: 0;
    top: 32%;
    left: 9%;
    transform-origin: center center;
    margin-top: -3%;
    margin-left: -3%;
}

.lamp-2 {
    width: 5%;
    padding-bottom: 5%;
    height: 0;
    top: 42%;
    left: 23%;
    transform-origin: center center;
    margin-top: -2.5%;
    margin-left: -2.5%;
    animation-delay: 1.2s;
}

.tree-s1, .tree-s2, .tree-s3, .tree-s4, .tree-s5 {
    width: 15%;
    padding-bottom: 15%;
    height: 0;
    transform-origin: center center;
    margin-top: -7.5%;
    margin-left: -7.5%;
    background-image: url('../img/etincelles2.png');
    mix-blend-mode: normal;
    animation-name: tree-sparkle;
    animation-duration: 2s;
}

.tree-s1 { top: 25%; left: 45%; animation-delay: 0.5s; }
.tree-s2 { top: 50%; left: 30%; animation-delay: 1.5s; }
.tree-s3 { top: 45%; left: 60%; animation-delay: 0.2s; }
.tree-s4 { top: 75%; left: 25%; animation-delay: 2.2s; }
.tree-s5 { top: 70%; left: 70%; animation-delay: 1.0s; }

.all-gifts-wrapper {
    position: absolute;
    bottom: -2%;
    right: 17%;
    width: 22%;
    height: 30%;
    z-index: 5;
}

.gift-container {
    position: absolute;
    bottom: 0;
    cursor: pointer;
}

.gift-base, .gift-container img {
    display: block;
    width: 100%;
    height: auto;
}

.gift-medium {
    right: 0;
    width: 54%;
    aspect-ratio: 349 / 406;
    z-index: 1;
}

.gift-big {
    left: 0;
    width: 55%;
    aspect-ratio: 345 / 512;
    z-index: 2;
}

.gift-small {
    left: 35%;
    bottom: 8%;
    width: 41%;
    z-index: 3;
    cursor: default;
}

.gift-big .gift-base, .gift-medium .gift-base {
    position: relative;
    z-index: 3; 
}

.gift-watch {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10%);
    width: 65%;
    height: auto;
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gift-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 4;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gift-big .gift-lid {
    top: -73%;
    left: -9%;
    width: 106%;
    transform-origin: 20% 75%;
    transform: rotate(56deg) translate(15%, 30%) scale(1.2);
}

.gift-big .gift-watch {
    bottom: 25%;
    width: 50%;
}

.gift-big:hover .gift-lid {
    transform: rotate(0deg) translate(-44%, 70%) scale(1);
}

.gift-big:hover .gift-watch {
    transform: translateX(-50%) translateY(-45%);
    width: 100%;
}

.gift-medium .gift-lid {
    top: -5%;
    left: -4%;
    width: 108%;
    transform-origin: 4% 24%;
    transform: rotate(292deg);
}

.gift-medium .gift-watch {
    bottom: 50%;
    width: 35%;
}

.gift-medium:hover .gift-lid {
    width: 106%;
   transform: rotate(361deg) translate(47%, -32%);
}

.gift-medium:hover .gift-watch {
    transform: translateX(-50%) translateY(-13%);
    width: 100%;
}