/* Styles pour le shortcode [ij_offres_emploi] */

.ij-offres-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
}

/* Tabs Navigation - Niveau 1 (Principal) */
.ij-main-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.ij-main-tab {
    padding: 12px 30px;
    text-decoration: none;
    color: #495057;
    font-weight: 700;
    font-size: 1.1rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ij-main-tab:hover {
    color: #ff6b6b;
    background: #fff;
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.15);
}

.ij-main-tab.active {
    color: #fff;
    background: #ff6b6b;
    border-color: #ff6b6b;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Tabs Navigation - Niveau 2 (Sous-onglets) */
.ij-sub-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.ij-sub-tab {
    padding: 8px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 20px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}

.ij-sub-tab:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
}

.ij-sub-tab.active {
    color: #ff6b6b;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ij-tab-icon {
    font-size: 1.2em;
}

@media (max-width: 600px) {
    .ij-main-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-top: 5px;
        padding-bottom: 15px;
        gap: 15px;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        /* Scrollbar styling for a cleaner look */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    .ij-main-tabs::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }

    .ij-main-tab {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
        justify-content: center;
    }

    .ij-sub-tabs {
        flex-direction: column;
        border-radius: 12px;
        padding: 8px;
    }

    .ij-sub-tab {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: 8px;
    }

    .ij-tab-icon {
        font-size: 1.3em;
        width: 28px;
        text-align: center;
    }
}

/* Header & Stats */
.ij-offres-header {
    margin-bottom: 30px;
    text-align: center;
}

.ij-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ij-stat-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.ij-stat-box.primary {
    border-left: 4px solid #ff6b6b;
}

.ij-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.ij-stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Recherche */
.ij-search-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.ij-search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 15px;
    align-items: flex-end;
}

.ij-form-group {
    width: 100%;
    min-width: unset;
}

.ij-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.ij-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.ij-form-control:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.ij-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    font-size: 1rem;
}

.ij-btn-primary {
    background: #ff6b6b;
    color: white;
}

.ij-btn-primary:hover {
    background: #fa5252;
    transform: translateY(-1px);
}

.ij-btn-secondary {
    background: #f1f3f5;
    color: #495057;
}

.ij-btn-secondary:hover {
    background: #e9ecef;
}

/* Liste des offres */
.ij-offres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ij-offre-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.ij-offre-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #ff6b6b;
}

.ij-offre-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.ij-offre-header h3 a {
    color: #333;
    text-decoration: none;
}

.ij-offre-company {
    color: #868e96;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 15px;
}

.ij-offre-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #495057;
}

.ij-meta-item {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.ij-offre-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.ij-offre-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f3f5;
    font-size: 0.85rem;
    color: #868e96;
}

/* Départements Grid */
.ij-depts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

@media (max-width: 900px) {
    .ij-depts-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

.ij-dept-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
}

.ij-dept-card.ij-dept-card-full {
    grid-column: 1 / -1;
}

.ij-dept-card:hover {
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ij-dept-count {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: 10px 0;
}

/* Vue Détail */
.ij-offre-detail {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.ij-detail-header {
    background: #f8f9fa;
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.ij-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 30px;
}

.ij-detail-main h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.ij-detail-sidebar .ij-info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ij-info-box h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.ij-info-item {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.ij-competences-list,
.ij-formations-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ij-competences-list li {
    background: #e7f5ff;
    color: #1971c2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.ij-formations-list li {
    background: #fff0f6;
    color: #c2255c;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .ij-detail-content {
        grid-template-columns: 1fr;
    }

    .ij-search-form {
        grid-template-columns: 1fr;
    }

    .ij-form-group {
        width: 100%;
    }

    .ij-btn {
        width: 100%;
    }

    .ij-stats-grid {
        grid-template-columns: 1fr;
    }

    .ij-depts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ij-offres-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.ij-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.ij-pagination a,
.ij-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.ij-pagination a {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.ij-pagination a:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.ij-pagination .current {
    background: #ff6b6b;
    color: white;
    border: 1px solid #ff6b6b;
}

.ij-pagination .dots {
    color: #adb5bd;
    border: none;
    background: transparent;
}

.ij-pagination .prev,
.ij-pagination .next {
    padding: 0 16px;
}

.ij-pagination-info {
    text-align: center;
    margin-top: 15px;
    color: #868e96;
    font-size: 0.9rem;
}