/* Conteneur principal */
.gallery-container {
    margin-top: 150px;
    display: flex;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}


/* Section gauche avec image et infos */
/* Section gauche */
.gallery_Left {
    margin-left: 100px;
    width: 800px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Conteneur de l'image */
.image-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: white;
}

/* Image principale */
.main-image {
    width: 100%;
    height: 700px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
   
}

/* Flèches de navigation */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    width: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    animation: rgb-border 3s infinite;
}

.image-wrapper:hover .arrow {
    opacity: 1;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Miniatures */
.thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
    padding: 10px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.thumbnail.active {
    border: 3px solid #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}

/* Box d'information */
.box {
    position: fixed;  /* Changé de sticky à fixed */
    top: 150px;
    right: 100px;    /* Distance depuis le bord droit */
    width: 400px;
    border-radius: 12px;
    padding: 25px;
    z-index: 100; 
}

/* Information du produit */
.product-info {
    width: 100%;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.product-name {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-id {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin: 20px 0;
}

.product-price {
    font-size: 28px;
    color: #007bff;
    font-weight: bold;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Box Info Container */
.boxInfo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Animation pour les transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour les images qui changent */
.main-image {
    transition: opacity 0.3s ease;
}

.main-image.changing {
    opacity: 0;
}

@keyframes rgb-border {
    0% { box-shadow: 0 0 5px rgb(255, 0, 0, 0.5); }
    25% { box-shadow: 0 0 5px rgb(0, 255, 0, 0.5); }
    50% { box-shadow: 0 0 5px rgb(0, 0, 255, 0.5); }
    75% { box-shadow: 0 0 5px rgb(255, 0, 255, 0.5); }
    100% { box-shadow: 0 0 5px rgb(255, 0, 0, 0.5); }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .gallery_Left {
        width: 800px;
    }
    
    .main-image {
        height: 600px;
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 1200px) {
    .gallery-container {
        flex-direction: column;
        align-items: center;
    }
    
    .box {
        position: relative;
        margin: 20px auto;
        width: 100%;
        max-width: 600px;
    }
    
    .gallery_Left {
        margin-left: 0;
        width: 100%;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        margin-top: 100px;
        padding: 0 10px;
    }
    
    .main-image {
        height: 400px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-name {
        font-size: 24px;
    }
    
    .product-price {
        font-size: 24px;
    }
    
    .arrow {
        width: 20px;
        height: 40px;
        font-size: 20px;
    }
}

/* Effets de hover généraux */
.box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
