/* Article: pieds-nus-tendance-2026 — Custom styles */

/* ================= TABLEAUX ================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--color-surface, #1a2540);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border, #2d3e5f);
}

table thead {
    background: linear-gradient(135deg, var(--color-accent, #d4af37) 0%, rgba(212, 175, 55, 0.8) 100%);
}

table thead th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

table tbody tr {
    border-bottom: 1px solid var(--color-border, #2d3e5f);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.08);
    box-shadow: inset 3px 0 0 0 var(--color-accent, #d4af37);
}

table tbody tr:last-child {
    border-bottom: none;
}

table tbody td {
    padding: 1.25rem 1.5rem;
    color: var(--color-text, #e0e0e0);
    line-height: 1.6;
}

table tbody td:first-child {
    font-weight: 600;
    color: var(--color-accent, #d4af37);
    width: 20%;
}

table tbody td:nth-child(2) {
    width: 30%;
    font-style: italic;
    opacity: 0.9;
}

table tbody td:nth-child(3) {
    width: 50%;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    table {
        font-size: 0.9rem;
    }

    table thead {
        display: none;
    }

    table tbody,
    table tr,
    table td {
        display: block;
        width: 100%;
    }

    table tr {
        margin-bottom: 1.5rem;
        border: 1px solid var(--color-border, #2d3e5f);
        border-radius: 6px;
        padding: 1rem;
        background: rgba(212, 175, 55, 0.05);
    }

    table td {
        padding: 0.75rem 0 0.75rem 0 !important;
        position: relative;
        padding-left: 120px !important;
    }

    table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: var(--color-accent, #d4af37);
        letter-spacing: 0.5px;
    }

    table td:first-child {
        padding-top: 1rem !important;
        color: var(--color-accent, #d4af37);
        font-weight: 700;
        padding-left: 0 !important;
    }

    table td:first-child:before {
        display: none;
    }
}

/* Dark mode (default) */
:root {
    --color-surface: #1a2540;
    --color-accent: #d4af37;
    --color-border: #2d3e5f;
    --color-text: #e0e0e0;
}

/* Light mode override */
[data-theme="clear-mode"] table {
    background: #f8f9fa;
    border-color: #e0e0e0;
}

[data-theme="clear-mode"] table thead {
    background: linear-gradient(135deg, #c9a961 0%, #e5c77f 100%);
}

[data-theme="clear-mode"] table thead th {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

[data-theme="clear-mode"] table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.12);
}

[data-theme="clear-mode"] table tbody td {
    color: #2d3e5f;
    border-bottom-color: #e0e0e0;
}

[data-theme="clear-mode"] table tbody td:first-child {
    color: #c9a961;
}

[data-theme="clear-mode"] table tr {
    background: rgba(212, 175, 55, 0.08);
    border-color: #ddd;
}
