/* Page « Nos Offres » : compléments pour les offres venant du logiciel de gestion et la fenêtre de candidature. */

.cand-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 500;
    line-height: 1.5;
}
.cand-alert i { margin-top: 3px; }
.cand-alert ul { margin: 6px 0 0 18px; font-weight: 400; }
.cand-alert small { display: block; margin-top: 6px; font-weight: 400; }
.cand-alert-success { background: #e6f9ed; color: #1f7a45; border-left: 5px solid #28a745; box-shadow: 0 10px 25px rgba(0, 0, 0, .06); }
.cand-alert-error { background: #fdecee; color: #8a1f2b; border-left: 5px solid #dc3545; }

.cand-empty {
    max-width: 640px;
    margin: 0 auto 30px;
    padding: 36px 24px;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    color: #555;
}
.cand-empty i { font-size: 2.2rem; color: var(--primary-color, #005b9a); margin-bottom: 12px; }
.cand-empty p + p { margin-top: 8px; }

.cand-summary { font-weight: 500; }
.cand-pre { white-space: pre-line; }

.cand-more { margin-top: 12px; }
.cand-more summary {
    cursor: pointer;
    color: var(--primary-color, #005b9a);
    font-weight: 600;
    list-style: none;
}
.cand-more summary::-webkit-details-marker { display: none; }
.cand-more summary::after { content: ' ▾'; }
.cand-more[open] summary::after { content: ' ▴'; }
.cand-more h4 { margin-top: 14px; }

.cand-spontaneous {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    padding: 24px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color, #005b9a), var(--secondary-color, #74c2e1));
    color: #fff;
}
.cand-spontaneous h3 { margin: 0 0 4px; color: #fff; }
.cand-spontaneous p { margin: 0; opacity: .95; }
.cand-spontaneous .cta-button { background: #fff; color: var(--primary-color, #005b9a); }

/* Fenêtre */
.cand-modal { max-width: 720px; width: calc(100% - 32px); }
.cand-modal .close { background: none; border: 0; line-height: 1; }
.cand-offer-title { font-weight: 600; color: var(--primary-color, #005b9a); }

.cand-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
@media (max-width: 600px) {
    .cand-row { grid-template-columns: 1fr; }
    .cand-spontaneous { text-align: center; justify-content: center; }
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="tel"],
.registration-form textarea {
    width: 100%;
    padding: .75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font: inherit;
    transition: border-color .2s;
}
.registration-form input:focus,
.registration-form textarea:focus { outline: none; border-color: var(--primary-color, #005b9a); }
.registration-form .is-error { border-color: #dc3545 !important; }

.cand-optional { font-weight: 400; color: #888; font-size: .9em; }
.cand-hint { display: block; margin-top: 4px; color: #777; font-size: .85rem; }
.cand-center { text-align: center; margin-top: 10px; }

.cand-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
label.cand-file {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: .75rem;
    border: 2px dashed #c9d6e2;
    border-radius: 8px;
    background: #f8fbfd;
    color: #456;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s, background .2s;
}
label.cand-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
label.cand-file:hover,
.cand-file-input:focus + label.cand-file { border-color: var(--primary-color, #005b9a); }
label.cand-file.is-ok { border-style: solid; border-color: #28a745; background: #f0fbf4; color: #1f7a45; }
label.cand-file.is-error { border-style: solid; background: #fdecee; color: #8a1f2b; }

.checkbox-group label { font-weight: 400; line-height: 1.4; }

.cand-submit { width: 100%; margin-top: 8px; }
.cand-submit[disabled] { opacity: .75; cursor: wait; }

.cand-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Offres à venir et fiche de poste */
.cand-upcoming-notice {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 193, 7, .12);
    border: 1px solid rgba(255, 193, 7, .35);
    color: #8a6100;
    font-weight: 500;
    font-size: .9rem;
}
.cand-file-link { margin-top: 1rem; }
.cand-file-link a { color: var(--primary-color, #005b9a); font-weight: 600; text-decoration: none; }
.cand-file-link a:hover { text-decoration: underline; }
.cand-file-link i { color: #dc3545; margin-right: 4px; }
