* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #000000;
    color: #e0e0e0;
    margin: 0;
    padding-top: 20px;
    padding-bottom: 20px;
}

.header {
    width: 100%;
    margin-bottom: 1rem;
}

h1 {
    color: #d6f2ff;
    margin-bottom: 0;
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
    text-align: center;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    margin-bottom: 2rem;
    width: 90%;
    max-width: 1100px;
}

.dropdown-menu {
    position: absolute; 
    top: 40px; /* ajusté */
    transform: translateY(-50%);
    display: inline-block;
}

.dropdown-toggle {
    background-color: rgba(0, 150, 200, 0.4);
    color: #e0e0e0;
    border: 1px solid rgba(0, 217, 255, 0.5);
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(0, 180, 230, 0.6);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
    color: #ffffff;
}

.dropdown-toggle img {
    height: 1.2em;
    vertical-align: middle;
}

.dropdown-content {
    display: none;
    position: fixed;
    top: 100%;
    left: 0;
    background-color: #222222;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 9990;
    border: 1px solid rgba(0, 217, 255, 0.4);
    border-radius: 4px;
    padding: 5px 0;
    margin: 5px 0 0 0;
    list-style: none;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    color: #c0c0c0;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: rgba(0, 150, 200, 0.3);
    color: #ffffff;
}

.carousel-container {
    display: flex;
    width: 90%;
    max-width: 1100px;
    border-radius: 10px;
    background: rgba(0, 40, 60, 0.3);
    border: 1px solid rgba(0, 150, 200, 0.3);
    overflow: hidden;
    position: relative;
    min-height: 400px;
    box-shadow: 0 0 15px rgba(0, 150, 200, 0.2);
}

.fixed-content-container {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 40%;
    box-sizing: border-box;
    gap: 20px;
    overflow-y: auto;
}

.slide-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.slide-column.main-content {
    text-align: left;
}

.slide-column.extra-content {
    padding: 0;
    border-radius: 5px;
    box-sizing: border-box;
}

.loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 1.2em;
    font-style: italic;
    pointer-events: none;
}

.image-carousel-area {
    flex: 1.5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 55%;
    min-height: 400px;
    background-color: rgba(0, 0, 0, 0);
}

.carousel-wrapper {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-image {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: block;
}

.carousel-image.active {
    opacity: 1;
    z-index: 2;
}

.text-content {
    text-align: center;
    color: #c0c0c0;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 80, 110, 0.4);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 150, 200, 0.2);
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    position: relative;
    transition: width 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
}

.progress-text {
    display: block;
    position: absolute;
    left: 5px;
    color: #000000;
    font-size: 0.75em;
    font-weight: bold;
    line-height: 12px;
    white-space: nowrap;
}

.progress-container {
    position: relative;
    margin-bottom: 18px;
    padding-top: 18px;
}

.progress-container[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: #00d9ff;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.9em;
    text-shadow: 0 0 3px rgba(0, 217, 255, 0.3);
}

.quality-imprimability {
    background: #0080ff;
}

.quality-info-b {
    background: #00ff80;
}

.quality-info-c {
    background: #fff64e;
}

.quality-detail {
    background: #ff584e;
}

.quality-assembly {
    background: #00ff80;
}

.quality-painting {
    background: #fff64e;
}

.quality-taille {
    background: #ff584e;
}

h2.Model {
    font-size: 1.5em;
    margin: 0 0 5px 0;
    color: #ffffff;
}

p.Ech {
    font-size: 1.1em;
    font-weight: bold;
    color: #00d9ff;
    margin: 5px 0;
}

p.Version {
    font-size: 0.9em;
    margin: 5px 0 10px 0;
    line-height: 1.4;
    font-style: italic;
    color: #a0a0a0;
}

p.Coment {
    font-size: 0.9em;
    color: #b0b0b0;
    margin-bottom: 10px;
}

p.Reference {
    font-size: 0.9em;
    color: #b0b0b0;
    margin-bottom: 1px;
}


.dimensions-container {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    border-top: 1px dashed rgba(0, 150, 200, 0.3);
    font-size: 0.9em;
}

.dimension::after {
    content: "/";
    margin: 0 4px;
    color: #888;
}

/* Ne pas mettre de "/" après le dernier */
.dimension:last-child::after {
    content: "";
}

.dimension {
    font-size: 0.9em;
    color: #c0c0c0;
    margin: 5px 0;
    line-height: 1.4;
}

.dimension::before {
    font-weight: bold;
    color: #00d9ff;
    margin-right: 5px;
}

#Larg-display::before {
    content: "L:";
}

#Long-display::before {
    content: "lg:";
}

#Haut-display::before {
    content: "H:";
}

p.Fass {
    font-size: 0.85em;
    color: #b0b0b0;
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 150, 200, 0.3);
    padding-bottom: 8px;
    min-height: 1.2em;
}

p.field6::before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: #00d9ff;
    display: block;
    margin-bottom: 3px;
}

img.IMGtech-image {
    width: auto;
    height: 150px;
    max-width: 100%;
    object-fit: contain;
    margin-top: 15px;
    display: block;
    border-radius: 4px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.info-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(0, 150, 200, 0.4);
    color: #e0e0e0;
    border: 1px solid rgba(0, 217, 255, 0.5);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    cursor: pointer;
    flex-grow: 1;
    min-width: 100px;
}

.info-button:hover {
    background-color: rgba(0, 180, 230, 0.6);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
    color: #ffffff;
}

.info-button.disabled {
    background-color: rgba(100, 100, 100, 0.3);
    border-color: rgba(150, 150, 150, 0.4);
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 150, 200, 0.4);
    color: #e0e0e0;
    border: 1px solid rgba(0, 217, 255, 0.5);
    padding: 10px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.carousel-button:hover {
    opacity: 1;
    background-color: rgba(0, 180, 230, 0.6);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.carousel-button.prev {
    left: 10px;
    top: 8%;
}

.carousel-button.next {
    right: 10px;
    top: 8%;
}

.carousel-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 150, 200, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 217, 255, 0.4);
}

.pagination-dot.active {
    background-color: rgba(0, 217, 255, 0.9);
    border-color: rgba(0, 217, 255, 1);
    box-shadow: 0 0 5px rgba(0, 217, 255, 0.7);
}

.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(150, 200, 250, 0.1);
    border: 1px solid rgba(50, 100, 250, 0.1);
    border-radius: 5px;
    pointer-events: none;
}

footer {
    margin-top: 2rem;
    background: rgba(0, 150, 255, 0.1);
    border-top: 1px solid rgba(0, 150, 255, 0.2);
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    width: 100%;
    box-sizing: border-box;
}

.loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ccc;
    font-size: 1.2em;
    font-style: italic;
    pointer-events: none;
}

.spinner {
    margin: 0 auto 10px;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #00ccff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (max-width: 900px) {
    .carousel-container {
        flex-direction: column;
        width: 95%;
        min-height: auto;
    }

    .fixed-content-container {
        max-width: 100%;
        order: 2;
        padding: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
        align-items: flex-start;
        max-height: none;
        overflow-y: hidden;
    }
    .dropdown-menu {
        position: relative; 
        top: 40px; /* ajusté */
        transform: translateY(-50%);
        display: inline-block;
    }

    .image-carousel-area {
        min-width: 100%;
        order: 1;
        height: 35vh;
        min-height: 280px;
    }
    .carousel-wrapper {
        height: 100%;
        min-height: 400px; /* ou selon besoin */
    }
    
    .carousel-image {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
    }

    .slide-column {
        flex: 1 1 200px;
        min-width: 200px;
    }

    .slide-column.main-content {
        order: 1;
    }
    .slide-column.extra-content {
        order: 2;
    }

    img.IMGtech-image {
        height: 120px;
    }

    .button-container {
       justify-content: center;
    }
}

@media (max-width: 600px) {
     h1 {
        font-size: 1.8em;
     }
     .title-container {
         flex-direction: column;
         gap: 0.5rem;
         align-items: center;
     }
     
    .dropdown-menu {
        position: relative; 
        top: 10px; /* ajusté */
        transform: translateY(-50%);
        display: inline-block;
    }
    .fixed-content-container {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 20px;
    }
    .slide-column {
       width: 100%;
       max-width: 400px;
       flex-basis: auto;
    }
    .slide-column.main-content {
        align-items: center;
        text-align: center;
        order: 1;
    }
    .slide-column.extra-content {
        order: 2;
        width: 100%;
    }
    h2.Model {
        font-size: 1.4em;
    }
    p.Ech {
        font-size: 1.1em;
    }
    img.IMGtech-image {
        height: 100px;
    }
     .image-carousel-area {
        height: 30vh;
        min-height: 200px;
    }
    .carousel-wrapper {
        height: 100%;
        min-height: 300px; /* ou selon besoin */
    }
    .carousel-image {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
    }
    .carousel-button {
        padding: 6px 10px;
        font-size: 1.1rem;
    }
    .carousel-button.prev {
        left: 10px;
        top: 18%;
    }
    .carousel-button.next {
        right: 10px;
        top: 18%;
    }
    .carousel-pagination {
        bottom: 8px;
    }
    .pagination-dot {
        width: 7px;
        height: 7px;
    }
    footer {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}