@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Quicksand:wght@400;700&display=swap');

body {
    margin: 0;
    height: 400vh;
    background-color: #f8eee7;
    color: #31180f;
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
}

.scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    perspective: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #ffffff;
    border: 3px solid #31180f;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #a36b46;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.8s ease;

    text-align: center;
    padding: 20px; 
    box-sizing: border-box;
}

.world {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.camera {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.line {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 2px;
    background-color: #a36b46;
    transform-origin: left center;
    pointer-events: none;
}

.decor {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #d49c72;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    background-color: #f8eee7;
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid #a36b46;
}

.card, .decor {
    overflow: hidden;
    overflow-wrap: break-word; 
}


.card > *, .decor > * {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card img, .decor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-pleine {
    padding: 0;
}