/* =============================================================================
   MAISON OLIVIER - PROTOTYPE V2
   Design: Glassmorphism 3D & Profondeur
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* KAWARA CAPS FONT */
@font-face {
    font-family: 'Kawara Caps';
    src: url('../fonts/KawaraCaps.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette Glassmorphism - Blanc/Gris clair/Irisé */
    --bg-gradient-1: linear-gradient(135deg, #ffffff 0%, #e8e8e8 50%, #f5f5f5 100%);
    --bg-gradient-2: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 50%, #fafafa 100%);
    --bg-gradient-3: linear-gradient(135deg, #ffffff 0%, #e5e5e5 50%, #f8f8f8 100%);
    
    /* Gradient irisé subtil */
    --gradient-iridescent: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 25%, rgba(255, 255, 255, 0.95) 50%, rgba(245, 245, 245, 0.85) 75%, rgba(255, 255, 255, 0.9) 100%);
    
    /* Fond principal */
    --bg-primary: #ffffff;
    
    /* Glass Colors - Blanc/Gris clair */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    
    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #2d3748;
    --text-tertiary: #718096;
    
    /* Accents Blanc/Gris clair/Irisé */
    --accent-primary: #4a5568;
    --accent-secondary: #718096;
    --accent-light: #e2e8f0;
    --accent-iridescent: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 240, 240, 0.3) 100%);
    
    /* Couleurs spécifiques des œuvres */
    --color-blue-ocean: #1e90ff;
    --color-vert-sapin: #228b22;
    --color-vert-foret: #2d5016;
    
    /* Espacements */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 96px;
    
    /* Typographie */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Courbes */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --radius-full: 9999px;
    
    /* Ombres 3D */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.2);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    padding-top: 60px; /* Space for fixed header */
}

/* =============================================================================
   SITE HEADER - Minimalist
   ============================================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid #000000;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-link {
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: normal;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 4px;
}

.header-link:hover {
    opacity: 0.6;
}

.header-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000000;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    position: relative;
}

.header-icon-link:hover {
    opacity: 0.6;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #000000;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-icon-svg {
    display: block;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
}

.lang-option {
    cursor: pointer;
    color: #000000;
    text-transform: uppercase;
}

.lang-option:hover {
    opacity: 0.6;
}

.lang-option.active {
    font-weight: bold;
}

.lang-separator {
    color: #000000;
}

.header-icon {
    font-size: 1.25rem;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-icon:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 20px;
    }
    
    .header-right {
        gap: 16px;
    }
    
    .header-link,
    .language-selector {
        font-size: 0.8125rem;
    }
}

/* ANIMATION FOND GRADIENT - Blanc/Gris clair/Iridécent */
body::before {
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   
    z-index: 0;
    pointer-events: none;
}


/* CONTAINER PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}


/* REFLECTION EFFET */
.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%
    );
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* TITRES */
h1 {
    font-family: Arial, sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: bold;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 50%, var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

/* SOULIGNEMENT GRADIENT - Iridécent */
.underline {
    width: 100px;
    height: 2px;
    background: #000000;
    margin: var(--spacing-md) auto;
}

/* TEXTE */
p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.baseline {
    font-size: clamp(1.125rem, 2vw, 1.625rem);
    font-style: italic;
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    letter-spacing: 0.02em;
    opacity: 0.95;
}

.description {
    font-size: 1.0625rem;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* GALERIE OEUVRES - Cards flottantes 3D */
.artworks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    perspective: 1000px;
}

.artwork-item {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0;
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    transform-style: preserve-3d;
}

.artwork-item:hover {
    transform: translateY(-16px) rotateX(5deg);
    box-shadow: var(--shadow-xl);
}

.artwork-placeholder {
    width: 100%;
    height: 320px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 700;
    font-family: var(--font-display);
    color: white;
    transition: var(--transition-base);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    overflow: hidden;
    /* Couleur par défaut si pas de couleur inline */
    background: var(--color-blue-ocean);
}

/* Couleurs spécifiques par défaut si pas de couleur inline */
.artwork-item:nth-child(1) .artwork-placeholder {
    background: var(--color-blue-ocean);
}

.artwork-item:nth-child(2) .artwork-placeholder {
    background: var(--color-vert-sapin);
}

.artwork-item:nth-child(3) .artwork-placeholder {
    background: var(--color-vert-foret);
}

.artwork-item:hover .artwork-placeholder::before {
    opacity: 1;
}

.artwork-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.artwork-color {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* BOUTONS GLASSMORPHISM 3D */
.btn {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 18px 48px;
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    margin: var(--spacing-xs);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: var(--transition-slow);
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 0.95) 100%);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
}

/* BOUTONS IMAGES */
.buttons-container {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.btn-image {
    display: inline-block;
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-image img {
    max-width: 200px;
    height: auto;
    display: block;
    transition: var(--transition-base);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.btn-image:hover img {
    transform: translateY(-6px) scale(1.05);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
}

.btn-image:active img {
    transform: translateY(-2px) scale(1.02);
}

/* ABOUT PAGE */
.about-content {
    max-width: 800px;
    margin: var(--spacing-lg) auto;
    text-align: left;
    padding: 0 var(--spacing-md);
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.about-content h2:first-child {
    margin-top: var(--spacing-md);
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* INPUTS GLASSMORPHISM */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    max-width: 600px;
    padding: 20px 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    margin: var(--spacing-md) auto;
    display: block;
    transition: var(--transition-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: rgba(74, 85, 104, 0.5);
    box-shadow: 0 0 0 4px rgba(74, 85, 104, 0.1), var(--shadow-md);
    background: rgba(255, 255, 255, 0.5);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: var(--text-tertiary);
}

textarea {
    min-height: 180px;
    resize: vertical;
}

/* TAGS GLASSMORPHISM */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) auto;
    max-width: 700px;
}

.tag-btn {
    border: 1px solid var(--glass-border);
    padding: 14px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    border-radius: var(--radius-full);
    text-transform: capitalize;
    box-shadow: var(--shadow-sm);
}

.tag-btn:hover,
.tag-btn.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 240, 0.9) 100%);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ÉTAPES */
.step-indicator {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* LOADER 3D - Blanc/Gris clair */
.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(200, 200, 200, 0.3);
    border-top: 4px solid var(--accent-primary);
    border-right: 4px solid var(--accent-secondary);
    border-radius: 50%;
    animation: spin3d 1s linear infinite;
    margin: var(--spacing-xl) auto;
    box-shadow: var(--shadow-md);
}

@keyframes spin3d {
    0% { transform: rotate(0deg) rotateX(0deg); }
    100% { transform: rotate(360deg) rotateX(360deg); }
}

/* COULEURS SWATCHES - Cercles glassmorphism */
.color-swatches {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-lg) auto;
    max-width: 600px;
}

.color-swatch {
    width: 70px;
    height: 70px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.color-swatch:hover {
    transform: scale(1.2) translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.color-swatch.selected {
    border-color: var(--text-primary);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.color-swatch.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* COULEURS SPÉCIFIQUES */
.color-blue { background: var(--color-blue-ocean); }
.color-red { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.color-green { background: var(--color-vert-sapin); }
.color-yellow { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.color-gray { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.color-white { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }

/* LISTE RÉCAPITULATIF */
.summary-list {
    text-align: left;
    max-width: 600px;
    margin: var(--spacing-xl) auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.summary-item:last-child {
    border-bottom: 2px solid var(--text-primary);
    font-weight: 700;
    margin-top: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 1.125rem;
}

/* CHECKBOX CUSTOM */
.checkbox-wrapper {
    position: relative;
    display: inline-block;
}

input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

input[type="checkbox"] + label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--glass-border);
    margin-right: var(--spacing-xs);
    vertical-align: middle;
    transition: var(--transition-base);
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border-radius: 6px;
}

input[type="checkbox"]:checked + label::before {
    background: var(--text-primary);
    border-color: var(--text-primary);
    content: '✓';
    text-align: center;
    line-height: 24px;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

/* SUCCESS ICON 3D - Blanc/Gris */
.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 240, 0.9) 100%);
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 3.5rem;
    color: var(--text-primary);
    font-weight: 300;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ANIMATIONS ENTRANCE */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE MOBILE */
@media (max-width: 1024px) {
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .box {
        padding: var(--spacing-lg) var(--spacing-md);
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .box {
        padding: var(--spacing-md) var(--spacing-sm);
        border-radius: var(--radius-md);
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .artworks-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .artwork-placeholder {
        height: 280px;
    }
    
    .tags-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .color-swatches {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .color-swatch {
        width: 60px;
        height: 60px;
    }
    
    .btn {
        padding: 16px 40px;
        font-size: 0.875rem;
        width: 100%;
        margin: var(--spacing-xs) 0;
    }
    
    .buttons-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .btn-image img {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .box {
        padding: var(--spacing-md) var(--spacing-sm);
        border-radius: var(--radius-md);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .tags-grid {
        grid-template-columns: 1fr;
    }
    
    .color-swatches {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .artwork-placeholder {
        height: 240px;
    }
}


/* =============================================================================
   HOME PAGE - Page d'accueil
   ============================================================================= */

.home-container {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm);
    background: #ffffff;
    position: relative;
    z-index: 10;
}

.home-title {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    letter-spacing: 0.05em;
}

.home-subtitle {
    font-family: Arial, sans-serif;
    font-weight: normal;
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    letter-spacing: 0.1em;
}

.home-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.home-btn {
    display: inline-block;
    cursor: pointer;
}

.home-btn img {
    max-width: 300px;
    height: auto;
    display: block;
    border: none;
    padding: 0;
    margin: 0;
}

/* =============================================================================
   MENU PAGE - Page menu
   ============================================================================= */

.menu-container {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-sm);
    background: #ffffff;
    position: relative;
    z-index: 10;
	padding-top:160px;
}

.menu-title {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-transform: uppercase;
    color: var(--text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: 40px;
    text-align: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
}

/* Grille 3x3 pour les 9 customs */
.menu-grid-9 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    gap: var(--spacing-sm);
}

.menu-btn {
    display: inline-block;
    cursor: pointer;
}

.menu-btn img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
}

.back-link {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: var(--spacing-md);
    transition: var(--transition-fast);
	z-index:1000;
}

.back-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* RESPONSIVE - HOME & MENU */
@media (max-width: 768px) {
    .home-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .home-btn img {
        max-width: 250px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .menu-btn img {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .home-title {
        font-size: 1.5rem;
    }
    
    .menu-title {
        font-size: 2rem;
    }
    
    .home-btn img {
        max-width: 200px;
    }
    
    .menu-btn img {
        max-width: 200px;
    }
}

/* =============================================================================
   PRODUCT PAGE - Pages produit
   ============================================================================= */

.product-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    background: #ffffff;
    gap: var(--spacing-xl);
}

.product-image {
    flex: 1;
    max-width: 500px;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.product-info {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.product-title {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
}

.product-description {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-price {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 2rem;
    color: var(--text-primary);
    margin: var(--spacing-md) 0;
}

.btn-add-to-cart {
    display: inline-block;
    padding: 16px 48px;
    background: #000000;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: none;
    letter-spacing: 0.1em;
}

.btn-add-to-cart:hover {
    background: #333333;
}

/* =============================================================================
   CUSTOMIZER PAGE - Painting customizer
   ============================================================================= */

.customizer-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    background: #ffffff;
}

.customizer-title {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.customizer-layout {
    display: flex;
    gap: var(--spacing-xl);
    flex: 1;
    align-items: center;
    justify-content: center;
}

.customizer-canvas {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.painting-3d {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    cursor: grab;
    --painting-color: #1e90ff;
}

.painting-3d:active {
    cursor: grabbing;
}

.painting-front {
    width: 100%;
    height: 100%;
    background: var(--painting-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
}

.painting-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
}

.painting-text {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 3rem;
    color: #000000;
    text-transform: uppercase;
    z-index: 1;
    text-align: center;
    word-break: break-word;
    padding: var(--spacing-md);
}

.canvas-hint {
    margin-top: var(--spacing-md);
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-align: center;
}

.customizer-controls {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: #f5f5f5;
    border-radius: 8px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.control-group label {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.control-group input[type="text"] {
    padding: 12px 16px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    border: 1px solid #dddddd;
    border-radius: 4px;
    background: #ffffff;
}

.control-group input[type="color"] {
    width: 100%;
    height: 50px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    cursor: pointer;
}

.painting-type,
.painting-price {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

/* RESPONSIVE - Product & Customizer */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }
    
    .customizer-layout {
        flex-direction: column;
    }
    
    .painting-3d {
        width: 300px;
        height: 300px;
    }
    
    .painting-text {
        font-size: 2rem;
    }
    
    .customizer-controls {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .painting-3d {
        width: 250px;
        height: 250px;
    }
    
    .painting-text {
        font-size: 1.5rem;
    }
}

/* =============================================================================
   NEW PRODUCT PAGE - Layout vertical centré
   ============================================================================= */

.product-page {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: #f5f5f5;
    position: relative;
}

.product-page-header {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-transform: uppercase;
    color: #000000;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.product-page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.product-page-image {
    margin-bottom: var(--spacing-xl);
}

.product-page-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.product-page-details {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.product-page-brand,
.product-page-name,
.product-page-drop,
.product-page-size {
	
    font-family: Arial, sans-serif;
    font-size: 1.125rem;
    color: #000000;
    margin: 0;
}

.product-page-name {
    font-weight: bold;
	text-transform: uppercase;
}

.product-page-price {
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    margin: var(--spacing-md) 0;
}

.product-page-button {
    display: inline-block;
    padding: 12px 48px;
    background: transparent;
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    border: 2px solid #000000;
    margin-top: var(--spacing-sm);
    cursor: pointer;
}

.product-page-button:hover {
    background: #000000;
    color: #ffffff;
}

.product-page-back {
    position: absolute;
    bottom: var(--spacing-lg);
    left: var(--spacing-lg);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: #000000;
    text-decoration: none;
}

.product-page-back:hover {
    text-decoration: underline;
}

/* =============================================================================
   NEW CUSTOMIZER - Layout avec sidebar
   ============================================================================= */

.customizer-new {
    min-height: calc(100vh - 60px);
    display: flex;
    background: #ffffff;
    position: relative;
}

.customizer-sidebar {
    display: none;
}

.customizer-sidebar-title {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #000000;
    margin: 0;
}

.customizer-sidebar-size,
.customizer-sidebar-material {
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    color: #000000;
    margin: 0;
}

.customizer-sidebar-expand {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    text-align: left;
    padding: 0;
    margin-top: var(--spacing-md);
}

.customizer-main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.customizer-info {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customizer-header {
    font-family: Arial, sans-serif;
    font-weight: bold;
	text-transform:uppercase;
    font-size: 1.25rem;
    color: #000000;
    margin: 0;
}

.customizer-live-text {
    font-family: Arial, sans-serif;
    font-weight: normal;
	font-style:italic;
    font-size: 1.25rem;
    color: #000000;
    margin: 0;
	text-transform: uppercase;
}

.customizer-size,
.customizer-material {
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    color: #000000;
    margin: 0;
}

.customizer-price {
    font-family: Arial, sans-serif;
    font-size: 1.25rem;
	font-weight:bold;
    color: #000000;
    margin: 0;
}


.customizer-painting-area {
    margin-bottom: var(--spacing-md);
}

.customizer-painting {
    width: 450px;
    height: 350px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.customizer-painting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
}

.customizer-painting-text {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 3.5rem;
    color: #ffffff;
    text-transform: uppercase;
    z-index: 1;
    text-align: center;
    word-break: break-word;
    padding: var(--spacing-md);
}

.customizer-toggle {
    display: flex;
    gap: var(--spacing-lg);
    //margin-bottom: var(--spacing-sm);
	justify-content: center; 
    align-items: center; 
	
}

.customizer-toggle-btn {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: #999999;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.customizer-toggle-btn.active {
    color: #000000;
}

.customizer-text-input {
    margin-bottom: var(--spacing-md);
}

.customizer-text-input input {
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid #000000;
    border-radius: 0;
    background: #ffffff;
    padding: 12px 24px;
    outline: none;
    width: 300px;
}

.customizer-colors {
	
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    max-width: 450px;
	margin: 0 auto;
}

.customizer-color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #000000;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 1;
    filter: none;
    flex-shrink: 0;
}


.customizer-color-btn_mob {
    width : 7vw;
    height: 7vw;
    border-radius: 50%;
    border: 1px solid #000000;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 1;
    filter: none;
    flex-shrink: 0;
	margin-bottom:3vh;
}

.customizer-color-btn.active {
    border-width: 3px;
}

/* RESPONSIVE - New layouts */
@media (max-width: 768px) {
    .customizer-new {
        flex-direction: column;
    }
    
    .customizer-sidebar {
        width: 100%;
        padding: var(--spacing-md);
    }
    
    .customizer-painting {
        width: 350px;
        height: 280px;
    }
    
    .customizer-painting-text {
        font-size: 2.5rem;
    }
    
    .product-page-image img {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .customizer-painting {
        width: 280px;
        height: 220px;
    }
    
    .customizer-painting-text {
        font-size: 2rem;
    }
    
    .customizer-text-input input {
        width: 200px;
        font-size: 1.25rem;
    }
    
    .customizer-colors {
        gap: var(--spacing-sm);
    }
    
    .product-page-image img {
        max-width: 280px;
    }
}

/* =============================================================================
   UNIFIED BACK LINK - Style uniforme pour tous les retours
   ============================================================================= */

.back-link,
.product-page-back,
.customizer-back {
    //position: absolute;
    margin-bottom: var(--spacing-lg);
    margin-top:0;
    margin-left: var(--spacing-lg);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: #000000;
    text-decoration: none;
    font-weight: normal;
}

.back-link:hover,
.product-page-back:hover,
.customizer-back:hover {
    text-decoration: underline;
}

/* =============================================================================
   MINIMAL PAGE - Style minimaliste pour About, Chat, etc.
   ============================================================================= */

.minimal-page {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-md);
    background: #ffffff;
    position: relative;
}

.minimal-page-title {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-transform: uppercase;
    color: #000000;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.minimal-content {
    max-width: 700px;
    width: 100%;
    text-align: left;
}

.minimal-content h2 {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
}

.minimal-content p {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: var(--spacing-md);
}

/* =============================================================================
   LOGIN & CHECKOUT PAGES
   ============================================================================= */

.login-form {
    max-width: 400px;
    margin: var(--spacing-lg) 0;
}

.login-input {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    padding: 12px 16px;
    border: 1px solid #000000;
    border-radius: 0;
    background: #ffffff;
    color: #000000;
    margin-bottom: var(--spacing-md);
}

.login-input:focus {
    outline: none;
    border-color: #000000;
}

.login-message {
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    color: #666666;
    margin-top: var(--spacing-md);
    line-height: 1.6;
}

.btn-minimal {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: normal;
    padding: 12px 32px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-minimal:hover {
    background: #ffffff;
    color: #000000;
}

.cart-summary {
    max-width: 500px;
    margin: var(--spacing-lg) 0;
}

.cart-item {
    display: flex;
	flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item-name {
    font-weight: normal;
    color: #000000;
}

.cart-item-price {
    font-weight: normal;
    color: #000000;
}

.cart-subtotal {
    margin-top: var(--spacing-md);
    font-weight: normal;
}

.cart-total {
    font-weight: bold;
    font-size: 1.125rem;
    border-bottom: none;
    margin-top: var(--spacing-sm);
}

.cart-actions {
    margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
    .minimal-content {
        max-width: 100%;
    }
    
    .minimal-page-title {
        font-size: 1.25rem;
    }
    
    .minimal-content h2 {
        font-size: 1.25rem;
    }
    
    .login-form {
        max-width: 100%;
    }
    
    .cart-summary {
        max-width: 100%;
    }
}

/* =============================================================================
   GALLERY PAGE - Page galerie
   ============================================================================= */

.gallery-content {
    max-width: 900px;
    width: 100%;
}

.gallery-content h2 {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.gallery-description {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: #666666;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.gallery-item-container {
    position: relative;
}

.gallery-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    color: #ffffff;
    opacity: 0;
}

.gallery-item-container:hover .gallery-delete-btn {
    opacity: 1;
}

.gallery-delete-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.15);
}

.gallery-delete-btn svg {
    pointer-events: none;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-item-title {
    font-family: Arial, sans-serif;
	text-transform:uppercase;
	font-style:italic;
    font-weight: bold;
    font-size: 1rem;
    color: #000000;
    margin: 0;
}

.gallery-item-size,
.gallery-item-material {
    font-family: Arial, sans-serif;
    font-weight: normal;
    font-size: 0.875rem;
    color: #000000;
    margin: 0;
}

.gallery-item-color {
    display: none;
}

/* =============================================================================
   CHAT PAGE - Page chat
   ============================================================================= */

.chat-content {
    max-width: 700px;
    width: 100%;
}

.chat-content h2 {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.chat-description {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: #666666;
    margin-bottom: var(--spacing-xl);
}

.chat-messages {
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    border: 1px solid #e0e0e0;
    background: #fafafa;
}

.chat-message {
    margin-bottom: var(--spacing-md);
    display: flex;
}

.chat-message p {
    font-family: Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: 12px 16px;
    border-radius: 0;
    margin: 0;
    max-width: 80%;
}

.chat-message-bot p {
    background: #ffffff;
    color: #000000;
    border: 1px solid #e0e0e0;
}

.chat-message-user {
    justify-content: flex-end;
}

.chat-message-user p {
    background: #000000;
    color: #ffffff;
}

.chat-input-container {
    display: flex;
    gap: var(--spacing-sm);
}

.chat-input {
    flex: 1;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    padding: 14px 16px;
    border: 1px solid #000000;
    border-radius: 0 !important;
    background: #ffffff;
    outline: none;
    height: 48px;
    box-sizing: border-box;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

.chat-send-btn {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    padding: 14px 32px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    height: 48px;
    box-sizing: border-box;
}

.chat-send-btn:hover {
    background: #333333;
}

/* RESPONSIVE - Gallery & Chat */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-messages {
        min-height: 300px;
        max-height: 400px;
    }
    
    .chat-message p {
        max-width: 90%;
    }
}

/* =============================================================================
   CUSTOMIZER DONE BUTTON
   ============================================================================= */

.customizer-actions {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    display: flex;
    gap: 16px;
    z-index: 100;
}

.customizer-done-btn {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 12px 32px;
    background: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.customizer-done-btn:hover {
    background: #333333;
}

.customizer-save-btn {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.customizer-save-btn:hover {
    background: #f5f5f5;
}

/* =============================================================================
   PAINTING RESULT PAGE
   ============================================================================= */

.painting-result-canvas {
    width: 100%;
    max-width: 500px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.painting-result-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
}

.painting-result-text {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 3rem;
    color: #ffffff;
    text-transform: uppercase;
    z-index: 1;
    text-align: center;
    word-break: break-word;
    padding: var(--spacing-md);
}

.gallery-custom-painting {
    position: relative;
}

.gallery-custom-painting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
}

@media (max-width: 768px) {
    
    .customizer-done-btn {
        padding: 10px 24px;
        font-size: 0.875rem;
    }
    
    .painting-result-canvas {
        max-width: 350px;
        height: 280px;
    }
    
    .painting-result-text {
        font-size: 2rem;
    }
}

/* =============================================================================
   GALLERY ORDER BUTTON
   ============================================================================= */

.gallery-order-btn {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.875rem;
    text-transform: uppercase;
    padding: 8px 24px;
    background: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    margin-top: var(--spacing-sm);
    width: 100%;
}

.gallery-order-btn:hover {
    background: #333333;
}

/* =============================================================================
   CUSTOMIZER 3D ENHANCEMENTS
   ============================================================================= */

.customizer-painting {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.customizer-3d-hint {
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    color: #666666;
    text-align: center;
    margin-top: var(--spacing-sm);
}

/* Ajouter perspective pour l'effet 3D */
.customizer-painting-area {
    perspective: 1000px;
}

@media (max-width: 768px) {
    .gallery-order-btn {
        padding: 6px 20px;
        font-size: 0.8125rem;
    }
}

/* =============================================================================
   KAWARA CAPS FONT - For dates painting
   ============================================================================= */

.painting-text-kawara {
    font-family: 'Kawara Caps', Arial, sans-serif !important;
    -webkit-text-stroke: 2px #ffffff;
    text-stroke: 2px #ffffff;
    font-weight: normal !important;
    letter-spacing: 0.05em;
    font-size: 2.8rem !important;
    padding: var(--spacing-lg) !important;
}

@media (max-width: 768px) {
    .painting-text-kawara {
        font-size: 2rem !important;
        padding: var(--spacing-md) !important;
    }
}

@media (max-width: 480px) {
    .painting-text-kawara {
        font-size: 1.5rem !important;
        padding: var(--spacing-sm) !important;
    }
}

/* Also apply to painting result for dates */
.painting-result-text.kawara-type {
    font-family: 'Kawara Caps', Arial, sans-serif !important;
    -webkit-text-stroke: 2px #ffffff;
    text-stroke: 2px #ffffff;
    font-weight: normal !important;
    letter-spacing: 0.05em;
}

/* =============================================================================
   CUSTOMIZER BACKGROUND IMAGES
   ============================================================================= */

.customizer-painting-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.customizer-painting-text {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .customizer-painting-bg {
        object-fit: contain;
    }
}

/* =============================================================================
   TRACKING OPTIONS - For names and others
   ============================================================================= */

.customizer-tracking {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    justify-content: center;
}

.tracking-btn {
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: normal;
    padding: 8px 20px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.tracking-btn.active {
    background: #000000;
    color: #ffffff;
}

.tracking-btn:hover:not(:disabled) {
    background: #333333;
    color: #ffffff;
}

.tracking-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .customizer-tracking {
        gap: var(--spacing-xs);
    }
    
    .tracking-btn {
        padding: 6px 16px;
        font-size: 0.8125rem;
    }
}



.cart-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid #e0e0e0;
}

.cart-item-details {
	flex: 1;
}

.cart-item-name {
	font-family: Arial, sans-serif;
	font-weight: bold;
	font-style:italic;
	font-size: 1rem;
	color: #000000;
	margin-bottom: 4px;
	text-transform:uppercase;
}

.cart-item-info {
	font-family: Arial, sans-serif;
	font-size: 0.875rem;
	color: #666666;
	line-height:0.875rem;
}

.cart-item-price {
	font-family: Arial, sans-serif;
	font-weight: bold;
	font-size: 1.125rem;
	color: #000000;
	margin: 0 20px;
}

.cart-item-remove {
	font-family: Arial, sans-serif;
	font-size: 0.875rem;
	color: #000000;
	background: none;
	border: 1px solid #000000;
	padding: 8px 16px;
	cursor: pointer;
	text-transform: uppercase;
}

.cart-item-remove:hover {
	background: #000000;
	color: #ffffff;
}

.cart-empty {
	text-align: center;
	padding: 60px 20px;
	color: #666666;
}

.cart-total-section {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 2px solid #000000;
}

.cart-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: Arial, sans-serif;
	font-weight: bold;
	font-size: 1.5rem;
	color: #000000;
	margin-bottom: 30px;
}

.payment-section {
	margin-top: 40px;
	padding: 30px;
	background: #f5f5f5;
	border-radius: 8px;
}

.payment-section h3 {
	font-family: Arial, sans-serif;
	font-weight: bold;
	font-size: 1.25rem;
	color: #000000;
	margin-bottom: 20px;
}

.payment-placeholder {
	text-align: center;
	padding: 40px 20px;
	color: #666666;
	font-style: italic;
}
.cardcustom
{
	display: inline-block;
	width: 20px;
	height: 20px;
	
	border: 1px solid #000;
	vertical-align: middle;
	margin-right: 8px;
		
	background-position:center center;
	background-repeat:no-repeat;
	background-size:200% 200%;
	
}

/* Burger */
.burger-btn{
    width: 40px;
    height: 40px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.burger-btn span{
    display: block;
    height: 2px;
    background: #000;
    margin: 6px 0;
}



.instagram-link{
    
}

.instagram-icon{
	margin-top:10px;
    width: 	30px;
    height: 30px;
    display: block;
}

.thin-check{
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  user-select:none;
}

.thin-check input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* Square */
.thin-check .boxi{
  width:16px;
  height:16px;
  border:1px solid #000;
  box-sizing:border-box;
  background-repeat:no-repeat;
  background-position:center;
  background-size: 12px 12px;
}

/* Checked = SVG check */
.thin-check input:checked + .boxi{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6 L4.5 9.5 L11 2' stroke='black' stroke-width='2.5' fill='none' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}

/* Text */
.thin-check .text{
  font-family: Arial, sans-serif;
  font-size: 14px;
  color:#000;
}