/* ============================================
   HUB - PAGE DE SÉLECTION PRODUIT (GLASSMORPHISM V2)
   ============================================ */

.hub-content {
    padding: 40px 40px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

/* Titre principal avec effet subtil */
.hub-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-selection {
    width: 100%;
    max-width: 480px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ============================================
   CARTES PRODUITS - CARRÉES GLASSMORPHISM
   ============================================ */

.product-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Image carrée glassmorphism */
.product-choice-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(200, 200, 200, 0.3);
    cursor: pointer;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-choice-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.product-choice-card:hover .product-choice-image {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(200, 200, 200, 0.5);
}

.product-choice-card:hover .product-choice-image::before {
    opacity: 1;
}

.product-choice-card:active .product-choice-image {
    transform: translateY(-4px) scale(0.98);
}

.product-choice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-choice-card:hover .product-choice-image img {
    transform: scale(1.1);
}

/* Titre produit - EN DEHORS de la carte */
.product-choice-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.product-choice-card:hover .product-choice-title {
    color: #000;
    transform: translateY(-2px);
}

/* ============================================
   BOUTON PANIER - STYLE EXACT DE L'ÉDITEUR
   ============================================ */

.hub-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hub-cart-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hub-cart-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hub-cart-badge {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hub-cart-btn:hover .hub-cart-badge {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================
   TITRE ÉCRAN D'ACCUEIL (GAUCHE)
   ============================================ */

.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
}

.welcome-logo {
    margin-bottom: 30px;
}

.welcome-logo img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.welcome-title {
    font-size: 36px;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

/* Style pour "by Ro Studio" */
.welcome-title .brand-by {
    font-style: italic;
}

.welcome-title .brand-bold {
    font-weight: 700;
}

/* Scrollbar personnalisée glassmorphism */
.hub-content::-webkit-scrollbar {
    width: 8px;
}

.hub-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 4px;
}

.hub-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.hub-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Ligne séparatrice glassmorphism */
.hub-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(200, 200, 200, 0.4) 50%, 
        transparent 100%
    );
    margin: 20px 0 30px 0;
}

/* ============================================
   STYLES SETUP PANEL
   ============================================ */

.setup-panel {
    position: relative;
}

.panel-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.panel-logo {
    width: 60px;
    height: 60px;
}

.panel-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.back-to-site {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 14px;
    color: #666;
    text-decoration: underline;
    transition: color 0.3s;
    cursor: pointer;
}

.back-to-site:hover {
    color: #000;
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Layout passe en colonne */
    .configurator {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    /* Preview panel en haut */
    .preview-panel {
        width: 100%;
        height: auto;
        min-height: 300px;
        order: 2;
    }
    
    .welcome-screen {
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .welcome-logo img {
        width: 80px;
        height: 80px;
    }
    
    .welcome-title {
        font-size: 24px;
        line-height: 1.5;
        white-space: nowrap;
    }
    
    /* Texte sur 2 lignes mobile */
    .welcome-title .mobile-break {
        display: block;
    }
    
    /* Setup panel en bas */
    .setup-panel {
        width: 100%;
        height: auto;
        order: 1;
        position: relative;
    }
    
    .panel-header {
        padding: 16px 20px;
    }
    
    .panel-logo {
        width: 50px;
        height: 50px;
    }
    
    .hub-content {
        padding: 30px 20px 80px;
        justify-content: flex-start;
    }
    
    .hub-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    /* Cartes en 1 colonne */
    .product-selection {
        grid-template-columns: 1fr;
        max-width: 280px;  /* 👈 Réduit (était 100%) */
        gap: 20px;  /* 👈 Gap réduit (était 24px) */
        margin: 0 auto;  /* 👈 Centrer */
    }
    
    .product-choice-title {
        font-size: 18px;
    }
    
    .product-choice-card:hover .product-choice-image {
        transform: translateY(-5px) scale(1.02);
    }
    
    /* Bouton retour en bas */
    .back-to-site {
        bottom: 20px;
        right: 20px;
        font-size: 13px;
    }
}

/* Desktop - texte sur 1 ligne */
@media (min-width: 769px) {
    .welcome-title .mobile-break {
        display: none;
    }
    
    .welcome-title .brand-bold {
        display: block;  /* Force le retour à la ligne */
        font-weight: 700;
    }
}