/* ==========================================================================
   Page candidature.php (Demande d'Emploi ou de Stage)
   Reprend la charte marine/or definie dans home.css (:root, .section-title,
   .section-kicker, .btn-submit sont deja globaux) et n'ajoute que les styles
   propres au formulaire.
   ========================================================================== */

.candidature-hero {
    padding-top: 64px;
}

.candidature-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 40px;
}

.candidature-offre-bandeau {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--gold-surface-light);
    border: 1px solid var(--gold-border-light);
    color: var(--gold-on-light-strong);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 14px;
    margin-bottom: 20px;
}

.candidature-offre-bandeau i {
    font-size: 16px;
}

.candidature-offre-bandeau a {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: underline;
}

.candidature-section-label {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-on-light-strong);
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gold-border-light);
}

.candidature-card form > .candidature-section-label:first-of-type {
    margin-top: 4px;
}

/* Champs Bootstrap : reprend le meme habillage que le formulaire de contact */
.candidature-card .form-floating {
    margin-bottom: 4px;
}

.candidature-card .form-control,
.candidature-card select.form-control {
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background-color: #fff;
    color: var(--text-main);
    transition: all .2s ease;
}

.candidature-card .form-control:focus {
    box-shadow: 0 0 0 4px rgba(31, 95, 168, .12);
    border-color: var(--primary-light);
}

.candidature-card .form-floating > label {
    color: var(--text-muted);
}

.candidature-card input[type="file"].form-control {
    padding-top: 10px;
    padding-bottom: 10px;
    height: auto;
}

/* Type de demande (Emploi / Stage) */
.candidature-radio-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.candidature-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    background: var(--bg-soft);
    transition: all .2s ease;
}

.candidature-radio input {
    accent-color: var(--primary);
}

.candidature-radio:has(input:checked) {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-color: var(--accent-strong);
    color: #1b1712;
    box-shadow: 0 8px 18px rgba(200, 145, 44, .22);
}

/* Documents a televerser */
.candidature-file-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.candidature-file-hint {
    display: block;
    font-weight: 500;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Honeypot : invisible pour un humain, present dans le DOM pour les robots */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Question anti-bot */
.candidature-antibot {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.candidature-antibot label {
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* Message de succes */
.candidature-success {
    text-align: center;
    padding: 24px 12px;
}

.candidature-success i {
    font-size: 54px;
    color: #1e9e5b;
    margin-bottom: 14px;
}

.candidature-success h3 {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.candidature-success p {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 22px;
}

/* FAQ */
.candidature-faq {
    background: var(--bg-soft);
}

.candidature-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 1000px;
    margin: 0 auto;
}

.candidature-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 22px 26px;
    box-shadow: var(--shadow-card);
}

.candidature-faq-item h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.candidature-faq-item p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 767px) {
    .candidature-card {
        padding: 24px 18px;
    }

    .candidature-faq-grid {
        grid-template-columns: 1fr;
    }
}
