
/* ... keep existing code (reset, base styles, typography, container, header, hero sections) */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9f9f9;
    color: #000000;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.2;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-family: 'Playfair Display', serif;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.input-code {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    outline: none;
    transition: all 0.2s ease-in-out;
    width: 250px;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.input-code:focus {
    border-color: #c5b358;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

/* Header with White Background */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 50px;
    width: auto;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #c5b358;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #c5b358;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.lang-toggle {
    background: none;
    border: 1px solid #000;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: #000;
    color: #f9f9f9;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.hero-text h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #333;
    max-width: 500px;
}

.cta-button {
    background: #000;
    color: #f9f9f9;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #c5b358;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 249, 249, 0.1);
    z-index: 1;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-authentication {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-authentication::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 249, 249, 0.5);
    z-index: 1;
}

.hero-video-authentication .img-hero-authentication {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Models Section with Horizontal Tabs */
.models {
    padding: 8rem 0;
    background: #fff;
}

.models h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.piano-tabs-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 3rem;
}

/* Piano Content Card */
.piano-content {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Horizontal Tabs - Equal width for 3 tabs */
.piano-tabs {
    display: flex;
    background: #f9f9f9;
    border-radius: 15px 15px 0 0;
}

.piano-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    flex: 1;
    width: calc(100% / 3);
}

.piano-tab:hover {
    background: rgba(197, 179, 88, 0.1);
}

.piano-tab.active {
    background: #fff;
    border-bottom-color: #c5b358;
    margin-bottom: -1px;
}

.tab-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.tab-name-mobile {
    display: none;
}

.tab-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 15px;
    color: #fff;
    margin-top: 0.5rem;
}

.desktop-only {
    display: inline-block;
}

.flagship-badge {
    background: #000;
}

.exclusive-badge {
    background: linear-gradient(135deg, #c5b358, #d4af37);
}

.piano-detail-content {
    display: none;
    padding: 3rem;
    background: #fff;
}

.piano-detail-content.active {
    display: block;
}

.piano-hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.piano-hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.piano-hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.piano-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    color: #fff;
}

.piano-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.piano-hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.piano-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.7s ease;
}

.piano-hero:hover .piano-hero-image img {
    transform: scale(1.05);
}

.piano-specs h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.spec-item {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.spec-item.exclusive {
    background: linear-gradient(135deg, #fff, #faf8f0);
    border: 2px solid #c5b358;
}

.spec-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.spec-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.spec-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.email-link {
    color: white;
    text-decoration: none;
}

/* ... keep existing code (craftsmanship, exclusivity, contact, footer, animations) */

/* Craftsmanship Section */
.craftsmanship {
    padding: 8rem 0;
    background: #f9f9f9;
}

.craftsmanship-content {
    display: grid;
    gap: 4rem;
    align-items: center;
}

.craftsmanship-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.craftsmanship-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.craftsmanship-images {
    display: grid;
    width: 90%;
    margin: 2rem auto;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 1rem;
}

.craftsmanship-images img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 14px;
}

.craftsmanship-images img:hover {
    transform: scale(1.02);
}

/* Exclusivity Section */
.exclusivity {
    padding: 8rem 0;
    background: #fff;
    text-align: center;
}

.exclusivity-quote {
    margin-bottom: 4rem;
}

.exclusivity-quote p {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

.production-counter h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #555;
}

.counter-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: 'Playfair Display', serif;
}

.counter-number,
.counter-total {
    font-size: 4rem;
    font-weight: 700;
    color: #c5b358;
}

.counter-separator {
    font-size: 3rem;
    color: #333;
}

.counter-status {
    font-size: 1.2rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 1rem;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: #f9f9f9;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.5rem;
    color: #c5b358;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #000;
}

.contact-note {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: #000;
    color: #f9f9f9;
    text-align: center;
}

/* === Immersive Gallery === */
.immersive-gallery {
    padding: 2rem 0;
}

.gallery-wrapper {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-carousel {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.gallery-slide img {
    width: 100%;
    height: 60vh; /* Hauteur relative à l'écran par défaut */
    max-height: 600px;
    object-fit: cover;
    border-radius: 15px;
    display: block; /* pour supprimer l'espace blanc en bas */
}

/* Flèches */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 48px;
    height: 48px;
    font-size: 24px;
    line-height: 48px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 0;
}

.gallery-arrow.left {
    left: 10px;
}

.gallery-arrow.right {
    right: 10px;
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .piano-tabs {
        gap: 0;
        padding: 0;
    }
    
    .piano-tab {
        padding: 1rem 0.5rem 1.25rem 0.5rem;
    }
    
    .piano-hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .craftsmanship-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 300px);
    }

    .gallery-item.large {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 1rem;
    }

    .nav-brand {
        gap: 0.5rem;
    }

    .brand-logo {
        height: 40px;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .models {
        padding: 4rem 0;
    }

    .models h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .piano-tabs {
        flex-direction: column;
        gap: 0;
    }

    .piano-tab {
        width: 100%;
        padding: 1rem 1.5rem;
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
    }

    .piano-tab.active {
        border-left-color: #c5b358;
        border-bottom: none;
        margin-bottom: 0;
        margin-left: -1px;
    }

    /* Show mobile text, hide desktop text */
    .tab-name {
        display: none;
    }

    .tab-name-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.1rem;
        font-weight: 600;
        font-family: 'Playfair Display', serif;
        width: 100%;
    }

    .tab-name-mobile .tab-badge {
        margin-top: 0;
        margin-left: 1rem;
        flex-shrink: 0;
    }

    .desktop-only {
        display: none;
    }

    .piano-detail-content {
        padding: 2rem;
    }

    .piano-hero-text h1 {
        font-size: 2rem;
    }

    .piano-hero-subtitle {
        font-size: 1.1rem;
    }

    .craftsmanship {
        padding: 4rem 0;
    }

    .craftsmanship-text h2 {
        font-size: 2rem;
    }

    .craftsmanship-images {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .piano-hero-image img {
        height: 300px;
    }

    .exclusivity {
        padding: 4rem 0;
    }

    .exclusivity-quote p {
        font-size: 1.5rem;
    }

    .counter-display {
        flex-direction: column;
        gap: 0.5rem;
    }

    .counter-number,
    .counter-total {
        font-size: 3rem;
    }

    .counter-status {
        margin-left: 0;
        margin-top: 1rem;
    }

    .contact {
        padding: 4rem 0;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-email {
        font-size: 1.2rem;
    }

    .gallery-grid {
        padding: 0 1rem;
        gap: 0.5rem;
        grid-template-rows: repeat(3, 250px);
    }

    .gallery-slide img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .nav-menu a {
        display: none;
    }

    .nav-menu a:last-child {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .piano-detail-content {
        padding: 1.5rem;
    }

    .piano-hero-text h1 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-rows: repeat(3, 200px);
    }
}

/* Smooth scroll enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
