/**
 * alt-front.css
 * =========================================================
 * Charte graphique TROOVAPP Alternances — formulaire jeune
 * Indépendante du thème WordPress principal.
 *
 * Palette :
 *   --alt-orange : #FF6B35  (couleur principale)
 *   --alt-night  : #0D1B2A  (fond sombre, avatars)
 *   --alt-teal   : #2EC4B6  (succès, statut validé)
 *   --alt-cream  : #F7F3EE  (fond page)
 *   --alt-muted  : #6B7280  (textes secondaires)
 * =========================================================
 */

/* ── Variables ── */
.alt-wrap {
    --alt-orange      : #FF6B35;
    --alt-orange-light: #FFF0EA;
    --alt-orange-dark : #CC4E1E;
    --alt-night       : #0D1B2A;
    --alt-teal        : #2EC4B6;
    --alt-teal-light  : #E6FAF8;
    --alt-cream       : #F7F3EE;
    --alt-muted       : #6B7280;
    --alt-border      : rgba(13,27,42,.12);
    --alt-radius      : 10px;
    --alt-radius-sm   : 6px;

    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    background: var(--alt-cream);
    border-radius: 16px;
}

/* ── PASS ALTERNANCE (preview live) ── */
.alt-pass {
    background: var(--alt-night);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(13,27,42,.18);
}

.alt-pass::before {
    content: '';
    position: absolute;
    right: -20px; top: -20px;
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 20px solid rgba(255,107,53,.07);
}

.alt-pass__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.alt-pass__brand {
    font-family: 'Syne', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--alt-orange);
    letter-spacing: -.5px;
}

.alt-pass__type {
    font-size: 10px;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.alt-pass__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--alt-teal);
    box-shadow: 0 0 0 3px rgba(46,196,182,.2);
    margin-top: 4px;
}

.alt-pass__name {
    font-family: 'Syne', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    margin-bottom: 4px;
    transition: color .2s;
}

.alt-pass__sector {
    font-size: 13px;
    color: var(--alt-orange);
    margin-bottom: 16px;
}

.alt-pass--sent .alt-pass__name { color: var(--alt-teal); }

.alt-pass__footer {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.alt-pass__label {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.alt-pass__value {
    font-size: 12px;
    color: rgba(255,255,255,.82);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* ── WORKFLOW ── */
.alt-workflow {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(13,27,42,.10);
    border-radius: var(--alt-radius);
    padding: 12px 14px;
    margin-bottom: 1.25rem;
    gap: 0;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(13,27,42,.06);
}

.alt-wf-step {
    flex: 1;
    text-align: center;
    min-width: 64px;
}

.alt-wf-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-size: 13px;
    transition: background .2s;
}

.alt-wf-step--active .alt-wf-icon {
    background: var(--alt-orange);
}

.alt-wf-label {
    font-size: 10px;
    color: var(--alt-muted);
    font-weight: 500;
}

.alt-wf-step--active .alt-wf-label {
    color: var(--alt-orange);
    font-weight: 600;
}

.alt-wf-arrow {
    color: #d1d5db;
    font-size: 16px;
    padding: 0 2px;
    flex-shrink: 0;
}

/* ── SECTIONS ── */
.alt-section {
    background: #fff;
    border: 1px solid rgba(13,27,42,.10);
    border-left: 3px solid var(--alt-orange);
    border-radius: var(--alt-radius);
    padding: 20px 22px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(13,27,42,.06);
}

.alt-section__title {
    font-weight: 700;
    font-size: 11px;
    color: var(--alt-orange);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--alt-orange-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── GRILLE ── */
.alt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .alt-row { grid-template-columns: 1fr; }
}

/* ── CHAMPS ── */
.alt-field {
    margin-bottom: 12px;
}

.alt-field:last-child { margin-bottom: 0; }

.alt-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.alt-required { color: var(--alt-orange); margin-left: 2px; }

.alt-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--alt-radius-sm);
    font-family: inherit;
    font-size: 13px;
    color: #111;
    background: #fdfcfb;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.alt-input:focus {
    outline: none;
    border-color: var(--alt-orange);
    box-shadow: 0 0 0 3px rgba(255,107,53,.12);
}

.alt-input--error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important;
}

.alt-select { cursor: pointer; }

.alt-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

.alt-error {
    display: block;
    font-size: 11px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 16px;
}

.alt-char-count {
    font-size: 11px;
    color: var(--alt-muted);
    text-align: right;
    margin-top: 4px;
}

/* ── RGPD ── */
.alt-rgpd {
    background: var(--alt-orange-light);
    border: 1px solid rgba(255,107,53,.2);
    border-radius: var(--alt-radius);
    padding: 14px 16px;
    margin-bottom: 1rem;
}

.alt-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    line-height: 1.5;
}

.alt-checkbox {
    width: 16px; height: 16px;
    min-width: 16px;
    margin-top: 2px;
    accent-color: var(--alt-orange);
    cursor: pointer;
}

.alt-checkbox-label a {
    color: var(--alt-orange);
    text-decoration: underline;
}

/* ── BOUTON SUBMIT ── */
.alt-submit-wrap { text-align: center; }

.alt-btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--alt-orange);
    color: #fff;
    border: none;
    border-radius: var(--alt-radius);
    font-family: 'Syne', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: -.2px;
    transition: background .15s, transform .1s;
}

.alt-btn-submit:hover  { background: var(--alt-orange-dark); }
.alt-btn-submit:active { transform: scale(.98); }
.alt-btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.alt-submit-note {
    font-size: 11px;
    color: var(--alt-muted);
    margin-top: 8px;
}

/* ── NOTICES ── */
.alt-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--alt-radius);
    margin-bottom: 1rem;
    font-size: 13px;
    line-height: 1.5;
}

.alt-notice p { margin: 4px 0 0; }

.alt-notice--success {
    background: var(--alt-teal-light);
    border: 1px solid rgba(46,196,182,.3);
    color: #065f46;
}

.alt-notice--error {
    background: #fef2f2;
    border: 1px solid rgba(239,68,68,.3);
    color: #991b1b;
}

.alt-notice__icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
