/**
 * Styles pour la page des offres d'emploi
 * 
 * @package Eliosfair
 * @since 1.0.0
 */

/* Section d'introduction */
.offres-intro {
    padding: 60px 0 40px;
}

.offres-intro .intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light, #ffffff);
}

.offres-intro h2 {
    color: var(--ast-global-color-0, #0274be);
    margin-bottom: 20px;
    font-size: 2rem;
}

.offres-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* Liste des offres */
.offres-emploi-list {
    padding: 40px 0 80px;
}

.offres-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Card d'offre */
.offre-card {
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    color: #ffffff;
    background: var(--copyright-color);
}

.offre-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Card pourvue - état estompé */
.offre-card.offre-pourvue {
    opacity: 0.6;
    position: relative;
    overflow: hidden;
    color: var(--text-muted);
}

.offre-card.offre-pourvue:hover {
    transform: none;
    box-shadow: none;
}

/* En-tête de la card */
.offre-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offre-titre {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Métadonnées */
.offre-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.offre-statut {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tertiary-color);
}

.offre-statut.statut-en_cours {
    background: var(--primary-hover);
}

.offre-statut.statut-pourvu {
    background: var(--bg-dark);
}

.offre-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.icon-calendar {
    opacity: 0.7;
}

/* Corps de la card */


.offre-description {
    line-height: 1.6;
    margin-bottom: 25px;
}

.offre-description br {
    margin-bottom: 8px;
}

/* Actions */
.offre-actions {
    margin-top: 25px;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-download-pdf:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 116, 190, 0.3);
    color: #ffffff;
}

.icon-download {
    flex-shrink: 0;
}

/* Section vide */
.offres-empty {
    padding: 80px 0;
    text-align: center;
}

.no-offres {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    font-style: italic;
}

/* Adaptations pour fond clair */
.page-offres-emploi.light-bg .offre-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.page-offres-emploi.light-bg .offre-titre {
    color: #1e293b;
}

.page-offres-emploi.light-bg .offre-description,
.page-offres-emploi.light-bg .offre-date {
    color: rgba(0, 0, 0, 0.7);
}

.page-offres-emploi.light-bg .offre-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.page-offres-emploi.light-bg .offre-card.offre-pourvue {
    background: rgba(0, 0, 0, 0.02);
}

.page-offres-emploi.light-bg .badge-pourvu {
    background: rgba(255, 255, 255, 0.9);
    color: rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .offres-intro {
        padding: 40px 20px 30px;
    }
    
    .offres-intro h2 {
        font-size: 1.5rem;
    }
    
    .offres-intro p {
        font-size: 1rem;
    }
    
    .offres-emploi-list {
        padding: 30px 20px 60px;
    }
    
    .offres-grid {
        gap: 20px;
    }
    
    .offre-card {
        padding: 20px;
    }
    
    .offre-titre {
        font-size: 1.2rem;
    }
    
    .offre-meta {
        gap: 15px;
    }
    
    .offre-statut {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    
    .offre-date {
        font-size: 0.85rem;
    }
    
    .btn-download-pdf {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .offre-overlay-pourvu {
        padding: 15px;
    }
    
    .badge-pourvu {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
}

@media (max-width: 480px) {
    .offre-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .offre-overlay-pourvu {
        position: static;
        padding: 0;
        margin-top: 20px;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offre-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.offre-card:nth-child(1) { animation-delay: 0.1s; }
.offre-card:nth-child(2) { animation-delay: 0.2s; }
.offre-card:nth-child(3) { animation-delay: 0.3s; }
.offre-card:nth-child(4) { animation-delay: 0.4s; }
.offre-card:nth-child(5) { animation-delay: 0.5s; }
.offre-card:nth-child(n+6) { animation-delay: 0.6s; }