/**
 * Styles sobres et épurés pour ISOE Decommissioning Contacts
 * Parfaitement intégrés au design sobre et institutionnel du thème ISOE.
 */

/* ==========================================================================
   Tableau des contacts (Page de catégorie)
   ========================================================================== */
.isoe-contacts-container {
    width: 900px;
    max-width: 100%;
    margin: 1.5rem auto 2.5rem auto;
    box-sizing: border-box;
}

.isoe-contacts-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.isoe-contacts-search {
    display: flex;
    align-items: center;
}

#isoe-contacts-search-input {
    min-width: 280px;
    padding: 0.45rem 0.85rem;
    border: 1px solid #d5d9de;
    border-radius: 4px;
    background-color: #f7f9fa;
    color: #333333;
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

#isoe-contacts-search-input:focus {
    border-color: #005293;
    background-color: #ffffff;
}

#isoe-contacts-search-input::placeholder {
    color: #8c96a3;
}

/* Wrapper du tableau */
.isoe-contacts-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
}

/* Tableau */
table.isoe-contacts-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    background: #ffffff !important;
    font-size: 0.95rem;
}

table.isoe-contacts-table thead th {
    padding: 0.75rem 0.85rem;
    border: none;
    border-bottom: 2px solid #e5e9ec;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
    white-space: nowrap;
    background: #ffffff;
}

table.isoe-contacts-table tbody tr {
    background: #ffffff !important;
    border-bottom: 1px solid #eef2f5;
    transition: background-color 0.15s ease;
}

table.isoe-contacts-table tbody tr:hover {
    background-color: #f8fafc !important;
}

table.isoe-contacts-table tbody td {
    padding: 0.85rem;
    border: none;
    vertical-align: middle;
    color: #444444;
    line-height: 1.4;
}

table.isoe-contacts-table td.col-name a {
    font-weight: 600;
    color: #005293;
    text-decoration: none;
}

table.isoe-contacts-table td.col-name a:hover {
    text-decoration: underline;
}

table.isoe-contacts-table td.col-email a,
table.isoe-contacts-table td.col-phone a {
    color: #005293;
    text-decoration: none;
}

table.isoe-contacts-table td.col-email a:hover,
table.isoe-contacts-table td.col-phone a:hover {
    text-decoration: underline;
}

table.isoe-contacts-table td.col-country,
table.isoe-contacts-table td.col-position {
    color: #555555;
}

.isoe-contacts-no-results {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #888888;
    font-style: italic;
    background: #fafafa;
    border: 1px dashed #e0e0e0;
    border-radius: 4px;
    margin-top: 1rem;
}

/* ==========================================================================
   Fiche détaillée d'un contact (Vue Single)
   ========================================================================== */
article.isoe-decom-single-contact {
    width: 900px;
    max-width: 100%;
    margin: 1.5rem auto 3rem auto;
    box-sizing: border-box;
}

.isoe-contact-back-link {
    margin: 0 0 1.25rem 0;
    font-size: 0.9rem;
}

.isoe-contact-back-link a {
    color: #005293;
    text-decoration: none;
    font-weight: 500;
}

.isoe-contact-back-link a:hover {
    text-decoration: underline;
}

.isoe-contact-meta-subtitle {
    margin: -0.5rem 0 1.5rem 0;
    font-size: 1.1rem;
    color: #777777;
    font-weight: 400;
}

/* Tableau de détails clé/valeur */
table.isoe-contact-details-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 1rem 0 2rem 0;
    font-size: 0.95rem;
    background: #ffffff;
}

table.isoe-contact-details-table th,
table.isoe-contact-details-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #edf1f4;
    vertical-align: top;
    line-height: 1.5;
}

table.isoe-contact-details-table th {
    width: 240px;
    max-width: 35%;
    text-align: left;
    font-weight: 600;
    color: #555555;
    background-color: #fafbfc;
    border-right: 1px solid #edf1f4;
}

table.isoe-contact-details-table td {
    color: #222222;
}

table.isoe-contact-details-table tr:last-child th,
table.isoe-contact-details-table tr:last-child td {
    border-bottom: none;
}

table.isoe-contact-details-table a.isoe-contact-link {
    color: #005293;
    text-decoration: none;
}

table.isoe-contact-details-table a.isoe-contact-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .isoe-contacts-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    #isoe-contacts-search-input {
        width: 100%;
        min-width: 0;
    }

    table.isoe-contact-details-table th {
        width: 40%;
    }
}

@media (max-width: 540px) {
    table.isoe-contact-details-table tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #edf1f4;
        padding: 0.5rem 0;
    }

    table.isoe-contact-details-table th,
    table.isoe-contact-details-table td {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0.25rem 0.5rem;
        border: none;
        background: transparent;
    }

    table.isoe-contact-details-table th {
        font-size: 0.85rem;
        color: #777777;
    }
}
