/* Styles spécifiques à la page Offres & Opportunités */

.offres-header {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('https://images.unsplash.com/photo-1556761175-4b46d7e28ab8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1400&q=80');
    padding-bottom: 60px;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    min-width: 120px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Filtres d'offres */
.offres-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    justify-content: center;
}

.filter-btn {
    background: var(--light-color);
    border: 2px solid transparent;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.filter-btn:hover {
    background: rgba(46, 139, 87, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

/* Grille des offres */
.offre-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 30px;
    height: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.offre-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.offre-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.offre-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-emploi {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.badge-appel-offre {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.badge-partenariat {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.badge-consultant {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.badge-urgence {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.offre-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.offre-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: var(--primary-color);
}

.offre-content {
    padding: 25px;
}

.offre-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offre-skills {
    margin: 20px 0;
}

.skill-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 5px 5px 0;
}

.offre-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-color);
}

.offre-date {
    color: #666;
    font-size: 0.9rem;
}

/* Modal des offres */
#offreModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

#offreModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 25px 30px;
    border-bottom: none;
}

#offreModal .modal-title {
    font-size: 1.8rem;
    font-weight: 700;
}

#offreModal .modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-offre-details {
    margin-bottom: 30px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.detail-section ul {
    padding-left: 20px;
}

.detail-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.conditions-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.conditions-list i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.deadline-info {
    background: rgba(46, 139, 87, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.deadline-info .deadline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-top: 5px;
}

.application-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
}

.step {
    flex: 1;
    min-width: 200px;
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.step-number {
    display: block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: 700;
    margin: 0 auto 15px;
}

/* Pagination */
.pagination .page-item .page-link {
    border: none;
    margin: 0 5px;
    border-radius: 10px;
    padding: 10px 18px;
    color: var(--dark-color);
    font-weight: 600;
    transition: all 0.3s;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

.pagination .page-item .page-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Newsletter */
.newsletter-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.newsletter-form .form-control {
    border: none;
    padding: 15px 20px;
    border-radius: 25px 0 0 25px;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 15px 25px;
}

/* Animation de chargement */
.offres-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message aucune offre */
.no-offres {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.no-offres i {
    font-size: 4rem;
    color: var(--light-color);
    margin-bottom: 20px;
}

.no-offres h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .offres-filters {
        padding: 20px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .header-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .offres-header {
        padding-bottom: 40px;
    }
    
    .header-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .stat-item {
        width: 200px;
    }
    
    .offres-filters {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding: 15px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .offre-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    #offreModal .modal-header {
        padding: 20px;
    }
    
    #offreModal .modal-title {
        font-size: 1.5rem;
    }
    
    .application-steps {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .offre-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .meta-item {
        justify-content: flex-start;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .pagination .page-item .page-link {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}