/**
 * Formation Detailing - Design System v4.0
 * Ultra-compact split-screen layout
 */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #181AD6;
    --primary-hover: #1416b8;
    --primary-light: rgba(24, 26, 214, 0.08);
    /* PREVIOUSLY GRADIENT: Now strict Blue */
    --gradient: #181AD6;

    --bg: #FAFAFA;
    --card: #FFFFFF;
    --text: #111827;
    --muted: #6B7280;
    --muted-light: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;

    --error: #DC2626;
    --error-light: rgba(220, 38, 38, 0.08);
    --success: #059669;
    --success-light: rgba(5, 150, 105, 0.08);

    --font-heading: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition: 150ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}

/* ===== APP LAYOUT ===== */
.app {
    display: flex;
    min-height: 100vh;
}

/* ===== BRAND PANEL (Left) ===== */
.brand-panel {
    width: 400px;
    flex-shrink: 0;
    background: var(--primary);
    /* Strict Blue */
    color: white;
    /* Strict White Text on Blue */
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.brand-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.brand-logo svg {
    width: 40px;
    height: 40px;
}

.brand-logo span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.95;
}

.brand-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.brand-hero p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 300px;
}

.brand-features {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.feature svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.brand-footer {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

.brand-footer a {
    color: white;
    text-decoration: none;
    transition: opacity var(--transition);
}

.brand-footer a:hover {
    opacity: 1;
}

/* ===== FORM PANEL (Right) ===== */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.form-wrapper {
    width: 100%;
    max-width: 560px;
    position: relative;
}

/* ===== FORM ===== */
form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.label-hint {
    font-weight: 400;
    color: var(--muted);
}

.form-group input,
.form-group select {
    width: 100%;
    height: 42px;
    padding: 0 0.875rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: var(--transition);
}

.form-group input::placeholder {
    color: var(--muted-light);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #D1D5DB;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input.error {
    border-color: var(--error);
    background: var(--error-light);
}

/* Select */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted);
    pointer-events: none;
}

/* Field hints and errors */
.field-hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.field-hint span {
    color: var(--primary);
    font-weight: 500;
}

.field-error {
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 0.25rem;
    display: none;
}

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

/* Eligibility status */
.eligibility-status {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius);
    display: none;
}

.eligibility-status.checking {
    display: block;
    color: var(--muted);
    background: var(--border-light);
}

.eligibility-status.eligible {
    display: block;
    color: var(--success);
    background: var(--success-light);
}

.eligibility-status.not-eligible {
    display: block;
    color: var(--primary);
    background: var(--primary-light);
}

/* Password */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 2.75rem;
}

.toggle-password {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    transition: color var(--transition);
}

.toggle-password:hover {
    color: var(--text);
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

.toggle-password .eye-closed {
    display: none;
}

.toggle-password.active .eye-open {
    display: none;
}

.toggle-password.active .eye-closed {
    display: block;
}

/* Pricing Card */
.pricing-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.pricing-badge {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.pricing-badge.free {
    background: var(--gradient);
    color: white;
}

.pricing-badge.paid {
    background: var(--border);
    color: var(--text);
}

.pricing-info {
    font-size: 0.8125rem;
    color: var(--muted);
}

/* Plan Selector */
.plan-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.plan-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.plan-option:has(input:checked) {
    border-color: var(--text);
    background: var(--border-light);
}

.plan-option input[type="radio"] {
    accent-color: var(--text);
    flex-shrink: 0;
}

.plan-option-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 0.5rem;
}

.plan-option-title {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.plan-option-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    color: white;
    background: var(--gradient);
    padding: 0.1rem 0.5rem;
    border-radius: 100px;
}

.plan-option-price {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.plan-option-price small {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.75rem;
}

/* Form Footer */
.form-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 1px;
}

.checkbox-box svg {
    width: 12px;
    height: 12px;
    stroke: white;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.checkbox-label:hover .checkbox-box {
    border-color: var(--primary);
}

.checkbox-label input:checked~.checkbox-box {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked~.checkbox-box svg {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    height: 48px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(24, 26, 214, 0.25);
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ===== OVERLAYS ===== */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 1.5rem;
}

.overlay.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.overlay-content {
    text-align: center;
    max-width: 380px;
}

.overlay-content h2 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.overlay-content>p {
    color: var(--muted);
    font-size: 0.9375rem;
}

/* Spinner */
.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success */
.success-icon,
.error-icon,
.pending-icon {
    margin-bottom: 1rem;
}

.success-icon svg,
.error-icon svg,
.pending-icon svg {
    width: 56px;
    height: 56px;
}

.success-icon .check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.5s ease forwards 0.2s;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Credentials */
.credentials {
    background: var(--border-light);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1.25rem 0;
    text-align: left;
}

.cred-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.cred-row:last-child {
    border-bottom: none;
}

.cred-row>span:first-child {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cred-row a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.cred-row a:hover {
    text-decoration: underline;
}

.password-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-value code {
    font-family: ui-monospace, monospace;
    background: var(--card);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8125rem;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    transition: transform var(--transition);
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
}

.warning {
    font-size: 0.75rem;
    color: #B45309;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* Actions */
.actions {
    display: flex;
    gap: 0.75rem;
}

.btn-primary,
.btn-outline {
    flex: 1;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: var(--card);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Error */
.error .error-icon svg {
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .app {
        flex-direction: column;
    }

    .brand-panel {
        width: 100%;
        padding: 1.5rem;
    }

    .brand-hero h1 {
        font-size: 1.75rem;
    }

    .brand-features {
        margin-top: 1.5rem;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .form-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .brand-features {
        display: none;
    }

    form {
        padding: 1.25rem;
    }
}

/* ===== LEGACY SUPPORT ===== */
.container {
    max-width: 580px;
    margin: 0 auto;
    padding: 1.5rem;
}

.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

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

.form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.form-subtitle {
    color: var(--muted);
    font-size: 0.9375rem;
}

.footer {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-separator {
    width: 4px;
    height: 4px;
    background: var(--border);
    border-radius: 50%;
}

.footer-copyright a {
    color: var(--primary);
}

/* Deployment Status */
.deployment-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--border-light);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--muted);
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.success-icon.pending path {
    animation: none;
}

.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, var(--bg) 0%, #F1F3F9 100%);
}

/* ===============================================
   ADDRESS AUTOCOMPLETE
   =============================================== */

.autocomplete-container {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

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

.autocomplete-suggestion {
    padding: 0.75rem 0.875rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.selected {
    background: var(--primary-light);
    color: var(--primary);
}

.autocomplete-suggestion-label {
    font-weight: 500;
    display: block;
}

.autocomplete-suggestion-context {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.125rem;
}

.autocomplete-loading {
    padding: 0.75rem 0.875rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

.autocomplete-no-results {
    padding: 0.75rem 0.875rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

/* ============================================
   SUPPORT BANNER (returning visitors)
   ============================================ */

.support-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--primary);
    color: #fff;
    padding: 12px 48px 12px 20px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.875rem;
    animation: slideUp 0.4s ease-out;
}

.support-banner.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-banner p {
    margin: 0;
}

.support-banner a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.support-banner a:hover {
    opacity: 0.85;
}

.support-banner-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    opacity: 0.8;
}

.support-banner-close:hover {
    opacity: 1;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ── Modale stagiaire ─────────────────────────────────────── */
#stagiaireModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#stagiaireModal.visible {
    display: flex;
    animation: stagiaireOverlayIn 0.22s ease;
}

@keyframes stagiaireOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.stagiaire-modal-card {
    background: #fff;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 8px 16px rgba(0,0,0,.06), 0 32px 64px rgba(15,23,42,.18);
    position: relative;
    animation: stagiaireCardIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stagiaireCardIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.stagiaire-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #64748b;
    transition: background 0.15s, color 0.15s;
}

.stagiaire-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.stagiaire-modal-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Icon */
.stagiaire-modal-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
}

.stagiaire-modal-icon--success {
    background: #f0fdf4;
    color: #16a34a;
}

/* Headings & text */
.stagiaire-modal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    margin: 0 0 0.625rem;
    color: #0f172a;
}

.stagiaire-view > p {
    text-align: center;
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
}

/* View transition */
.stagiaire-view {
    animation: stagiaireViewIn 0.22s ease;
}

@keyframes stagiaireViewIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Actions */
.stagiaire-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0.25rem;
}

/* Primary button (CTA principal — stagiaire) */
.stagiaire-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8125rem 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
}

.stagiaire-btn-primary:hover {
    background: var(--primary-hover);
}

.stagiaire-btn-primary:active {
    transform: scale(0.98);
}

.stagiaire-btn-primary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Ghost button (action secondaire — payer) */
.stagiaire-btn-ghost {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.stagiaire-btn-ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.stagiaire-btn-ghost:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Steps (vue info) */
.stagiaire-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 1.5rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.stagiaire-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 1rem 1.125rem;
}

.stagiaire-step-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0 1.125rem;
}

.stagiaire-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.stagiaire-step-text {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.55;
}

.stagiaire-step-text strong {
    color: #0f172a;
    font-weight: 600;
}