/* ========================================
   FICHE DE POSTE - DESIGN MODERNE
   ======================================== */

:root {
    --primary: #0B3D59;
    --secondary: #C5A059;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border: #e5e7eb;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    padding-top: 80px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Container */
.job-container,
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Content Grid (main + sidebar) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

.main-content {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* Hero Section */
.job-hero,
.job-detail-header {
    background: linear-gradient(135deg, #0B3D59 0%, #C5A059 100%);
    padding: 4rem 2rem;
    border-radius: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.job-hero::before,
.job-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.job-hero-content,
.job-header-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.job-badge,
.job-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.job-hero h1,
.job-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    color: white !important;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.job-hero p,
.job-detail-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.job-meta,
.meta-item {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: white !important;
}

.job-meta-item,
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white !important;
    font-size: 0.9375rem;
}

.job-meta-item i,
.meta-item i {
    color: var(--secondary);
}

/* Content Section */
.job-section,
.content-section,
.job-detail-content .content-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.job-section h2,
.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.job-section h2 i,
.content-section h2 i {
    color: var(--secondary);
}

.job-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.job-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.job-section ul,
.job-section ol {
    margin-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.job-section li {
    margin-bottom: 0.5rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--primary);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Alert Boxes */
.alert {
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert i {
    font-size: 1.5rem;
    margin-top: 0.1rem;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--info);
    color: #2980b9;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--success);
    color: #229954;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--warning);
    color: #e67e22;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger);
    color: #c0392b;
}

/* Red Flag Box */
.red-flag {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
    border: 2px solid var(--danger);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.red-flag-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.red-flag-header i {
    font-size: 2rem;
    color: var(--danger);
}

.red-flag h3 {
    color: var(--danger);
    margin: 0;
}

.red-flag p {
    color: #c0392b;
    font-weight: 500;
}

/* Prérequis List */
.prerequis-list {
    list-style: none;
    padding: 0;
}

.prerequis-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: var(--bg-secondary);
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.prerequis-list li i {
    color: var(--secondary);
}

/* CTA Section */
.job-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    margin: 3rem 0;
}

.job-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.job-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.job-footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
}

.job-footer p {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .job-hero h1 {
        font-size: 2rem;
    }
    
    .job-hero p {
        font-size: 1rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .job-section {
        padding: 1.5rem;
    }
    
    .job-section h2 {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
