.page-hero.orientation-hero {
    --hero-image: url('../images/hero/orientation.jpg');
    margin-top: 0;
}

.orientation-container {
    max-width: 620px;
    margin: 0 auto;
}

.form-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 48, 135, 0.10);
    border: 1px solid rgba(24, 3, 145, 0.05);
    padding: 2rem 2.25rem 2.25rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

/* Bandeau d'accès au quiz d'orientation.
   margin-bottom compense la marge négative (-4rem) du .form-card qui le
   suit, pour que le bandeau reste entièrement visible avant la carte. */
.quiz-discovery-banner {
    background: var(--white);
    border: 1px solid rgba(24, 3, 145, 0.08);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(24, 3, 145, 0.06);
    padding: 1.1rem 1.4rem;
    margin-bottom: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 11;
}

.quiz-discovery-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.quiz-discovery-text strong {
    color: var(--couleur-primaire);
    font-size: 0.92rem;
}

.quiz-discovery-text span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.quiz-discovery-banner .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .quiz-discovery-banner {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 5rem;
    }
}

/* Champ métier pré-rempli depuis le quiz : léger flash doré */
#metier_souhaite.prefilled-highlight {
    animation: metier-prefill-flash 1.6s ease;
}
@keyframes metier-prefill-flash {
    0% { box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.55); border-color: var(--gold); }
    100% { box-shadow: none; }
}

.form-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.form-header h2 {
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.form-group label .required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: var(--font-secondary);
    transition: var(--transition-fast);
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

.form-control::placeholder {
    color: #999;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333333' 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");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-control.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

/* Autocomplete */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.autocomplete-suggestions.active {
    display: block;
}

.autocomplete-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--light-gray);
}

/* Conditional field */
.conditional-field {
    display: none;
    animation: slideDown 0.3s ease;
}

.conditional-field.visible {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submit button */
.form-submit {
    text-align: center;
    margin-top: 1.4rem;
}

.form-submit .btn {
    min-width: 220px;
    padding: 0.8rem 2.2rem;
    font-size: 0.95rem;
}

/* Result section */
.result-section {
    display: none;
    text-align: center;
    padding: 3rem 0;
}

.result-section.visible {
    display: block;
}

.result-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1c2d82 0%, #6b1f2c 100%);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.result-icon svg {
    width: 50px;
    height: 50px;
}

.result-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.result-message {
    color: #666;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* How it works */
.how-it-works {
    background: var(--light-gray);
    padding: 4rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-item {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #0048a7);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-item h4 {
    margin-bottom: 0.5rem;
}

.step-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .form-card {
        padding: 2rem;
        margin: -4rem 1rem 0;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
}