/* ============================================
   CSS DÉDIÉ PAGE TABLE FIL
   Structure identique à vasque.css
   ============================================ */

body {
    background: #f5f5f5;
}

/* ===== États initiaux pour animations GSAP (évite le flash) ===== */
.table-tab,
.table-nav-thumb,
.table-gallery-title,
.table-gallery-subtitle,
.table-texture-row,
.table-chants-section,
.table-gallery-description,
.table-cta-btn,
.table-stack-item,
.table-bloc-text,
.table-bloc-image,
.table-projets-banner,
.table-propositions-title,
.table-proposition-item,
.table-faq-item {
    opacity: 0;
}

/* ===== ONGLETS NAVIGATION ===== */
.table-tabs {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 3rem);
    padding: clamp(5rem, 6vw, 6rem) clamp(3rem, 5vw, 5rem) 1rem;
    background: #f5f5f5;
}

.table-tab {
    background: white;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 400;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
}

.table-tab strong {
    font-weight: 600;
    color: inherit;
}

.table-tab:hover {
    color: #333;
    border-color: #ddd;
}

.table-tab.active {
    color: #333;
    border-color: #000;
    background: white;
}

/* ===== SECTION GALERIE ===== */
.table-gallery-section {
    display: flex;
    gap: clamp(3rem, 5vw, 5rem);
    padding: clamp(1rem, 2vw, 2rem) clamp(3rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);
    background: #f5f5f5;
    align-items: flex-start;
}

/* Miniatures sticky à gauche */
.table-nav-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    flex-shrink: 0;
}

.table-nav-thumb {
    width: 110px;
    height: auto;
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.table-nav-thumb:hover {
    opacity: 0.8;
}

.table-nav-thumb.active {
    opacity: 1;
    border-color: #5a5a3a;
}

.table-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Images empilées au centre */
.table-images-stack {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.table-stack-item {
    width: 100%;
}

.table-stack-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* Texte sticky à droite */
.table-gallery-text {
    flex: 1;
    max-width: 480px;
    padding-top: 0.5rem;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.table-gallery-title {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 300;
    color: #333;
    margin: 0 0 0.25rem 0;
    text-align: left;
}

.table-gallery-title strong {
    font-weight: 600;
}

.table-gallery-subtitle {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #666;
    margin: 0 0 2rem 0;
    font-style: italic;
    text-align: left;
}

/* Textures */
.table-texture-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.table-texture-grid {
    display: flex;
    gap: 0.5rem;
}

.table-texture-grid img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 0;
}

.table-texture-more {
    font-size: 1.3rem;
    color: #666;
    font-weight: 500;
}

/* Chants */
.table-chants-section {
    margin-bottom: 1.5rem;
}

.table-chants-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.8rem;
}

.table-chants-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.table-chant-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.table-chant-item img {
    width: 65px;
    height: 20px;
    object-fit: contain;
}

.table-chant-item span {
    font-size: 9px;
    color: #888;
    text-align: center;
}

/* Description */
.table-gallery-description {
    margin-bottom: 1.5rem;
}

.table-gallery-description p {
    font-size: clamp(0.92rem, 1.05vw, 1rem);
    line-height: 1.7;
    color: #444;
    margin: 0 0 1rem 0;
}

.table-gallery-description strong {
    color: #333;
    font-weight: 600;
}

/* Bouton CTA */
.table-cta-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    background: black;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.table-cta-btn:hover {
    background: #4a4a2a;
    transform: translateY(-2px);
}

/* ===== BANDEAU PROJETS ===== */
.table-projets-banner {
    background: #fff;
    padding: 2rem clamp(3rem, 5vw, 5rem);
    text-align: center;
}

.table-projets-banner p {
    font-size: 1rem;
    letter-spacing: 2px;
    color: #666;
    margin: 0;
}

.table-projets-banner strong {
    color: #333;
    font-weight: 700;
}

/* ===== SECTIONS BLOCS ===== */
.table-section-bloc {
    padding: clamp(2rem, 4vw, 4rem) clamp(3rem, 5vw, 5rem);
    background: #f5f5f5;
}

.table-bloc-content {
    display: flex;
    gap: clamp(2rem, 4vw, 4rem);
    max-width: 100%;
    margin: 0;
    align-items: center;
}

.table-section-bloc.reverse .table-bloc-content {
    flex-direction: row-reverse;
}

.table-bloc-text {
    flex: 1;
}

.table-bloc-text h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
    text-align: left;
    padding-left: 0;
}

.table-bloc-subtitle {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #666;
    font-style: italic;
    margin: 0 0 1.5rem 0;
    text-align: left;
    padding-left: 0;
}

.table-bloc-body {
    padding-left: 0;
}

.table-bloc-body p {
    font-size: clamp(0.92rem, 1.05vw, 1rem);
    line-height: 1.7;
    color: #444;
    margin: 0 0 1rem 0;
}

.table-bloc-body strong {
    color: #333;
    font-weight: 600;
}

.table-bloc-image {
    flex: 1.2;
}

.table-bloc-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* ===== BLOC 1 - Image grande à gauche ===== */
.table-bloc-image-large {
    flex: 1.4;
}

.table-bloc-image-large img {
    width: 90%;
    max-width: none;
}

.table-bloc-text-right {
    flex: 0.8;
    padding-left: 1rem;
    padding-right: 2rem;
}

.table-bloc-text-right h2 {
    padding-left: 0;
    margin-left: -1rem;
}

.table-bloc-text-right .table-bloc-subtitle {
    padding-left: 0;
    margin-left: -1rem;
}

.table-bloc-text-right .table-bloc-body {
    padding-left: 0;
}

/* ===== BLOC 2 - Installation ===== */
.table-installation-section {
    background: #f5f5f5;
}

.table-bloc-text-left {
    flex: 1;
    padding-left: 0;
}

.table-bloc-text-left h2 {
    padding-left: 0;
    margin-left: -1rem;
    font-weight: 700;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

.table-bloc-text-left .table-bloc-body {
    padding-left: 0;
}

.table-installation-body p {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.table-bloc-image-small {
    flex: 0.7;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 2rem;
    padding-left: 3rem;
    position: relative;
}

.table-bloc-image-small img {
    max-width: 80%;
    margin-left: auto;
}

/* Dimensions tableau */
.table-dimensions {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: -2rem;
    margin-top: 1rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

.table-dimensions-header {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.table-dimensions-header span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    min-width: 100px;
}

.table-dimensions-values {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.table-dimensions-values span {
    font-size: 0.85rem;
    color: #666;
    min-width: 100px;
}

/* ===== SECTION PROPOSITIONS ===== */
.table-propositions-section {
    background: #fff;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(3rem, 5vw, 5rem);
}

.table-propositions-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
}

.table-propositions-grid {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.table-proposition-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 280px;
}

.table-proposition-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
    min-height: 40px;
}

.table-proposition-chant {
    font-size: 0.85rem;
    color: #333;
}

.table-proposition-chant strong {
    font-weight: 600;
}

.table-proposition-ref {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
}

.table-proposition-item img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

/* ===== SECTION FAQ ===== */
.table-faq-section {
    padding: clamp(2rem, 4vw, 4rem) clamp(3rem, 5vw, 5rem);
    background: #f5f5f5;
}

.table-faq-content {
    max-width: 1200px;
    margin: 0 auto;
}

.table-faq-item {
    border-top: 1px solid #ddd;
}

.table-faq-item:last-child {
    border-bottom: 1px solid #ddd;
}

.table-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.table-faq-question span:first-child {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 500;
    color: #333;
}

.table-faq-question strong {
    font-weight: 700;
}

.table-faq-icon {
    font-size: 1.3rem;
    color: #999;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.table-faq-item.open .table-faq-icon {
    transform: rotate(45deg);
}

.table-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.table-faq-item.open .table-faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.table-faq-answer p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
    margin: 0 0 0.6rem 0;
}

.table-faq-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 1rem !important;
}

.table-faq-subtitle strong {
    font-weight: 700;
}

/* ===== RESPONSIVE TABLETTE ===== */
@media (max-width: 1024px) {
    .table-gallery-section {
        flex-direction: column;
        padding: 2rem;
    }
    
    .table-nav-thumbnails {
        position: static;
        flex-direction: row;
        justify-content: center;
        order: 1;
    }
    
    .table-nav-thumb {
        width: 70px;
        height: 55px;
    }
    
    .table-images-stack {
        flex: none;
        width: 100%;
        order: 2;
    }
    
    .table-gallery-text {
        position: static;
        max-width: 100%;
        order: 3;
        text-align: center;
    }
    
    .table-gallery-title,
    .table-gallery-subtitle {
        text-align: center;
    }
    
    .table-texture-row,
    .table-chants-grid {
        justify-content: center;
    }
    
    .table-bloc-content {
        flex-direction: column !important;
        gap: 2rem;
    }
    
    .table-bloc-text-right,
    .table-bloc-text-left {
        padding: 0 1rem;
    }
    
    .table-bloc-text-right h2,
    .table-bloc-text-left h2 {
        margin-left: 0;
        text-align: center;
    }
    
    .table-bloc-text-right .table-bloc-subtitle {
        text-align: center;
        margin-left: 0;
    }
    
    .table-bloc-text-right .table-bloc-body,
    .table-bloc-text-left .table-bloc-body {
        text-align: center;
    }
    
    .table-bloc-image-large {
        flex: none;
        width: 100%;
    }
    
    .table-bloc-image-large img {
        width: 100%;
    }
    
    .table-bloc-image-small {
        flex: none;
        width: 100%;
        padding: 0;
        align-items: center;
    }
    
    .table-bloc-image-small img {
        max-width: 60%;
    }
    
    .table-dimensions {
        align-items: center;
    }
    
    .table-dimensions-header,
    .table-dimensions-values {
        justify-content: center;
    }
    
    .table-section-bloc {
        padding: 2rem 1.5rem;
    }
    
    /* Propositions responsive */
    .table-propositions-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .table-proposition-item {
        flex: 0 0 calc(33.33% - 1rem);
    }
    
    .table-propositions-title {
        text-align: center;
    }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
    .table-tabs {
        padding: 5rem 1rem 1rem;
        gap: 0.5rem;
    }
    
    .table-tab {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .table-gallery-section {
        padding: 1.5rem 1rem;
    }
    
    .table-nav-thumb {
        width: 55px;
        height: 45px;
    }
    
    .table-texture-grid img {
        width: 38px;
        height: 38px;
    }
    
    .table-chants-grid {
        gap: 8px;
    }
    
    .table-chant-item img {
        width: 50px;
    }
    
    .table-cta-btn {
        width: 100%;
        text-align: center;
    }
    
    .table-projets-banner {
        padding: 1.2rem 1rem;
    }
    
    .table-projets-banner p {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    
    .table-section-bloc {
        padding: 2rem 1rem;
    }
    
    .table-faq-section {
        padding: 2rem 1rem;
    }
    
    /* Propositions mobile */
    .table-propositions-section {
        padding: 1.5rem 1rem;
    }
    
    .table-propositions-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .table-propositions-grid {
        gap: 1rem;
    }
    
    .table-proposition-item {
        flex: 0 0 calc(50% - 0.5rem);
    }
    
    .table-proposition-item img {
        max-width: 100%;
    }
    
    .table-proposition-chant {
        font-size: 0.75rem;
    }
    
    .table-proposition-ref {
        font-size: 0.65rem;
    }
}

/* ===== LIENS TEXTURE CLIQUABLES ===== */
a.table-texture-grid {
    display: flex;
    gap: 0.4rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

a.table-texture-grid:hover {
    opacity: 0.8;
}

a.table-texture-more {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.table-texture-more:hover {
    color: #333;
}

/* ===== CHANTS CLIQUABLES ===== */
.table-chant-item {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.table-chant-item:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ===== LIGHTBOX CHANTS ===== */
.table-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.table-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.table-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1;
}

.table-lightbox-close:hover {
    transform: scale(1.2);
}

#table-lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
