/* a faire: 
- taille img
- flèche g/d
- position auto qd on clique
- zoom?
- barre du dessus
*/

body {
    font-family: sans-serif;
    text-align: center;
}

.mainlayout {
    display: flex;
    height: 100%;
}

.prevnext {
   display: flex;
    flex-direction:row;
    align-items: center;
    margin: 10px 0;
    width: 100%;
}

.prevnext h2 {
    margin-bottom: 10px;
    font-size: 1em;
}


.prevnext ul {
    position: relative;
     width: 200px ; 
    height: 100px ;
    list-style: none;
    padding: 0;
    margin: 0 ;
flex-shrink: 0 ; 
}


.prevnext li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* 1er enfant est visible */
.prevnext li:first-child {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

/* Style images */
.prevnext li img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;

}

/* Boutons */
.prevnext button {
    margin: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.2em;
    background: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
}

.gauche {
     width: 400px; 
    min-width: 400px;
    height: 100vh;
    background-color: #c4a4c6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
     overflow-y: auto; 

}


.droite {
    width: 100%;       
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#avatar-cadre {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


#zoneavatar {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease;
    
    /* IMPORTANT : On centre l'origine par défaut */
    transform-origin: center top;
    overflow: hidden; 
}

#zoneavatar.zoom-mode {
    /* Ajuste le chiffre 3.5 selon le zoom désiré */
    /* Le translate(0, -60px) remonte l'image pour centrer le visage */
    transform: scale(1) translate(0px, +200px);
    transform-origin: center center;
     
}

#zoneavatar .body-base {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 70%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease; 
    pointer-events: none; 

}


#zoneavatar:not(.zoom-mode) .body-base {
    /* Ajuste ce pourcentage : plus petit = corps plus loin */
    width: 26%; 
}

/* autres éléments */
#zoneavatar img:not(.body-base) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 10;
}

#zoneavatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#zoneavatar:active {
    cursor: grabbing;
    z-index: 200;
}


.hidden {
    display: none !important;
}


.top-bar {
    display: flex;
    justify-content: space-around; 
    width: 100%;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

/* carrés cliquable top-bar */
.nav-btn {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
     margin: 0 5px;
}

.nav-btn img {
    width: 80%;      
    height: 80%;
    object-fit: contain; 
    display: block;
}

.nav-btn:hover {
    background-color: #ddd;
}


.nav-btn.active {
    background-color: #bb00ff;
    color: white;
}