/**
 * Styles personnalisés pour le dictionnaire des professions
 * Thème GridMag Child
 * Version: 1.0
 */

/* ====================
   ARCHIVE DES PROFESSIONS
   ==================== */

.professions-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
}

.professions-header .page-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #fff;
}

.professions-header .archive-description {
    font-size: 1.1em;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Statistiques */
.professions-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3em;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 8px;
}

/* ====================
   FILTRES ET RECHERCHE
   ==================== */

.professions-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.search-box {
    margin-bottom: 20px;
}

.search-box form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.profession-search-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.search-submit {
    padding: 12px 25px;
    background: #667eea;
    color: #fff;
    border: 2px solid #667eea;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.search-submit:hover {
    background: #5568d3;
}

.filter-secteurs {
    text-align: center;
    margin: 20px 0;
}

.filter-secteurs label {
    margin-right: 10px;
    font-weight: 600;
}

.filter-secteurs select {
    padding: 10px 15px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    min-width: 250px;
}

/* Alphabet filter */
.alpha-filter {
    text-align: center;
    margin-top: 20px;
}

.alpha-letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.alpha-link {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.alpha-link:hover,
.alpha-link.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.alpha-link.reset {
    width: auto;
    padding: 0 15px;
}

/* ====================
   GRILLE DES PROFESSIONS
   ==================== */

.professions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.profession-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    overflow: hidden;
}

.profession-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.profession-card .card-content {
    padding: 25px;
}

.profession-title {
    font-size: 1.4em;
    margin-bottom: 12px;
}

.profession-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.profession-title a:hover {
    color: #667eea;
}

.profession-secteur {
    margin-bottom: 15px;
}

.secteur-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #e3f2fd;
    color: #1976d2;
    font-size: 0.85em;
    border-radius: 15px;
    font-weight: 500;
}

.profession-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.profession-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.meta-item {
    font-size: 0.9em;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
}

.read-more-link:hover {
    gap: 10px;
}

/* ====================
   PAGE PROFESSION INDIVIDUELLE
   ==================== */

.profession-single {
    max-width: 1200px;
    margin: 0 auto;
}

.profession-header {
    margin-bottom: 40px;
}

.breadcrumb {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 8px;
}

.breadcrumb .current {
    color: #333;
}

.profession-single .profession-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #333;
}

.profession-variantes {
    font-size: 1.1em;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.profession-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 500;
}

.badge .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.badge-secteur {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-niveau {
    background: #fff3e0;
    color: #f57c00;
}

.badge-periode {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Contenu principal */
.profession-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.profession-definition {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.profession-definition h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
    margin-bottom: 20px;
}

.definition-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
}

/* Boîte de statistiques */
.profession-stats-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.profession-stats-box h3 {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-icon {
    font-size: 2em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-value {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.profession-context {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.profession-context h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
    margin-bottom: 15px;
}

/* Sidebar */
.profession-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.profession-navigation,
.related-professions,
.back-to-archive {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.profession-navigation a {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.profession-navigation a:hover {
    background: #667eea;
    color: #fff;
}

.profession-navigation a:last-child {
    margin-bottom: 0;
}

.nav-label {
    display: block;
    font-size: 0.85em;
    opacity: 0.7;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-weight: 600;
}

.related-professions h3 {
    margin-bottom: 15px;
    color: #333;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.related-list a:hover {
    color: #5568d3;
    text-decoration: underline;
}

.button-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.button-primary:hover {
    background: #5568d3;
}

/* ====================
   NO RESULTS
   ==================== */

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.no-results h2 {
    margin-bottom: 15px;
    color: #333;
}

.no-results p {
    color: #666;
}

.no-results a {
    color: #667eea;
    text-decoration: none;
}

.no-results a:hover {
    text-decoration: underline;
}

/* ====================
   PAGINATION
   ==================== */

.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pagination .current {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* ====================
   RESPONSIVE
   ==================== */

@media (max-width: 768px) {
    .professions-grid {
        grid-template-columns: 1fr;
    }
    
    .profession-content {
        grid-template-columns: 1fr;
    }
    
    .profession-sidebar {
        position: static;
    }
    
    .professions-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .alpha-letters {
        gap: 5px;
    }
    
    .alpha-link {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.9em;
    }
    
    .professions-header .page-title {
        font-size: 1.8em;
    }
    
    .profession-single .profession-title {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-secteurs select {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .professions-header {
        padding: 30px 20px;
    }
    
    .profession-card .card-content {
        padding: 20px;
    }
    
    .professions-filters {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2.5em;
    }
    
    .profession-definition,
    .profession-stats-box,
    .profession-context {
        padding: 20px;
    }
}
