/* =============================================
   JOB TITLE & CONTENT
   ============================================= */

#job-title {
    font-size: 64px;
    font-weight: 400;
    color: #1B2A4A;
}

#job-description,
#job-taches,
#job-aptitudes,
#job-exigences {
    font-size: 24px;
    font-weight: 400;
    color: #1B2A4A;
    margin-top: 30px;
}

@media (max-width: 991px) {
    #job-title {
        font-size: 46px;
        text-align: center;
    }

    #job-description,
    #job-taches,
    #job-aptitudes,
    #job-exigences {
        font-size: 20px;
    }
}

/* =============================================
   SELECT NATIF (caché via JS, remplacé par .job-dropdown)
   ============================================= */

#job-select {
    width: 100%;
    font-size: 20px;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    background-color: #fff;
    color: #1B2A4A;
    appearance: none;
    cursor: pointer;
}

#job-select:focus {
    outline: none;
    box-shadow: none;
}

/* =============================================
   FORMULAIRE
   ============================================= */

#brxe-wgdnxv label {
    color: #1B2A4A;
    font-size: 18px;
    font-family: "Tiltwarp", sans-serif;
    font-weight: 400;
}

#brxe-wgdnxv input,
#brxe-wgdnxv textarea,
#brxe-wgdnxv select,
#brxe-wgdnxv .file-result {
    width: 100%;
    font-size: 20px;
    border-radius: 30px;
    background: #dddfe4;
    padding: 14px 16px;
    outline: none;
    color: #1B2A4A;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease !important;
}

#brxe-wgdnxv input::placeholder,
#brxe-wgdnxv textarea::placeholder {
    color: #1B2A4A;
    opacity: 1;
    font-size: 20px;
}

#brxe-wgdnxv input:focus,
#brxe-wgdnxv textarea:focus {
    color: #1B2A4A;
    background-color: #dddfe4 !important;
    box-shadow: none !important;
}

#brxe-wgdnxv textarea {
    min-height: 140px;
    resize: vertical;
}

/* Select 'Poste souhaité' */
#brxe-wgdnxv select {
    appearance: none;
    background: #dddfe4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231B2A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 16px center;
    padding-right: 44px;
}

#brxe-wgdnxv select option {
    color: #1B2A4A;
}

/* Bouton submit */
.brxe-form button[type="submit"] {
    border-radius: 35px;
    background: var(--color-secondary);
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 20px;
    border: none;
    font-size: 20px;
    font-family: "Tiltwarp", sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
}

.brxe-form button[type="submit"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
    border-radius: inherit;
}

.brxe-form button[type="submit"]:hover::before {
    transform: scaleX(1);
}

.brxe-form button[type="submit"]:hover {
    color: white !important;
}

/* Bouton submit - largeur */
#brxe-wgdnxv .submit-button-wrapper {
    margin: 30px auto 0;
    display: flex;
    justify-content: center;
    width: 60%;
}

@media (max-width: 768px) {
    #brxe-wgdnxv .submit-button-wrapper {
        width: 100%;
    }
}

/* =============================================
   CHAMP FICHIER
   ============================================= */

#brxe-wgdnxv input[type="file"] {
    display: none;
}

#brxe-wgdnxv .form-group.file {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#brxe-wgdnxv .form-group.file>label:not(.choose-files) {
    pointer-events: none;
    cursor: default;
}

#brxe-wgdnxv .file-result {
    position: relative;
    display: flex;
    align-items: center;
    color: #1B2A4A;
    min-height: 52px;
    height: 72px;
}

#brxe-wgdnxv .file-result .text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#brxe-wgdnxv .file-result .text:empty::before {
    content: "Déposer un fichier (.pdf, .txt, .doc, .docx)";
    color: #1B2A4A;
    font-size: 20px;
}

#brxe-wgdnxv .file-result .remove,
#brxe-wgdnxv .file-result svg {
    display: none;
}

#brxe-wgdnxv .file-result.has-files .remove {
    display: inline-block;
}

#brxe-wgdnxv .file-result .choose-files {
    display: none;
}

#brxe-wgdnxv .file-result:first-of-type .choose-files {
    display: inline-block;
}

#brxe-wgdnxv .file-result.show .choose-files {
    display: none;
}

#brxe-wgdnxv .choose-files {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1.5px solid #1B2A4A;
    border-radius: 20px;
    padding: 3px 18px;
    font-size: 18px;
    color: #1B2A4A;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 400;
    font-family: "Outfit", sans-serif;
    transition: background 0.2s ease, color 0.2s ease;
}

#brxe-wgdnxv .choose-files:hover {
    background: #1B2A4A;
    color: white;
}

@media (max-width: 768px) {
    #brxe-wgdnxv .file-result {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 14px;
    }

    #brxe-wgdnxv .file-result .text:empty::before {
        content: "pdf, doc, docx, txt";
    }

    #brxe-wgdnxv .choose-files {
        position: relative !important;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 12px;
        width: 100%;
        text-align: center;
    }
}

/* =============================================
   JOB DROPDOWN (custom select)
   ============================================= */

.job-dropdown {
    position: relative;
    user-select: none;
    width: 100%;
}

.job-dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    font-size: 20px;
    font-family: inherit;
    color: #1B2A4A;
    background-color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    box-sizing: border-box;
}

.job-dropdown-selected svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.job-dropdown-selected:has(+ .job-dropdown-menu.open) svg {
    transform: rotate(180deg);
}

.job-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 300px;
    overflow-y: auto;
}

.job-dropdown-menu.open {
    display: block;
}

.job-dropdown-menu li {
    padding: 12px 16px;
    font-size: 20px;
    font-family: inherit;
    color: #1B2A4A;
    cursor: pointer;
    transition: background 0.15s ease;
}

.job-dropdown-menu li:hover {
    background: rgba(27, 42, 74, 0.06);
}

.job-dropdown-menu li.active {
    font-weight: 700;
    color: var(--color-secondary);
}