/* Styles pour l'affichage des qualifications */

.ecq-qualifications {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    border-radius: 3px;
}

.ecq-qualifications h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 16px;
}

.ecq-qualifications ul {
    margin: 0;
    padding-left: 20px;
}

.ecq-qualifications li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Badges de qualifications */
.ecq-badges {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ecq-badge {
    display: inline-flex;
    align-items: center;
    background: #0073aa;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.ecq-badge:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ecq-badge .ecq-code {
    font-weight: bold;
    margin-right: 6px;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
}

.ecq-badge .ecq-label {
    font-weight: normal;
}

/* Styles spécifiques par qualification */
.ecq-badge[data-guid*="D3B2FA89"] { background: #e74c3c; } /* Web - Rouge */
.ecq-badge[data-guid*="9C205ACF"] { background: #9b59b6; } /* PAO - Violet */
.ecq-badge[data-guid*="97F55C01"] { background: #3498db; } /* Bureautique - Bleu */
.ecq-badge[data-guid*="48C59D3E"] { background: #2ecc71; } /* Systèmes - Vert */
.ecq-badge[data-guid*="EBADA053"] { background: #f39c12; } /* Entreprise - Orange */
.ecq-badge[data-guid*="A2B0D2DE"] { background: #1abc9c; } /* Développement - Turquoise */

/* Version compacte pour les sidebars */
.widget .ecq-qualifications,
.sidebar .ecq-qualifications {
    padding: 10px;
    font-size: 14px;
}

.widget .ecq-qualifications h4,
.sidebar .ecq-qualifications h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.widget .ecq-badges,
.sidebar .ecq-badges {
    gap: 4px;
}

.widget .ecq-badge,
.sidebar .ecq-badge {
    padding: 4px 8px;
    font-size: 11px;
}

.widget .ecq-badge .ecq-code,
.sidebar .ecq-badge .ecq-code {
    margin-right: 4px;
    padding: 1px 4px;
    font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .ecq-badges {
        gap: 4px;
    }
    
    .ecq-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .ecq-badge .ecq-code {
        margin-right: 4px;
        padding: 1px 4px;
        font-size: 10px;
    }
}

/* Styles pour l'admin */
.ecq-admin-preview {
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.ecq-admin-preview h5 {
    margin: 0 0 8px 0;
    color: #555;
    font-size: 13px;
}

/* Styles pour les shortcodes séparés */
.ecq-separated-qualifications {
    margin: 20px 0;
}

.ecq-section {
    margin-bottom: 20px;
}

.ecq-section:last-child {
    margin-bottom: 0;
}

.ecq-section-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

.ecq-inherited-section .ecq-section-title {
    color: #0073aa;
}

.ecq-direct-section .ecq-section-title {
    color: #d63638;
}

/* Styles spécifiques pour les qualifications directes et héritées */
.ecq-direct-only .ecq-badge {
    border: 2px solid rgba(214, 54, 56, 0.3);
}

.ecq-inherited-only .ecq-badge {
    opacity: 0.8;
    border: 2px solid rgba(0, 115, 170, 0.3);
}

.ecq-inherited-only .ecq-badge::after {
    content: " ⬇";
    font-size: 10px;
    opacity: 0.7;
}

.ecq-direct-only .ecq-badge::after {
    content: " ⭐";
    font-size: 10px;
    opacity: 0.7;
}

/* Message quand aucune qualification */
.ecq-no-qualifications {
    padding: 15px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    text-align: center;
    color: #666;
    font-style: italic;
    border-radius: 3px;
}

/* Compteur de qualifications */
.ecq-qualification-count {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 5px;
}

/* Styles pour les titres avec compteurs */
.ecq-title-with-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ecq-title-with-count .ecq-qualification-count {
    margin-left: auto;
}

/* Animation pour les badges au hover */
.ecq-badge {
    position: relative;
    overflow: hidden;
}

.ecq-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.ecq-badge:hover::before {
    left: 100%;
}

/* Responsive pour les sections séparées */
@media (max-width: 768px) {
    .ecq-section-title {
        font-size: 14px;
    }
    
    .ecq-separated-qualifications {
        margin: 15px 0;
    }
    
    .ecq-section {
        margin-bottom: 15px;
    }
}

/* Styles pour le test des shortcodes */
.ecq-shortcode-test {
    background: #f9f9f9;
    border: 2px dashed #ccc;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.ecq-shortcode-test h3 {
    margin: 0 0 20px 0;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.ecq-shortcode-test h4 {
    margin: 20px 0 10px 0;
    color: #333;
    font-size: 16px;
}

.ecq-shortcode-test code {
    background: #fff;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d63638;
    display: block;
    margin-bottom: 10px;
    width: fit-content;
}

.ecq-shortcode-test p {
    margin: 5px 0;
    padding: 5px 10px;
    background: white;
    border-left: 3px solid #0073aa;
}
