/* Catalogue câbles — filtres construction, tableaux techniques, modal */

.specs-section .section-intro {
    margin: -8px 0 24px;
    color: #666;
    font-size: 0.95rem;
    max-width: 72ch;
    line-height: 1.55;
}

.construction-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 28px;
    align-items: stretch;
}

.construction-filter button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #dcdcdc;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--anthracite, #333);
    min-width: 96px;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.construction-filter button:hover {
    border-color: var(--green-logo, #64b446);
}

.construction-filter button.active {
    border-color: var(--green-logo, #64b446);
    color: var(--green-logo, #64b446);
    box-shadow: 0 0 0 2px rgba(100, 180, 70, 0.22);
}

.construction-filter button img {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.construction-filter button img.schema-7x19,
.construction-filter button img.schema-1x19 {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
}

.cable-tech-tables {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cable-tech-block {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.cable-tech-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cable-tech-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.cable-tech-table thead th {
    background: #f8f8f8;
    padding: 12px 14px;
    border-bottom: 2px solid #e8e8e8;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    color: var(--anthracite, #333);
}

.cable-th-sub {
    display: block;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #888;
    font-size: 0.68rem;
    margin-top: 2px;
}

.cable-tech-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    color: #333;
}

.cable-tech-table tbody tr:hover td:not(.cable-construction-cell) {
    background: #fafafa;
}

.cable-construction-cell {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
    text-align: center;
    vertical-align: top;
    background: #fafafa;
    border-right: 1px solid #eee;
    padding: 16px 12px !important;
}

.cable-construction-cell img {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

.cable-construction-cell img.schema-7x19,
.cable-construction-cell img.schema-1x19 {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
}

.cable-construction-cell strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--anthracite, #333);
}

.cable-construction-cell span {
    display: block;
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 10px;
}

.cable-specs-btn {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    color: #444;
    line-height: 1.35;
    font-family: inherit;
    transition: 0.2s;
}

.cable-specs-btn:hover {
    border-color: var(--green-logo, #64b446);
    color: var(--green-logo, #64b446);
}

.cable-tech-table .col-diam {
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cable-tech-table .col-ref {
    font-weight: 700;
    white-space: nowrap;
}

.cable-tech-table .col-nom {
    max-width: 240px;
    line-height: 1.35;
}

.cable-tech-table .col-action {
    white-space: nowrap;
}

.cable-quote-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.cable-length-input {
    width: 54px;
    padding: 8px 6px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    font-family: inherit;
}

.cable-length-input:focus {
    outline: none;
    border-color: var(--green-logo, #64b446);
    box-shadow: 0 0 0 3px rgba(100, 180, 70, 0.18);
}

.cable-length-suffix {
    font-size: 0.78rem;
    color: #666;
    font-weight: 600;
}

.tech-disclaimer {
    font-size: 0.78rem;
    color: #888;
    margin-top: 18px;
    line-height: 1.5;
    font-style: italic;
}

/* Modal caractéristiques techniques */
.cable-specs-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cable-specs-modal[hidden] {
    display: none !important;
}

.cable-specs-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cable-specs-dialog {
    position: relative;
    width: min(640px, 96vw);
    max-height: 85vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.cable-specs-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.cable-specs-dialog-header h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}

.cable-specs-close {
    border: none;
    background: #f3f3f3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
}

.cable-specs-close:hover {
    background: #eaeaea;
    color: var(--green-logo, #64b446);
}

.cable-specs-body {
    padding: 20px 22px 24px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #444;
}

.cable-specs-body h3 {
    margin: 18px 0 10px;
    font-size: 0.95rem;
    color: var(--anthracite, #333);
}

.cable-specs-body ul {
    margin: 0 0 8px 1.1rem;
    padding: 0;
}

.cable-specs-body li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .construction-filter {
        gap: 8px;
    }

    .construction-filter button {
        min-width: 84px;
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .construction-filter button img {
        width: 44px;
        height: 44px;
        max-width: 44px;
        max-height: 44px;
    }

    .cable-construction-cell {
        width: 110px;
        min-width: 110px;
        max-width: 110px;
    }

    .cable-construction-cell img {
        width: 56px;
        height: 56px;
        max-width: 56px;
        max-height: 56px;
    }
}

/* Hero produit câbles — image seule, sans cadre blanc derrière */
.cables-product-hero.product-page-hero .product-gallery {
    height: auto;
    max-height: none;
    width: auto;
    max-width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    display: block;
}

.cables-product-hero.product-page-hero .product-gallery img:not(.fil-hero-logo) {
    display: block;
    width: auto;
    height: auto;
    max-width: min(280px, 100%);
    max-height: 220px;
    object-fit: contain;
    object-position: center center;
    transform: none;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .cables-product-hero.product-page-hero .product-gallery img:not(.fil-hero-logo) {
        max-width: min(240px, 100%) !important;
        max-height: 180px !important;
    }
}
