/* =========================================================================
   Pré-Inscription — Redesign
   File: css/home/redesign.style.css
   Load it LAST, after style.css, home.style.css, media.style.css and
   progress.style.css. It only overrides; nothing else has to be deleted.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --pi-primary: #1f6fe5;
    --pi-primary-2: #1554bd;
    --pi-primary-soft: #eaf2fe;
    --pi-navy: #123a63;
    --pi-ink: #16304f;
    --pi-muted: #6e829b;
    --pi-line: #e3eaf4;
    --pi-field: #f8fafd;
    --pi-field-filled: #eaf2fe;
    --pi-danger: #e0342b;
    --pi-radius: 20px;
    --pi-radius-sm: 10px;
    --pi-shadow: 0 20px 50px rgba(15, 45, 80, .10);
}

/* ---------- page canvas ------------------------------------------------ */



body {
    background: url(../../img/preins-background.png) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    /* color: var(--pi-ink); */
    min-height: 100vh;
    /* background-attachment: fixed !important; */
}


/* body.pi-theme-light {
    background:
        radial-gradient(880px 620px at -12% 12%, #d7e7ff 0%, rgba(215, 231, 255, 0) 62%),
        radial-gradient(760px 560px at 112% 88%, #dbe9ff 0%, rgba(219, 233, 255, 0) 62%),
        linear-gradient(180deg, #f7faff 0%, #e9f1fb 100%) !important;
} */

/* body.pi-theme-dark {
    background:
        radial-gradient(950px 700px at 112% 6%, #1d5289 0%, rgba(29, 82, 137, 0) 60%),
        radial-gradient(900px 620px at -12% 94%, #0f4271 0%, rgba(15, 66, 113, 0) 60%),
        linear-gradient(158deg, #0f3055 0%, #164272 55%, #0c2745 100%) !important;
} */

.container {
    padding-top: 34px;
    padding-bottom: 40px;
    max-width: 1060px;
}

/* the old oversized page title is replaced by the card header */
#titre,
.pre-inscription-panel > .sous-titre {
    display: none !important;
}

/* ---------- card shell ------------------------------------------------- */

.pre-inscription-panel {
    background: #fff;
    border-radius: var(--pi-radius);
    box-shadow: var(--pi-shadow);
    padding: 0 !important;
    min-height: 0;
    overflow: hidden;
}

/* dark-banner variant used on the personal-information step */
.pre-inscription-panel.pi-shell-dark {
    /* background: linear-gradient(150deg, #17457a 0%, #0e2f55 100%); */
    background: linear-gradient(150deg, #fff 0%, #fff 100%);
    padding: 0 0 26px !important;
}

.pi-inner {
    background: #fff;
    border-radius: 16px;
    margin: 0 22px;
    padding: 26px 26px 22px;
}

/* ---------- header ----------------------------------------------------- */

.pi-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 30px 6px;
}

.pi-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pi-brand-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 21px;
    background: linear-gradient(140deg, var(--pi-primary) 0%, var(--pi-primary-2) 100%);
    box-shadow: 0 8px 18px rgba(31, 111, 229, .30);
}

.pi-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -.5px;
    color: var(--pi-navy);
}

.pi-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--pi-muted);
}

.pi-header--dark {
    padding: 22px 30px 20px;
}

.pi-header--dark .pi-title {
    color: #fff;
    font-size: 26px;
}

.pi-header--dark .pi-subtitle {
    color: rgba(255, 255, 255, .72);
}

.pi-header--dark .pi-brand-icon {
    background: rgba(255, 255, 255, .14);
    box-shadow: none;
}

/* language switch */
.pi-lang {
    display: inline-flex;
    background: #eef2f8;
    border-radius: 999px;
    padding: 3px;
}

.pi-lang a {
    display: block;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pi-muted);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.pi-lang a:hover {
    color: var(--pi-primary);
    text-decoration: none;
}

.pi-lang a.is-active {
    background: var(--pi-primary);
    color: #fff;
}

.pi-header--dark .pi-lang {
    background: rgba(255, 255, 255, .16);
}

.pi-header--dark .pi-lang a {
    color: rgba(255, 255, 255, .8);
}

.pi-header--dark .pi-lang a.is-active {
    background: var(--pi-primary);
    color: #fff;
}

/* the legacy language paragraph is no longer used */
.language-choice {
    display: none !important;
}

/* ---------- stepper ---------------------------------------------------- */

.stepper-wrapper {
    margin: 18px 0 26px;
    padding: 0 20px;
}

.stepper-item .step-counter {
    width: 34px;
    height: 34px;
    font-size: 14px;
    font-weight: 600;
    background: #e6ebf3;
    color: #93a4bb;
    box-shadow: none;
    transition: background .2s ease, color .2s ease;
}

.stepper-item::before,
.stepper-item::after {
    top: 17px;
    border-bottom: 2px solid var(--pi-line);
}

.stepper-item.completed::after {
    top: 17px;
    border-bottom: 2px solid var(--pi-primary);
    opacity: 1;
}

.stepper-item.active .step-counter,
.stepper-item.completed .step-counter {
    background: linear-gradient(140deg, var(--pi-primary) 0%, var(--pi-primary-2) 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(31, 111, 229, .32);
}

.stepper-item .step-name {
    font-size: 12.5px;
    color: #90a2b8;
    font-weight: 500;
}

.stepper-item.active .step-name,
.stepper-item.completed .step-name {
    font-size: 12.5px;
    color: var(--pi-primary);
    font-weight: 600;
}

.pi-shell-dark .stepper-item .step-name {
    color: #9fb1c7;
}

/* ---------- inner section head ---------------------------------------- */

.pi-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.pi-section-head .pi-section-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: var(--pi-primary-soft);
    color: var(--pi-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.pi-section-head h2 {
    font-size: 19px;
    font-weight: 600;
    color: var(--pi-navy);
    margin: 0;
}

/* framed body used on the "informations essentielles" step */
.pi-fieldset {
    border: 1px solid var(--pi-line);
    border-radius: 16px;
    padding: 24px 26px 20px;
    margin: 0 30px 26px;
    background: #fff;
}

/* ---------- form fields ------------------------------------------------ */

.form-group,
.pi-fieldset .row > [class*="col-"] {
    margin-bottom: 4px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pi-ink);
    margin-bottom: 6px;
}

label .req {
    color: var(--pi-danger);
    margin-left: 2px;
}

.form-control,
.custom-select {
    height: 44px;
    border: 1px solid var(--pi-line);
    border-radius: var(--pi-radius-sm);
    background-color: var(--pi-field);
    font-size: 14px;
    color: var(--pi-ink);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

select.form-control,
select.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e829b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

.form-control::placeholder {
    color: #9fb0c4;
    margin-left: 0;
}

.form-control:focus,
.custom-select:focus,
.uneditable-input:focus {
    border-color: var(--pi-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(31, 111, 229, .14);
    outline: 0;
}

.form-control.is-filled,
select.form-control.is-filled,
select.custom-select.is-filled {
    background-color: var(--pi-field-filled);
    border-color: #cfe0f8;
}

.form-control[readonly] {
    background-color: #f1f4f9;
    color: var(--pi-muted);
}

.input-error {
    border: 1px solid var(--pi-danger) !important;
    box-shadow: 0 0 0 3px rgba(224, 52, 43, .12);
}

/* icon inside the field */
.pi-field {
    position: relative;
}

.pi-field > .pi-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8ea3bd;
    font-size: 14px;
    z-index: 4;
    pointer-events: none;
    line-height: 1;
}

.pi-field .form-control,
.pi-field .custom-select {
    padding-left: 40px;
}

/* intl-tel-input: shift the flag selector to make room for the icon */
.pi-field .iti {
    width: 100%;
}

.pi-field.pi-field--tel .iti__flag-container,
.pi-field.pi-field--tel .flag-container {
    left: 26px;
}

.pi-field.pi-field--tel input.form-control {
    padding-left: 92px !important;
}

/* ---------- notices, errors, terms ------------------------------------ */

.form-notice,
.pi-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--pi-danger);
    background: #fdeceb;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 18px;
}

.pi-notice i {
    color: var(--pi-primary);
    font-size: 14px;
}

.displayErrors {
    margin: 0 !important;
    width: auto !important;
}

.alert-danger.errors-placeholder {
    border-radius: var(--pi-radius-sm);
    border: 1px solid #f5c6c4;
    background: #fdeceb;
    color: #9d2c26;
    font-size: 13px;
}

#terms-accept-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    margin: 6px 0 18px;
}

#terms-accept-form label {
    margin: 0;
    font-weight: 500;
    color: var(--pi-muted);
}

#terms-accept-form a {
    color: var(--pi-primary);
    font-weight: 600;
}

#terms-accept-form input[type="checkbox"] {
    accent-color: var(--pi-primary);
}

/* ---------- buttons ---------------------------------------------------- */

.btn:not(.btn-sm) {
    min-height: 46px;
}

.form-submit,
.btn-success,
.btn-outline-success,
.pi-btn {
    min-width: 240px;
    border: 0 !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    color: #fff !important;
    background: linear-gradient(135deg, #2b7bef 0%, #1554bd 100%) !important;
    box-shadow: 0 10px 22px rgba(31, 111, 229, .28);
    transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}

.form-submit:hover,
.btn-success:hover,
.btn-outline-success:hover,
.pi-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 12px 26px rgba(31, 111, 229, .34);
    transform: translateY(-1px);
    color: #fff !important;
}

.form-submit:focus-visible,
.pi-btn:focus-visible {
    outline: 3px solid rgba(31, 111, 229, .45);
    outline-offset: 2px;
}

.form-submit[disabled],
.btn-outline-success[disabled] {
    opacity: .55;
    box-shadow: none;
    transform: none;
}

.pi-actions {
    text-align: center;
    padding: 4px 0 26px;
}

.pi-btn-block {
    width: 100%;
    min-width: 0;
}

/* ---------- footer note ------------------------------------------------ */

.preinsc-notice,
.PRE_NO .preinsc-notice {
    text-align: center; 
    margin-top: 22px;
    font-size: 14px;
    color: #5c6f88;
}

body.pi-theme-dark .preinsc-notice {
    color: rgba(255, 255, 255, .85);
}

.preinsc-notice a {
    color: var(--pi-primary);
    font-weight: 600;
}

body.pi-theme-dark .preinsc-notice a {
    color: #8dc0ff;
}

/* ---------- modal ------------------------------------------------------ */

.modal-content {
    border: 0;
    border-radius: var(--pi-radius);
    padding: 36px 32px 28px;
    box-shadow: 0 24px 60px rgba(15, 45, 80, .28);
}

.modal-content .close {
    position: absolute;
    top: 12px;
    right: 14px;
    margin: 0;
    width: 34px;
    height: 34px;
    line-height: 30px;
    border-radius: 50%;
    background: #f1f4f9;
    color: var(--pi-muted);
    font-size: 22px;
    font-weight: 600;
    opacity: 1;
}

.modal-content .close:hover {
    background: #fdeceb;
    color: var(--pi-danger);
}

/* ---------- responsive ------------------------------------------------- */

@media (max-width: 767px) {
    .container {
        padding-top: 18px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .pi-header,
    .pi-header--dark {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 18px 4px;
    }

    .pi-title {
        font-size: 23px;
    }

    .pi-header--dark .pi-title {
        font-size: 21px;
    }

    .pi-fieldset {
        margin: 0 14px 20px;
        padding: 18px 16px 14px;
    }

    .pi-inner {
        margin: 0 12px;
        padding: 18px 16px 14px;
    }

    .stepper-wrapper {
        padding: 0 4px;
        margin-bottom: 20px;
    }

    .stepper-item .step-counter {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .stepper-item::before,
    .stepper-item::after,
    .stepper-item.completed::after {
        top: 14px;
    }

    .stepper-item .step-name,
    .stepper-item.active .step-name,
    .stepper-item.completed .step-name {
        font-size: 9.5px;
    }

    .pi-section-head h2 {
        font-size: 16px;
    }

    .form-submit,
    .btn-success,
    .pi-btn {
        width: 100%;
        min-width: 0;
    }

    #terms-accept-form label {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* =========================================================================
   Écran d'état — étape 2 (confirmation de l'adresse mail)
   ========================================================================= */

.pi-state {
    max-width: 640px;
    margin: 0 auto;
    padding: 6px 20px 46px;
    text-align: center;
}

.pi-state-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    margin-bottom: 20px;
    background: linear-gradient(140deg, #2b7bef 0%, #1554bd 100%);
    box-shadow: 0 14px 28px rgba(31, 111, 229, .28);
}

.pi-state-icon--warn {
    background: linear-gradient(140deg, #f3ad46 0%, #dd7d13 100%);
    box-shadow: 0 14px 28px rgba(221, 125, 19, .24);
}

.pi-state-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--pi-navy);
    margin: 0 0 12px;
}

.pi-state-text {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--pi-muted);
    margin: 0;
}

.pi-email-chip {
    display: inline-block;
    background: var(--pi-primary-soft);
    color: var(--pi-primary);
    font-weight: 600;
    border-radius: 8px;
    padding: 2px 10px;
    text-decoration: none !important;
    word-break: break-all;
}

.pi-state-sep {
    height: 1px;
    max-width: 300px;
    margin: 26px auto;
    background: var(--pi-line);
}

.pi-resend {
    font-size: 13.5px;
    color: var(--pi-muted);
    margin: 0;
}

.pi-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 24px;
    border-radius: 999px;
    border: 1.5px solid #cfe0f8;
    background: #fff;
    color: var(--pi-primary) !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

.pi-link-btn:hover {
    background: var(--pi-primary-soft);
    border-color: var(--pi-primary);
    transform: translateY(-1px);
}

.pi-link-btn:focus-visible {
    outline: 3px solid rgba(31, 111, 229, .45);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .pi-state {
        padding: 4px 6px 32px;
    }

    .pi-state-icon {
        width: 64px;
        height: 64px;
        font-size: 25px;
    }

    .pi-state-title {
        font-size: 18px;
    }

    .pi-state-text {
        font-size: 13.5px;
    }
}