/* Styles améliorés pour les pages d'offres */

/* Carte d'offre améliorée */
.offre-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    border: none;
    margin-bottom: 25px;
    background: #fff;
    transform: translateY(0);
}

.offre-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.offre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #25AAE2, #0099cc);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.offre-card:hover::before {
    transform: scaleX(1);
}

.offre-card .card-header {
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.9), rgba(0, 153, 204, 0.9));
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.offre-card .card-header::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    top: -50%;
    left: -50%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.offre-card:hover .card-header::after {
    opacity: 1;
    transform: rotate(45deg) translate(10%, 10%);
}

.offre-card .card-body {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.offre-card .offre-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    display: inline-block;
}

.offre-card .offre-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #25AAE2, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.offre-card:hover .offre-title::after {
    transform: scaleX(1);
}

.offre-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.offre-card:hover .offre-meta {
    opacity: 1;
}

.offre-meta i {
    color: #25AAE2;
    margin-right: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.offre-card:hover .offre-meta i {
    transform: scale(1.2);
}

.offre-description {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #666;
}

.offre-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.offre-tag {
    background: rgba(0, 166, 81, 0.1);
    color: #25AAE2;
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.offre-card:hover .offre-tag {
    background: rgba(0, 166, 81, 0.2);
    transform: translateY(-3px);
}

.offre-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.offre-date {
    color: #e74c3c;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.offre-date i {
    margin-right: 8px;
}

.offre-actions .btn {
    transition: all 0.3s ease;
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.offre-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.offre-actions .btn:hover::before {
    left: 100%;
}

/* Page de détail d'offre */
.offre-detail-header {
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.9), rgba(0, 153, 204, 0.9));
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    color: white;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.offre-detail-header::before,
.offre-detail-header::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.offre-detail-header::before {
    top: -150px;
    right: -150px;
}

.offre-detail-header::after {
    bottom: -150px;
    left: -150px;
}

.offre-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.offre-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.offre-detail-meta-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.offre-detail-meta-item i {
    margin-right: 10px;
    font-size: 18px;
}

.offre-detail-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.offre-detail-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #25AAE2, #0099cc);
}

.offre-detail-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.offre-detail-section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 0;
    background: linear-gradient(90deg, #25AAE2, transparent);
}

.offre-detail-requirements {
    background: rgba(0, 166, 81, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.offre-detail-requirements ul {
    list-style-type: none;
    padding-left: 0;
}

.offre-detail-requirements li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.offre-detail-requirements li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #25AAE2;
    position: absolute;
    left: 0;
    top: 0;
}

.offre-detail-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.offre-detail-actions .btn {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.offre-apply-btn {
    background: linear-gradient(135deg, #25AAE2, #0099cc);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 166, 81, 0.3);
    border: none;
}

.offre-apply-btn:hover {
    box-shadow: 0 15px 30px rgba(0, 166, 81, 0.5);
    transform: translateY(-5px);
}

.offre-apply-btn::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    top: -50%;
    left: -100%;
    transform: rotate(25deg);
    transition: all 0.6s ease;
}

.offre-apply-btn:hover::after {
    left: 100%;
}

/* Filtres améliorés */
.filters-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
}

.filters-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #25AAE2, #0099cc);
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    display: inline-block;
}

.filter-title::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 2px;
    bottom: -8px;
    left: 0;
    background: linear-gradient(90deg, #25AAE2, transparent);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.filter-form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.filter-form-control:focus {
    border-color: #25AAE2;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.2);
}

.filter-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #25AAE2, #0099cc);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    box-shadow: 0 10px 20px rgba(0, 166, 81, 0.3);
    transform: translateY(-3px);
}

/* Pagination stylisée */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.pagination li {
    margin: 0;
}

.pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    background: #f5f5f5;
}

.pagination .page-link:hover {
    background: rgba(0, 166, 81, 0.1);
    color: #25AAE2;
    transform: translateY(-3px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #25AAE2, #0099cc);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 166, 81, 0.3);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}
