/**
 * Styles pour les pages Offres d'emploi
 * Archive (liste) et Single (détail)
 */

/* ========================================
   ARCHIVE - PAGE CARREFOUR
======================================== */

.offres-emploi-archive {
    width: 100%;
}

/* Hero */
.offres-hero {
    background: linear-gradient(135deg, #E73331 0%, #F04442 100%);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.offres-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 15px 0;
}

.offres-hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin: 0;
}

/* Filtres */
.offres-filters {
    background: #f5f5f5;
    padding: 30px 20px;
    border-bottom: 3px solid #E73331;
}

.filters-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: #E73331;
}

.btn-filter,
.btn-reset {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-filter {
    background: #E73331;
    color: #ffffff;
}

.btn-filter:hover {
    background: #d42927;
}

.btn-reset {
    background: #666;
    color: #ffffff;
}

.btn-reset:hover {
    background: #555;
}

/* Liste des offres */
.offres-liste {
    padding: 60px 20px;
}

.offres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.offre-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #E73331;
}

.offre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.offre-card-header {
    margin-bottom: 15px;
}

.offre-badge {
    display: inline-block;
    padding: 6px 15px;
    background: #E73331;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.offre-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.offre-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.offre-title a:hover {
    color: #E73331;
}

.offre-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.offre-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.offre-meta-item i {
    color: #E73331;
    width: 16px;
}

.offre-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.offre-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #E73331;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.offre-cta:hover {
    gap: 12px;
}

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

.offres-empty i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.offres-empty h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.offres-empty p {
    color: #666;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: #E73331;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #d42927;
}

/* ========================================
   SINGLE - DÉTAIL D'UNE OFFRE
======================================== */

.offre-single {
    width: 100%;
}

/* Hero */
.offre-single-hero {
    background: linear-gradient(135deg, #2c2c2c 0%, #3d3d3d 100%);
    color: #ffffff;
    padding: 40px 20px 50px;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 10px;
}

.offre-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.offre-hero-left h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 20px 0;
}

.offre-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.offre-badge-large {
    padding: 8px 18px;
    background: #E73331;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.offre-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.offre-hero-meta-item i {
    opacity: 0.8;
}

.btn-postuler {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    background: #E73331;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231, 51, 49, 0.3);
}

.btn-postuler:hover {
    background: #d42927;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 51, 49, 0.4);
}

.offre-pourvu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    background: #666;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
}

/* Contenu */
.offre-single-content {
    padding: 60px 20px;
}

.offre-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.offre-infos-box {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.offre-infos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.offre-info-item {
    display: flex;
    gap: 15px;
}

.offre-info-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E73331;
    color: #ffffff;
    border-radius: 8px;
    font-size: 18px;
    flex-shrink: 0;
}

.offre-info-content {
    display: flex;
    flex-direction: column;
}

.offre-info-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.offre-info-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.offre-section {
    margin-bottom: 40px;
}

.offre-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.offre-section h2 i {
    color: #E73331;
}

.offre-section-content {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.offre-avantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offre-avantages-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.offre-avantages-list li i {
    color: #46b450;
    font-size: 18px;
}

/* Sidebar */
.offre-sidebar-box {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.offre-sidebar-box h3 {
    font-size: 20px;
    margin: 0 0 15px 0;
}

.offre-pourquoi-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offre-pourquoi-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.offre-pourquoi-list li i {
    color: #E73331;
    margin-top: 3px;
}

.offre-contact-box {
    background: #E73331;
    color: #ffffff;
}

.offre-contact-box h3 {
    color: #ffffff;
}

.offre-contact-box p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #ffffff;
    color: #E73331;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: #f0f0f0;
}

/* Formulaire de candidature */
.offre-candidature-section {
    background: #f5f5f5;
    padding: 60px 20px;
}

.candidature-header {
    text-align: center;
    margin-bottom: 40px;
}

.candidature-header h2 {
    font-size: 36px;
    margin: 0 0 10px 0;
}

.candidature-header p {
    font-size: 18px;
    color: #666;
}

.candidature-form {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.required {
    color: #E73331;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E73331;
}

.form-group input.error {
    border-color: #dc3232;
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-input-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input-label:hover {
    border-color: #E73331;
    background: #fef5f5;
}

.file-input-label i {
    font-size: 20px;
    color: #E73331;
}

.file-input-name {
    display: none;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.file-input-name.active {
    display: block;
}

.form-actions {
    margin-top: 30px;
}

.btn-submit-candidature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: #E73331;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-candidature:hover:not(:disabled) {
    background: #d42927;
}

.btn-submit-candidature:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
    display: none;
}

.form-message.success {
    display: block;
    background: #e7f7ed;
    color: #46b450;
    border-left: 4px solid #46b450;
}

.form-message.error {
    display: block;
    background: #fef5f5;
    color: #dc3232;
    border-left: 4px solid #dc3232;
}

/* Offres similaires */
.offres-similaires {
    padding: 60px 20px;
    background: #f8f8f8;
}

.offres-similaires h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.offres-similaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.offre-card-mini {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #E73331;
    transition: all 0.3s;
}

.offre-card-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.offre-badge-mini {
    display: inline-block;
    padding: 4px 12px;
    background: #E73331;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 15px;
    margin-bottom: 12px;
}

.offre-card-mini h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
}

.offre-card-mini h3 a {
    color: #333;
    text-decoration: none;
}

.offre-cta-mini {
    color: #E73331;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .offre-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .offre-hero-content {
        flex-direction: column;
    }

    .offre-hero-right {
        width: 100%;
    }

    .btn-postuler,
    .offre-pourvu {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .offres-grid {
        grid-template-columns: 1fr;
    }

    .filters-form {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .btn-filter,
    .btn-reset {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .candidature-form {
        padding: 25px;
    }

    .offre-hero-left h1 {
        font-size: 32px;
    }

    .offres-similaires-grid {
        grid-template-columns: 1fr;
    }

    .offre-infos-grid {
        grid-template-columns: 1fr;
    }
}