/* Styles pour les pages d'offres d'emploi */

/* Hero Section - Style harmonisé avec la page d'accueil */
.hero {
    background-color: #9932CC; /* Violet */
    position: relative;
    padding: 60px 8%;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1;
    padding-right: 20px;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: white;
    color: #9932CC; /* Violet */
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.hero-right img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Search Section */
.search-section {
    background-color: var(--white);
    padding: 40px 8%;
    text-align: center;
}

.search-section h2 {
    color: #9932CC; /* Violet - harmonisé avec le thème */
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.search-container {
    max-width: 1000px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 2;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.95rem;
}

.search-box select {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.95rem;
    background-color: white;
}

.btn-search {
    background-color: #9932CC; /* Violet - harmonisé avec le thème */
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-search:hover {
    background-color: #8A2BE2; /* Violet un peu plus foncé */
}

/* Job Listings Section */
.job-listings-section {
    background-color: var(--white);
    padding: 30px 8% 60px;
}

.job-listings-section h2 {
    color: #9932CC; /* Violet - harmonisé avec le thème */
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: left;
}

.job-listings-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    max-height: 650px;
    overflow-y: auto;
    padding-right: 15px;
}

/* Custom scrollbar for the job listings */
.job-listings-container::-webkit-scrollbar {
    width: 8px;
}

.job-listings-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.job-listings-container::-webkit-scrollbar-thumb {
    background: #9932CC; /* Violet - harmonisé avec le thème */
    border-radius: 10px;
}

.job-listings-container::-webkit-scrollbar-thumb:hover {
    background: #8A2BE2; /* Violet un peu plus foncé */
}

.job-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.job-title {
    flex: 2;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.job-location {
    flex: 1;
    font-size: 1rem;
    color: var(--light-text);
}

.job-details {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.job-tag {
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.job-tag i {
    margin-right: 5px;
    color: #9932CC; /* Violet - harmonisé avec le thème */
}

.btn-apply {
    display: inline-block;
    background-color: #9932CC; /* Violet - harmonisé avec le thème */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    min-width: 100px;
}

.btn-apply:hover {
    background-color: #8A2BE2; /* Violet un peu plus foncé */
}

/* Styles for the Detail page */
.job-detail-section {
    padding: 40px 8%;
    background-color: white;
}

.job-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
}

.job-detail-left {
    flex: 3;
}

.job-detail-right {
    flex: 2;
}

.job-detail-header {
    margin-bottom: 30px;
}

.job-detail-header h2 {
    font-size: 2rem;
    color: #9932CC; /* Violet - harmonisé avec le thème */
    margin-bottom: 10px;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-tag {
    background-color: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.detail-tag i {
    margin-right: 8px;
    color: #9932CC; /* Violet - harmonisé avec le thème */
}

.job-detail-description {
    margin-bottom: 30px;
}

.job-detail-description h3 {
    font-size: 1.3rem;
    color: #9932CC; /* Violet - harmonisé avec le thème */
    margin-bottom: 15px;
}

.job-detail-description p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.job-detail-description ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.job-detail-description li {
    margin-bottom: 8px;
}

.application-form {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.application-form h3 {
    font-size: 1.3rem;
    color: #9932CC; /* Violet - harmonisé avec le thème */
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.95rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* Nouveaux styles pour l'upload de fichiers */
.form-group .file-input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.form-group .file-input-field::-webkit-file-upload-button {
    background-color: #9932CC;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.form-group .file-input-field::-webkit-file-upload-button:hover {
    background-color: #8A2BE2;
}

.btn-submit-application {
    display: inline-block;
    background-color: #9932CC; /* Violet - harmonisé avec le thème */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-submit-application:hover {
    background-color: #8A2BE2; /* Violet un peu plus foncé */
}

/* Application Sent Page */
.application-sent-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 8%;
    background-color: white;
}

.sent-container {
    max-width: 700px;
    text-align: center;
    padding: 50px;
}

.sent-container h2 {
    color: #9932CC; /* Violet - harmonisé avec le thème */
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.sent-icon {
    width: 150px;
    height: 150px;
    margin: 30px auto;
}

.sent-icon img {
    width: 100%;
    height: auto;
}

.sent-message {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.sent-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-back {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    background-color: #f0f0f0;
    color: var(--text-color);
}

.btn-back:hover {
    background-color: #e0e0e0;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-left {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-right {
        justify-content: center;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .job-detail-container {
        flex-direction: column;
    }
    
    .job-detail-left,
    .job-detail-right {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .search-section h2,
    .job-listings-section h2 {
        font-size: 1.6rem;
    }
    
    .job-title,
    .job-location,
    .job-details,
    .btn-apply {
        flex: 100%;
        margin-bottom: 10px;
    }
    
    .job-card {
        padding: 15px;
    }
    
    .job-details {
        margin: 10px 0;
    }
    
    .btn-apply {
        width: 100%;
    }
    
    /* Responsive design pour le dropdown sur mobile */
    .dropdown-menu {
        position: static;
        min-width: auto;
        box-shadow: none;
        margin-top: 10px;
        border: 1px solid #ddd;
        width: 100%;
    }
    
    .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}