/* =========================================================
   CANDIDATURE SPONTANÉE
   ========================================================= */

:root {
    --primary: #23834b;
    --primary-dark: #176337;
    --primary-light: #eaf7ef;

    --orange: #f47b20;
    --orange-light: #fff2e7;

    --dark: #0d1b2a;
    --text: #536273;
    --muted: #8a96a3;

    --border: #dce3e8;
    --background: #f8faf9;
    --white: #ffffff;

    --shadow: 0 25px 70px rgba(21, 49, 35, .10);
    --shadow-soft: 0 12px 35px rgba(21, 49, 35, .07);

    --radius: 18px;
}


/* =========================================================
   SECTION
   ========================================================= */

.career-section {
    position: relative;
    min-height: 100vh;
    padding: 70px 30px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(35, 131, 75, .07),
            transparent 28%
        ),
        radial-gradient(
            circle at 5% 90%,
            rgba(244, 123, 32, .06),
            transparent 25%
        ),
        #ffffff;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.career-container {
    width: min(1400px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);

    gap: 70px;
    align-items: center;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.career-content {
    position: relative;
    z-index: 5;
    max-width: 760px;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.career-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 17px;

    color: var(--orange);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.eyebrow-line {
    width: 35px;
    height: 2px;

    display: inline-block;

    background: var(--orange);
    border-radius: 20px;
}


/* =========================================================
   TITLE
   ========================================================= */

.career-title {
    margin: 0 0 20px;

    color: var(--dark);

    font-size: clamp(25px, 4vw, 32px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.career-title span {
    position: relative;
    color: var(--primary);
}

.career-title span::after {
    content: "";

    position: absolute;

    left: 3px;
    right: 3px;
    bottom: -7px;

    height: 5px;

    background: var(--orange);
    border-radius: 10px;

    transform: rotate(-1deg);
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.career-description {
    max-width: 690px;

    margin: 0;

    color: var(--text);

    font-size: 16px;
    line-height: 1.75;
}

.career-description.second {
    margin-top: 2px;
}


/* =========================================================
   FORM
   ========================================================= */

.career-form {
    margin-top: 38px;

    padding: 30px;

    background: rgba(255, 255, 255, .92);

    border: 1px solid rgba(220, 227, 232, .9);


    backdrop-filter: blur(15px);
}


/* =========================================================
   FORM GRID
   ========================================================= */

.form-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 16px;
    row-gap: 17px;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
    min-width: 0;
}

.full-width {
    grid-column: 1 / -1;
}


/* =========================================================
   LABEL
   ========================================================= */

.form-group > label:first-child {
    display: block;

    margin-bottom: 8px;

    color: #445263;

    font-size: 13px;
    font-weight: 600;
}

.form-group label span {
    color: var(--orange);
}

.form-group label small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}


/* =========================================================
   INPUT
   ========================================================= */

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;

    left: 15px;
    top: 50%;

    width: 18px;
    height: 18px;

    transform: translateY(-50%);

    fill: none;
    stroke: #9aa5af;
    stroke-width: 1.7;

    pointer-events: none;

    transition: .25s ease;
}

.input-wrapper input {
    width: 100%;
    height: 49px;

    padding: 0 15px 0 45px;

    border: 1px solid var(--border);
    border-radius: 11px;

    outline: none;

    background: #fbfcfc;

    color: var(--dark);

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.input-wrapper input::placeholder {
    color: #a3abb3;
}

.input-wrapper input:hover {
    border-color: #c6d0d7;
}

.input-wrapper input:focus {
    background: var(--white);

    border-color: var(--primary);

}

.input-wrapper:focus-within svg {
    stroke: var(--primary);
}


/* =========================================================
   TEXTAREA
   ========================================================= */

.textarea-wrapper {
    position: relative;
}

.textarea-wrapper textarea {
    display: block;

    width: 100%;
    min-height: 135px;

    padding: 15px 16px;

    resize: vertical;

    border: 1px solid var(--border);
    border-radius: 12px;

    outline: none;

    background: #fbfcfc;

    color: var(--dark);

    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;

    transition: .25s ease;
}

.textarea-wrapper textarea::placeholder {
    color: #a3abb3;
}

.textarea-wrapper textarea:focus {
    background: white;

    border-color: var(--primary);

}

.textarea-counter {
    position: absolute;

    right: 13px;
    bottom: 10px;

    padding: 3px 7px;

    color: #9aa5af;

    font-size: 10px;

    background: rgba(255, 255, 255, .9);

    border-radius: 5px;
}


/* =========================================================
   FILE UPLOAD
   ========================================================= */

.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 58px;

    padding: 8px 12px;

    border: 1px dashed #cdd6dc;
    border-radius: 11px;

    background: #fbfcfc;

    cursor: pointer;

    transition: .25s ease;
}

.file-upload:hover {
    border-color: var(--primary);

    background: var(--primary-light);
}

.file-upload input {
    display: none;
}

.file-icon {
    width: 39px;
    height: 39px;

    flex: 0 0 39px;

    display: grid;
    place-items: center;

    color: var(--primary);

    background: var(--primary-light);

    border-radius: 9px;
}

.file-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.file-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-text strong {
    color: var(--dark);

    font-size: 12px;
    font-weight: 700;
}

.file-text .file-name {
    max-width: 240px;

    overflow: hidden;

    color: #99a3ac;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload.has-file {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-upload.has-file .file-name {
    color: var(--primary);
}


/* =========================================================
   CONSENT
   ========================================================= */

.consent {
    margin-top: 1px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    cursor: pointer;

    color: #697682;

    font-size: 12px;
    line-height: 1.55;
}

.checkbox-container input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {
    position: relative;

    flex: 0 0 18px;

    width: 18px;
    height: 18px;

    margin-top: 1px;

    border: 1px solid #c8d1d8;
    border-radius: 5px;

    background: white;

    transition: .2s ease;
}

.checkbox-container input:checked + .custom-checkbox {
    border-color: var(--primary);
    background: var(--primary);
}

.checkbox-container input:checked + .custom-checkbox::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 5px;
    height: 9px;

    border: solid white;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}


/* =========================================================
   BUTTON
   ========================================================= */

.submit-button {
    width: 100%;
    min-height: 55px;

    margin-top: 23px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border: 0;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #2b9257
        );

    color: white;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.submit-button svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;

    transition: transform .25s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
}

.submit-button:hover svg {
    transform: translateX(4px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button.loading {
    opacity: .75;

    cursor: wait;
}


/* =========================================================
   ERRORS
   ========================================================= */

.error-message {
    display: block;

    margin-top: 5px;

    color: #d64b4b;

    font-size: 11px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 20px;
    padding: 13px 15px;

    border-radius: 11px;

    font-size: 13px;
}

.alert-icon {
    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    font-weight: 800;
}

.alert strong {
    display: block;
    margin-bottom: 2px;
}

.alert p {
    margin: 0;
}

.alert-success {
    color: #216a3d;
    background: #ebf8ef;
    border: 1px solid #cdebd7;
}

.alert-success .alert-icon {
    color: white;
    background: var(--primary);
}

.alert-error {
    color: #9f3030;
    background: #fff0f0;
    border: 1px solid #f3cccc;
}

.alert-error .alert-icon {
    color: white;
    background: #d94c4c;
}


/* =========================================================
   RIGHT VISUAL
   ========================================================= */

.career-visual {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    isolation: isolate;
}


/* Background */
.visual-background {
    position: absolute;
    inset: 5%;

    z-index: -4;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(244, 123, 32, .13),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 75%,
            rgba(35, 131, 75, .13),
            transparent 35%
        );
}


/* =========================================================
   DECORATIVE CIRCLES
   ========================================================= */

.visual-circle {
    position: absolute;

    border-radius: 50%;

    z-index: -2;

    border: 1px solid rgba(35, 131, 75, .12);
}

.circle-one {
    width: 470px;
    height: 470px;
}

.circle-two {
    width: 590px;
    height: 590px;

    border-color: rgba(244, 123, 32, .09);
}


/* =========================================================
   CHAIR
   ========================================================= */

.chair-image {
    position: relative;

    z-index: 3;

    width: min(94%, 650px);
    max-height: 650px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 25px 28px rgba(39, 29, 21, .18)
        );

    animation: chairFloat 5s ease-in-out infinite;
}

@keyframes chairFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}


/* =========================================================
   SHADOW
   ========================================================= */

.visual-shadow {
    position: absolute;

    z-index: 1;

    bottom: 55px;

    width: 390px;
    height: 40px;

    background: rgba(29, 37, 33, .16);

    border-radius: 50%;

    filter: blur(18px);

    animation: shadowPulse 5s ease-in-out infinite;
}

@keyframes shadowPulse {

    0%,
    100% {
        transform: scaleX(1);
        opacity: .7;
    }

    50% {
        transform: scaleX(.88);
        opacity: .45;
    }
}


/* =========================================================
   BADGE
   ========================================================= */

.visual-badge {
    position: absolute;

    top: 70px;
    right: 35px;

    z-index: 5;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;

    background: rgba(255, 255, 255, .9);

    border: 1px solid rgba(35, 131, 75, .13);
    border-radius: 50px;

    box-shadow: 0 8px 25px rgba(25, 50, 36, .08);

    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(35, 131, 75, .10);
}


/* =========================================================
   VISUAL MESSAGE
   ========================================================= */

.visual-message {
    position: absolute;
    left: 25px;
    bottom: 45px;
    z-index: 5;
    max-width: 235px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 16px 40px rgba(30, 50, 38, .10);
    backdrop-filter: blur(14px);
}

.quote-mark {
    display: block;

    height: 20px;

    color: var(--orange);

    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1;
}

.visual-message p {
    margin: 3px 0 12px;

    color: var(--dark);

    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.quote-line {
    display: block;

    width: 30px;
    height: 3px;

    background: var(--orange);
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .career-container {
        grid-template-columns: 1fr;

        max-width: 800px;
    }

    .career-content {
        max-width: none;
    }

    .career-visual {
        min-height: 560px;
    }

    .chair-image {
        width: min(80%, 570px);
    }

    .visual-badge {
        right: 12%;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .career-section {
        padding: 42px 16px;
    }

    .career-container {
        gap: 35px;
    }

    .career-title {
        font-size: 39px;
    }

    .career-description {
        font-size: 14px;
        line-height: 1.65;
    }

    .career-form {
        margin-top: 28px;
        padding: 20px 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;

        row-gap: 16px;
    }

    .full-width {
        grid-column: auto;
    }

    .career-visual {
        min-height: 420px;
    }

    .chair-image {
        width: 94%;
    }

    .circle-one {
        width: 320px;
        height: 320px;
    }

    .circle-two {
        width: 410px;
        height: 410px;
    }

    .visual-badge {
        top: 18px;
        right: 15px;

        padding: 8px 11px;

        font-size: 9px;
    }

    .visual-message {
        left: 15px;
        bottom: 18px;

        max-width: 195px;

        padding: 13px 15px;
    }

    .visual-message p {
        font-size: 11px;
    }

    .visual-shadow {
        bottom: 25px;

        width: 260px;
    }
}


/* =========================================================
   PETITS MOBILES
   ========================================================= */

@media (max-width: 400px) {

    .career-title {
        font-size: 34px;
    }

    .career-form {
        padding: 17px 13px;
    }

    .file-upload {
        min-height: 53px;
    }

    .career-visual {
        min-height: 350px;
    }

    .visual-message {
        display: none;
    }
}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .chair-image,
    .visual-shadow {
        animation: none;
    }

    .submit-button,
    .submit-button svg,
    .input-wrapper input,
    .textarea-wrapper textarea,
    .file-upload {
        transition: none;
    }
}
