#cpfFirstStep .modal-dialog { max-width: 720px; }
    #cpfFirstStep .modal-content { border: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 28px 80px rgba(18, 42, 74, .24); }
    #cpfFirstStep .modal-content.rea-payment-compact { min-height: 0 !important; }
    #cpfFirstStep .modal-header { position: relative; display: flex; justify-content: center; min-height: 76px; padding: 16px 24px; background: #fff; }
    #cpfFirstStep .modal-header img { position: static !important; display: block; width: 155px !important; margin: 0 auto; }
    #cpfFirstStep .modal-header .btn-close { position: absolute; top: 50%; right: 24px; margin: 0; transform: translateY(-50%); }
    #cpfFirstStep .modal-body { max-height: calc(100vh - 120px); overflow-y: auto; padding: 0 30px 30px; }
    #cpfFirstStep .modal-body { scrollbar-width: thin; scrollbar-color: #a9b8c9 transparent; }
    #cpfFirstStep .modal-body::-webkit-scrollbar { width: 6px; }
    #cpfFirstStep .modal-body::-webkit-scrollbar-track { background: transparent; }
    #cpfFirstStep .modal-body::-webkit-scrollbar-thumb { border-radius: 999px; background: #a9b8c9; }
    #cpfFirstStep .modal-body.rea-final-state { overflow-y: auto; padding-bottom: 34px; }
    #cpfFirstStep .selected-format-reassurance { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
    #cpfFirstStep .selected-format-reassurance .rea-format-separator { color: #198754; font-size: 1.28em; font-weight: 900; line-height: .7; }
    .rea-registration-view[hidden] { display: none !important; }
    .rea-registration-intro { text-align: center; margin-bottom: 22px; }
    .rea-registration-intro h4 { color: #162f59; font-size: 1.45rem; line-height: 1.25; margin: 0 0 8px; }
    .rea-registration-intro p { color: #68788c; margin: 0; }
    .rea-path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .rea-profile-path-grid { grid-template-columns: 1fr; width: min(100%, 430px); margin: 0 auto; }
    .rea-path-card { position: relative; border: 1px solid #dbe4ef; border-radius: 18px; padding: 22px 18px; background: #fff; color: #162f59; text-align: left; transition: .2s ease; }
    .rea-path-card:hover, .rea-path-card:focus { border-color: #236ce0; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(35,108,224,.12); }
    .rea-path-card.primary { color: #fff; border-color: #236ce0; background: linear-gradient(145deg, #236ce0, #174ea6); }
    .rea-path-card .rea-path-kicker { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .76; margin-bottom: 9px; }
    .rea-path-card strong { display: block; font-size: 1.08rem; margin-bottom: 7px; }
    .rea-path-card small { display: block; line-height: 1.45; opacity: .82; }
    .rea-registration-back { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #236ce0; font-weight: 700; padding: 0; margin-bottom: 14px; }
    .rea-step-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
    .rea-step-header h4 { color: #162f59; font-size: 1.3rem; margin: 0 0 4px; }
    .rea-step-header p { color: #68788c; margin: 0; font-size: .93rem; }
    .rea-payment-success-header { display: block; text-align: center; margin: 2px auto 24px; }
    .rea-payment-success-header > div { max-width: 720px; margin: 0 auto; }
    .rea-payment-success-header h4 { font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.15; margin-bottom: 10px; }
    .rea-payment-success-header p { max-width: 650px; margin: 0 auto; font-size: 1rem; line-height: 1.5; text-align: center; }
    .rea-payment-success-header .rea-step-count { display: none; }
    .rea-required-transition { max-width: 720px; margin: 12px auto 0; text-align: center; }
    .rea-required-transition .rea-success-check { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: #1f9d55; color: #fff; font-size: 2rem; font-weight: 800; }
    .rea-required-transition h4 { margin: 0 0 12px; color: #162f59; font-size: clamp(1.75rem, 3vw, 2.25rem); }
    .rea-required-transition p { margin: 0 auto; max-width: 650px; color: #4f6075; line-height: 1.55; }
    .rea-required-transition .rea-required-message { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: #f2f6fc; color: #162f59; font-weight: 750; }
    .rea-required-transition .pill-button { width: 100%; margin-top: 24px; border: 0; }
    .rea-step-count { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: #edf3fc; color: #27578f; font-size: .78rem; font-weight: 800; }
    .rea-field-label { color: #31465f; font-size: .9rem; font-weight: 750; margin: 0 0 8px; }
    .rea-choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
    .rea-title-choice-group { grid-template-columns: 47% 49%; column-gap: 4%; }
    .rea-choice { position: relative; }
    .rea-choice input { position: absolute; opacity: 0; pointer-events: none; }
    .rea-choice label { display: block; height: 100%; padding: 14px 15px; border: 1px solid #dbe4ef; border-radius: 14px; color: #243b5a; background: #fff; cursor: pointer; font-weight: 700; text-align: center; }
    .rea-choice input:checked + label { border-color: #236ce0; color: #174ea6; background: #eef4ff; box-shadow: inset 0 0 0 1px #236ce0; }
    .rea-choice input[name="title"]:checked + label { color: #fff !important; border-color: #236ce0; background: linear-gradient(145deg, #236ce0, #174ea6); box-shadow: 0 10px 24px rgba(35,108,224,.2); }
    .rea-scale-choice-group { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .rea-scale-choice-group .rea-choice label { padding: 12px 6px; font-size: .78rem; }
    .rea-analysis-question { margin-bottom: 22px; }
    .rea-analysis-question:last-child { margin-bottom: 0; }
    .rea-analysis-question .rea-field-label { display: block; line-height: 1.45; }
    .rea-analysis-question textarea.form-control { min-height: 96px; resize: vertical; }
    .rea-form-section { padding: 18px; border: 1px solid #e1e8f0; border-radius: 18px; background: #fbfcfe; margin: 18px 0; }
    .rea-form-section h5 { color: #162f59; font-size: 1rem; margin: 0 0 14px; }
    .rea-registration-actions { display: flex; gap: 10px; margin-top: 20px; }
    .rea-registration-actions .pill-button { flex: 1; border: 0; }
    .rea-registration-actions .pill-button:disabled,
    .rea-registration-actions .pill-button.rea-button-disabled { opacity: .42; cursor: not-allowed; box-shadow: none; filter: saturate(.35); }
    .rea-payment-checkout { margin-top: 18px; min-height: 360px; }
    .rea-payment-checkout:empty { display: none; }
    .rea-stripe-brand { display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
    .rea-stripe-brand img { display: block; width: 108px; height: auto; }
    .rea-payment-message { color: #b42318; font-weight: 600; margin: 14px 0 0; }
    .rea-payment-message:empty { display: none; }
    .rea-payment-help { margin: 16px 0 0; padding: 15px 18px; border: 1px solid #cfe8d8; border-radius: 16px; background: #f2faf5; color: #173d2a; text-align: center; line-height: 1.45; }
    .rea-payment-help strong, .rea-payment-help span, .rea-payment-help small { display: block; }
    .rea-payment-help strong { margin-bottom: 3px; font-size: 1rem; }
    .rea-payment-help a { color: #147a43; font-weight: 800; text-decoration: none; white-space: nowrap; }
    .rea-payment-help a:hover, .rea-payment-help a:focus-visible { text-decoration: underline; }
    .rea-payment-help small { margin-top: 2px; color: #4f6f5d; font-size: .9rem; }
    .rea-email-invalid { border-color: #c62828 !important; box-shadow: 0 0 0 1px #c62828 !important; }
    .rea-email-error { margin: -7px 4px 12px; color: #c62828; font-size: .86rem; font-weight: 750; line-height: 1.35; }
    .rea-email-feedback-valid { color: #167746; }
    .rea-email-feedback-pending { color: #647991; }
    .rea-company-verification { display: flex; align-items: center; gap: 8px; margin: -6px 4px 13px; color: #167746; font-size: .87rem; font-weight: 750; line-height: 1.35; }
    .rea-company-verification::before { content: "✓"; display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: #198754; font-size: .72rem; font-weight: 900; }
    .rea-company-verification.rea-company-verification-error { color: #c62828; }
    .rea-company-verification.rea-company-verification-error::before { content: "!"; background: #c62828; }
    .rea-company-search-row { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 9px; align-items: stretch; margin-bottom: 13px; }
    .rea-company-search-row:has(.rea-company-lookup[hidden]) { grid-template-columns: 1fr; }
    .rea-company-search-row .form-floating { margin: 0 !important; }
    .rea-company-lookup { min-height: 58px; padding: 10px 13px; border: 1px solid #236ce0; border-radius: 12px; color: #fff; background: #236ce0; font-size: .88rem; font-weight: 800; line-height: 1.2; transition: .18s ease; }
    .rea-company-lookup:hover:not(:disabled), .rea-company-lookup:focus-visible:not(:disabled) { background: #174ea6; border-color: #174ea6; box-shadow: 0 8px 18px rgba(35,108,224,.18); }
    .rea-company-lookup:disabled { cursor: not-allowed; border-color: #d5deea; color: #8997aa; background: #f1f4f8; opacity: 1; }
    .rea-payment-loading .rea-button-label { display: inline-block; animation: rea-payment-text-blink 1s ease-in-out infinite; }
    @keyframes rea-payment-text-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
    @media (prefers-reduced-motion: reduce) { .rea-payment-loading .rea-button-label { animation: none; } }
    .rea-secondary-action { border: 1px solid #ccd8e7 !important; background: #fff !important; color: #274364 !important; box-shadow: none !important; }
    .rea-participant-card { padding: 15px; border: 1px solid #dfe7f1; border-radius: 15px; background: #fff; margin-top: 12px; }
    .rea-participant-card h6 { display: flex; justify-content: space-between; color: #1d3d68; margin: 0 0 12px; }
    .rea-add-participant { width: 100%; border: 1px dashed #9db5d0; border-radius: 13px; padding: 11px; color: #27578f; background: #f7faff; font-weight: 700; margin-top: 12px; }
    .rea-remove-participant { border: 0; background: transparent; color: #a64242; font-size: .8rem; font-weight: 700; }
    .rea-recap-grid { display: grid; gap: 12px; margin: 18px 0; }
    .rea-recap-card { position: relative; padding: 16px 100px 16px 18px; border: 1px solid #dfe7f1; border-radius: 15px; background: #fbfcfe; color: #31465f; }
    #selfStepRecap .rea-step-header h4 { color: #198754; font-size: clamp(1.75rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: .025em; }
    .rea-recap-card h5 { margin: 0 0 7px; color: #162f59; font-size: .98rem; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
    .rea-recap-card p { margin: 3px 0; line-height: 1.45; }
    .rea-recap-detail { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid #e8eef5; }
    .rea-recap-card h5 + .rea-recap-detail { border-top: 0; }
    .rea-recap-detail span { color: #6b7f96; font-size: .82rem; font-weight: 750; }
    .rea-recap-detail strong { color: #253e5d; font-weight: 650; }
    .rea-recap-edit { position: absolute; top: 13px; right: 14px; border: 0; background: transparent; color: #236ce0; font-weight: 750; }
    .rea-recap-confirm { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 13px; align-items: center; padding: 16px 18px; border: 1px solid #dfe7f1; border-radius: 15px; background: #fff; color: #162f59; box-shadow: 0 7px 22px rgba(22,47,89,.055); cursor: pointer; }
    .rea-recap-confirm:hover { border-color: #b9cbe0; }
    .rea-recap-confirm .form-check-input { width: 28px; height: 28px; margin: 0; border: 2px solid #9bb0c8; border-radius: 8px; box-shadow: none; cursor: pointer; }
    .rea-recap-confirm .form-check-input:checked { border-color: #198754; background-color: #198754; }
    .rea-recap-confirm .form-check-input:focus { border-color: #198754; box-shadow: 0 0 0 4px rgba(25,135,84,.12); }
    .rea-recap-confirm .form-check-label { cursor: pointer; }
    .rea-recap-confirm-title { display: block; color: #162f59; font-size: .98rem; font-weight: 800; line-height: 1.35; }
    .rea-recap-confirm-note { display: block; margin-top: 3px; color: #647991; font-size: .82rem; font-weight: 500; line-height: 1.4; }
    .rea-recap-confirm.rea-confirm-error { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217,45,32,.08); }
    .rea-prototype-notice { display: none; margin: 0; padding: 18px 2px 8px; color: #26364d; }
    .rea-prototype-notice h4 { margin: 0 0 14px; color: #198754; font-size: 1.45rem; }
    .rea-prototype-notice p { margin: 0; font-weight: 500; line-height: 1.55; }
    .rea-prototype-notice p + p { margin-top: 10px; }
    .rea-prototype-notice ul { margin: 10px 0 0 22px; padding: 0; color: #26364d; }
    .rea-prototype-notice li { margin: 6px 0; line-height: 1.45; }
    .rea-prototype-notice .rea-final-contact { margin-top: clamp(46px, 8vh, 82px); margin-bottom: 0; color: #172b4d; font-weight: 750; text-align: center; }
    .rea-prototype-notice .rea-final-contact span,
    .rea-prototype-notice .rea-final-contact a { display: block; }
    .rea-prototype-notice .rea-final-contact a { margin: 5px auto; color: #172b4d; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
    .rea-prototype-notice .rea-final-contact a:hover { color: #236ce0; text-decoration: underline; }
    .rea-prototype-notice .rea-final-contact .rea-contract-help { margin: 0 auto 16px; padding: 13px 15px; border: 1px solid #e7c66b; border-left: 4px solid #d49a12; border-radius: 11px; color: #654500; background: #fff8df; font-size: .94rem; font-weight: 800; line-height: 1.4; text-align: left; box-shadow: 0 5px 15px rgba(119,83,0,.08); }
    .rea-format-code { font-size: .78rem; color: #69809b; margin-top: 5px; }
    .rea-training-summary { display: grid; gap: 12px; }
    .rea-training-highlight { display: flex; gap: 13px; align-items: flex-start; padding: 15px; border-radius: 15px; background: #eef4ff; color: #1d3d68; }
    .rea-training-highlight span { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #236ce0; color: #fff; font-weight: 800; }
    .rea-training-highlight strong { display: block; margin-bottom: 3px; }
    .rea-training-highlight p { margin: 0; color: #526983; font-size: .9rem; line-height: 1.45; }
    .rea-access-period-note { display: flex; align-items: center; gap: 10px; margin: 15px 0 0; padding: 12px 15px; border: 1px solid #cfe5d8; border-radius: 12px; background: #f3faf6; color: #245c3d; font-size: .88rem; font-weight: 700; line-height: 1.45; }
    .rea-access-period-note::before { content: "✓"; flex: 0 0 auto; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #198754; color: #fff; font-size: .76rem; font-weight: 900; }
    .rea-hybrid-compact-summary { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 4px 0 16px; padding: 11px 15px; border-radius: 12px; background: #f2f7fd; color: #1d3d68; font-size: .92rem; }
    .rea-hybrid-compact-summary span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: #198754; font-weight: 900; }
    #selfStepTraining .rea-form-section { border-color: #d3dfed; background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%); box-shadow: 0 12px 30px rgba(22,47,89,.07); }
    #cpfFirstStep:has(#selfStepTraining:not([hidden])) .modal-header { min-height: 62px; padding-top: 10px; padding-bottom: 10px; }
    #cpfFirstStep:has(#selfStepTraining:not([hidden])) .selected-format-pill { margin-top: 7px; margin-bottom: 8px; padding-top: 3px; padding-bottom: 2px; }
    #cpfFirstStep:has(#selfStepTraining:not([hidden])) .selected-format-summary { padding-bottom: 9px; }
    #cpfFirstStep:has(#selfStepTraining:not([hidden])) .selected-format-reassurance { margin-top: 8px; }
    #selfStepTraining .rea-step-header { margin-bottom: 11px; }
    #selfStepTraining .rea-form-section { margin: 11px 0; padding: 13px; }
    #selfStepTraining .rea-hybrid-compact-summary { margin: 2px 0 10px; padding: 8px 13px; }
    #selfStepTraining .rea-session-field .rea-field-label { margin-bottom: 5px; }
    #selfStepTraining .rea-session-field .form-select { min-height: 46px; }
    #selfStepTraining .rea-session-address { min-height: 42px; margin-top: 8px; padding: 8px 13px; line-height: 1.35; }
    #selfStepTraining .rea-access-period-note { margin-top: 9px; padding: 9px 13px; line-height: 1.35; }
    #selfStepTraining + .rea-registration-actions,
    #selfStepTraining .rea-registration-actions { margin-top: 12px; }
    #selfParticipantSessionChoices .rea-participant-card { padding: 0 18px 18px; overflow: hidden; border-color: #cbd9e8; box-shadow: 0 8px 22px rgba(22,47,89,.06); }
    #selfParticipantSessionChoices .rea-participant-card h6 { margin: 0 -18px 17px; padding: 13px 18px; align-items: center; background: #eaf2ff; border-bottom: 1px solid #d3e1f3; }
    .rea-participant-index { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 9px; border-radius: 50%; color: #fff; background: #236ce0; font-size: .82rem; font-weight: 850; }
    .rea-session-fields { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; }
    .rea-session-field .rea-field-label { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: #243b5a; }
    .rea-session-label-icon { width: 17px; height: 17px; flex: 0 0 17px; color: #236ce0; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .rea-session-field .form-select { min-height: 52px; border: 1.5px solid #aebfd2; border-radius: 11px; background-color: #fff; color: #243b5a; font-weight: 650; box-shadow: 0 3px 10px rgba(22,47,89,.045); }
    .rea-session-field .form-select:hover:not(:disabled) { border-color: #7898bc; }
    .rea-session-field .form-select:focus { border-color: #236ce0; box-shadow: 0 0 0 4px rgba(35,108,224,.13); }
    .rea-session-field .form-select.rea-session-selected { border-color: #198754; box-shadow: 0 0 0 3px rgba(25,135,84,.1); }
    .rea-session-field .form-select:disabled { color: #728197; background-color: #e9eef4; border-color: #ced8e3; opacity: 1; }
    .rea-session-address { min-height: 50px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f2f7fd; color: #405a78; font-size: .88rem; line-height: 1.45; }
    #cpfFirstStep h1, #cpfFirstStep h2, #cpfFirstStep h3, #cpfFirstStep h4, #cpfFirstStep h5, #cpfFirstStep h6 { text-wrap: balance; }
    #cpfFirstStep p, #cpfFirstStep label, #cpfFirstStep li { text-wrap: pretty; }
    #selfParticipantSessionChoices .rea-participant-card { margin-top: 9px; padding-bottom: 13px; }
    #selfParticipantSessionChoices .rea-participant-card h6 { margin-bottom: 11px; padding-top: 9px; padding-bottom: 9px; }
    @media (max-width: 575.98px) {
      #cpfFirstStep .modal-dialog { margin: 10px; }
      #cpfFirstStep .modal-content { border-radius: 20px; }
      #cpfFirstStep .modal-body { padding: 0 18px 22px; max-height: calc(100vh - 88px); }
      #cpfFirstStep .modal-header { min-height: 68px; padding: 14px 18px; }
      #cpfFirstStep .modal-header img { width: 135px !important; }
      #cpfFirstStep .modal-header .btn-close { right: 18px; }
      .rea-path-grid, .rea-choice-group { grid-template-columns: 1fr; }
      .rea-scale-choice-group { grid-template-columns: 1fr 1fr; }
      .rea-registration-actions { flex-direction: column-reverse; }
      .rea-step-header { gap: 8px; }
      .rea-session-fields { grid-template-columns: 1fr; gap: 10px; }
      .rea-company-search-row { grid-template-columns: 1fr; gap: 8px; }
      .rea-company-lookup { min-height: 46px; }
      #cpfFirstStep:has(#selfStepTraining:not([hidden])) .modal-header { min-height: 58px; padding-top: 8px; padding-bottom: 8px; }
      #selfStepTraining .rea-form-section { padding: 11px; }
      .rea-recap-detail { grid-template-columns: 1fr; gap: 2px; }
      .rea-hybrid-compact-summary { flex-wrap: wrap; gap: 7px; }
      #cpfFirstStep .selected-format-reassurance { gap: 4px 7px; }
    }

/* Acompte particulier : récapitulatif avant paiement. */
.rea-recap-card.rea-recap-payment { padding: 20px; border-color: #bdd4c8; background: #f3faf6; }
.rea-recap-payment h5 { color: #17653f; text-transform: none; font-size: 1.08rem; letter-spacing: 0; }
.rea-recap-payment .rea-deposit-amount { margin: 12px 0; color: #17653f; font-size: 1.15rem; font-weight: 700; }

.rea-training-highlight.rea-training-deposit { margin-top: 14px; background: #f3faf6; border: 1px solid #bdd4c8; color: #17653f; }
.rea-training-deposit > span { background: #198754; }
.rea-training-deposit p { color: #17653f; margin-top: 8px; }
.rea-training-deposit > div { min-width: 0; }

/* Alignement des libellés, titres et descriptions des deux parcours. */
.rea-path-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-content: start; }
@media (max-width: 575.98px) {
  .rea-path-card { display: flex; flex-direction: column; align-items: stretch; grid-row: auto; }
}

.rea-recap-card .rea-payment-emphasis { display: inline; font-weight: 700; }

.rea-payment-resume { padding: 18px 20px; margin-bottom: 20px; border: 1px solid #cce6d8; border-radius: 15px; background: #f0f8f3; color: #245b40; text-align: left; }
.rea-payment-resume > strong { display: block; font-size: 1.05rem; margin-bottom: 7px; }
.rea-payment-resume p { margin: 0 0 10px; line-height: 1.5; }
.rea-payment-resume a { color: #187448; text-decoration: underline; text-underline-offset: 3px; }

.rea-field-error { color: #b42318; font-size: .875rem; font-weight: 500; line-height: 1.4; margin: 6px 0 0; width: 100%; }
.rea-choice-group:has(> .rea-field-error) { flex-wrap: wrap; }
#selfRegistrationForm [aria-invalid="true"].form-control, #selfRegistrationForm select[aria-invalid="true"] { border-color: #c6372b; }
#selfRegistrationForm .rea-choice:has(input[aria-invalid="true"]) label { border-color: #c6372b; }

.rea-dossier-restart { padding: 8px 0 4px; color: #243b53; }
.rea-dossier-restart h4 { margin: 0 0 12px; color: #19365c; font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.rea-dossier-restart p { margin: 0; padding: 22px 24px; border: 1px solid #dbe4ef; border-radius: 18px; background: #f8faff; font-size: 1rem; line-height: 1.65; }
.rea-dossier-restart .rea-registration-actions { margin-top: 24px; }
.rea-dossier-restart .pill-button { width: 100%; min-height: 54px; font-weight: 600; white-space: normal; }
@media (max-width: 575.98px) {
  .rea-dossier-restart h4 { font-size: 1.3rem; }
  .rea-dossier-restart p { padding: 18px; }
}
#formats { scroll-margin-top: 24px; }

/* Lien direct transmis après un échange téléphonique. */
body.rea-direct-registration {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% 8%, rgba(35, 108, 224, .12), transparent 34%),
    radial-gradient(circle at 88% 90%, rgba(25, 135, 84, .1), transparent 32%),
    #f5f7fb;
}
.rea-direct-registration .apple-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 36px 20px;
  place-items: center;
}
.rea-direct-registration .apple-shell > *:not(#formats),
.rea-direct-registration #PopUp {
  display: none !important;
}
.rea-direct-registration #formats {
  width: min(940px, 100%);
  margin: 0;
  padding: 40px;
  border: 1px solid rgba(219, 228, 239, .9);
  border-radius: 30px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(18, 42, 74, .14);
}
.rea-direct-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  text-align: center;
}
.rea-direct-header img { width: 172px; height: auto; }
.rea-direct-header p {
  margin: 0;
  color: #55708f;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rea-direct-registration #formats .section-kicker { text-align: center; }
.rea-direct-registration #formats .section-title {
  max-width: 720px;
  margin: 10px auto 12px;
  text-align: center;
}
.rea-direct-registration #formats .section-subtitle {
  max-width: 620px;
  margin: 0 auto 30px;
  text-align: center;
}
.rea-direct-registration #formats .format-grid { gap: 22px; }
.rea-direct-registration #formats.rea-single-formation {
  width: min(660px, 100%);
}
.rea-direct-registration #formats.rea-single-formation .format-grid {
  grid-template-columns: minmax(0, 1fr);
}
.rea-direct-registration #formats.rea-single-formation .format-card[hidden] {
  display: none !important;
}
.rea-direct-registration #formats .format-card {
  min-height: 0;
  padding: 30px;
  box-shadow: 0 16px 38px rgba(18, 42, 74, .08);
}
.rea-direct-registration #formats .format-card > p:not(.format-note) { min-height: 50px; }
.rea-direct-registration #formats .format-card li:nth-child(n+4),
.rea-direct-registration #formats .format-note { display: none; }
.rea-direct-registration #formats .format-card .inscription-btn {
  width: 100%;
  min-height: 52px;
}
.rea-direct-help {
  margin: 28px 0 0;
  color: #60738b;
  text-align: center;
}
.rea-direct-help a { display: inline-block; white-space: nowrap; color: #1f5eb7; font-weight: 750; text-decoration: none; }
.rea-direct-help a:hover { text-decoration: underline; }
@media (max-width: 767.98px) {
  .rea-direct-registration .apple-shell { display: block; padding: 14px 14px calc(100px + env(safe-area-inset-bottom, 0px)); }
  .rea-direct-registration #formats { padding: 26px 18px; border-radius: 22px; }
  .rea-direct-header { margin-bottom: 22px; }
  .rea-direct-header img { width: 148px; }
  .rea-direct-registration #formats .section-title { font-size: 1.85rem; }
  .rea-direct-registration #formats .section-subtitle { margin-bottom: 22px; }
  .rea-direct-registration #formats .format-grid { gap: 14px; }
  .rea-direct-registration #formats .format-card { padding: 24px 20px; }
  .rea-direct-registration #formats .format-card ul { min-height: 0 !important; }
  .rea-direct-registration #formats .format-card .price-line { margin-top: 0 !important; min-height: 0 !important; padding-top: 28px !important; }
  .rea-direct-help a { display: block; margin-top: 8px; }
  .rea-direct-registration #formats .format-card > p:not(.format-note) { min-height: 0; }
}


/* Secondary correction action below the payment CTA. */
#selfModifyBeforePayment {
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin: 10px auto 0;
  padding: 8px 18px;
  border-radius: 999px;
  color: #526780;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: color .15s ease, background-color .15s ease;
}
#selfModifyBeforePayment:hover { color: #1f5eb7; background: #f0f5fc; }
#selfModifyBeforePayment:focus-visible { outline: 2px solid #236ce0; outline-offset: 3px; }
#selfModifyBeforePayment:disabled { opacity: .6; cursor: wait; }

.rea-offer-change-actions { margin-top: 24px; }
.rea-offer-change-actions .pill-button { white-space: normal; line-height: 1.4; min-height: 56px; padding: 14px 20px; }

    /* Reassurance paiement Stripe dans la carte "Je m'inscris seul" + relief des deux cartes. */
    .rea-path-card { box-shadow: 0 6px 16px rgba(22, 47, 89, .15), 0 2px 4px rgba(22, 47, 89, .08); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
    .rea-path-card:hover, .rea-path-card:focus, .rea-path-card:focus-visible { box-shadow: 0 14px 30px rgba(22, 47, 89, .23), 0 3px 8px rgba(22, 47, 89, .12); }
    .rea-path-card:not(.primary) { box-shadow: 0 4px 12px rgba(22, 47, 89, .10), 0 1px 3px rgba(22, 47, 89, .06); }
    .rea-path-card:not(.primary):hover, .rea-path-card:not(.primary):focus, .rea-path-card:not(.primary):focus-visible { box-shadow: 0 10px 24px rgba(22, 47, 89, .17), 0 2px 6px rgba(22, 47, 89, .09); }
    /* La carte bleue a un bord sombre : a opacite egale son ombre parait plus faible. On la densifie pour un rendu visuellement identique. */
    .rea-path-card.primary { box-shadow: 0 8px 20px rgba(22, 47, 89, .26), 0 2px 6px rgba(22, 47, 89, .15); }
    .rea-path-card.primary:hover, .rea-path-card.primary:focus, .rea-path-card.primary:focus-visible { box-shadow: 0 16px 34px rgba(22, 47, 89, .34), 0 4px 10px rgba(22, 47, 89, .19); }
    .rea-path-card .rea-card-stripe { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 9px; margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.3); font-size: .78rem; font-weight: 750; line-height: 1.3; }
    .rea-path-card:not(.primary) .rea-card-stripe { border-top-color: #e1e8f0; }
    .rea-path-card .rea-card-stripe img { display: block; width: 72px; height: auto; padding: 5px 8px; border-radius: 2px; background: #fff; }
