/* =========================================================
   OFFRES D'EMPLOI
========================================================= */

:root {
    --primary: #237f49;
    --primary-dark: #176238;
    --primary-light: #eaf7ef;

    --dark: #10251b;
    --text: #53635b;
    --muted: #87948d;

    --white: #ffffff;
    --background: #f7faf8;
    --border: #e7eee9;

    --shadow:
        0 20px 60px rgba(24, 63, 43, 0.08);

    --shadow-hover:
        0 30px 80px rgba(24, 63, 43, 0.15);

    --radius: 22px;
}


/* =========================================================
   SECTION
========================================================= */

.jobs-section {
    position: relative;
    padding: 100px 20px;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(35, 127, 73, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(35, 127, 73, 0.06),
            transparent 30%
        ),
        var(--background);

    overflow: hidden;
}


/* Décoration */

.jobs-section::before {
    content: "";
    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: rgba(35, 127, 73, 0.04);

    top: -150px;
    right: -100px;
}

.jobs-section::after {
    content: "";

    position: absolute;

    width: 200px;
    height: 200px;

    border-radius: 50%;

    border: 30px solid rgba(35, 127, 73, 0.035);

    bottom: -100px;
    left: -70px;
}


/* =========================================================
   CONTAINER
========================================================= */

.jobs-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.jobs-header {
    max-width: 720px;

    margin: 0 auto 60px;

    text-align: center;
}

.jobs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 17px;

    margin-bottom: 18px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.4px;
}

.jobs-badge i {
    font-size: 12px;
}

.jobs-header h1 {
    margin: 0;

    color: var(--dark);

    font-size: clamp(36px, 5vw, 56px);

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -1.8px;
}

.jobs-header h1 span {
    display: block;

    color: var(--primary);
}

.jobs-header p {
    max-width: 600px;

    margin: 22px auto 0;

    color: var(--text);

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   GRID
========================================================= */

.jobs-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================================
   CARD
========================================================= */

.job-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.job-card:hover {
    transform: translateY(-8px);

    border-color: rgba(35, 127, 73, 0.2);

    box-shadow: var(--shadow-hover);
}


/* =========================================================
   IMAGE
========================================================= */

.job-image {
    position: relative;

    height: 280px;

    overflow: hidden;

    background: #edf4ef;
}

.job-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 50%,
            rgba(0, 0, 0, 0.08)
        );

    pointer-events: none;
}

.job-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.job-card:hover .job-image img {
    transform: scale(1.05);
}


/* =========================================================
   STATUS
========================================================= */

.job-status {
    position: absolute;

    z-index: 2;

    top: 18px;
    right: 18px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.94);

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.job-status span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #31ad62;
}


/* =========================================================
   CONTENT
========================================================= */

.job-content {
    padding: 30px;
}

.job-category {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    margin-bottom: 13px;

    color: var(--primary);

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.job-category i {
    font-size: 14px;
}

.job-content h2 {
    margin: 0 0 15px;

    color: var(--dark);

    font-size: 23px;

    line-height: 1.35;

    font-weight: 800;

    letter-spacing: -0.3px;
}

.job-description {
    min-height: 84px;

    margin: 0 0 25px;

    color: var(--text);

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   INFOS
========================================================= */

.job-infos {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

    padding: 18px 0;

    margin-bottom: 20px;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.job-info {
    display: flex;

    align-items: center;

    gap: 10px;
}

.info-icon {
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 13px;
}

.job-info small {
    display: block;

    margin-bottom: 3px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 500;
}

.job-info strong {
    display: block;

    color: var(--dark);

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   BUTTON
========================================================= */

.job-button {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 14px 18px;

    overflow: hidden;
    background: var(--primary);

    color: white;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.job-button::before {
    content: "";

    position: absolute;

    width: 0;
    height: 100%;

    left: 0;
    top: 0;

    background: var(--primary-dark);

    transition: width 0.3s ease;

    z-index: 0;
}

.job-button:hover::before {
    width: 100%;
}

.job-button span,
.job-button i {
    position: relative;
    z-index: 1;
}

.job-button i {
    transition: transform 0.3s ease;
}

.job-button:hover i {
    transform: translateX(5px);
}


/* =========================================================
   CANDIDATURE SPONTANEE
========================================================= */

.spontaneous {
    display: flex;

    align-items: center;

    gap: 22px;

    margin-top: 35px;

    padding: 28px 32px;

    border: 1px solid rgba(35, 127, 73, 0.14);

    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f0f9f3
        );

    box-shadow: 0 15px 45px rgba(24, 63, 43, 0.06);
}

.spontaneous-icon {
    flex-shrink: 0;

    width: 56px;
    height: 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--primary);

    color: white;

    font-size: 20px;

    box-shadow:
        0 10px 25px rgba(35, 127, 73, 0.2);
}

.spontaneous-content {
    flex: 1;
}

.spontaneous-content h3 {
    margin: 0 0 6px;

    color: var(--dark);

    font-size: 18px;

    font-weight: 800;
}

.spontaneous-content p {
    margin: 0;

    color: var(--text);

    font-size: 13px;

    line-height: 1.6;
}

.spontaneous-button {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 13px 19px;

    border: 1px solid var(--primary);

    color: var(--primary);

    background: white;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.spontaneous-button:hover {
    background: var(--primary);

    color: white;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .jobs-section {
        padding: 75px 18px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-image {
        height: 320px;
    }

}


@media (max-width: 650px) {

    .jobs-section {
        padding: 60px 15px;
    }

    .jobs-header {
        margin-bottom: 40px;
    }

    .jobs-header h1 {
        font-size: 36px;

        letter-spacing: -1px;
    }

    .jobs-header p {
        font-size: 14px;
    }

    .job-image {
        height: 260px;
    }

    .job-content {
        padding: 23px;
    }

    .job-content h2 {
        font-size: 21px;
    }

    .job-description {
        min-height: auto;
    }

    .job-infos {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .spontaneous {
        flex-direction: column;

        align-items: flex-start;

        padding: 24px;
    }

    .spontaneous-button {
        width: 100%;

        justify-content: center;
    }

}


@media (max-width: 400px) {

    .job-image {
        height: 220px;
    }

    .jobs-header h1 {
        font-size: 31px;
    }

    .job-content {
        padding: 20px;
    }

}
