/* =========================
   PLATEAUX & PLANS DE TRAVAIL
   ========================= */

/* Section Hero avec texte sur fond gris */
.plateaux-hero {
    background-color: #f5f5f5;
    padding: 120px 0 50px 0;
    margin-top: 0;
}

.plateaux-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.plateaux-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.plateaux-title-section {
    display: flex;
    justify-content: flex-start;
}

.plateaux-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    text-align: left;
    margin: 0;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.title-line-1,
.title-line-2 {
    display: block;
}

.plateaux-description {
    max-width: none;
    margin: 0;
    text-align: left;
}

.plateaux-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.plateaux-description strong {
    font-weight: 600;
    color: #333;
}

/* Section galerie d'images */
.plateaux-gallery {
    padding: 80px 0 40px 0;
    background-color: #fff;
}

.plateaux-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.plateaux-image-left {
    display: flex;
    flex-direction: column;
}

.plateaux-image-large,
.plateaux-image-small {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.plateaux-image-large {
    aspect-ratio: 16/10;
}

.plateaux-image-small {
    aspect-ratio: 16/10;
    margin-top: 0;
}

.plateaux-image-large img,
.plateaux-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.plateaux-image-large:hover img,
.plateaux-image-small:hover img {
    transform: scale(1.05);
}

.plateaux-image-right {
    display: flex;
    flex-direction: column;
}

.plateaux-image-small-wrapper {
    position: relative;
    overflow: hidden;
}

.plateaux-image-small-wrapper img {
    will-change: transform, opacity;
}

.plat2-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.plat2-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.plat2-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.plat2-arrow svg {
    color: #333;
    transition: transform 0.3s ease;
}

.plat2-arrow:hover svg {
    transform: translateX(2px);
}

.plat2-description {
    margin-top: 25px;
}

.plat2-description p {
    font-size: 1.4rem;
    line-height: 2.4;
    color: #666;
    margin: 0 0 20px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.plat2-description strong {
    font-weight: 600;
    color: #333;
}

/* Section Sur Mesure */
.surmesure-inline {
    margin-top: 40px;
}

.surmesure-inline .surmesure-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    margin: 0 0 10px 0;
    font-family: 'Inter', sans-serif;
}

.surmesure-inline .surmesure-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 20px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.plateaux-surmesure {
    padding: 40px 0 80px 0;
    background-color: #fff;
}

.surmesure-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.surmesure-left {
    display: flex;
    flex-direction: column;
}

.surmesure-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    margin: 0 0 10px 0;
    font-family: 'Inter', sans-serif;
}

.surmesure-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 30px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.finitions-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.finitions-surface {
    margin-top: 20px;
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
}

.finition-placeholder {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    border-radius: 4px;
}

.placeholder-text {
    font-size: 0.75rem;
    color: #888;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.texture-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.texture-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-width: 550px;
    align-items: center;
}

.texture-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.texture-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.texture-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.texture-more {
    font-size: 1.5rem;
    color: #666;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.finitions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.finition-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.finition-link {
    display: block;
    width: 100%;
    transition: opacity 0.3s ease;
}

.finition-link:hover {
    opacity: 0.8;
}

.finition-item img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 8px;
    cursor: pointer;
}

.finition-name {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.surmesure-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 100px;
    padding-left: 60px;
}

.surmesure-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin: 0 0 60px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-align: left;
}

.surmesure-description strong {
    font-weight: 600;
    color: #333;
}

.surmesure-button {
    display: inline-block;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.surmesure-button:hover {
    background-color: #000;
}

/* Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Section Notre Collection */
.collection-section {
    margin-top: 0;
    background-color: #fff;
}

.collection-header {
    padding: 80px 0 40px 0;
    background-color: #fff;
}

.collection-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.collection-tabs-wrapper {
    background-color: #f0f0f0;
    padding: 20px 0;
}

.collection-tabs {
    display: flex;
    gap: 20px;
}

.collection-tab {
    background: transparent;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.collection-tab.active {
    background-color: #fff;
    color: #333;
}

.collection-tab:hover:not(.active) {
    color: #333;
}

.collection-content {
    background-color: #fff;
    padding: 60px 0 80px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.collection-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.collection-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 400px;
}

.collection-info {
    padding-top: 20px;
}

.dimensions-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    font-family: 'Inter', sans-serif;
}

.dimensions-grid {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.dimensions-col p {
    font-size: 0.95rem;
    color: #666;
    margin: 8px 0;
    font-family: 'Inter', sans-serif;
}

.collection-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    margin-top: 10px;
}

.collection-3d {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    justify-content: space-between;
    height: 100%;
}

.model-container {
    width: 100%;
    position: relative;
}

.model-label {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 0.7rem;
    color: #666;
    font-family: 'Inter', sans-serif;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

model-viewer {
    width: 100%;
    height: 320px;
}

.collection-devis-btn {
    display: inline-block;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    align-self: flex-start;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.collection-devis-btn:hover {
    background-color: #000;
}

.coming-soon {
    text-align: center;
    color: #999;
    font-size: 1.2rem;
    padding: 100px 0;
    font-family: 'Inter', sans-serif;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .plateaux-hero {
        padding: 100px 0 60px 0;
    }
    
    .plateaux-container {
        padding: 0 30px;
    }
    
    .plateaux-hero-layout {
        gap: 50px;
    }
    
    .plateaux-title {
        font-size: 3rem;
    }
    
    .plateaux-description p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .plateaux-gallery {
        padding: 60px 0;
    }
    
    .plateaux-images {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    /* Sur mesure responsive */
    .surmesure-layout {
        gap: 40px;
    }
    
    .surmesure-right {
        padding-top: 60px;
        padding-left: 30px;
    }
    
    .texture-grid {
        max-width: 280px;
    }
    
    .finitions-grid {
        gap: 10px;
    }
    
    /* Collection responsive */
    .collection-layout {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    
    .dimensions-grid {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 4rem;
    }
    
    model-viewer {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .plateaux-hero {
        padding: 80px 0 40px 0;
        margin-top: 60px;
    }
    
    .plateaux-container {
        padding: 0 20px;
    }
    
    .plateaux-hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .plateaux-title-section {
        justify-content: center;
    }
    
    .plateaux-title {
        font-size: 2rem;
        letter-spacing: 1px;
        text-align: center;
    }
    
    .plateaux-description {
        text-align: left;
    }
    
    .plateaux-description p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .plateaux-gallery {
        padding: 40px 0;
    }
    
    .plateaux-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plateaux-image-large,
    .plateaux-image-small {
        aspect-ratio: 16/10;
    }
    
    /* Slider mobile */
    .plat2-arrow {
        width: 40px;
        height: 40px;
        right: 15px;
    }
    
    .plat2-description p {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    /* Sur mesure mobile */
    .plateaux-surmesure {
        padding: 40px 0;
    }
    
    .surmesure-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .surmesure-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .surmesure-subtitle {
        text-align: center;
    }
    
    .texture-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .texture-grid {
        max-width: 100%;
        grid-template-columns: repeat(6, 1fr);
    }
    
    .finitions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .surmesure-right {
        padding-top: 0;
        padding-left: 0;
    }
    
    .surmesure-description {
        margin-bottom: 30px;
    }
    
    .surmesure-description br {
        display: none;
    }
    
    .surmesure-button {
        width: 100%;
        text-align: center;
    }
    
    /* Collection mobile */
    .collection-header {
        padding: 40px 0 20px 0;
    }
    
    .collection-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .collection-tabs-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .collection-tabs {
        gap: 10px;
        min-width: max-content;
        padding: 0 10px;
    }
    
    .collection-tab {
        padding: 10px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .collection-content {
        padding: 40px 0;
    }
    
    .collection-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .collection-image img {
        min-height: 250px;
    }
    
    .collection-info {
        padding-top: 0;
    }
    
    .dimensions-grid {
        gap: 40px;
    }
    
    .collection-stats {
        justify-content: flex-start;
        gap: 50px;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .collection-3d {
        align-items: center;
    }
    
    model-viewer {
        height: 280px;
    }
    
    .model-label {
        font-size: 0.65rem;
    }
    
    .collection-devis-btn {
        width: 100%;
        text-align: center;
        align-self: center;
    }
    
    /* Lightbox mobile */
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .plateaux-title {
        font-size: 1.6rem;
    }
    
    .texture-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .finitions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .finition-item img {
        height: 60px;
    }
    
    /* Slider très petit écran */
    .plat2-arrow {
        width: 35px;
        height: 35px;
        right: 10px;
    }
    
    .plat2-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .plat2-description p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .collection-title {
        font-size: 1.5rem;
    }
    
    .collection-tab {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    model-viewer {
        height: 240px;
    }
}