:root {
    --primary-color: rgba(255, 117, 0, 0.8);
    --button-color: #5c7388;
    --hover-color: rgba(255, 117, 0, 1);
    --text-color: #333;
    --light-gray: #f8f8f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    border-bottom: 1px solid #eee;
}

.header-top {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.header-icons a {
    color: var(--button-color);
    font-size: 20px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--button-color);
    text-decoration: none;
}

/* Product Section */
.product-section {
    padding: 40px 0;
}

.product-section h1 {
    margin-bottom: 30px;
    color: var(--button-color);
}

/* Configurator Styles */
.configurator-container {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

/* Price Section */
.price-section {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.price {
    font-size: 24px;
    margin-bottom: 15px;
}

.price span {
    font-weight: bold;
    color: var(--button-color);
    display: inline-block;
    transition: transform 0.2s ease;
}

.add-to-cart {
    width: 100%;
    padding: 15px;
    background: var(--button-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: var(--hover-color);
}

/* Product Info */
.product-info {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.product-info div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* Footer Styles */
.main-footer {
    background: var(--light-gray);
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h3 {
    color: var(--button-color);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-color);
    text-decoration: none;
}

.payment-icons {
    font-size: 24px;
    color: var(--button-color);
}

.newsletter-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.newsletter-form button {
    background: var(--button-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    background: var(--button-color);
    color: white;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .configurator-container {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Style des contrôles */
.controls-container {
    width: 100%;
    max-width: 800px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.control-item {
    display: flex;
    flex-direction: column;
}

.control-item label {
    display: block;
    margin-bottom: 8px;
    color: var(--button-color);
    font-weight: 500;
    font-size: 14px;
}

.config-dropdown {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c7388' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

/* Responsive design pour les contrôles */
@media (max-width: 1200px) {
    .controls-container {
        max-width: 600px;
    }
}

@media (max-width: 992px) {
    .dropdown-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .controls-container {
        margin-top: 30px;
        padding: 20px;
    }

    .dropdown-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Unity Container Styles */
#unity-container {
    width: 100%;
    position: relative;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(92, 115, 136, 0.1);
    padding: 25px;
    min-height: 600px;
    transition: all 0.3s ease;
}

#unity-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#unity-canvas {
    width: 100% !important;
    min-height: 600px !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(92, 115, 136, 0.15);
}

/* Ajustement pour le responsive */
@media (max-width: 1200px) {
    #unity-container {
        min-height: 500px;
    }
    #unity-canvas {
        min-height: 500px !important;
    }
}

@media (max-width: 768px) {
    #unity-container {
        min-height: 400px;
        padding: 10px;
    }
    #unity-canvas {
        min-height: 400px !important;
    }
}

/* Cacher le footer Unity quand il n'est pas nécessaire */
#unity-footer {
    display: none;
}

/* Loading bar styles */
#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px;
}

#unity-progress-bar-empty {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #unity-canvas {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    #unity-container {
        margin-bottom: 20px;
    }
    
    #unity-canvas {
        aspect-ratio: 3/4;
        max-height: 70vh;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    #unity-canvas {
        aspect-ratio: 2/3;
        max-height: 60vh;
    }
}

/* Pour les grands écrans */
@media (min-width: 1600px) {
    #unity-canvas {
        max-height: 800px;
    }
}

/* Style pour les labels des dropdowns */
.dropdown-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--button-color);
    font-weight: 500;
    font-size: 14px;
}

.dropdown-group > * {
    margin-bottom: 20px;
}

.dropdown-group > *:last-child {
    margin-bottom: 0;
}

/* Style du sélecteur de scène modifié */
.scene-selector {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.scene-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.scene-option {
    aspect-ratio: 16/10;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.scene-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene-option span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    font-size: 14px;
    font-weight: 500;
}

.scene-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(92, 115, 136, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scene-options {
        grid-template-columns: 1fr;
    }
    
    #unity-container {
        padding: 15px;
        min-height: 400px;
    }
}

/* Ajustements pour le header en mobile */
@media (max-width: 768px) {
    .header-top {
        padding: 5px 10px;
        font-size: 12px;
    }

    .header-main {
        padding: 10px 15px;
    }

    .logo img {
        max-height: 40px; /* Ajuster selon la taille de votre logo */
        width: auto;
    }

    .header-icons {
        gap: 15px;
    }

    .header-icons a {
        font-size: 18px;
    }

    .container {
        padding: 0 15px;
    }

    .product-section {
        padding: 20px 0;
    }

    .breadcrumb {
        padding: 10px 0;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* Ajuster l'espacement du conteneur principal */
    .configurator-container {
        margin-top: 15px;
        gap: 20px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .header-top {
        font-size: 11px;
        line-height: 1.3;
    }

    .logo img {
        max-height: 35px;
    }

    .header-icons {
        gap: 12px;
    }

    .container {
        padding: 0 10px;
    }
} 