/* Conteneur principal */
.df-certif-wrapper {
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Barre de recherche */
.df-certif-search-box {
    margin-bottom: 25px;
    position: relative;
}

.df-certif-search-box input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.df-certif-search-box input:focus {
    border-color: #5e4682; /* Couleur Digiforma */
    outline: none;
}

/* Titres des domaines */
.df-domain-title {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #5e4682;
    font-size: 1.4em;
    font-weight: 700;
    border-bottom: 2px solid #5e4682;
    padding-bottom: 5px;
    display: inline-block;
}

/* Tableau */
.df-certif-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.df-certif-table th, 
.df-certif-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd; /* Les contours demandés */
}

.df-certif-table thead tr {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}

/* Zebra striping (lignes alternées) */
.df-certif-table tbody tr:nth-of-type(even) {
    background-color: #fcfcfc;
}

.df-certif-table tbody tr:hover {
    background-color: #f0f0f5;
}

/* Badges */
.df-certif-badge {
    background-color: #e7f5ea;
    color: #126125;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .df-certif-table thead { display: none; }
    .df-certif-table, .df-certif-table tbody, .df-certif-table tr, .df-certif-table td { display: block; width: 100%; }
    .df-certif-table tr { margin-bottom: 15px; border: 1px solid #ddd; border-bottom: 3px solid #5e4682; }
    .df-certif-table td { text-align: right; padding-left: 50%; position: relative; border: none; border-bottom: 1px solid #eee; }
    .df-certif-table td::before { content: attr(data-label); position: absolute; left: 10px; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; }
}

/* ... (votre css existant) ... */

/* NOUVEAU : En-tête de domaine avec bouton */
.df-domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #5e4682;
    margin-bottom: 15px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.df-domain-title {
    margin-bottom: 0;
    border-bottom: none; /* On retire la bordure du titre seul pour la mettre sur le header */
    padding-bottom: 0;
}

.df-domain-link-btn {
    background-color: #5e4682;
    color: #fff !important;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
}

.df-domain-link-btn:hover {
    background-color: #4a3b69;
    color: #fff;
    text-decoration: none;
}

.df-domain-link-btn::after {
    content: "→";
    margin-left: 8px;
    font-size: 1.1em;
}

/* Ajustement responsive */
@media screen and (max-width: 600px) {
    .df-domain-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .df-domain-link-btn {
        width: 100%;
        justify-content: center;
    }
}