@import url(reset.css);
@import url(global_components.css);
@import url('https://fonts.googleapis.com/css2?family=Belanosima:wght@400;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

* {
    text-decoration: none;
    box-sizing: border-box;
}

body {
    font-family: "Belanosima", sans-serif;
    background: linear-gradient(135deg, #f8f4ea 0%, #f0ecff 100%);
    margin: 0;
    padding: 0;
}

/* SECTION */
.section {
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
    padding: 2rem 4vw;
}

/* COLONNE GAUCHE */
.col-gauche {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-shrink: 0;
    width: 320px;
    min-height: 500px;
}

.titre-customisation {
    font-size: 1.5rem;
    font-weight: 400;
    color: #3D2D00;
    align-self: flex-start;
    margin-bottom: auto;
}

.achat-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

/* PREVIEW */
.preview {
    position: relative;
    width: 280px;
    height: 440px;
    border-radius: 24px;
    flex-shrink: 0;
}

/* CALQUES */
.headAvatar {
    position: absolute;
    width: 200px;
    left: 30px;
}

.t-shirt {
    position: absolute;
    z-index: 2;
    width: 200px;
    top: 215px;
    left: 28px;
}

.hat {
    position: absolute;
    width: 230px;
    left: 18px;
    top: -10px;
}

.bras {
    position: absolute;
    z-index: 1;
    width: 200px;
    top: 215px;
    left: 48px;
}

.accessoire {
    position: absolute;
    z-index: 3;
    width: 100px;
}

/* ACHAT */
.achat-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.perso-pret {
    font-weight: 700;
    font-size: 0.85rem;
    color: #555;
}

.choice {
    width: 62px;
    height: 62px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease;
    overflow: hidden;
}

.choice.selected {
    border: 2px solid #3D2D00;
    transform: scale(1.1);
}

/* L'input ne doit jamais être bloqué */
.input-nom {
    position: relative;
    display: flex;
    padding: .7rem .7rem;
    border: none;
    border-radius: 40px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 10;
    pointer-events: all;
}

#btn-achat {
    display: inline-block;
    color: #FFF;
    background: linear-gradient(90deg, rgba(255, 184, 2, 1) 0%, rgba(203, 85, 228, 1) 100%);
    font-size: 24px;
    font-weight: 600;
    padding: 0.5rem 2.5rem;
    border-radius: 40px;
    border: 5px #FFF solid;
    cursor: pointer;
    transform: all ease .3s;
}

#btn-achat:hover {
    opacity: 0.9;
}

/* PANEL CHOIX */
.customisation {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    padding: 1.5rem 1.8rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.cate {
    margin-bottom: 1.2rem;
    border-radius: 12px;
    padding: 0.6rem 0rem;
}

.cate:last-child {
    margin-bottom: 0;
}

.title-cate {
    font-size: 1.25rem;
    font-weight: 400;
    color: #3D2D00;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.choices {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    flex-wrap: nowrap;
}

.choice {
    width: 58px;
    height: 58px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.choice:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.choice img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

#calque-avatar {
    transition: all 0.3s ease;
}

#deco-theme {
    position: absolute;
    width: 80px;
    object-fit: contain;
    animation: flotter 3s ease-in-out infinite alternate;
    top: 30%;
    /* ← ajuste pour monter/descendre */
    left: 40%;
    /* ← ajuste pour gauche/droite */
}

#deco-theme-droite {
    position: absolute;
    left: -1%;
    top: 30%;
    transform: translateY(-50%);
    width: 200px;
    animation: tourner 8s linear infinite;
}