/* Styles partages des pages ASPX (hors composants specifiques) */

/* cgu_view.aspx */
.jc-maxw-900 {
    max-width: 900px;
}

/* candidat_profil.aspx */
.page-bg {
    background: #f6f7fb;
    min-height: calc(100vh - 120px);
}

.card-clean {
    border: 0;
    box-shadow: 0 .125rem .5rem rgba(16, 24, 40, .08);
    border-radius: 1rem;
}

.btn-rounded {
    border-radius: 999px;
}

.wizard-stepper-track {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.wizard-step {
    border: 0;
    background: transparent;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .5rem;
    border-radius: .75rem;
    text-align: left;
}

.wizard-step:hover,
.wizard-step:focus-visible {
    background: #edf2ff;
    color: #0d6efd;
    outline: none;
}

.wizard-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid #ced4da;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: #fff;
    flex: 0 0 2rem;
}

.wizard-step.is-active {
    color: #0d6efd;
    font-weight: 600;
}

.wizard-step.is-active .wizard-badge {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.wizard-step.is-done {
    color: #198754;
}

.wizard-step.is-done .wizard-badge {
    border-color: #198754;
    background: #198754;
    color: #fff;
}

.wizard-panel.d-none {
    display: none !important;
}

.profile-form .form-label {
    font-weight: 500;
    margin-bottom: .25rem;
    font-size: .9rem;
    line-height: 1.35;
}

.profile-form .form-control,
.profile-form .form-control-plaintext,
.profile-form .form-text {
    font-size: .9rem;
    line-height: 1.35;
}

.profile-form .row.mb-3 {
    margin-bottom: .7rem !important;
}

.profile-form .row.mt-3 {
    margin-top: .7rem !important;
}

.profile-form .form-control:focus,
.profile-form .form-control-plaintext:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}

.is-invalid-lite {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 .12rem rgba(220, 53, 69, .12);
}

.upload-dropzone {
    border: 2px dashed #d0d7e2;
    border-radius: .75rem;
    background: #fafbff;
    padding: 1rem;
}

@media (max-width: 767.98px) {
    .wizard-step {
        width: 100%;
    }
    .sidebar {
        top: 56px;
        padding-top: 0;
    }
}

.jc-maxw-500 {
    max-width: 500px;
}

.jc-opacity-90 {
    opacity: .9;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6c757d;
    border-radius: 50%;
    animation: jc-spin 1s linear infinite;
}

.status-loading {
    color: #6c757d;
}

@keyframes jc-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* postulation.aspx */
.option-card {
    transition: all .2s ease;
}

.option-card:hover {
    border-color: #dee2e6 !important;
    background-color: #f8f9fa !important;
}

.option-card.selected {
    border-color: #28a745 !important;
    background-color: #f8fff9 !important;
}

.jc-cursor-pointer {
    cursor: pointer;
}

.jc-display-none {
    display: none;
}

/* Information.aspx */
.process-step {
    border-left: 2px solid #dee2e6;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.confidentiality-notice {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 16px;
}

/* default.aspx - postuler (migration depuis legacy controles.css) */
.nav-postuler .nav-link {
    border-radius: 999px;
    border: 1px solid transparent;
    color: #4b5b78;
    padding: .5rem .95rem;
    font-weight: 600;
}

.nav-postuler .nav-link.active {
    background-color: #e8f0ff;
    border-color: #cddfff;
    color: #1d4f9b;
}

.badge-postes {
    min-width: 1.5rem;
}

.tab-content-postuler {
    min-height: 0;
}

.offres-filtres .btn {
    border-radius: 999px !important;
}

.job-card {
    border-radius: 18px !important;
    transition: transform .18s ease, box-shadow .18s ease;
    border: 1px solid #edf1f8;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .6rem 1.2rem rgba(19, 52, 98, .12) !important;
}

.job-card-title {
    color: #18385f;
    font-size: 1rem;
    line-height: 1.35;
}

.offre-item .job-card-title {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.card-postuler-compact {
    align-self: flex-start;
    width: 100%;
}

.card-postuler-compact > .card-body {
    padding: .65rem .85rem;
}

.card-postuler-compact .tile-icon {
    font-size: .95rem;
}

.orp-bandeau {
    background-color: #f5f8fe;
}

.tile-organic {
    border-radius: 18px !important;
    overflow: hidden;
}

.tile-organic::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    opacity: 0;
    transition: opacity .2s ease;
}

.tile-organic:hover::after {
    opacity: 1;
}

.tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.tile-accent-amber .tile-icon {
    background-color: #fdf1d9;
    color: #c98a1a;
}

.tile-accent-amber::after {
    background-color: #c98a1a;
}

.tile-accent-sage .tile-icon {
    background-color: #e6f1e8;
    color: #5b8c66;
}

.tile-accent-sage::after {
    background-color: #5b8c66;
}

.tile-accent-mauve .tile-icon {
    background-color: #efe7f4;
    color: #8762a8;
}

.tile-accent-mauve::after {
    background-color: #8762a8;
}

.tile-deja-inscrit {
    border: 1px dashed #c5d5ee;
    background-color: #fbfdff;
    transition: border-color .2s ease, background-color .2s ease;
}

.tile-deja-inscrit:hover {
    border-color: #9eb7dc;
    background-color: #f4f8ff;
}

.card-footer.bg-transparent {
    background-color: transparent !important;
    border-top: 0 !important;
}

/* =========================================================
   Conditions generales (CG / CGU) - migre depuis _public/cg.css
   ========================================================= */
.cgu-richtext {
    font-size: .9rem;
    line-height: 1.4;
}
.cgu-richtext h1,
.cgu-richtext h2,
.cgu-richtext h3,
.cgu-richtext h4,
.cgu-richtext h5,
.cgu-richtext h6 {
    font-size: 1rem;
    line-height: 1.3;
    margin-top: .6rem;
    margin-bottom: .5rem;
}
.hero-engagement-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    color: rgba(255, 255, 255, .9);
    margin-bottom: .7rem;
    line-height: 1.35;
}
.hero-engagement-item:last-child {
    margin-bottom: 0;
}
.hero-engagement-item i {
    margin-top: .1rem;
}
.cgu-point-num {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background-color: #eef4fb;
    color: #5d86b0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex: 0 0 1.6rem;
}
.cgu-collapse-link {
    color: #1e7fe6;
    text-decoration: none;
    font-weight: 500;
}
.cgu-collapse-link:hover {
    color: #1568c6;
    text-decoration: underline;
}
.jc-ia-card {
    border: 1px solid #d6e4f5;
    border-radius: .8rem;
    background-color: #fff;
    padding: .85rem .95rem;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.jc-ia-card:hover {
    border-color: #9fc1e7;
}
.jc-ia-card.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .14rem rgba(13, 110, 253, .12);
}
.jc-ia-card-icon {
    color: #ced4da;
    margin-top: .1rem;
}
.jc-ia-card.active .jc-ia-card-icon {
    color: #0d6efd;
}
