/*--------------------------------------------------------------
# Page candidature (candidature.php)
# Styles isolés sous .cand-* pour ne rien changer au reste du site.
--------------------------------------------------------------*/
.cand-page {
    --cand-orange: #ef6603;
    --cand-orange-clair: #fc8129;
    --cand-orange-pale: #fff3ea;
    --cand-sombre: #2a2c39;
    --cand-texte: #555974;
    --cand-bordure: #e6e8ee;
    --cand-fond: #f7f8fb;
    background: var(--cand-fond);
    padding: 70px 0 80px;
}

/* ---------- En-tête de section ---------- */
.cand-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}

.cand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cand-orange-pale);
    color: var(--cand-orange);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.cand-intro h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 34px;
    color: var(--cand-sombre);
    margin-bottom: 12px;
}

.cand-intro p {
    color: var(--cand-texte);
    font-size: 16px;
    margin: 0;
}

/* ---------- Colonne d'informations ---------- */
.cand-aside {
    background: linear-gradient(160deg, #353848 0%, var(--cand-sombre) 100%);
    color: #fff;
    border-radius: 20px;
    padding: 34px 30px;
    box-shadow: 0 18px 40px rgba(42, 44, 57, .18);
    position: sticky;
    top: 100px;
}

.cand-aside h3 {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
}

.cand-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.cand-steps li {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 22px;
}

.cand-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 38px;
    bottom: 4px;
    width: 2px;
    background: rgba(255, 255, 255, .15);
}

.cand-steps .cand-step-num {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cand-orange);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px rgba(239, 102, 3, .2);
}

.cand-steps strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.cand-steps p {
    margin: 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.5;
}

.cand-aside-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    padding: 16px 18px;
    color: #fff;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
    margin-bottom: 26px;
}

.cand-aside-cta:hover {
    background: rgba(239, 102, 3, .22);
    color: #fff;
    transform: translateY(-2px);
}

.cand-aside-cta > i:first-child {
    font-size: 22px;
    color: var(--cand-orange-clair);
}

.cand-aside-cta span {
    flex: 1;
    font-size: 13.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .8);
}

.cand-aside-cta span strong {
    display: block;
    color: #fff;
    font-size: 14.5px;
}

.cand-contact {
    list-style: none;
    padding: 22px 0 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.cand-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 12px;
}

.cand-contact li:last-child {
    margin-bottom: 0;
}

.cand-contact i {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cand-orange-clair);
}

.cand-contact a {
    color: #fff;
}

.cand-contact a:hover {
    color: var(--cand-orange-clair);
}

/* ---------- Formulaire ---------- */
.cand-form {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(42, 44, 57, .07);
    padding: 38px 40px;
}

.cand-block {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--cand-bordure);
}

.cand-block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--cand-sombre);
    margin-bottom: 20px;
}

.cand-block-title span {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--cand-orange-pale);
    color: var(--cand-orange);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cand-form .form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cand-sombre);
    margin-bottom: 6px;
}

.cand-form .cand-requis {
    color: var(--cand-orange);
}

/* Les champs : remplace la bordure orange globale du site par un style plus doux */
.cand-form .form-control,
.cand-form .form-select {
    border: 1px solid var(--cand-bordure) !important;
    border-radius: 12px !important;
    background-color: var(--cand-fond);
    padding: 11px 14px;
    height: auto;
    font-size: 14.5px;
    color: var(--cand-sombre);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.cand-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.cand-form .form-control::placeholder {
    color: #a3a7b7;
}

.cand-form .form-control:focus,
.cand-form .form-select:focus {
    border-color: var(--cand-orange) !important;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(239, 102, 3, .12);
    outline: none;
}

/* Interrupteurs Bac Pro / autre diplôme */
.cand-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--cand-bordure);
    border-radius: 12px;
    padding: 13px 16px;
    height: 100%;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.cand-form .cand-switch.form-switch {
    padding-left: 16px;
    margin: 0;
}

.cand-switch:hover {
    border-color: #ffd2b0;
    background: var(--cand-orange-pale);
}

.cand-form .cand-switch .form-check-input {
    flex: 0 0 auto;
    width: 2.6em;
    height: 1.4em;
    margin: 0;
    border-radius: 2em !important;
    cursor: pointer;
}

.cand-switch span {
    font-size: 14px;
    color: var(--cand-texte);
    line-height: 1.4;
}

/* Zone de dépôt du CV : le champ fichier transparent couvre toute la zone,
   ce qui permet aussi de glisser-déposer le fichier directement dessus. */
.cand-file {
    position: relative;
    border: 2px dashed #f6c39d;
    border-radius: 16px;
    background: var(--cand-orange-pale);
    text-align: center;
    padding: 30px 20px;
    transition: border-color .2s ease, background-color .2s ease;
}

.cand-file:hover,
.cand-file:focus-within {
    border-color: var(--cand-orange);
    background: #ffe9d9;
}

.cand-file input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.cand-file-label {
    display: block;
    margin: 0;
    font-weight: 600;
    color: var(--cand-sombre);
    word-break: break-word;
}

.cand-file-label::before {
    content: "\F297";
    font-family: "bootstrap-icons";
    display: block;
    font-size: 34px;
    color: var(--cand-orange);
    margin-bottom: 6px;
}

.cand-file-label:empty::after {
    content: "Glissez votre CV ici ou cliquez pour le choisir";
}

.cand-file-label:not(:empty)::before {
    content: "\F26A";
    color: #18a957;
}

.cand-file-hint {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--cand-texte);
}

/* Consentement */
.cand-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13.5px;
    color: var(--cand-texte);
    margin-bottom: 18px;
}

.cand-consent input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--cand-orange);
    cursor: pointer;
}

.cand-consent a {
    color: var(--cand-orange);
    font-weight: 600;
}

.cand-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cand-mention {
    font-size: 12.5px;
    color: #9a9eae;
    margin: 0;
}

/* Bouton d'envoi */
.cand-form .cand-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--cand-orange-clair), var(--cand-orange)) !important;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 14px 34px;
    font-weight: 600;
    font-size: 15.5px;
    box-shadow: 0 10px 24px rgba(239, 102, 3, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cand-form .cand-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(239, 102, 3, .38);
    color: #fff;
}

/* Messages d'état (affichés par assets/vendor/php-email-form/validate.js via .d-block) */
.cand-form .loading,
.cand-form .sent-message,
.cand-form .error-message {
    display: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.cand-form .loading {
    background: var(--cand-fond);
    color: var(--cand-texte);
    text-align: center;
}

.cand-form .loading::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 10px -5px 0;
    border-radius: 50%;
    border: 3px solid var(--cand-orange);
    border-top-color: transparent;
    animation: cand-tourne 1s linear infinite;
}

.cand-form .sent-message {
    background: #e8f8ef;
    color: #137a42;
    border: 1px solid #bfe9d0;
}

.cand-form .error-message {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f6c7c2;
}

@keyframes cand-tourne {
    to { transform: rotate(360deg); }
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    .cand-aside {
        position: static;
    }
}

@media (max-width: 575px) {
    .cand-page {
        padding: 44px 0 56px;
    }

    .cand-intro h2 {
        font-size: 26px;
    }

    .cand-form {
        padding: 26px 20px;
        border-radius: 16px;
    }

    .cand-aside {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .cand-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cand-form .cand-submit {
        justify-content: center;
        width: 100%;
    }
}
