/* ============================================
   CANDIDATURE PAGE STYLES
   ============================================ */

/* === HERO SECTION === */
.hero-about {
    background: linear-gradient(rgba(0, 85, 150, 0.75), rgba(0, 85, 150, 0.75)),
        url("/wp-content/themes/asaige-theme/assets/images/mot-du-coordinnateur.png") center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    border-radius: 8px;
}

.hero-about h1 {
    font-size: 3.5rem;
    letter-spacing: 2px;
}

/* === BREADCRUMB === */
.breadcrumb-container {
    padding: 15px 0;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* === CONTAINERS === */
.content {
    margin: var(--section-margin);
}

.side-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.side-container span {
    color: #005596;
}

.side-container a {
    text-decoration: none;
    color: #777;
}

.applications-container {
    margin: var(--section-margin);
    text-align: center;
}

/* === INTRODUCTION TEXT === */
.intros-text {
    margin: 0 var(--section-margin) !important;
    text-align: center;
}

.intros-text p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.intro-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* === FILTER TABS === */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab {
    padding: 10px 20px;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    color: #005596;
}

.tab.active {
    color: #005596;
    border: 1px solid #005596;
}

/* === JOBS GRID === */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    text-align: left;
    margin-bottom: 20px;
}

/* === CARDS === */
.card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 16px;
    color: #333;
    font-weight: 700;
    max-width: 70%;
}

.card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* === BADGES === */
.badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
}

.badge.emploi {
    background: #e0d4f7;
    color: #7b4ccb;
}

.badge.tender {
    background: #d4f7e0;
    color: #2ecc71;
}

/* === PAGINATION === */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination button {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.pagination .page.active {
    background: #005596;
    color: white;
    border-color: #005596;
}

/* === DETAIL PAGE === */
.candidature-detail-page h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #222;
    font-weight: 700;
    font-family: var(--font-family);
}

.candidature-detail-page .detail-section {
    margin-bottom: 40px;
}

.candidature-detail-page .text-content {
    color: #525252;
    font-weight: 200;
    line-height: 1.6;
    font-size: 1rem;
}

.candidature-detail-page .text-content ul {
    padding-left: 20px;
    list-style-type: disc;
    margin-bottom: 15px;
}

.candidature-detail-page .text-content li {
    margin-bottom: 8px;
}

.detail-container {
    margin: 40px var(--section-margin);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.related-news {
    margin: 40px var(--section-margin);
}

/* === SIDEBAR === */
.detail-sidebar .sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: sticky;
    top: 120px;
}

.detail-sidebar .sidebar-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
}

.detail-sidebar .info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.detail-sidebar .info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #555;
}

.detail-sidebar .info-list i {
    width: 20px;
    text-align: center;
}

/* === SHARE SECTION === */
.share-section {
    margin-bottom: 30px;
}

.share-section h4 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #333;
}

.share-section .social-share {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #005596;
    text-decoration: none;
    transition: 0.3s;
}

.share-btn:hover {
    background: #005596;
    color: white;
}

/* === ACTIONS === */
.actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-download-ami {
    background: #005596;
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-download-ami:hover {
    background: #003f75;
    color: white;
}

.btn-apply {
    background: #f1c40f;
    color: #333;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(241, 196, 15, 0.3);
    transition: 0.3s;
}

.btn-apply:hover {
    background: #d4ac0d;
    transform: translateY(-2px);
    color: white;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* === TABLETTE (≤ 992px) === */
@media (max-width: 992px) {
    /* Hero */
    .hero-about {
        height: 200px;
    }
    
    .hero-about h1 {
        font-size: 3rem;
    }
    
    /* Marges */
    .content {
        margin: calc(var(--section-margin) * 0.5);
    }
    
    .applications-container {
        margin: calc(var(--section-margin) * 0.5);
    }
    
    .intros-text {
        margin: 0 calc(var(--section-margin) * 0.5) !important;
    }
    
    .detail-container {
        margin: 40px calc(var(--section-margin) * 0.5);
        grid-template-columns: 1fr;
    }
    
    .related-news {
        margin: 40px calc(var(--section-margin) * 0.5);
    }
    
    /* Layout */
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .sidebar-card {
        position: static;
    }
}

/* === MOBILE (≤ 768px) === */
@media (max-width: 768px) {
    /* Hero */
    .hero-about {
        height: 150px;
    }
    
    .hero-about h1 {
        font-size: 2.5rem;
    }
    
    /* Marges */
    .content {
        margin: calc(var(--section-margin) * 0.5);
    }
    
    .applications-container {
        margin: calc(var(--section-margin) * 0.5);
    }
    
    .intros-text {
        margin: 0 calc(var(--section-margin) * 0.5) !important;
    }
    
    .intros-text p {
        text-align: justify;
    }
    
    .detail-container {
        margin: 30px calc(var(--section-margin) * 0.5);
    }
    
    .related-news {
        margin: 30px calc(var(--section-margin) * 0.5);
    }
    
    /* Grid */
    .jobs-grid {
        grid-template-columns: 1fr;
        padding: 0px;
    }
    
    /* Filter tabs défilant horizontalement */
    .filter-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* === PETIT MOBILE (≤ 480px) === */
@media (max-width: 480px) {
    /* Hero */
    .hero-about {
        height: 120px;
    }
    
    .hero-about h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    /* Marges */
    .content {
        margin: calc(var(--section-margin) * 0.5);
    }
    
    .applications-container {
        margin: calc(var(--section-margin) * 0.5);
    }
    
    .intros-text {
        margin: 0 calc(var(--section-margin) * 0.5) !important;
    }
    
    .detail-container {
        margin: 20px calc(var(--section-margin) * 0.5);
    }
    
    .related-news {
        margin: 20px calc(var(--section-margin) * 0.5);
    }
}
