/* SculptLab — styles communs (artwork.css) extraits de io1.html */
/* Reset et scrollbar */
        *, *::before, *::after {
            scrollbar-width: none;
            -ms-overflow-style: none;
            box-sizing: border-box;
        }

        *::-webkit-scrollbar {
            display: none;
        }

        html, body {
            margin: 0;
            padding: 0;
            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
        }

        html::-webkit-scrollbar, body::-webkit-scrollbar {
            display: none !important;
            width: 0 !important;
        }

        body {
            font-family: Arial, sans-serif;
            color: #333;
            overflow-x: hidden;
            overflow-y: scroll;
            line-height: 1.6;
        }

        /* Bandeau turquoise */

        /* Header responsive */

        /* Menu hamburger pour mobile */

        /* Toggle langue */

        /* Fiche produit */
        .product-container {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            padding: 40px 80px;
            background: #fff;
        }

        .product-images {
            flex: 1 1 45%;
        }

        .product-images img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            object-fit: contain;
        }

        .thumbnail-row {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .thumbnail-row img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 4px;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.3s;
        }

        .thumbnail-row img:hover,
        .thumbnail-row img.active {
            opacity: 1;
        }

        /* ===== Galerie : flèches de navigation (préc./suiv.) + zoom (lightbox) ===== */
        .main-image-wrap {
            position: relative;
            display: block;
        }
        .img-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 5;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border: none;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.85);
            color: #333;
            font-size: 30px;
            line-height: 1;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
            transition: background 0.15s ease, transform 0.15s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .img-nav:hover { background: #fff; }
        .img-nav:active { transform: translateY(-50%) scale(0.92); }
        .img-nav svg { display: block; } /* chevron SVG parfaitement centré dans le rond */
        .img-nav-prev { left: 10px; }
        .img-nav-next { right: 10px; }

        .img-zoom-overlay {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.88);
            z-index: 99999;
            cursor: zoom-out;
            padding: 24px;
        }
        .img-zoom-overlay.open { display: flex; }
        .img-zoom-overlay img {
            max-width: 96%;
            max-height: 96%;
            object-fit: contain;
            border-radius: 6px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }
        @media (max-width: 480px) {
            .img-nav { width: 38px; height: 38px; font-size: 26px; }
        }

        .product-info {
            flex: 1 1 40%;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        .product-title {
            font-size: 2em;
            font-weight: bold;
            margin: 0;
        }

        .product-version {
            font-size: 1em;
            color: #777;
            margin: 5px 0 15px;
        }

        .product-price {
            font-size: 1.5em;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .buy-button {
            display: inline-block;
            padding: 12px 24px;
            font-size: 1.1em;
            color: #fff;
            background: #ff66a3;
            text-decoration: none;
            border-radius: 999px;
            transition: background-color 0.3s ease;
        }

        .buy-button:hover {
            background: #ff66a3;
        }

        /* Description en 3 colonnes */
        .product-description {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
            padding: 40px 80px;
            background: #fff;
            border-top: 1px solid rgba(0,0,0,.08);
        }

        .product-description h3 {
            margin-top: 0;
        }

        .product-description p {
            line-height: 1.5em;
        }

        /* Footer */
        footer {
            background-color: #333;
            color: #fff;
            padding: 20px 0;
            text-align: center;
            box-sizing: border-box;
        }

        footer p {
            margin: 0;
            font-size: 1em;
        }

        footer a {
            color: #ffdd00;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        footer a:hover {
            color: #ff6a00;
        }

        /* Media queries pour responsive */
        @media (max-width: 1024px) {
            
            .product-container {
                padding: 30px 50px;
                gap: 30px;
            }
            
            .product-description {
                padding: 30px 50px;
                gap: 30px;
            }}

        @media (max-width: 900px) {
            .product-description {
                grid-template-columns: 1fr;
            }}

        @media (max-width: 768px) {
            /* Menu mobile - CORRECTION PRINCIPALE */
            
            .product-container {
                flex-direction: column;
                padding: 20px 30px;
                gap: 30px;
            }
            
            .product-images {
                flex: none;
            }
            
            .product-info {
                flex: none;
            }
            
            .product-description {
                padding: 20px 30px;
                gap: 25px;
            }
            
            .thumbnail-row {
                justify-content: center;
            }}

        @media (max-width: 600px) {
            .product-container {
                padding: 15px 20px;
                gap: 25px;
            }
            
            .product-description {
                padding: 15px 20px;
                gap: 20px;
            }
            
            .product-title {
                font-size: 1.7em;
            }
            
            .product-price {
                font-size: 1.3em;
            }
            
            .buy-button {
                padding: 10px 20px;
                font-size: 1em;
            }
            
            .thumbnail-row img {
                width: 60px;
                height: 60px;
            }}

        @media (max-width: 480px) {
            
            .product-container {
                padding: 15px;
                gap: 20px;
            }
            
            .product-description {
                padding: 15px;
                gap: 15px;
            }
            
            .product-title {
                font-size: 1.5em;
            }
            
            .product-price {
                font-size: 1.2em;
            }
            
            .buy-button {
                padding: 8px 16px;
                font-size: 0.95em;
            }
            
            .thumbnail-row img {
                width: 50px;
                height: 50px;
            }
            
            footer {
                padding: 20px 15px;
            }}

        @media (max-width: 320px) {
            
            .product-title {
                font-size: 1.4em;
            }
            
            .product-price {
                font-size: 1.1em;
            }
            
            .buy-button {
                padding: 6px 12px;
                font-size: 0.9em;
            }
            
            .thumbnail-row img {
                width: 45px;
                height: 45px;
            }
            
            .product-description h3 {
                font-size: 1.1em;
            }
            
            .product-description p {
                font-size: 0.9em;
            }}

        /* Optimisation pour tablettes en mode paysage */
        @media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
            .product-container {
                padding: 25px 40px;
            }
            
            .product-description {
                padding: 25px 40px;
            }}

        /* Amélioration de l'accessibilité */
        @media (prefers-reduced-motion: reduce) {
            .thumbnail-row img {
                transition: none;
            }
            
            .buy-button {
                transition: none;
            }}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #222;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-family: Arial, sans-serif;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

#cookie-banner.show {
  transform: translateY(0);
}

#cookie-banner p {
  margin: 0;
  flex: 1;
}

#cookie-banner a {
  color: #ffd700;
  text-decoration: underline;
}

#cookie-banner button {
  background-color: #ffd700;
  color: #222;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
}

.fr, .en {
  display: none;
}

body.lang-fr .fr { display: inline; }
body.lang-en .en { display: inline; }